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

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4180a0]
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 + 0x418218]
je 0x411477
inc eax
cmp eax, 0x13
jb 0x411468
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x418218]
jne 0x41159d
mov eax, dword [0x418464]
cmp eax, 1
je 0x411575
cmp eax, edx
jne 0x4114a7
cmp dword [0x418084], 1
je 0x411575
cmp ecx, 0xfc
je 0x41159d
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 0x4114dd
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00410600
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040f180
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411511
mov eax, edi
push eax
call fcn.0040f180
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x414470
push edi
call fcn.0040e870
add esp, 0x10
push edi
call fcn.0040f180
push dword [esi + 0x41821c]
mov ebx, eax
call fcn.0040f180
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040ead0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00410600
push edi
push ebx
call fcn.00410610
push 0x415d90
push ebx
call fcn.00410610
push dword [esi + 0x41821c]
push ebx
call fcn.00410610
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00412c0e
add esp, 0x2c
jmp 0x41159d
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41821c]
push dword [esi]
call fcn.0040f180
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.004108c4
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x412946
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 0x412974
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 0x41297b
cmp ebx, dword [eax + 4]
jae 0x41297b
xor eax, eax
jmp 0x412b6b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41298c
xor eax, eax
inc eax
jmp 0x412b6a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4129a2
cmp ecx, edx
jae 0x412ae7
cmp dword [eax + 4], 0
je 0x4129ab
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x412993
cmp dword [ebp + 8], 0
je 0x4129cd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x412ae7
cmp eax, esi
jae 0x412ae7
mov eax, dword [0x418610]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4129f2
cmp dword [esi*4 + 0x418618], edi
je 0x412aeb
inc esi
cmp esi, eax
jl 0x4129e0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412b67
cmp dword [ebp - 8], 0x1000000
jne 0x412b67
test byte [ebp - 0xc], 0xcc
je 0x412a70
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x412b67
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x412b67
cmp word [eax + 0x18], 0x10b
jne 0x412b67
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x412b67
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x412a70
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x412a70
test byte [ecx + 0x27], 0x80
jne 0x412ae7
push 1
push 0x418658
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x412984
mov ecx, dword [0x418610]
test ecx, ecx
mov edx, ecx
jle 0x412aa4
lea eax, [ecx*4 + 0x418614]
cmp dword [eax], edi
je 0x412aa4
dec edx
sub eax, 4
test edx, edx
jg 0x412a98
test edx, edx
jne 0x412ad5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x412ab1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x412ac9
lea eax, [edx*4 + 0x418618]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x412ab7
cmp ecx, 0x10
jge 0x412ad5
inc ecx
mov dword [0x418610], ecx
push 0
push 0x418658
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x412984
xor eax, eax
jmp 0x412b6a
test esi, esi
jle 0x412984
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x418658
call ebx
test eax, eax
jne 0x412984
cmp dword [esi*4 + 0x418618], edi
je 0x412b41
mov eax, dword [0x418610]
lea esi, [eax - 1]
test esi, esi
jl 0x412b2f
cmp dword [esi*4 + 0x418618], edi
je 0x412b2b
dec esi
jns 0x412b1f
test esi, esi
jge 0x412b3f
cmp eax, 0x10
jge 0x412b3a
inc eax
mov dword [0x418610], eax
lea esi, [eax - 1]
jmp 0x412b41
je 0x412b59
xor ecx, ecx
test esi, esi
jl 0x412b59
lea eax, [ecx*4 + 0x418618]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x412b47
push 0
push 0x418658
call ebx
jmp 0x412984
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412c0e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41865c], ebx
push esi
push edi
jne 0x412c8e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x412cc9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x415ffc
push edi
call esi
test eax, eax
mov dword [0x41865c], eax
je 0x412cc9
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x418660], eax
call esi
cmp dword [0x4184a4], 2
mov dword [0x418664], eax
jne 0x412c8e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41866c], eax
je 0x412c8e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x418668], eax
mov eax, dword [0x418668]
test eax, eax
je 0x412cd3
call eax
test eax, eax
je 0x412cba
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41866c]
test eax, eax
je 0x412cba
test byte [ebp - 8], 1
jne 0x412cd3
cmp dword [0x4184b0], 4
jb 0x412ccd
or byte [ebp + 0x12], 0x20
jmp 0x412cf2
xor eax, eax
jmp 0x412d02
or byte [ebp + 0x12], 4
jmp 0x412cf2
mov eax, dword [0x418660]
test eax, eax
je 0x412cf2
call eax
mov ebx, eax
test ebx, ebx
je 0x412cf2
mov eax, dword [0x418664]
test eax, eax
je 0x412cf2
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41865c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40688e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x40689c
call 0x85667cd
mov al, byte [0x8b640041]
cmp eax, 0x30
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x446630], eax
sub eax, eax
je 0x4068c1
call 0xa8cf5187
invalid
call 0x401154
call 0x406651
pop edi
xor eax, eax
pop esi
ret

Function at 0x407515
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407554
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407554
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407554
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407554
cmp dword [ecx + 0x74], 0xe
jbe 0x407554
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d5eb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2c8
push 0x41c2c0
push str.FlsAlloc
push 0x1e
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d61f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
jmp 0x40d625
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d669
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2d8
push 0x41c2d0
push str.FlsGetValue
push 0x20
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d6a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x418a50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x418a7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418a7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
xchg esi, esi
mov bl, 0x8d
mov dword [edi], 0xdb480eeb
dec esp
push edi

Function at 0x40b2d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov cl, byte [edx + 0x2c]
movsd dword es:[edi], dword [esi]
ror byte [edi], 0x87
mov esi, 0x90a4dd00
dec esi
dec eax
xor eax, eax
nop
or dword [eax], 1
push edi
mov esp, esp
cld
mov dword [ebp + 8], eax
jne 0xec40b395
mov edi, dword [esi + 0x3c]
cmp edi, eax
je 0x40b395
mov ebx, dword [esi + 0x38]
or esi, 0xffffffff
call 0x8f414
jmp 0x40b313
mov edx, dword [esi + 4]
lea ecx, [ebp - 4]
push 0xfffffffffffffffb
clc
sbb dword [ebx + 0x52], edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test dword [ebx], edx
je 0x40b358
mov eax, dword [ebp + 0x2c]
mov edx, dword [esi + 0x50]
mov eax, dword [0xc8d00345]
rol dword [eax], 1
sub ebx, esp
add ebx, eax
je 0x40b393
push eax
test edi, edi
mov dword [esi + 0x15], ecx
jo 0x40b3b9
mov eax, dword [ebp + 8]
adc edi, eax
cmp al, 0
add ch, cl
retf
mov ebx, dword [edi - 0x53]
mov eax, dword [eax - 0x69]
mov ebp, 0x75c085d7
add eax, 0xeb0845ac
or ch, byte [edi - 0x29]
add eax, 0xf60afc80
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [esi + 0x50]
xchg ebx, eax
idiv dword [ecx]
add esi, dword [edx - 0x76f7ba75]
push esi
push eax
daa
rol dword [eax], 1
test eax, eax
mov ebx, esi
push esp
jne 0x40b395
cmc
inc esi
ret
add byte [eax], al
iretd
mov eax, 0x55557d56
imul ecx
mov ecx, edx
rcr ecx, 0x1f
test eax, 0x4f048dd1
add dword [eax], eax
add byte [eax], al
pop ebp
ret 0xef04
Function at 0x401160
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x6b8
mov eax, dword [0x40b040]
push 4
mov dword [esp + 0x6b8], eax
mov eax, dword [esp + 0x6c8]
push str.true
push eax
mov byte [esp + 0xf], 0
call fcn.00406d72
add esp, 0xc
test eax, eax
jne 0x401197
mov byte [esp + 3], 1
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
lea ecx, [esp + 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov bl, byte [esp + 0x6c]
lea eax, [esp + 0x6c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4011c0
sub eax, edx
test eax, eax
jle 0x4011e4
lea ecx, [esp + 0x6c]
dec ecx
cmp byte [ecx + eax], 0x5c
je 0x4011df
dec eax
test eax, eax
jg 0x4011d2
jmp 0x4011e4
mov byte [esp + eax + 0x6b], 0
lea edx, [esp + 0x480]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x380]
push str._sSecurDataStor.exe
push ecx
call fcn.004013fd
add esp, 0xc
lea edx, [esp + 0x584]
push edx
lea eax, [esp + 0x380]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov edi, str.SecurDisc
je 0x401238
mov edi, str.SecurDataStor
push edi
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x384]
push str._s_s.exe
push edx
call fcn.004013fd
movsx esi, bl
push esi
push edi
lea eax, [esp + 0x498]
push eax
lea ecx, [esp + 0x294]
push str._s_s_c.exe
push ecx
call fcn.004013fd
add esp, 0x24
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x278]
push edx
lea eax, [esp + 0x380]
push eax
call entry0
add esp, 8
sub eax, 0
je 0x4012ad
dec eax
je 0x4012a3
dec eax
je 0x4012ad
xor eax, eax
jmp 0x401361
mov esi, 2
jmp 0x401332
push esi
lea ecx, [esp + 0x18]
push str._c:_
push ecx
call fcn.004013fd
add esp, 0xc
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov cl, byte [esp + 0x13]
xor eax, eax
test cl, cl
je 0x4012fa
push esi
lea eax, [esp + 0x27c]
push eax
lea ecx, [esp + 0x178]
push str._s__c:
push ecx
call fcn.004013fd
add esp, 0x10
lea eax, [esp + 0x170]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0x4000220
push 0
push 0
push 0
push eax
lea eax, [esp + 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40129c
mov esi, 1
push edi
lea ecx, [esp + 0x174]
push str.Cannot_execute_the__s_application.
push ecx
call fcn.004013fd
add esp, 0xc
push 0x10
push str.Startup_Failure
lea edx, [esp + 0x178]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, esi
mov ecx, dword [esp + 0x6c4]
pop edi
pop esi
pop ebp
pop ebx
call fcn.004013ab
add esp, 0x6b8
ret 0x10
Function at 0x402391
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40b83c], esi
push edi
jne 0x4023b1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40b838], esi
mov byte [0x40b834], al
jne 0x402417
mov ecx, dword [0x40ce48]
test ecx, ecx
je 0x4023f8
mov eax, dword [0x40ce44]
sub eax, 4
cmp eax, ecx
jmp 0x4023f1
mov eax, dword [eax]
test eax, eax
je 0x4023e3
call eax
mov eax, dword [0x40ce44]
sub eax, 4
cmp eax, dword [0x40ce48]
mov dword [0x40ce44], eax
jae 0x4023db
mov eax, 0x40b020
mov esi, 0x40b028
cmp eax, esi
mov edi, eax
jae 0x402417
mov eax, dword [edi]
test eax, eax
je 0x402410
call eax
add edi, 4
cmp edi, esi
jb 0x402408
mov eax, 0x40b02c
mov esi, 0x40b030
cmp eax, esi
mov edi, eax
jae 0x402436
mov eax, dword [edi]
test eax, eax
je 0x40242f
call eax
add edi, 4
cmp edi, esi
jb 0x402427
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x402450
push dword [ebp + 8]
mov dword [0x40b83c], 1
call fcn.004022f7
pop ebp
ret

Function at 0x402492
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40b040]
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 + 0x40b060]
je 0x4024c7
inc eax
cmp eax, 0x13
jb 0x4024b8
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40b060]
jne 0x4025ed
mov eax, dword [0x40b7e8]
cmp eax, 1
je 0x4025c5
cmp eax, edx
jne 0x4024f7
cmp dword [0x40b054], 1
je 0x4025c5
cmp ecx, 0xfc
je 0x4025ed
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 0x40252d
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00402fa0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004031d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x402561
mov eax, edi
push eax
call fcn.004031d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40923c
push edi
call fcn.004030a0
add esp, 0x10
push edi
call fcn.004031d0
push dword [esi + 0x40b064]
mov ebx, eax
call fcn.004031d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004013c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402fa0
push edi
push ebx
call fcn.00402fb0
push 0x409238
push ebx
call fcn.00402fb0
push dword [esi + 0x40b064]
push ebx
call fcn.00402fb0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00402ea5
add esp, 0x2c
jmp 0x4025ed
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40b064]
push dword [esi]
call fcn.004031d0
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.004013ab
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x402ea5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40b954], ebx
push esi
push edi
jne 0x402f25
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x402f60
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4098cc
push edi
call esi
test eax, eax
mov dword [0x40b954], eax
je 0x402f60
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40b958], eax
call esi
cmp dword [0x40b7fc], 2
mov dword [0x40b95c], eax
jne 0x402f25
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40b964], eax
je 0x402f25
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40b960], eax
mov eax, dword [0x40b960]
test eax, eax
je 0x402f6a
call eax
test eax, eax
je 0x402f51
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40b964]
test eax, eax
je 0x402f51
test byte [ebp - 8], 1
jne 0x402f6a
cmp dword [0x40b808], 4
jb 0x402f64
or byte [ebp + 0x12], 0x20
jmp 0x402f89
xor eax, eax
jmp 0x402f99
or byte [ebp + 0x12], 4
jmp 0x402f89
mov eax, dword [0x40b958]
test eax, eax
je 0x402f89
call eax
mov ebx, eax
test ebx, ebx
je 0x402f89
mov eax, dword [0x40b95c]
test eax, eax
je 0x402f89
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40b954]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40334a
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 0x403378
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 0x40337f
cmp ebx, dword [eax + 4]
jae 0x40337f
xor eax, eax
jmp 0x40356f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x403390
xor eax, eax
inc eax
jmp 0x40356e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4033a6
cmp ecx, edx
jae 0x4034eb
cmp dword [eax + 4], 0
je 0x4033af
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x403397
cmp dword [ebp + 8], 0
je 0x4033d1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4034eb
cmp eax, esi
jae 0x4034eb
mov eax, dword [0x40b968]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4033f6
cmp dword [esi*4 + 0x40b970], edi
je 0x4034ef
inc esi
cmp esi, eax
jl 0x4033e4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40356b
cmp dword [ebp - 8], 0x1000000
jne 0x40356b
test byte [ebp - 0xc], 0xcc
je 0x403474
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40356b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40356b
cmp word [eax + 0x18], 0x10b
jne 0x40356b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40356b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x403474
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x403474
test byte [ecx + 0x27], 0x80
jne 0x4034eb
push 1
push 0x40b9b0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x403388
mov ecx, dword [0x40b968]
test ecx, ecx
mov edx, ecx
jle 0x4034a8
lea eax, [ecx*4 + 0x40b96c]
cmp dword [eax], edi
je 0x4034a8
dec edx
sub eax, 4
test edx, edx
jg 0x40349c
test edx, edx
jne 0x4034d9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4034b5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4034cd
lea eax, [edx*4 + 0x40b970]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4034bb
cmp ecx, 0x10
jge 0x4034d9
inc ecx
mov dword [0x40b968], ecx
push 0
push 0x40b9b0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x403388
xor eax, eax
jmp 0x40356e
test esi, esi
jle 0x403388
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40b9b0
call ebx
test eax, eax
jne 0x403388
cmp dword [esi*4 + 0x40b970], edi
je 0x403545
mov eax, dword [0x40b968]
lea esi, [eax - 1]
test esi, esi
jl 0x403533
cmp dword [esi*4 + 0x40b970], edi
je 0x40352f
dec esi
jns 0x403523
test esi, esi
jge 0x403543
cmp eax, 0x10
jge 0x40353e
inc eax
mov dword [0x40b968], eax
lea esi, [eax - 1]
jmp 0x403545
je 0x40355d
xor ecx, ecx
test esi, esi
jl 0x40355d
lea eax, [ecx*4 + 0x40b970]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40354b
push 0
push 0x40b9b0
call ebx
jmp 0x403388
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035ff
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40cd2c]
mov eax, dword [0x40b040]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4037c5
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40cd40]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4037c5
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x403669
xor eax, eax
jmp 0x4037d9
test al, 0x20
je 0x40367a
push 2
push edi
push edi
push ecx
call fcn.00405049
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40374f
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x403796
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x4036dc
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4036cd
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4036af
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40371c
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x403728
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4036a3
jmp 0x40372a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4037c0
cmp dword [ebp + 0x3a4], edi
je 0x403796
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x403788
mov dword [0x40b7f4], eax
jmp 0x4037cc
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40377a
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x40372a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x40372a
push dword [ebp + 0x3a4]
call fcn.00404e20
pop ecx
jmp 0x4037d6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4037ae
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x403662
mov dword [0x40b7f0], 0x1c
mov dword [0x40b7f4], edi
jmp 0x4037d6
sub eax, dword [ebp - 0x7c]
jmp 0x4037d9
and dword [0x40b7f4], 0
mov dword [0x40b7f0], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.004013ab
add ebp, 0x39c
leave
ret