joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b610
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
push 0x465
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10

Function at 0x45b980
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ebx, ebx
push ebx
mov ebp, ecx
call edi
push 1
mov esi, eax
call edi
push ebx
push str.Shell_TrayWnd
mov edi, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x45b9c8
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jle 0x45b9e3
sub eax, dword [esp + 0x18]
lea ecx, [edi - 0xe2]
lea eax, [eax + esi - 0xcd]
jmp 0x45ba13
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
jle 0x45b9f3
add ecx, 0xffffff1e
jmp 0x45ba0d
mov eax, dword [esp + 0x18]
cmp eax, edi
jge 0x45ba06
add eax, 5
lea ecx, [edi - 0xe2]
jmp 0x45ba13
mov ecx, dword [esp + 0x1c]
add ecx, 0x1f
lea eax, [esi - 0xcd]
mov edx, dword [ebp + 4]
push 0x10
push 0xdf
push 0xc8
push ecx
push eax
push ebx
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x45c760
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.0045bdc0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
push 0x465
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10
Function at 0x45e6fe
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x26c]
sub esp, 0x2ec
mov eax, dword [0x4b0650]
xor eax, ebp
mov dword [ebp + 0x268], eax
mov eax, dword [ebp + 0x274]
push ebx
push esi
push edi
mov edi, 0x103
xor ebx, ebx
push edi
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x61]
push ebx
push eax
mov byte [ebp + 0x60], bl
call fcn.00460a00
add esp, 0xc
lea esi, [edi + 1]
push esi
lea eax, [ebp + 0x60]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x60]
push 0x5c
push eax
call fcn.004639f0
cmp eax, ebx
pop ecx
pop ecx
je 0x45e7a0
push eax
call fcn.00465910
mov dword [ebp - 0x6c], 1
sub dword [ebp - 0x6c], eax
lea eax, [ebp + 0x60]
push eax
call fcn.00465910
add eax, dword [ebp - 0x6c]
pop ecx
cmp eax, ebx
pop ecx
jle 0x45e783
mov byte [ebp + eax + 0x60], bl
push 9
lea eax, [ebp + 0x60]
push str.crash.dmp
push eax
call fcn.00464fc0
add esp, 0xc
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
push ebx
push 2
push ebx
push ebx
push 0xc0000000
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x70], eax
je 0x45e8d1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x74]
push edi
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x165]
push ebx
push eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x6c], ebx
mov byte [ebp + 0x164], bl
call fcn.00460a00
add esp, 0xc
push esi
lea eax, [ebp + 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp + 0x164]
push eax
call fcn.00465910
cmp byte [ebp + eax + 0x163], 0x5c
pop ecx
je 0x45e828
push 1
lea eax, [ebp + 0x164]
push 0x49a4f0
push eax
call fcn.00464fc0
add esp, 0xc
push 0xb
lea eax, [ebp + 0x164]
push str.DbgHelp.dll
push eax
call fcn.00464fc0
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
lea eax, [ebp + 0x164]
push eax
call esi
lea eax, [ebp + 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45e88e
push str.MiniDumpWriteDump
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x6c], eax
je 0x45e88e
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x6c]
push 0xc7
lea eax, [ebp - 0x67]
push ebx
push eax
mov byte [ebp - 0x68], bl
call fcn.00460a00
push dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
push edi
push 0x49cae0
push 0x77
push eax
call fcn.00464764
add esp, 0x20
lea eax, [ebp - 0x68]
push eax
call esi
cmp edi, ebx
je 0x45e8c8
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x268]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004604af
add ebp, 0x26c
leave
ret 4
Function at 0x45ec7e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x45ed5b
cmp byte [edi], bl
je 0x45ed5b
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x45ed5b
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
push edi
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x45ed5b
push ebx
push edi
mov dword [ebp - 8], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
mov byte [esi], bl
je 0x45ed4d
push edi
call fcn.00460aa0
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x45ed4d
push eax
push edi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x45ed44
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
push 0x49a4f0
push dword [ebp - 4]
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x45ed44
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push 0x77
push esi
call fcn.00464764
add esp, 0x1c
mov dword [ebp - 8], 1
push dword [ebp - 4]
call fcn.00460799
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
jmp 0x45ed5d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45ed62
Capabilities:
Get file version info
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x4b0650]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
mov esi, edx
je 0x45ef06
cmp byte [edi], bl
je 0x45ef06
cmp esi, ebx
je 0x45ef06
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
push edi
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x4c], eax
je 0x45ef06
push ebx
push edi
mov dword [ebp - 0x58], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 0x48], eax
mov byte [esi], bl
je 0x45ee43
push eax
call fcn.00460aa0
cmp eax, ebx
pop ecx
mov dword [ebp - 0x5c], eax
je 0x45ee43
push eax
push dword [ebp - 0x48]
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x45ee3a
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x49a4f0
push dword [ebp - 0x5c]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x45ee3a
push esi
call fcn.00465910
mov ecx, dword [ebp - 0x48]
movzx edx, word [ecx + 0xc]
push edx
movzx edx, word [ecx + 0xe]
push edx
movzx edx, word [ecx + 8]
movzx ecx, word [ecx + 0xa]
push edx
push ecx
dec eax
push str._d._d._d._d
push eax
push esi
call fcn.00464764
add esp, 0x20
mov dword [ebp - 0x58], 1
push dword [ebp - 0x5c]
call fcn.00460799
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x50]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
call edi
test eax, eax
je 0x45eef8
cmp dword [ebp - 0x50], 0x40
jne 0x45eef8
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x50]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x17c]
push eax
push dword [ebp - 0x4c]
call edi
test eax, eax
je 0x45eef8
cmp dword [ebp - 0x50], 0xf8
jne 0x45eef8
push esi
call fcn.00465910
add esi, eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x5c], ebx
call fcn.00462c39
push 9
pop ecx
mov esi, eax
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x84]
mov eax, dword [ebp - 0x74]
push dword [ebp - 0x80]
inc eax
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x70]
add eax, 0x76c
push eax
push str.__04d__02d__02d__02d:_02d:_02d
push 0x77
push dword [ebp - 0x54]
call fcn.00464764
add esp, 0x2c
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
jmp 0x45ef08
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004604af
leave
ret
Function at 0x45fa49
Capabilities:
Parse pe header

Disassembly:
push ebp
sub esp, 0x90
lea ebp, [esp - 4]
mov eax, dword [0x4b0650]
xor eax, ebp
mov dword [ebp + 0x90], eax
push 0x118
mov eax, 0x4968ab
call fcn.00466b3f
mov ebx, dword [ebp + 0x9c]
mov esi, dword [ebp + 0xa0]
mov eax, dword [ebp + 0xa4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xa8]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 0xac]
mov dword [ebp - 0x24], edx
and dword [ebp - 4], 0
mov byte [ebp + 0x40], 0
xor eax, eax
lea edi, [ebp + 0x41]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
pop ecx
xor eax, eax
lea edi, [ebp + 0x48]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x18]
push eax
push 0x40
lea eax, [ebp]
push eax
push esi
push ebx
call edx
test eax, eax
je 0x45fad1
cmp dword [ebp - 0x18], 0x40
mov byte [ebp - 0x14], 1
je 0x45fad5
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0045fa0e
cmp word [ebp], 0x5a4d
sete al
mov byte [ebp - 0x14], al
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0045fa0e
lea eax, [ebp - 0x18]
push eax
mov edi, pe_nt_image_headers32
push edi
lea eax, [ebp - 0x124]
push eax
mov eax, dword [ebp + 0x3c]
add eax, esi
push eax
push ebx
call dword [ebp - 0x24]
test eax, eax
je 0x45fb1f
cmp dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 1
je 0x45fb23
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0045fa0e
cmp dword [ebp - 0x124], 0x4550
jne 0x45fb54
cmp word [ebp - 0x120], 0x14c
jne 0x45fb54
cmp word [ebp - 0x10c], 0x10b
mov byte [ebp - 0x14], 1
je 0x45fb58
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0045fa0e
mov eax, dword [ebp + 0x3c]
lea eax, [esi + eax + 0xf8]
mov dword [ebp - 0x1c], eax
movzx edi, word [ebp - 0x11e]
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], edi
jae 0x45fc05
lea eax, [ebp - 0x18]
push eax
push 0x28
lea eax, [ebp + 0x68]
push eax
push dword [ebp - 0x1c]
push ebx
call dword [ebp - 0x24]
test eax, eax
je 0x45fba3
cmp dword [ebp - 0x18], 0x28
mov byte [ebp - 0x14], 1
je 0x45fba7
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0045fa0e
add dword [ebp - 0x1c], 0x28
push 0x28
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.00466bce
add esp, 0xc
test eax, eax
je 0x45fc05
mov ecx, dword [ebp + 0x8c]
mov eax, 0x20000020
and ecx, eax
cmp ecx, eax
jne 0x45fbf6
mov eax, dword [ebp + 0x74]
add eax, esi
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x78]
add eax, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x45fc07
inc dword [ebp - 0x20]
jmp 0x45fb7b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.004604af
add ebp, 0x94
leave
ret

Function at 0x4604af
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b0650]
jne 0x4604b9
repz ret
jmp fcn.0046968c
Function at 0x4698a1
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4b07d8]
je 0x4698bc
inc edi
cmp edi, 0x17
jb 0x4698ad
cmp edi, 0x17
jae 0x469a3c
push ebp
push 3
call fcn.004748ea
cmp eax, 1
pop ecx
je 0x469a08
push 3
call fcn.004748ea
test eax, eax
pop ecx
jne 0x4698f0
cmp dword [0x4b06d0], 1
je 0x469a08
cmp ebx, 0xfc
je 0x469a3b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4b30f8
push ebp
call fcn.004627d5
add esp, 0xc
test eax, eax
je 0x469926
push esi
push esi
push esi
push esi
push esi
call fcn.00460836
add esp, 0x14
push 0x104
mov esi, 0x4b3111
push esi
push 0
mov byte [0x4b3215], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46996a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004627d5
add esp, 0xc
test eax, eax
je 0x46996a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00460836
add esp, 0x14
push esi
call fcn.00465910
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4699af
push esi
call fcn.00465910
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4b340c
push 0x49c760
sub ecx, eax
push ecx
push eax
call fcn.004623b4
add esp, 0x14
test eax, eax
je 0x4699af
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00460836
add esp, 0x14
jmp 0x4699b1
xor esi, esi
push 0x49d840
push ebx
push ebp
call fcn.00462903
add esp, 0xc
test eax, eax
je 0x4699d1
push esi
push esi
push esi
push esi
push esi
call fcn.00460836
add esp, 0x14
push dword [edi*8 + 0x4b07dc]
push ebx
push ebp
call fcn.00462903
add esp, 0xc
test eax, eax
je 0x4699f3
push esi
push esi
push esi
push esi
push esi
call fcn.00460836
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0047472d
add esp, 0xc
jmp 0x469a3b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x469a3b
cmp ebp, 0xffffffff
je 0x469a3b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4b07dc]
push dword [esi]
call fcn.00465910
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x47472d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00469020
xor ebx, ebx
cmp dword [0x4b37f8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x474803
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4748e3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4748e3
push eax
call fcn.00468fb2
mov dword [esp], 0x49db94
push edi
mov dword [0x4b37f8], eax
call esi
push eax
call fcn.00468fb2
mov dword [esp], 0x49db80
push edi
mov dword [0x4b37fc], eax
call esi
push eax
call fcn.00468fb2
mov dword [0x4b3800], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0046dbe3
test eax, eax
pop ecx
pop ecx
je 0x4747d1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00460836
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x474803
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00468fb2
cmp eax, ebx
pop ecx
mov dword [0x4b3808], eax
je 0x474803
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00468fb2
pop ecx
mov dword [0x4b3804], eax
mov eax, dword [0x4b3804]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x474888
cmp dword [0x4b3808], ecx
je 0x474888
push eax
call fcn.00469029
push dword [0x4b3808]
mov esi, eax
call fcn.00469029
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x474888
cmp edi, ebx
je 0x474888
call esi
cmp eax, ebx
je 0x474855
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x474855
test byte [ebp - 0x18], 1
jne 0x474888
lea eax, [ebp - 0x10]
push eax
call fcn.0046dc1a
test eax, eax
pop ecx
je 0x474870
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00460836
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x47487f
or dword [ebp + 0x10], 0x200000
jmp 0x4748c3
or dword [ebp + 0x10], 0x40000
jmp 0x4748c3
mov eax, dword [0x4b37fc]
cmp eax, dword [ebp - 8]
je 0x4748c3
push eax
call fcn.00469029
cmp eax, ebx
pop ecx
je 0x4748c3
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4748c3
mov eax, dword [0x4b3800]
cmp eax, dword [ebp - 8]
je 0x4748c3
push eax
call fcn.00469029
cmp eax, ebx
pop ecx
je 0x4748c3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b37f8]
call fcn.00469029
cmp eax, ebx
pop ecx
je 0x4748e3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4748e5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48c5c5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4b3bb0], 0
push esi
jne 0x48c538
call fcn.0048c463
test eax, eax
je 0x48c57b
mov eax, dword [0x4b3bb0]
cmp eax, 1
jne 0x48c559
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x48c57b
pop esi
ret
push eax
call dword [0x4b3bb8]
test eax, eax
jne 0x48c5c3
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x48c57f
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4b3bb0]
call dword [0x4b3bb8]
mov edi, eax
test edi, edi
je 0x48c5a6
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x48c5c2
lea edi, [esi + 0xff0]
push esi
push dword [0x4b3bb0]
call dword [0x4b3bb4]
add esi, 0x10
cmp esi, edi
jb 0x48c5ac
mov eax, esi
pop edi
pop esi
ret
jmp 0x48c525

Function at 0x48c716
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4b0650]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0048c6ab
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00460a00
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x48c765
cmp dword [ebp - 0x1c], 5
jb 0x48c77d
jmp 0x48c779
cmp dword [ebp - 0x10], 1
jne 0x48c77d
cmp dword [ebp - 0x1c], 4
ja 0x48c779
jne 0x48c77d
cmp dword [ebp - 0x18], 0
jbe 0x48c77d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x49fbfc
call fcn.0040c510
test eax, eax
jge 0x48c79e
mov byte [0x4b2a60], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004604af
add ebp, 0x78
leave
ret
Function at 0x48d960
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x497968
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4b3c98]
test eax, eax
jne 0x48d992
xor esi, esi
jmp 0x48d99b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
je 0x48d9dd
cmp dword [esi + 0x14], 0
jne 0x48da1f
cmp dword [esi + 0x10], 0
jne 0x48da25
push 0x48d480
push 0x4b3c90
call fcn.0048d680
mov eax, dword [0x4b3c98]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x48da0b
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x48da0b
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x48da65
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x48da53
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x48da25
cmp dword [esi + 0x14], 0
je 0x48d9b7
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x48da8a
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x48dabb
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x48dabb
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x48dabb
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x48da6f
jmp 0x48d9b1
Function at 0x48dc30
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4979e8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x48dae0
push 0
push 0
call fcn.00462684
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x48dc9b
lea ecx, [esp + 0x10]
call fcn.00460557
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.004122d0
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x48dcc1
cmp eax, 0xffffffff
je 0x48dcc1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x48e730
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x48e73f
mov eax, dword [eax + 4]
jmp 0x48e742
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x48e7da
push esi
call fcn.0048c910
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
je 0x48e7bf
cmp eax, 3
je 0x48e7bf
cmp eax, 0x7b
je 0x48e7bf
cmp eax, 0xf
je 0x48e7bf
cmp eax, 0x15
je 0x48e7bf
cmp eax, 0x57
je 0x48e7bf
cmp eax, 0xa1
je 0x48e7bf
cmp eax, 0x35
je 0x48e7bf
cmp eax, 0x20
jne 0x48e7b4
mov eax, dword [0x4b3cb0]
mov dword [ecx], eax
mov edx, dword [0x4b3cb4]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x4b3cb0]
mov dword [ecx], eax
mov edx, dword [0x4b3cb4]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x4b3cb0]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x4b3cb4]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x48e807
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret