joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456ed0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x456f62
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x456f54
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x456f4c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x456f15
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x456f70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x456fb1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x456fb1.2
jmp dword [eax*4 + 0x45703c]
mov word [esp + 0x48], di
jmp 0x456fea
mov word [esp + 0x48], 2
jmp 0x456fea
mov word [esp + 0x48], 3
jmp 0x456fea
mov word [esp + 0x48], 4
jmp 0x456fea
mov word [esp + 0x48], 7
jmp 0x456fea
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x457034
cmp dword [esp + 0x70], edi
je 0x457020
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x45d760
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5a2794]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x45d773
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x45d7b4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5a283c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x45d7e6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x45d7ea
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x45d7db
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x45d808
mov bl, byte [esp + ecx + 0x4c]
jmp 0x45d80c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x45d7fd
xor ecx, ecx
mov eax, 0x5a27a4
xor ebx, ebx
mov bl, byte [ecx + 0x5a284c]
cmp byte [esp + ebx + 0x14], 0
je 0x45d837
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5a2864]
cmp byte [esp + ebx + 0x14], 0
je 0x45d84e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x45d81e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x45d7a7
lea edx, [esp + 0x84]
push edx
call fcn.0045d890
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x46df0c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46df4e
call fcn.0047125b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46df4e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46df45
xor eax, eax
jmp 0x46df56
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046df5c
pop edi
pop esi
pop ebx
ret 4

Function at 0x46eee7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x472b08
call fcn.00461674
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0047125b
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x46ef26
call fcn.0047125b
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46ef34
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x46ef42
or eax, 0xffffffff
jmp 0x46f02a
mov ecx, esi
call fcn.0046ee5d
mov dword [ebp - 0x14], eax
call fcn.0046c550
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x46ef79
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x46ef79
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0046c504
push dword [ebp - 0x14]
call fcn.0046c035
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0046ebf5
cmp eax, edi
je 0x46efec
test byte [esi + 0x24], 0x10
je 0x46efba
push 4
mov ecx, esi
pop ebx
call fcn.0046ba35
test ah, 1
je 0x46efb2
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0046e05e
cmp dword [esi + 0x1c], edi
je 0x46efec
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0046ba69
jmp 0x46efec
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x46f000
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x46f019
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x46f019
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0046ee97
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x470dcd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x470dfb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x470e19
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00470d33
jmp 0x470e19
mov eax, dword [esi + 0x14]
test eax, eax
je 0x470e19
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00470d33
test edi, edi
mov eax, edi
jne 0x470e03
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401190
Capabilities:
Get file system object information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x160
test eax, eax
je 0x4011af
push 0x4001
push 0x160
lea eax, [esp + 8]
push eax
jmp 0x4011be
push 0x4000
push 0x160
lea ecx, [esp + 8]
push ecx
push 0
push 0x429560
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
add esp, 0x160
ret 4

Function at 0x4011e0
Capabilities:
Get file system object information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x160
test eax, eax
je 0x4011ff
push 0x4011
push 0x160
lea eax, [esp + 8]
push eax
jmp 0x40120e
push 0x4010
push 0x160
lea ecx, [esp + 8]
push ecx
push 0x10
push str.Doesnt_matter
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp + 4]
add esp, 0x160
ret 4

Function at 0x401230
Capabilities:
Get file system object information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x160
test eax, eax
je 0x401266
push 0x111
push 0x160
lea eax, [esp + 8]
push eax
push 0x10
push str.Doesnt_matter
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp]
add esp, 0x160
ret 4
push 0x110
push 0x160
lea ecx, [esp + 8]
push ecx
push 0x10
push str.Does_not_matter
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp]
add esp, 0x160
ret 4

Function at 0x401290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4012bd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4012de
cmp esi, eax
jae 0x4012b7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4012d0
cmp esi, eax
jae 0x4012b7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401c10
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword fs:[0x30]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0xc]
mov ebp, dword [esp + 0x18]
mov edi, ebx
nop
mov ecx, dword [edi + 0x30]
mov esi, dword [0x4340a4]
push ecx
call fcn.0040ea5f
movzx ecx, word [eax]
add esp, 4
test ecx, ecx
je 0x401c5f
lea esp, [esp]
imul esi, esi, 0x21
add eax, 2
add esi, ecx
movzx ecx, word [eax]
test ecx, ecx
jne 0x401c50
cmp esi, ebp
je 0x401c71
mov edi, dword [edi]
cmp edi, ebx
jne 0x401c30
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x404d8b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x404dde
call fcn.00424fbd
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x404dde
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x404dd4
xor eax, eax
jmp 0x404ef7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x404e0e
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x404e0e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x404ef4
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x404e3b
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040653f
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x404ef4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x404e84
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x404e84
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x404e7e
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040653f
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x404ee4
and dword [ebp + 0xc], 0
jmp 0x404ee4
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x404ee4
push 0xc
call fcn.0041afb4
mov esi, eax
test esi, esi
pop ecx
je 0x404ec6
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x404ec8
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x404edf
push dword [ebp - 8]
call fcn.0041a8e1
jmp 0x404ee4
call fcn.0041a8b8
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x404e49
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40df11
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.0040e1f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40dfac
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 [0x438088]
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 0x40dfac
cmp eax, 1
je 0x40dfcd
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 0x40dfac
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40df79
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40dfa8
xor eax, eax
inc eax
jmp 0x40dfec
cmp edi, eax
jae 0x40dfb0
xor eax, eax
jmp 0x40dfec
cmp eax, esi
jae 0x40dfb7
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 [0x438088]
jmp 0x40dfd0
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 0x40ec4e
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42c720
call fcn.0040f968
mov edi, 0x94
mov eax, edi
call fcn.0040e1f0
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 [0x438088], ecx
mov eax, dword [esi + 4]
mov dword [0x438094], eax
mov edx, dword [esi + 8]
mov dword [0x438098], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43808c], esi
cmp ecx, 2
je 0x40ecae
or esi, 0x8000
mov dword [0x43808c], esi
shl eax, 8
add eax, edx
mov dword [0x438090], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40ece9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ece9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40ed01
cmp eax, 0x20b
je 0x40ecee
mov dword [ebp - 0x1c], esi
jmp 0x40ed15
cmp dword [ecx + 0x84], 0xe
jbe 0x40ece9
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40ed0f
cmp dword [ecx + 0x74], 0xe
jbe 0x40ece9
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00410d6d
pop ecx
test eax, eax
jne 0x40ed29
push 0x1c
call fcn.0040ec2a
pop ecx
call fcn.004125ad
test eax, eax
jne 0x40ed3a
push 0x10
call fcn.0040ec2a
pop ecx
call fcn.00413e78
mov dword [ebp - 4], esi
call fcn.00413c7a
test eax, eax
jge 0x40ed53
push 0x1b
call fcn.0040ec05
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x439950], eax
call fcn.00413b58
mov dword [0x438078], eax
call fcn.00413ab6
test eax, eax
jge 0x40ed79
push 8
call fcn.0040ec05
pop ecx
call fcn.00413883
test eax, eax
jge 0x40ed8a
push 9
call fcn.0040ec05
pop ecx
push 1
call fcn.0040f618
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40eda0
push eax
call fcn.0040ec05
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00413826
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40edc1
movzx eax, word [ebp - 0x40]
jmp 0x40edc4
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041a138
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40ede2
push edi
call fcn.0040f745
call fcn.0040f767
jmp 0x40ee14
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040f9a3
ret
Function at 0x40f682
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42c7a0
call fcn.0040f968
push 8
call fcn.00410d22
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4380c8], esi
jne 0x40f6b6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4380c4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4380c0], al
cmp dword [ebp + 0xc], edi
jne 0x40f700
cmp dword [0x439948], edi
je 0x40f6f0
mov eax, dword [0x439944]
sub eax, 4
mov dword [0x439944], eax
cmp eax, dword [0x439948]
jb 0x40f6f0
mov eax, dword [eax]
cmp eax, edi
je 0x40f6d1
call eax
jmp 0x40f6d1
push 0x434090
mov eax, 0x434088
call fcn.0040f600
pop ecx
push 0x43409c
mov eax, 0x434094
call fcn.0040f600
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40f731
cmp dword [ebp + 0x10], edi
jne 0x40f73f
mov dword [0x4380c8], esi
push dword [ebp + 8]
call fcn.0040f5be
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40f73e
push 8
call fcn.00410c6d
pop ecx
ret
call fcn.0040f9a3
ret
Function at 0x4118fc
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 0x41192a
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 0x411931
cmp ebx, dword [eax + 4]
jae 0x411931
xor eax, eax
jmp 0x411b21
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x411942
xor eax, eax
inc eax
jmp 0x411b20
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x411958
cmp ecx, edx
jae 0x411a9d
cmp dword [eax + 4], 0
je 0x411961
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x411949
cmp dword [ebp + 8], 0
je 0x411983
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x411a9d
cmp eax, esi
jae 0x411a9d
mov eax, dword [0x438238]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4119a8
cmp dword [esi*4 + 0x438240], edi
je 0x411aa1
inc esi
cmp esi, eax
jl 0x411996
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411b1d
cmp dword [ebp - 8], 0x1000000
jne 0x411b1d
test byte [ebp - 0xc], 0xcc
je 0x411a26
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x411b1d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x411b1d
cmp word [eax + 0x18], 0x10b
jne 0x411b1d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x411b1d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x411a26
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x411a26
test byte [ecx + 0x27], 0x80
jne 0x411a9d
push 1
push 0x438280
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41193a
mov ecx, dword [0x438238]
test ecx, ecx
mov edx, ecx
jle 0x411a5a
lea eax, [ecx*4 + 0x43823c]
cmp dword [eax], edi
je 0x411a5a
dec edx
sub eax, 4
test edx, edx
jg 0x411a4e
test edx, edx
jne 0x411a8b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x411a67
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x411a7f
lea eax, [edx*4 + 0x438240]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x411a6d
cmp ecx, 0x10
jge 0x411a8b
inc ecx
mov dword [0x438238], ecx
push 0
push 0x438280
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41193a
xor eax, eax
jmp 0x411b20
test esi, esi
jle 0x41193a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x438280
call ebx
test eax, eax
jne 0x41193a
cmp dword [esi*4 + 0x438240], edi
je 0x411af7
mov eax, dword [0x438238]
lea esi, [eax - 1]
test esi, esi
jl 0x411ae5
cmp dword [esi*4 + 0x438240], edi
je 0x411ae1
dec esi
jns 0x411ad5
test esi, esi
jge 0x411af5
cmp eax, 0x10
jge 0x411af0
inc eax
mov dword [0x438238], eax
lea esi, [eax - 1]
jmp 0x411af7
je 0x411b0f
xor ecx, ecx
test esi, esi
jl 0x411b0f
lea eax, [ecx*4 + 0x438240]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x411afd
push 0
push 0x438280
call ebx
jmp 0x41193a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413512
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x435140]
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 + 0x4356c0]
je 0x413547
inc eax
cmp eax, 0x13
jb 0x413538
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4356c0]
jne 0x41366d
mov eax, dword [0x438080]
cmp eax, 1
je 0x413645
cmp eax, edx
jne 0x413577
cmp dword [0x435134], 1
je 0x413645
cmp ecx, 0xfc
je 0x41366d
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 0x4135ad
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00415010
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040f210
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4135e1
mov eax, edi
push eax
call fcn.0040f210
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42ced0
push edi
call fcn.00416870
add esp, 0x10
push edi
call fcn.0040f210
push dword [esi + 0x4356c4]
mov ebx, eax
call fcn.0040f210
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040e1f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00415010
push edi
push ebx
call fcn.00415020
push 0x42ceb0
push ebx
call fcn.00415020
push dword [esi + 0x4356c4]
push ebx
call fcn.00415020
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00417456
add esp, 0x2c
jmp 0x41366d
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4356c4]
push dword [esi]
call fcn.0040f210
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.0040f19e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret