joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40897c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov esi, eax
cmp edi, 0x50
jle 0x40899d
mov eax, esi
mov edx, 0x40a1c8
mov ecx, 0x40
call fcn.0040270c
je 0x4089a2
call fcn.00408914
mov eax, esi
add eax, 0x40
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
not edx
cmp eax, edx
jne 0x4089c1
cmp edi, eax
jne 0x4089c1
cmp dword [ebx], 0xcc
je 0x4089c6
call fcn.00408914
mov eax, ebx
add eax, 0x10
mov ebp, eax
add esi, dword [ebx + 4]
mov dword [esp], esi
mov edx, dword [esp]
sub edx, ebp
mov eax, ebp
call fcn.00407534
cmp eax, dword [ebx + 0xc]
jne 0x4089ed
mov eax, dword [esp]
cmp byte [eax - 1], 0
je 0x4089f2
call fcn.00408914
mov bl, 0xcc
mov esi, 0x40b95c
cmp ebp, dword [esp]
jb 0x408a03
call fcn.00408914
mov eax, ebp
call fcn.00404cac
mov edi, eax
mov eax, esi
mov ecx, edi
mov edx, ebp
call fcn.00403278
inc edi
add ebp, edi
add esi, 4
dec bl
jne 0x4089f9
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408c00
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
cmp dword [0x40a07c], 2
jne 0x408c6d
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x408c25
call fcn.00408be0
jmp 0x408c7f
lea eax, [esp + 8]
push eax
push 0x408c84
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x408c6d
call fcn.00408be0
jmp 0x408c7f
push 0
push 2
call sub.user32.dll_ExitWindowsEx
test eax, eax
jne 0x408c7f
call fcn.00408be0
add esp, 0x14
ret

Function at 0x408c98
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
push esi
push edi
mov edi, eax
mov ebx, edx
dec ebx
test ebx, ebx
jl 0x408cde
inc ebx
xor esi, esi
test esi, esi
je 0x408cb5
push 0xfa
call sub.kernel32.dll_Sleep
mov eax, edi
call fcn.00403444
push eax
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0x408cde
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x408cde
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x408cde
inc esi
dec ebx
jne 0x408ca7
pop edi
pop esi
pop ebx
ret
Function at 0x409098
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x78]
xor eax, eax
push ebp
push 0x409188
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4091a0
push esi
push 0x4091ac
push edi
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403340
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403444
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40911c
mov al, 0x62
call fcn.00408ce4
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x409133
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x409127
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409133
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40918f
lea eax, [ebp - 8]
call fcn.00403198
ret

Function at 0x409238
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x409324
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00406aa4
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
mov edx, 0x40933c
call fcn.00408adc
push 0
mov eax, dword [ebp - 4]
call fcn.00403444
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4092f2
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x409258
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.004088d4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404c2c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00406f6c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x60
call fcn.004088a4
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x4045a8
call fcn.00405828
call fcn.00402eb4
jmp 0x409258
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40932b
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004031b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031b8
ret
Function at 0x40934c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409400
jmp 0x4093f5
cmp dword [esi + 0x10], 0x1000
jne 0x4093e1
test byte [esi + 0x15], 1
jne 0x4093e1
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4093a0
cmp eax, 2
je 0x4093a0
cmp eax, 0x10
je 0x4093a0
cmp eax, 0x20
jne 0x4093b5
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4093b5
mov bl, 1
xor ebp, ebp
jmp 0x4093c6
mov eax, dword [esi]
add eax, ebp
call fcn.00409344
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jl 0x4093b9
test bl, bl
je 0x4093e1
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409400
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409378
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434008]
jne 0x40100a
repz ret
jmp fcn.00401671

Function at 0x40482b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402cea
and dword [ebp - 4], 0
cmp dword [0x435cb0], 0
mov ebx, eax
jne 0x4048dc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40498d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40498d
push eax
call fcn.00402c78
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x435cb0], eax
call esi
push eax
call fcn.00402c78
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x435cb4], eax
call esi
push eax
call fcn.00402c78
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x435cb8], eax
call esi
push eax
call fcn.00402c78
pop ecx
mov dword [0x435cc0], eax
test eax, eax
je 0x4048dc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402c78
pop ecx
mov dword [0x435cbc], eax
mov eax, dword [0x435cbc]
cmp eax, ebx
je 0x404934
cmp dword [0x435cc0], ebx
je 0x404934
push eax
call fcn.00402cf3
push dword [0x435cc0]
mov esi, eax
call fcn.00402cf3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404934
test edi, edi
je 0x404934
call esi
test eax, eax
je 0x40492b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40492b
test byte [ebp - 0xc], 1
jne 0x404934
or dword [ebp + 0x10], 0x200000
jmp 0x40496d
mov eax, dword [0x435cb4]
cmp eax, ebx
je 0x40496d
push eax
call fcn.00402cf3
pop ecx
test eax, eax
je 0x40496d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40496d
mov eax, dword [0x435cb8]
cmp eax, ebx
je 0x40496d
push eax
call fcn.00402cf3
pop ecx
test eax, eax
je 0x40496d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x435cb0]
call fcn.00402cf3
pop ecx
test eax, eax
je 0x40498d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40498f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431470
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x434008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x50e3dc]
push ebx
push esi
mov esi, dword [0x50e224]
mov ebx, eax
cmp eax, 0x5dd
jne 0x4314aa
push 0
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x434c60]
call fcn.00431370
cmp dword [0x50e3dc], 0x2f
jne 0x4314c5
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
call fcn.004313b0
add esp, 4
cmp dword [0x50e3dc], 0x568
pop esi
pop ebx
jne 0x4314ec
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x42af49
Capabilities:
Terminate process

Disassembly:
push 8
push 0x441f08
call fcn.0042cac0
push 8
call fcn.0042e01f
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x484104], esi
jne 0x42af7d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x484100], esi
mov al, byte [ebp + 0x10]
mov byte [0x4840fc], al
cmp dword [ebp + 0xc], edi
jne 0x42afc7
cmp dword [0x484b20], edi
je 0x42afb7
mov eax, dword [0x484b1c]
sub eax, 4
mov dword [0x484b1c], eax
cmp eax, dword [0x484b20]
jb 0x42afb7
mov eax, dword [eax]
cmp eax, edi
je 0x42af98
call eax
jmp 0x42af98
push 0x446938
mov eax, 0x446728
call fcn.0042aea9
pop ecx
push 0x446c44
mov eax, 0x446a3c
call fcn.0042aea9
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x42aff8
cmp dword [ebp + 0x10], edi
jne 0x42b006
mov dword [0x484104], esi
push dword [ebp + 8]
call fcn.0042ae67
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x42b005
push 8
call fcn.0042df52
pop ecx
ret
call fcn.0042cafb
ret
Function at 0x42bba8
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x4422f8
call fcn.0042cac0
mov edi, 0x94
mov eax, edi
call fcn.0042ac60
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4840c4], ecx
mov eax, dword [esi + 4]
mov dword [0x4840d0], eax
mov edx, dword [esi + 8]
mov dword [0x4840d4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4840c8], esi
cmp ecx, 2
je 0x42bc08
or esi, 0x8000
mov dword [0x4840c8], esi
shl eax, 8
add eax, edx
mov dword [0x4840cc], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x42bc41
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42bc41
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42bc59
cmp eax, 0x20b
je 0x42bc46
mov dword [ebp - 0x1c], edi
jmp 0x42bc6d
cmp dword [ecx + 0x84], 0xe
jbe 0x42bc41
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x42bc67
cmp dword [ecx + 0x74], 0xe
jbe 0x42bc41
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0042e0f2
pop ecx
test eax, eax
jne 0x42bc81
push 0x1c
call fcn.0042bb2e
pop ecx
call fcn.00430136
test eax, eax
jne 0x42bc92
push 0x10
call fcn.0042bb2e
pop ecx
call fcn.0042e050
mov dword [ebp - 4], edi
call fcn.0042d95b
test eax, eax
jge 0x42bcab
push 0x1b
call fcn.0042bb09
pop ecx
call fcn.00430b12
mov dword [0x484b00], eax
call fcn.004309a8
mov dword [0x48410c], eax
call fcn.00430912
test eax, eax
jge 0x42bcd0
push 8
call fcn.0042bb09
pop ecx
call fcn.004306df
test eax, eax
jge 0x42bce1
push 9
call fcn.0042bb09
pop ecx
push 1
call fcn.0042aedf
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x42bcf7
push eax
call fcn.0042bb09
pop ecx
mov eax, dword [0x4840ec]
mov dword [0x4840f0], eax
push eax
push dword [0x4840e0]
push dword [0x4840d8]
call fcn.0040100f
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x42bd26
push esi
call fcn.0042b00c
call fcn.0042b02e
jmp 0x42bd58
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0042cafb
ret
Function at 0x42f233
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0042ac60
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42f2ce
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4840c4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x42f2ce
cmp eax, 1
je 0x42f2ef
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42f2ce
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42f29b
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42f2ca
xor eax, eax
inc eax
jmp 0x42f30e
cmp edi, eax
jae 0x42f2d2
xor eax, eax
jmp 0x42f30e
cmp eax, esi
jae 0x42f2d9
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4840c4]
jmp 0x42f2f2
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43035a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4831b0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4831c0]
je 0x43038f
inc eax
cmp eax, 0x13
jb 0x430380
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4831c0]
jne 0x4304b5
mov eax, dword [0x484110]
cmp eax, 1
je 0x43048d
cmp eax, edx
jne 0x4303bf
cmp dword [0x482fcc], 1
je 0x43048d
cmp ecx, 0xfc
je 0x4304b5
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4303f5
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00430c50
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0042a480
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x430429
mov eax, edi
push eax
call fcn.0042a480
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4429a0
push edi
call fcn.00433990
add esp, 0x10
push edi
call fcn.0042a480
push dword [esi + 0x4831c4]
mov ebx, eax
call fcn.0042a480
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042ac60
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00430c50
push edi
push ebx
call fcn.00430c60
push 0x442980
push ebx
call fcn.00430c60
push dword [esi + 0x4831c4]
push ebx
call fcn.00430c60
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043388b
add esp, 0x2c
jmp 0x4304b5
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4831c4]
push dword [esi]
call fcn.0042a480
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00431172
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4309a8
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x48449c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x4309f1
call ebp
mov esi, eax
cmp esi, ebx
je 0x4309d7
mov dword [0x48449c], 1
jmp 0x4309f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4309ec
push 2
pop eax
mov dword [0x48449c], eax
jmp 0x4309f1
mov eax, dword [0x48449c]
cmp eax, 1
jne 0x430a4e
cmp esi, ebx
jne 0x430a09
call ebp
mov esi, eax
cmp esi, ebx
jne 0x430a09
xor eax, eax
jmp 0x430af5
cmp word [esi], bx
mov eax, esi
je 0x430a1e
inc eax
inc eax
cmp word [eax], bx
jne 0x430a10
inc eax
inc eax
cmp word [eax], bx
jne 0x430a10
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0042b0f3
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x430a41
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x430af5
push ebp
push esi
push edi
call fcn.0042a510
add esp, 0xc
jmp 0x430a33
cmp eax, 2
je 0x430a57
cmp eax, ebx
jne 0x430a02
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x430a02
cmp byte [ebp], bl
mov esi, ebp
je 0x430a8d
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x430a02
push esi
add edi, eax
call fcn.0042a480
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x430a6a
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0042b0f3
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x430b06
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x430ae7
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x430afc
push edi
call fcn.0042a480
push esi
lea edi, [edi + eax + 1]
call fcn.00433afa
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x430aad
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0042b16b
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x430a02
Function at 0x430b12
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4844a0]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x430b52
call esi
test eax, eax
je 0x430b37
mov dword [0x4844a0], 1
jmp 0x430b57
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x430b4e
mov dword [0x4844a0], 2
jmp 0x430b60
xor eax, eax
jmp 0x430bae
cmp eax, 1
jne 0x430b5b
call esi
jmp 0x430bae
cmp eax, 2
jne 0x430b4e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x430ba6
lea eax, [esi + esi]
push eax
call fcn.0042b0f3
mov ebp, eax
test ebp, ebp
pop ecx
je 0x430ba6
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x430baa
push ebp
call fcn.0042b16b
pop ecx
xor eax, eax
jmp 0x430bac
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x431215
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x431243
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x43124a
cmp ebx, dword [eax + 4]
jae 0x43124a
xor eax, eax
jmp 0x43143a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43125b
xor eax, eax
inc eax
jmp 0x431439
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x431271
cmp ecx, edx
jae 0x4313b6
cmp dword [eax + 4], 0
je 0x43127a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x431262
cmp dword [ebp + 8], 0
je 0x43129c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4313b6
cmp eax, esi
jae 0x4313b6
mov eax, dword [0x4844a8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4312c1
cmp dword [esi*4 + 0x4844b0], edi
je 0x4313ba
inc esi
cmp esi, eax
jl 0x4312af
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x431436
cmp dword [ebp - 8], 0x1000000
jne 0x431436
test byte [ebp - 0xc], 0xcc
je 0x43133f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x431436
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x431436
cmp word [eax + 0x18], 0x10b
jne 0x431436
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x431436
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43133f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43133f
test byte [ecx + 0x27], 0x80
jne 0x4313b6
push 1
push 0x4844f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x431253
mov ecx, dword [0x4844a8]
test ecx, ecx
mov edx, ecx
jle 0x431373
lea eax, [ecx*4 + 0x4844ac]
cmp dword [eax], edi
je 0x431373
dec edx
sub eax, 4
test edx, edx
jg 0x431367
test edx, edx
jne 0x4313a4
push 0xf
pop ebx
cmp ecx, ebx
jg 0x431380
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x431398
lea eax, [edx*4 + 0x4844b0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x431386
cmp ecx, 0x10
jge 0x4313a4
inc ecx
mov dword [0x4844a8], ecx
push 0
push 0x4844f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x431253
xor eax, eax
jmp 0x431439
test esi, esi
jle 0x431253
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4844f0
call ebx
test eax, eax
jne 0x431253
cmp dword [esi*4 + 0x4844b0], edi
je 0x431410
mov eax, dword [0x4844a8]
lea esi, [eax - 1]
test esi, esi
jl 0x4313fe
cmp dword [esi*4 + 0x4844b0], edi
je 0x4313fa
dec esi
jns 0x4313ee
test esi, esi
jge 0x43140e
cmp eax, 0x10
jge 0x431409
inc eax
mov dword [0x4844a8], eax
lea esi, [eax - 1]
jmp 0x431410
je 0x431428
xor ecx, ecx
test esi, esi
jl 0x431428
lea eax, [ecx*4 + 0x4844b0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x431416
push 0
push 0x4844f0
call ebx
jmp 0x431253
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret