joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad16251
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ebx
mov word [ebp - 0x60], bx
mov word [ebp - 0x5e], bx
stosd dword es:[edi], eax
lea edi, [ebp - 0x54]
mov word [ebp - 0x58], bx
mov word [ebp - 0x56], bx
stosd dword es:[edi], eax
lea edi, [ebp - 0x4c]
mov word [ebp - 0x50], bx
mov word [ebp - 0x4e], bx
stosd dword es:[edi], eax
lea edi, [ebp - 0x44]
mov word [ebp - 0x48], bx
mov word [ebp - 0x46], bx
stosd dword es:[edi], eax
lea edi, [ebp - 0x3c]
mov word [ebp - 0x40], bx
mov word [ebp - 0x3e], bx
stosd dword es:[edi], eax
lea edi, [ebp - 0x34]
mov word [ebp - 0x38], bx
mov word [ebp - 0x36], bx
stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x4ad1cfbc]
xor edi, edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x6c], 6
push dword [ebp + 8]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x1c], ebx
call fcn.4ad163c1
cmp eax, 1
je 0x4ad16310
lea eax, [ebp - 0x27c]
push ebx
push eax
call fcn.4ad14ffd
mov eax, dword [ebp - 0x30]
cmp eax, ebx
jne 0x4ad16318
push ebx
push 0x232a
call fcn.4ad1393b
pop ecx
pop ecx
push 1
pop eax
jmp 0x4ad163ba
lea esi, [ebp - 0x2c]
mov dword [ebp + 8], eax
test byte [ebp - 0x70], 0x10
je 0x4ad16366
test byte [ebp - 0x6f], 0x20
jne 0x4ad16345
push 0x2328
push 0x234e
push dword [esi]
call fcn.4ad146ed
cmp eax, 1
je 0x4ad16345
push 1
pop edi
jmp 0x4ad16383
lea eax, [ebp - 8]
push eax
push dword [esi]
call fcn.4ad15f23
cmp eax, ebx
je 0x4ad16383
cmp eax, 0x91
jne 0x4ad16360
cmp dword [ebp - 8], ebx
je 0x4ad16383
push ebx
mov edi, eax
push eax
jmp 0x4ad1637c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4ad16383
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
push edi
call fcn.4ad1393b
pop ecx
pop ecx
dec dword [ebp + 8]
mov esi, dword [esi + 0xc]
jne 0x4ad1631e
mov eax, 0x4ad228a0
mov ecx, eax
test ecx, ecx
je 0x4ad163b0
lea ecx, [ebp - 0x27c]
test ecx, ecx
je 0x4ad163b0
lea ecx, [ebp - 0x27c]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.4ad0d873
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4ad18007
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push dword [ebp + 8]
call fcn.4ad0e3bd
lea eax, [ebp - 0x224]
test eax, eax
je 0x4ad1803a
cmp dword [ebp + 0xc], 0
je 0x4ad1803a
push dword [ebp + 0xc]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x224]
push eax
call fcn.4ad180da
test eax, eax
je 0x4ad1806f
lea eax, [ebp - 0x224]
test eax, eax
je 0x4ad1806f
mov eax, 0x4ad01424
mov ecx, eax
test ecx, ecx
je 0x4ad1806f
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x10]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x18]
and dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push 6
push dword [ebp + 8]
call fcn.4ad0e477
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 8]
push 0xe
push eax
push dword [ebp + 0x10]
call fcn.4ad18267
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0x14]
push 0x4ad01dc0
call fcn.4ad13da6
push eax
push 2
push 0x2379
push dword [ebp + 8]
call fcn.4ad0dfea
add esp, 0x14
leave
ret 0x10

Function at 0x4ad180fc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
push esi
lea eax, [ebp - 0x214]
push edi
push eax
push dword [ebp + 0xc]
call fcn.4ad16fbc
test al, al
je 0x4ad18175
lea eax, [ebp - 0x214]
test eax, eax
je 0x4ad1813f
mov eax, 0x4ad01424
mov ecx, eax
test ecx, ecx
je 0x4ad1813f
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
xor edi, edi
lea eax, [ebp - 8]
push edi
push edi
push edi
push edi
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4ad1818f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x90
jne 0x4ad1817c
xor eax, eax
jmp 0x4ad18261
push edi
call esi
push eax
call fcn.4ad1393b
pop ecx
pop ecx
push 1
pop eax
jmp 0x4ad18261
cmp word [ebp - 0x214], 0x5c
jne 0x4ad181aa
lea eax, [ebp - 0x214]
push eax
call fcn.4ad1948c
mov word [eax], di
jmp 0x4ad181b1
mov word [ebp - 0x212], di
cmp word [ebp - 0x420], di
je 0x4ad181ef
lea eax, [ebp - 0x420]
mov esi, 0x4ad01818
push eax
push esi
call fcn.4ad13dc9
push eax
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.4ad13da6
push eax
push 2
push 0x235f
push dword [ebp + 8]
call fcn.4ad0dfea
add esp, 0x14
jmp 0x4ad18213
lea eax, [ebp - 0x214]
push eax
push 0x4ad01818
call fcn.4ad13da6
push eax
push 1
push 0x235e
push dword [ebp + 8]
call fcn.4ad0dfea
add esp, 0x10
cmp eax, edi
jne 0x4ad18261
lea ecx, [ebp - 8]
test ecx, ecx
je 0x4ad18261
mov eax, dword [ebp - 8]
mov ecx, eax
and ecx, 0xffff
shr eax, 0x10
push ecx
push eax
push str._04X__04X
lea eax, [ebp - 0x620]
push 0x100
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea eax, [ebp - 0x620]
push eax
push 1
push 0x235b
push dword [ebp + 8]
call fcn.4ad0dfea
add esp, 0x10
pop edi
pop esi
leave
ret 8
Function at 0x401c2e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and byte [ebp - 0x100], 0
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
lea eax, [ebp - 0x100]
push 0x404008
push eax
jmp loc.0040924c
Function at 0x401080
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 0x401099
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4010ad
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 0x4010ce
cmp esi, eax
jae 0x4010a7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010c0
cmp esi, eax
jae 0x4010a7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404340
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.00402eb0
cdq
xchg ebx, eax
jp 0x404401
lea eax, [ebp - 0x72c]
push eax
call fcn.00402ec0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00402e75
add esp, 0xc
mov dword [ebp - 0x6e4], eax
call fcn.00402eb0
and byte [ebp + 0x15], cl
push esi
lea eax, [ebp - 0x718]
push eax
push 0x40
push 5
push dword [ebp - 0x3a8]
call dword [ebp - 0x6e4]
push 5
lea eax, [ebp - 0x394]
push eax
push dword [ebp - 0x3a8]
call fcn.00402e21
add esp, 0xc
lea eax, [ebp - 0x718]
push eax
push dword [ebp - 0x718]
push 5
push dword [ebp - 0x3a8]
call dword [ebp - 0x6e4]
call fcn.00402eb0
int1
mov edi, 0xa583fc6c
add cl, bh
invalid
invalid

Function at 0x405080
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esp
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00402eb0
lahf
and eax, 0x8b49a9bb
xor al, 0x8b
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x40509d
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x40509d
call fcn.00402eb0
pop ss
adc byte [eax - 0x4a], bl
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00402eb0
salc
call 0x763fc304
or bh, bh
jne 0x4050e6
push dword [ebp]
call fcn.004036b0
sub bl, ch
add ecx, dword [ebp + 0x68b0049]
invalid
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40510c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add esi, 4
cmp esi, edi
jne 0x4050f0
xor ebx, ebx
push ebx
push ebx
call fcn.0041347e
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42d6b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004064c0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004015e0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x406622
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x406a20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x428
mov eax, dword [0x43c1d0]
push edi
mov edi, dword [esp + 0x430]
mov dword [esp + 0x428], eax
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406bb8
test al, 0x10
je 0x406bb8
mov eax, dword [edi]
push esi
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004136d0
lea edx, [esp + 0x18]
push 0x42fd74
push edx
call fcn.004136a6
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00413bb0
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
je 0x406af5
lea edx, [esp + 0x224]
push edx
push 0x42fd70
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00406640
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00406640
mov ecx, dword [esp + 0x444]
add esp, 0xc
push eax
call fcn.00402000
lea ecx, [esp + 0xc]
call fcn.00401910
lea ecx, [esp + 8]
call fcn.00401910
push esi
call fcn.00413d65
add esp, 4
pop esi
mov al, 1
pop edi
mov ecx, dword [esp + 0x424]
call fcn.00412f2e
add esp, 0x428
ret
mov edx, dword [edi]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.004136d0
lea ecx, [esp + 0x18]
push str..
push ecx
call fcn.004136a6
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00413bb0
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
je 0x406b59
lea ecx, [ecx]
test byte [esp + 0x210], 0x10
je 0x406b70
lea ecx, [esp + 0x210]
push ecx
push esi
call fcn.00413c8d
add esp, 8
cmp eax, 0xffffffff
jne 0x406b30
push esi
call fcn.00413d65
add esp, 4
pop esi
xor al, al
pop edi
mov ecx, dword [esp + 0x424]
call fcn.00412f2e
add esp, 0x428
ret
lea edx, [esp + 0x224]
push edx
push 0x42fd70
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00406640
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00406640
mov ecx, dword [esp + 0x444]
add esp, 0xc
push eax
call fcn.00402150
lea ecx, [esp + 8]
call fcn.00401910
lea ecx, [esp + 0xc]
jmp 0x406ad0
mov ecx, dword [esp + 0x428]
xor al, al
pop edi
call fcn.00412f2e
add esp, 0x428
ret
Function at 0x4099c7
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 0x409a1a
call fcn.0042a374
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x409a1a
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x409a10
xor eax, eax
jmp 0x409b33
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 0x409a4a
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 0x409a4a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x409b30
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x409a77
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004095c0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x409b30
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x409ac0
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x409ac0
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x409aba
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004095c0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x409b20
and dword [ebp + 0xc], 0
jmp 0x409b20
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x409b20
push 0xc
call fcn.00420a33
mov esi, eax
test esi, esi
pop ecx
je 0x409b02
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 0x409b04
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x409b1b
push dword [ebp - 8]
call fcn.00420474
jmp 0x409b20
call fcn.0042044b
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x409a85
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x413816
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.00413a10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4138b1
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 [0x43f3e8]
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 0x4138b1
cmp eax, 1
je 0x4138d2
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 0x4138b1
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41387e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4138ad
xor eax, eax
inc eax
jmp 0x4138f1
cmp edi, eax
jae 0x4138b5
xor eax, eax
jmp 0x4138f1
cmp eax, esi
jae 0x4138bc
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 [0x43f3e8]
jmp 0x4138d5
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 0x4144bf
Capabilities:
Terminate process

Disassembly:
push 8
push 0x432ed8
call fcn.00414874
push 8
call fcn.0041701b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x43f428], esi
jne 0x4144f3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x43f424], esi
mov al, byte [ebp + 0x10]
mov byte [0x43f420], al
cmp dword [ebp + 0xc], edi
jne 0x41453d
cmp dword [0x440da8], edi
je 0x41452d
mov eax, dword [0x440da4]
sub eax, 4
mov dword [0x440da4], eax
cmp eax, dword [0x440da8]
jb 0x41452d
mov eax, dword [eax]
cmp eax, edi
je 0x41450e
call eax
jmp 0x41450e
push 0x43b094
mov eax, 0x43b08c
call fcn.0041443d
pop ecx
push 0x43b0a0
mov eax, 0x43b098
call fcn.0041443d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41456e
cmp dword [ebp + 0x10], edi
jne 0x41457c
mov dword [0x43f428], esi
push dword [ebp + 8]
call fcn.004143fb
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41457b
push 8
call fcn.00416f66
pop ecx
ret
call fcn.004148af
ret
Function at 0x4146b6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4146d3
call fcn.00414e76
mov dword [eax], 0x16
xor eax, eax
jmp 0x41473d
push esi
push 0x8c
push 1
call fcn.00415366
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x414728
push esi
call fcn.00415ef9
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x414706
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x414621
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41473c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004137a5
test ebx, ebx
pop ecx
je 0x41473a
push ebx
call fcn.00414e88
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x415421
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x43c1d0]
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 + 0x43c388]
je 0x415456
inc eax
cmp eax, 0x13
jb 0x415447
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x43c388]
jne 0x41557c
mov eax, dword [0x43f3e0]
cmp eax, 1
je 0x415554
cmp eax, edx
jne 0x415486
cmp dword [0x43c1c4], 1
je 0x415554
cmp ecx, 0xfc
je 0x41557c
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 0x4154bc
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00416dd0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00414300
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4154f0
mov eax, edi
push eax
call fcn.00414300
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x433310
push edi
call fcn.0041ac60
add esp, 0x10
push edi
call fcn.00414300
push dword [esi + 0x43c38c]
mov ebx, eax
call fcn.00414300
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00413a10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00416dd0
push edi
push ebx
call fcn.00416de0
push 0x4332f0
push ebx
call fcn.00416de0
push dword [esi + 0x43c38c]
push ebx
call fcn.00416de0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041ab62
add esp, 0x2c
jmp 0x41557c
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x43c38c]
push dword [esi]
call fcn.00414300
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.00412f2e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x415a44
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x43f64c]
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 0x415a8d
call ebp
mov esi, eax
cmp esi, ebx
je 0x415a73
mov dword [0x43f64c], 1
jmp 0x415a92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x415a88
push 2
pop eax
mov dword [0x43f64c], eax
jmp 0x415a8d
mov eax, dword [0x43f64c]
cmp eax, 1
jne 0x415aea
cmp esi, ebx
jne 0x415aa5
call ebp
mov esi, eax
cmp esi, ebx
jne 0x415aa5
xor eax, eax
jmp 0x415b91
cmp word [esi], bx
mov eax, esi
je 0x415aba
inc eax
inc eax
cmp word [eax], bx
jne 0x415aac
inc eax
inc eax
cmp word [eax], bx
jne 0x415aac
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00413793
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x415add
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x415b91
push ebp
push esi
push edi
call fcn.00413df0
add esp, 0xc
jmp 0x415acf
cmp eax, 2
je 0x415af3
cmp eax, ebx
jne 0x415a9e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x415a9e
cmp byte [ebp], bl
mov esi, ebp
je 0x415b29
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x415a9e
push esi
add edi, eax
call fcn.00414300
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x415b06
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00413793
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x415ba2
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x415b83
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 0x415b98
push edi
call fcn.00414300
push esi
lea edi, [edi + eax + 1]
call fcn.00412f9e
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x415b49
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.004137a5
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x415a9e
Function at 0x415bae
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x43f650]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x415bee
call esi
test eax, eax
je 0x415bd3
mov dword [0x43f650], 1
jmp 0x415bf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x415bea
mov dword [0x43f650], 2
jmp 0x415bfc
xor eax, eax
jmp 0x415c4a
cmp eax, 1
jne 0x415bf7
call esi
jmp 0x415c4a
cmp eax, 2
jne 0x415bea
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 0x415c42
lea eax, [esi + esi]
push eax
call fcn.00413793
mov ebp, eax
test ebp, ebp
pop ecx
je 0x415c42
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x415c46
push ebp
call fcn.004137a5
pop ecx
xor eax, eax
jmp 0x415c48
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret