joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e04d
Capabilities:
Create process on windows

Disassembly:
cmp word [esp + 8], 0x3fc
jne 0x40e088
push esi
push pe_nt_image_headers32
lea esi, [ecx + 0x42c]
push esi
push 0x7f4
push dword [0x426ea8]
call dword [sym.imp.USER32.dll_LoadStringA]
push 1
xor eax, eax
push eax
push eax
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
xor eax, eax
ret 0x10

Function at 0x40e08d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
cmp word [ebp + 0xc], 0x3ff
push esi
mov esi, ecx
jne 0x40e107
push edi
push 0x3f
pop ecx
xor eax, eax
mov byte [ebp - 0x100], 0
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push pe_nt_image_headers32
stosb byte es:[edi], al
lea eax, [ebp - 0x100]
push eax
push 0x7f3
push dword [0x426ea8]
call dword [sym.imp.USER32.dll_LoadStringA]
push str.1.6.0_23
lea eax, [ebp - 0x100]
push eax
add esi, 0x42c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x40e196
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push ebx
push esi
push edi
push 0x3f
xor eax, eax
mov esi, ecx
pop ecx
mov byte [ebp - 0x108], 0
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
pop ecx
xor eax, eax
mov byte [ebp - 0x208], 0
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
pop ecx
xor eax, eax
mov byte [ebp - 0x308], 0
lea edi, [ebp - 0x307]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, pe_nt_image_headers32
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x7fa
push dword [0x426eac]
call edi
push ebx
lea eax, [ebp - 0x208]
push eax
push 0x7fb
push dword [0x426eac]
call edi
push str.1.6.0_23
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x134
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x308]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40e2c8
lea eax, [ebp - 8]
push eax
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREJavaSoft
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, str.decline
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push 1
push ebx
push str.InstallStatus
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, esi
call fcn.0040e10e
movzx eax, word [ebp + 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x40ecfa
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push 0xd5e5e7
mov esi, ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esi + 0x57c], eax
mov eax, dword [esi + 0x2c]
xor ebx, ebx
push 0x3f
mov dword [ebp - 4], eax
pop ecx
mov byte [ebp - 0x108], bl
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xbe1
push dword [esi + 4]
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esi + 0x53c], ebx
mov dword [esi + 0x55c], ebx
mov dword [esi + 0x580], ebx
mov dword [esi + 0x584], ebx
call edi
push 0xfffffffffffffff0
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x100
push eax
push 0xfffffffffffffff0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetWindowLongA]
cmp dword [ebp - 4], ebx
je 0x40ee18
push dword [esi + 0x30]
lea eax, [ebp - 0x108]
push eax
call fcn.00412ae0
pop ecx
pop ecx
push 0xbdb
push dword [esi + 4]
call edi
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 0xbdd
push dword [esi + 4]
call edi
push 0
push eax
call ebx
push str.SP10
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40ee11
push 0x4210ac
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40ee11
push 0x4210a8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40ee11
push 0xbeb
push dword [esi + 4]
call edi
push 0
push eax
call ebx
push 0xbe9
jmp 0x40ee4f
push 0xbec
jmp 0x40ee40
push 0xbec
push dword [esi + 4]
call edi
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 0xbeb
push dword [esi + 4]
call edi
push 0
push eax
call ebx
push 0xbe9
push dword [esi + 4]
call edi
push 0
push eax
call ebx
push 0xbea
push dword [esi + 4]
call edi
push 0
push eax
call ebx
cmp dword [esi + 0x20], 0
jne 0x40ee6e
push 0xbe2
push dword [esi + 4]
call edi
push 0
push eax
call ebx
cmp dword [esi + 0x24], 0
je 0x40ee86
push 1
push 0xbe4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_CheckDlgButton]
jmp 0x40eea4
push 0xbe4
push dword [esi + 4]
call edi
push 0
push eax
call ebx
push 0xbe3
push dword [esi + 4]
call edi
push 0
push eax
call ebx
call fcn.0040a6c3
test eax, eax
je 0x40eed8
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 4]
call edi
push 0x43
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 4]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
push 2
push dword [esi + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x40eecf
inc eax
jmp 0x40eed1
Function at 0x40ef50
Capabilities:
Create process on windows

Disassembly:
cmp word [esp + 8], 0xbe1
jne 0x40ef8b
push esi
push pe_nt_image_headers32
lea esi, [ecx + 0x438]
push esi
push 0x80f
push dword [0x426ea8]
call dword [sym.imp.USER32.dll_LoadStringA]
push 1
xor eax, eax
push eax
push eax
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
xor eax, eax
ret 0x10

Function at 0x40efe5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push esi
call edi
mov dword [ebp + 8], eax
fild dword [ebp + 8]
push 0x5a
push esi
fstp dword [ebp - 0xc]
call edi
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fld dword [ebp - 0xc]
fmul dword [0x421064]
call fcn.00413ff4
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
lea eax, [eax + eax*4]
shl eax, 1
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fmul st(1)
fmul dword [0x421060]
call fcn.00413ff4
fstp st(0)
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.GDI32.dll_DPtoLP]
fild dword [ebp - 4]
push ecx
push ecx
fstp qword [esp]
call fcn.00413eed
fmul qword [0x421058]
pop ecx
pop ecx
fadd qword [0x421050]
call fcn.00413ff4
neg eax
cmp dword [ebp + 0x18], ebx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
setne al
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x38], bl
mov byte [ebp - 0x37], al
mov byte [ebp - 0x36], bl
mov byte [ebp - 0x35], bl
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
push pe_nt_image_headers32
lea eax, [ebp - 0x14c]
push eax
push 0x1002
push 0x800
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 5
lea eax, [ebp - 0x14c]
push str.Japan
push eax
call fcn.00413280
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x30]
je 0x40f114
push dword [ebp + 0xc]
jmp 0x40f119
push str.MS_UI_Gothic
push eax
call fcn.00412ae0
pop ecx
pop ecx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push dword [ebp - 0x10]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x4103ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0xd5e5e7
mov esi, ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
xor edi, edi
push 0xfa5
push dword [esi + 4]
mov dword [esi + 0x860], eax
mov dword [esi + 0x82c], edi
mov dword [esi + 0x854], edi
mov dword [esi + 0x84c], edi
mov dword [esi + 0x850], edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
push 0xffffff
push edi
push 0x2001
push eax
mov dword [ebp - 4], eax
call ebx
push 0x32cd32
push edi
push 0x409
push dword [ebp - 4]
call ebx
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xfffeffff
push eax
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 1
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x4101cb
push edi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x410f37
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push esi
call edi
mov dword [ebp + 8], eax
fild dword [ebp + 8]
push 0x5a
push esi
fstp dword [ebp - 0xc]
call edi
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fld dword [ebp - 0xc]
fmul dword [0x421064]
call fcn.00413ff4
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
lea eax, [eax + eax*4]
shl eax, 1
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fmul st(1)
fmul dword [0x421060]
call fcn.00413ff4
fstp st(0)
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.GDI32.dll_DPtoLP]
fild dword [ebp - 4]
push ecx
push ecx
fstp qword [esp]
call fcn.00413eed
fmul qword [0x421058]
pop ecx
pop ecx
fadd qword [0x421050]
call fcn.00413ff4
neg eax
cmp dword [ebp + 0x18], ebx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
setne al
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x38], bl
mov byte [ebp - 0x37], al
mov byte [ebp - 0x36], bl
mov byte [ebp - 0x35], bl
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
xor eax, eax
mov byte [ebp - 0x44c], bl
mov ecx, 0xff
lea edi, [ebp - 0x44b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x400
stosb byte es:[edi], al
lea eax, [ebp - 0x44c]
push eax
push 0x1002
push 0x800
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 5
lea eax, [ebp - 0x44c]
push str.Japan
push eax
call fcn.00413280
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x30]
je 0x41107e
push dword [ebp + 0xc]
jmp 0x411083
push str.MS_UI_Gothic
push eax
call fcn.00412ae0
pop ecx
pop ecx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push dword [ebp - 0x10]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x4110aa
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa28
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 7
pop ecx
xor eax, eax
push 0x40
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x228], bl
lea edi, [ebp - 0x227]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x628], bl
mov ecx, 0xff
lea edi, [ebp - 0x627]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 0x10]
push 0x400
lea eax, [ebp - 0x628]
push eax
push 0x7fe
push dword [0x426eac]
mov dword [ebp - 0x20], edi
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x628]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x10]
push eax
push ebx
push ebx
push 0x11
push edi
mov dword [ebp - 0x10], 0x49
mov dword [ebp + 0x10], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x411152
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x411204
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x124], bl
lea edi, [ebp - 0x123]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x124]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4111fb
lea ecx, [ebp - 0x124]
lea eax, [esi + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
mov byte [ebp - 0xa28], bl
mov ecx, 0xff
lea edi, [ebp - 0xa27]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0xa28]
push str.Selected_Folder:__s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xa28]
push eax
call fcn.0040b31c
add esp, 0x10
push 0x408
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esi + 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [ebp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x411dfa
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.00412040
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411e95
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 [0x426f14]
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 0x411e95
cmp eax, 1
je 0x411eb6
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 0x411e95
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x411e62
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x411e91
xor eax, eax
inc eax
jmp 0x411ed5
cmp edi, eax
jae 0x411e99
xor eax, eax
jmp 0x411ed5
cmp eax, esi
jae 0x411ea0
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 [0x426f14]
jmp 0x411eb9
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 0x413039
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4212e8
call fcn.00411ee0
push 8
call fcn.00414424
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x426f54], esi
jne 0x41306d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x426f50], esi
mov al, byte [ebp + 0x10]
mov byte [0x426f4c], al
cmp dword [ebp + 0xc], edi
jne 0x4130b7
cmp dword [0x4287b0], edi
je 0x4130a7
mov eax, dword [0x4287ac]
sub eax, 4
mov dword [0x4287ac], eax
cmp eax, dword [0x4287b0]
jb 0x4130a7
mov eax, dword [eax]
cmp eax, edi
je 0x413088
call eax
jmp 0x413088
push 0x425040
mov eax, 0x425038
call fcn.00412fb7
pop ecx
push 0x42504c
mov eax, 0x425044
call fcn.00412fb7
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4130e8
cmp dword [ebp + 0x10], edi
jne 0x4130f6
mov dword [0x426f54], esi
push dword [ebp + 8]
call fcn.00412f75
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4130f5
push 8
call fcn.0041436f
pop ecx
ret
call fcn.00411f1b
ret
Function at 0x4140bd
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x421320
call fcn.00411ee0
mov edi, 0x94
mov eax, edi
call fcn.00412040
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 [0x426f14], ecx
mov eax, dword [esi + 4]
mov dword [0x426f20], eax
mov edx, dword [esi + 8]
mov dword [0x426f24], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x426f18], esi
cmp ecx, 2
je 0x41411d
or esi, 0x8000
mov dword [0x426f18], esi
shl eax, 8
add eax, edx
mov dword [0x426f1c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x414158
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414158
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x414170
cmp eax, 0x20b
je 0x41415d
mov dword [ebp - 0x1c], esi
jmp 0x414184
cmp dword [ecx + 0x84], 0xe
jbe 0x414158
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41417e
cmp dword [ecx + 0x74], 0xe
jbe 0x414158
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041446f
pop ecx
test eax, eax
jne 0x414198
push 0x1c
call fcn.00414099
pop ecx
call fcn.00415d1d
test eax, eax
jne 0x4141a9
push 0x10
call fcn.00414099
pop ecx
call fcn.00415ebc
mov dword [ebp - 4], esi
call fcn.00419044
test eax, eax
jge 0x4141c2
push 0x1b
call fcn.00414074
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4287a4], eax
call fcn.00418f22
mov dword [0x426f7c], eax
call fcn.00418e80
test eax, eax
jge 0x4141e8
push 8
call fcn.00414074
pop ecx
call fcn.00418c4d
test eax, eax
jge 0x4141f9
push 9
call fcn.00414074
pop ecx
push 1
call fcn.00412fcf
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41420f
push eax
call fcn.00414074
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00418bf0
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x414230
movzx eax, word [ebp - 0x40]
jmp 0x414233
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040927c
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x414251
push edi
call fcn.004130fc
call fcn.0041311e
jmp 0x414283
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00411f1b
ret
Function at 0x414ffe
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 0x41502c
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 0x415033
cmp ebx, dword [eax + 4]
jae 0x415033
xor eax, eax
jmp 0x415223
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x415044
xor eax, eax
inc eax
jmp 0x415222
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41505a
cmp ecx, edx
jae 0x41519f
cmp dword [eax + 4], 0
je 0x415063
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41504b
cmp dword [ebp + 8], 0
je 0x415085
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41519f
cmp eax, esi
jae 0x41519f
mov eax, dword [0x4270e0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4150aa
cmp dword [esi*4 + 0x4270e8], edi
je 0x4151a3
inc esi
cmp esi, eax
jl 0x415098
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41521f
cmp dword [ebp - 8], 0x1000000
jne 0x41521f
test byte [ebp - 0xc], 0xcc
je 0x415128
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41521f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41521f
cmp word [eax + 0x18], 0x10b
jne 0x41521f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41521f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x415128
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x415128
test byte [ecx + 0x27], 0x80
jne 0x41519f
push 1
push 0x427128
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41503c
mov ecx, dword [0x4270e0]
test ecx, ecx
mov edx, ecx
jle 0x41515c
lea eax, [ecx*4 + 0x4270e4]
cmp dword [eax], edi
je 0x41515c
dec edx
sub eax, 4
test edx, edx
jg 0x415150
test edx, edx
jne 0x41518d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x415169
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x415181
lea eax, [edx*4 + 0x4270e8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41516f
cmp ecx, 0x10
jge 0x41518d
inc ecx
mov dword [0x4270e0], ecx
push 0
push 0x427128
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41503c
xor eax, eax
jmp 0x415222
test esi, esi
jle 0x41503c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x427128
call ebx
test eax, eax
jne 0x41503c
cmp dword [esi*4 + 0x4270e8], edi
je 0x4151f9
mov eax, dword [0x4270e0]
lea esi, [eax - 1]
test esi, esi
jl 0x4151e7
cmp dword [esi*4 + 0x4270e8], edi
je 0x4151e3
dec esi
jns 0x4151d7
test esi, esi
jge 0x4151f7
cmp eax, 0x10
jge 0x4151f2
inc eax
mov dword [0x4270e0], eax
lea esi, [eax - 1]
jmp 0x4151f9
je 0x415211
xor ecx, ecx
test esi, esi
jl 0x415211
lea eax, [ecx*4 + 0x4270e8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4151ff
push 0
push 0x427128
call ebx
jmp 0x41503c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret