joyce8/EMBER2024-capa huggingface dataset:
Function at 0xabdac8
Capabilities:
Encode data using base64

Disassembly:
dec eax
lea esp, [esp + 0x18]
jmp fcn.00a78424

Function at 0xabdb28
Capabilities:
Encode data using base64

Disassembly:
dec eax
lea esp, [esp + 0x10]
jmp fcn.00a78424

Function at 0xacaee6
Capabilities:
Encode data using base64

Disassembly:
xor bl, al
pop edx
call fcn.00a8dc17
fnstenv [edx + 0x53]
or al, 0xf7
inc eax
dec eax
lea esp, [esp + 0x10]
jmp fcn.00a78424

Function at 0xacc36b
Capabilities:
Encode data using base64

Disassembly:
call 0x75fbd3
pop esi
invalid
sal ebx, 0x66
pop edi
pop ebp
jne 0x785ffa
lea esp, [esp + 4]
call eax
mov edi, 0x2f30fdbe
mov ebp, dword [ebp + edi*2 - 0x5e61fb80]
mov dword [edi + ebp - 0x2f30fdbe], eax
not edi
push edi
mov edi, ebp
mov word [esp], 0x1183
call fcn.00a8adc3
pop eax
jmp 0xa7e676

Function at 0xada390
Capabilities:
Encode data using base64

Disassembly:
mov word [edi], dx
lea esp, [esp + 8]
jmp fcn.009fd2fb
jmp 0x7be65b
pushal
out 0xa3, eax
cmp eax, 0x88fff516
adc dword [ebp - 0x16f7db9c], ecx
in eax, dx
push esp
sti
dec dword [ecx + 0x6604245c]
mov dword [esp + 4], ebx
sar dx, 0x24
lea edx, [edx*2 + 0x2c2e2e82]
jne 0x7c9a0b
mov ebp, edi
call fcn.00acac4a
into
jbe 0xada3bb
sbb eax, 0xad065bef
enter 0x626a, 0x62
mov dh, cl
shl cx, 5
mov cl, byte [edi + ecx - 0x34ffbebc]
call fcn.0078dc02
fnstsw word [edi + 0x54]
or esi, edi
inc eax
xor esp, dword [edi + 0x76d7deb]
mov esi, dword [edi + esi - 0x74955dbd]
call fcn.00796146
jl 0xada336
in al, 0x3e
mov bh, byte [ecx + 0x26999f78]
lcall 0xf11, 0xde235430
clc
jl 0xada33a
fcmovb st(0), st(1)
sbb byte [ebx - 0x2bfd915f], cl
push ebx
outsb dx, byte [esi]
test dword [edi - 0x158d23b4], eax
fucom st(0)
inc ebx
jns 0xada3e5
div byte [ebp + eax*8 - 0xdd7f222]
invalid
invalid

Function at 0xadbb19
Capabilities:
Encode data using base64

Disassembly:
inc ecx
pop ebp
inc ecx
pop ebp
push 0x548e21ac
not dword [esp + 2]
jmp 0x74fa78

Function at 0xadbf25
Capabilities:
Encode data using base64

Disassembly:
dec ecx
mov edi, dword [ebp + edi - 0x4102b918]
dec ecx
add ebp, 8
dec esp
and edx, edi

Function at 0xadd7d4
Capabilities:
Encode data using base64

Disassembly:
not al
mov word [edi], ax
call fcn.0074d200
or al, dl
jmp 0xa9a4c4

Function at 0xaddadf
Capabilities:
Encode data using base64

Disassembly:
inc ebp
xor ah, bh
dec esi
lea edi, [esp + edi + 8]
push 0xf8a5913f
inc ebp
mov dword [edi], ebx
dec eax
lea esp, [esp + 0x10]
jmp fcn.00a78424
Function at 0x401120
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 0x401139
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40114d
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 0x40116e
cmp esi, eax
jae 0x401147
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401160
cmp esi, eax
jae 0x401147
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41a298
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.00401e60
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401c90
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 0x4020a2
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 0x403390
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4033e0
cmp word [esi], 0
je 0x4033e0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4033e0
test al, 0x10
jne 0x4033e0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4033c8
test al, 1
jne 0x4033cc
or eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret
test al, 1
jne 0x4033d3
mov eax, 1
pop esi
ret
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4033f0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
push ebp
xor eax, eax
push esi
push edi
xor ebp, ebp
mov dword [ebx], ebp
lea esi, [ebx + 0x14]
mov ecx, 0xc2
mov edi, esi
rep stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x1c]
cmp eax, ebp
push 0x104
je 0x403434
push eax
push esi
call fcn.004060b4
add esp, 0xc
jmp 0x403466
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp word [esi], bp
je 0x403458
push esi
call fcn.00405a76
add esp, 4
cmp word [ebx + eax*2 + 0x12], 0x5c
je 0x403458
push str.drivers_tcpip.sys
jmp 0x40345d
push 0x41ba34
push esi
call fcn.0040606e
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40352b
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x40352b
lea edi, [eax + 0xa]
push edi
call fcn.0041268c
mov ebp, eax
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push ebp
add eax, 2
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x403522
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x41ba30
push ebp
mov dword [esp + 0x2c], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403522
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x403522
cmp dword [esp + 0x10], 0x34
jb 0x403522
movzx ecx, word [eax + 0xa]
mov dword [ebx + 4], ecx
mov edx, dword [eax + 8]
and edx, 0xffff
mov dword [ebx + 8], edx
movzx ecx, word [eax + 0xe]
mov dword [ebx + 0xc], ecx
mov edx, dword [eax + 0xc]
and edx, 0xffff
mov dword [ebx + 0x10], edx
push ebp
call fcn.00412691
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 4
Function at 0x405399
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41d8a0
call fcn.00406e3c
mov edi, 0x94
mov eax, edi
call fcn.00406830
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 [0x425ab8], ecx
mov eax, dword [esi + 4]
mov dword [0x425ac4], eax
mov edx, dword [esi + 8]
mov dword [0x425ac8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x425abc], esi
cmp ecx, 2
je 0x4053f9
or esi, 0x8000
mov dword [0x425abc], esi
shl eax, 8
add eax, edx
mov dword [0x425ac0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x405434
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405434
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40544c
cmp eax, 0x20b
je 0x405439
mov dword [ebp - 0x1c], esi
jmp 0x405460
cmp dword [ecx + 0x84], 0xe
jbe 0x405434
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40545a
cmp dword [ecx + 0x74], 0xe
jbe 0x405434
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00408023
pop ecx
test eax, eax
jne 0x405474
push 0x1c
call fcn.00405375
pop ecx
call fcn.00407f1a
test eax, eax
jne 0x405485
push 0x10
call fcn.00405375
pop ecx
call fcn.00407cb4
mov dword [ebp - 4], esi
call fcn.00407ab6
test eax, eax
jge 0x40549e
push 0x1b
call fcn.00405350
pop ecx
call fcn.00407a17
mov dword [0x427490], eax
call fcn.004078ad
mov dword [0x425aac], eax
call fcn.00407817
test eax, eax
jge 0x4054c3
push 8
call fcn.00405350
pop ecx
call fcn.004075e4
test eax, eax
jge 0x4054d4
push 9
call fcn.00405350
pop ecx
push 1
call fcn.0040631d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4054ea
push eax
call fcn.00405350
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0040759e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40550b
movzx eax, word [ebp - 0x40]
jmp 0x40550e
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00410826
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40552c
push edi
call fcn.0040644a
call fcn.0040646c
jmp 0x40555e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00406e77
ret
Function at 0x406387
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41d8f8
call fcn.00406e3c
push 8
call fcn.00408cdf
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x425af8], esi
jne 0x4063bb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x425af4], esi
mov al, byte [ebp + 0x10]
mov byte [0x425af0], al
cmp dword [ebp + 0xc], edi
jne 0x406405
cmp dword [0x427488], edi
je 0x4063f5
mov eax, dword [0x427484]
sub eax, 4
mov dword [0x427484], eax
cmp eax, dword [0x427488]
jb 0x4063f5
mov eax, dword [eax]
cmp eax, edi
je 0x4063d6
call eax
jmp 0x4063d6
push 0x422080
mov eax, 0x422078
call fcn.00406305
pop ecx
push 0x42208c
mov eax, 0x422084
call fcn.00406305
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x406436
cmp dword [ebp + 0x10], edi
jne 0x406444
mov dword [0x425af8], esi
push dword [ebp + 8]
call fcn.004062c3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x406443
push 8
call fcn.00408c2a
pop ecx
ret
call fcn.00406e77
ret

Function at 0x40704a
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.00406830
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4070e5
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 [0x425ab8]
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 0x4070e5
cmp eax, 1
je 0x407106
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 0x4070e5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4070b2
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4070e1
xor eax, eax
inc eax
jmp 0x407125
cmp edi, eax
jae 0x4070e9
xor eax, eax
jmp 0x407125
cmp eax, esi
jae 0x4070f0
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 [0x425ab8]
jmp 0x407109
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 0x407289
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x422948]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x422b18]
je 0x4072c0
inc eax
cmp eax, 0x13
jb 0x4072b1
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x422b18]
jne 0x4073e3
mov eax, dword [0x425ab0]
cmp eax, 1
je 0x4073be
cmp eax, edx
jne 0x4072f0
cmp dword [0x422944], 1
je 0x4073be
cmp ecx, 0xfc
je 0x4073e3
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407326
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.0040bc80
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00406c90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40735a
mov eax, edi
push eax
call fcn.00406c90
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x41dd78
push edi
call fcn.0040bd80
add esp, 0x10
push edi
call fcn.00406c90
push dword [esi + 0x422b1c]
mov ebx, eax
call fcn.00406c90
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00406830
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040bc80
push edi
push ebx
call fcn.0040bc90
push 0x41dd58
push ebx
call fcn.0040bc90
push dword [esi + 0x422b1c]
push ebx
call fcn.0040bc90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040bb82
add esp, 0x2c
jmp 0x4073e3
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x422b1c]
push dword [esi]
call fcn.00406c90
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0040559e
add ebp, 0x90
leave
ret
Function at 0x4078ad
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x425d1c]
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 0x4078f6
call ebp
mov esi, eax
cmp esi, ebx
je 0x4078dc
mov dword [0x425d1c], 1
jmp 0x4078fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4078f1
push 2
pop eax
mov dword [0x425d1c], eax
jmp 0x4078f6
mov eax, dword [0x425d1c]
cmp eax, 1
jne 0x407953
cmp esi, ebx
jne 0x40790e
call ebp
mov esi, eax
cmp esi, ebx
jne 0x40790e
xor eax, eax
jmp 0x4079fa
cmp word [esi], bx
mov eax, esi
je 0x407923
inc eax
inc eax
cmp word [eax], bx
jne 0x407915
inc eax
inc eax
cmp word [eax], bx
jne 0x407915
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00406ac3
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x407946
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x4079fa
push ebp
push esi
push edi
call fcn.004064f0
add esp, 0xc
jmp 0x407938
cmp eax, 2
je 0x40795c
cmp eax, ebx
jne 0x407907
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x407907
cmp byte [ebp], bl
mov esi, ebp
je 0x407992
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x407907
push esi
add edi, eax
call fcn.00406c90
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x40796f
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00406ac3
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x407a0b
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x4079ec
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 0x407a01
push edi
call fcn.00406c90
push esi
lea edi, [edi + eax + 1]
call fcn.00405a76
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x4079b2
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.00405dfb
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x407907
Function at 0x407a17
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x425d20]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x407a57
call esi
test eax, eax
je 0x407a3c
mov dword [0x425d20], 1
jmp 0x407a5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x407a53
mov dword [0x425d20], 2
jmp 0x407a65
xor eax, eax
jmp 0x407ab3
cmp eax, 1
jne 0x407a60
call esi
jmp 0x407ab3
cmp eax, 2
jne 0x407a53
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 0x407aab
lea eax, [esi + esi]
push eax
call fcn.00406ac3
mov ebp, eax
test ebp, ebp
pop ecx
je 0x407aab
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x407aaf
push ebp
call fcn.00405dfb
pop ecx
xor eax, eax
jmp 0x407ab1
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x40a3de
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 0x40a40c
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 0x40a413
cmp ebx, dword [eax + 4]
jae 0x40a413
xor eax, eax
jmp 0x40a603
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40a424
xor eax, eax
inc eax
jmp 0x40a602
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40a43a
cmp ecx, edx
jae 0x40a57f
cmp dword [eax + 4], 0
je 0x40a443
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40a42b
cmp dword [ebp + 8], 0
je 0x40a465
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40a57f
cmp eax, esi
jae 0x40a57f
mov eax, dword [0x425e88]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40a48a
cmp dword [esi*4 + 0x425e90], edi
je 0x40a583
inc esi
cmp esi, eax
jl 0x40a478
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a5ff
cmp dword [ebp - 8], 0x1000000
jne 0x40a5ff
test byte [ebp - 0xc], 0xcc
je 0x40a508
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40a5ff
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40a5ff
cmp word [eax + 0x18], 0x10b
jne 0x40a5ff
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40a5ff
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40a508
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40a508
test byte [ecx + 0x27], 0x80
jne 0x40a57f
push 1
push 0x425ed0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40a41c
mov ecx, dword [0x425e88]
test ecx, ecx
mov edx, ecx
jle 0x40a53c
lea eax, [ecx*4 + 0x425e8c]
cmp dword [eax], edi
je 0x40a53c
dec edx
sub eax, 4
test edx, edx
jg 0x40a530
test edx, edx
jne 0x40a56d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40a549
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40a561
lea eax, [edx*4 + 0x425e90]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40a54f
cmp ecx, 0x10
jge 0x40a56d
inc ecx
mov dword [0x425e88], ecx
push 0
push 0x425ed0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40a41c
xor eax, eax
jmp 0x40a602
test esi, esi
jle 0x40a41c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x425ed0
call ebx
test eax, eax
jne 0x40a41c
cmp dword [esi*4 + 0x425e90], edi
je 0x40a5d9
mov eax, dword [0x425e88]
lea esi, [eax - 1]
test esi, esi
jl 0x40a5c7
cmp dword [esi*4 + 0x425e90], edi
je 0x40a5c3
dec esi
jns 0x40a5b7
test esi, esi
jge 0x40a5d7
cmp eax, 0x10
jge 0x40a5d2
inc eax
mov dword [0x425e88], eax
lea esi, [eax - 1]
jmp 0x40a5d9
je 0x40a5f1
xor ecx, ecx
test esi, esi
jl 0x40a5f1
lea eax, [ecx*4 + 0x425e90]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40a5df
push 0
push 0x425ed0
call ebx
jmp 0x40a41c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bb82
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x425fc0], ebx
push esi
push edi
jne 0x40bc02
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40bc3d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x425fc0], eax
je 0x40bc3d
push 0x41e630
push edi
call esi
push 0x41e61c
push edi
mov dword [0x425fc4], eax
call esi
cmp dword [0x425ab8], 2
mov dword [0x425fc8], eax
jne 0x40bc02
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x425fd0], eax
je 0x40bc02
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x425fcc], eax
mov eax, dword [0x425fcc]
test eax, eax
je 0x40bc47
call eax
test eax, eax
je 0x40bc2e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x425fd0]
test eax, eax
je 0x40bc2e
test byte [ebp - 8], 1
jne 0x40bc47
cmp dword [0x425ac4], 4
jb 0x40bc41
or byte [ebp + 0x12], 0x20
jmp 0x40bc66
xor eax, eax
jmp 0x40bc76
or byte [ebp + 0x12], 4
jmp 0x40bc66
mov eax, dword [0x425fc4]
test eax, eax
je 0x40bc66
call eax
mov ebx, eax
test ebx, ebx
je 0x40bc66
mov eax, dword [0x425fc8]
test eax, eax
je 0x40bc66
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x425fc0]
pop edi
pop esi
pop ebx
leave
ret