joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43f9c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x458e40]
push ebx
push edi
mov dword [esp + 0x24], eax
mov edi, ecx
call fcn.00421230
mov ecx, eax
call fcn.00421360
xor ebx, ebx
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
cmp dword [edi + 0x380c], ebx
mov dword [esp + 0x30], ebx
je 0x419c98
push ebp
push esi
mov eax, dword [edi + 0x3808]
mov ecx, dword [eax + 4]
push 0xffffffffffffffff
add ecx, 8
push ebx
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402a50
mov eax, dword [edi + 0x3808]
mov esi, dword [eax + 4]
cmp esi, eax
je 0x419c3f
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [edx], eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ecx + 4], edx
cmp dword [esi + 0x20], 0x10
jb 0x419c1c
mov eax, dword [esi + 0xc]
push eax
call fcn.00433080
add esp, 4
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], ebx
push esi
mov byte [esi + 0xc], bl
call fcn.00433080
mov eax, dword [edi + 0x380c]
add esp, 4
dec eax
mov dword [edi + 0x380c], eax
mov edx, dword [esp + 0x28]
cmp edx, 0x10
mov ebp, dword [esp + 0x14]
mov eax, ebp
jae 0x419c52
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x24]
add ecx, eax
cmp edx, 0x10
mov esi, ebp
jae 0x419c6d
lea esi, [esp + 0x14]
mov edx, esi
cmp esi, ebx
jne 0x419c71
xor eax, eax
jmp 0x419c75
mov edx, ebp
jmp 0x419c65
mov eax, esi
sub eax, edx
cmp ecx, ebx
jne 0x419c7d
xor ecx, ecx
jmp 0x419c7f
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00402500
cmp dword [edi + 0x380c], ebx
jne 0x419bd5
pop esi
pop ebp
push 1
call fcn.0040d320
mov ecx, eax
call fcn.0040d950
cmp dword [esp + 0x20], 0x10
pop edi
pop ebx
jb 0x419cbc
mov edx, dword [esp + 4]
push edx
call fcn.00433080
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1c]
call fcn.004332fd
add esp, 0x2c
ret
Function at 0x419ce0
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x43f9e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [0x458e40]
push ebx
push ebp
xor ebx, ebx
mov dword [esp + 0x60], eax
push esi
mov eax, 0xf
push edi
mov edi, ecx
mov ebp, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [edi + 0x3800], ebx
mov dword [esp + 0x74], ebx
mov dword [edi + 8], ebp
jbe 0x419db9
mov eax, dword [edi + 0x37fc]
mov esi, dword [eax]
lea ecx, [esi + 8]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403a10
mov eax, dword [esi + 0x50]
dec eax
je 0x419d8f
sub eax, 2
jne 0x419db9
add dword [esi + 0x54], 0xfffffff6
push 0x11
xor ebp, ebp
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x419d74
mov dword [esi + 0x54], 0xffffffff
cmp dword [esi + 0x54], ebx
jge 0x419db9
push esi
lea edx, [esp + 0x14]
push edx
lea ecx, [edi + 0x37f8]
mov dword [esi + 0x54], ebx
call fcn.00419830
jmp 0x419db9
add dword [esi + 0x54], 0xa
push 0x11
xor ebp, ebp
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
mov eax, 0x64
je 0x419daa
mov dword [esi + 0x54], eax
cmp dword [esi + 0x54], eax
jl 0x419db9
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], 2
cmp dword [edi + 0x37f4], ebx
jbe 0x419e3b
mov eax, dword [edi + 0x37f0]
mov esi, dword [eax]
mov eax, dword [esi + 0x50]
dec eax
je 0x419e0c
sub eax, 2
jne 0x419e3b
mov ebp, dword [esi + 0x54]
add ebp, 0xfffffff6
push 0x11
mov dword [esi + 0x54], ebp
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x419df1
mov dword [esi + 0x54], 0xffffffff
cmp dword [esi + 0x54], ebx
jge 0x419e42
push esi
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edi + 0x37ec]
mov dword [esi + 0x54], ebx
call fcn.00419830
jmp 0x419e42
mov edi, dword [esi + 0x54]
add edi, 0xa
push 0x11
mov dword [esi + 0x54], edi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
mov eax, 0x64
je 0x419e2a
mov dword [esi + 0x54], eax
cmp dword [esi + 0x54], eax
jl 0x419e42
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], 2
jmp 0x419e42
cmp ebp, ebx
je 0x419e42
and dword [edi], 0xfffffffe
mov eax, dword [esp + 0x50]
mov esi, 0x10
cmp eax, esi
jb 0x419e5c
mov edx, dword [esp + 0x3c]
push edx
call fcn.00433080
add esp, 4
mov eax, dword [esp + 0x2c]
pop edi
cmp eax, esi
pop esi
pop ebp
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x44], 0xf
pop ebx
jb 0x419e85
mov eax, dword [esp + 8]
push eax
call fcn.00433080
add esp, 4
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x58]
call fcn.004332fd
add esp, 0x68
ret
Function at 0x41d940
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x43fd6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24c
mov eax, dword [0x458e40]
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x382c]
mov dword [esp + 0x254], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.004186f0
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
mov edx, dword [edi + 0x201c]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
mov dword [esp + 0x264], ebx
mov dword [edi + 0x2020], edx
call fcn.00417d50
test eax, eax
je 0x41daed
push ebp
mov edi, edi
lea ecx, [esp + 0x2c]
push 0x442548
push ecx
call fcn.004341f7
add esp, 8
test eax, eax
je 0x41da6f
lea edx, [esp + 0x2c]
push 0x44208c
push edx
call fcn.004343d1
mov ecx, eax
add esp, 8
lea ebp, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x41da01
sub ecx, ebp
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00403270
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00412b70
cmp dword [eax], ebx
jne 0x41da3b
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00412b70
mov edx, dword [edi + 0x2020]
mov dword [eax], edx
jmp 0x41da6f
cmp dword [esp + 0x28], 0x10
mov eax, dword [esp + 0x14]
jae 0x41da4a
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x15c]
push 0x442520
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [esp + 0x2c]
push 0x442518
push edx
call fcn.004341f7
add esp, 8
test eax, eax
je 0x41dad8
lea eax, [esp + 0x2c]
push 0x44208c
push eax
call fcn.004343d1
mov ecx, eax
add esp, 8
lea ebp, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x41daa0
sub ecx, ebp
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00403270
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00412b70
cmp dword [eax], ebx
jne 0x41dad8
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00412b70
mov ecx, dword [edi + 0x2020]
mov dword [eax], ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, edi
call fcn.00417d50
test eax, eax
jne 0x41d9d0
pop ebp
mov eax, dword [edi + 0x201c]
mov dword [edi + 0x2020], eax
cmp dword [esp + 0x24], 0x10
mov dword [edi + 0x2048], ebx
mov dword [edi + 0x3838], ebx
mov dword [edi + 0x204c], ebx
mov dword [edi + 0x2028], 1
pop edi
pop esi
pop ebx
jb 0x41db2c
mov ecx, dword [esp + 4]
push ecx
call fcn.00433080
add esp, 4
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x248]
mov eax, 1
call fcn.004332fd
add esp, 0x258
ret
Function at 0x41ecf0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x43fde8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov ebx, dword [esi + 0x3830]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
lea edi, [esi + 0x382c]
push ecx
mov ecx, edi
mov dword [esp + 0x20], 0
call fcn.004226f0
cmp dword [eax], ebx
je 0x41ed65
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.00412b70
mov eax, dword [eax]
push 1
push 0x441b88
push eax
mov dword [esi + 0x2020], eax
call fcn.00434010
add esp, 0xc
test eax, eax
je 0x41ed7b
add dword [esi + 0x2020], 2
jmp 0x41ed7b
cmp dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x24]
jae 0x41ed74
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esp + 0x38], 0x10
pop edi
pop esi
pop ebx
jb 0x41ed92
mov eax, dword [esp + 0x18]
push eax
call fcn.00433080
add esp, 4
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x424eb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x20]
push edi
xor edi, edi
cmp eax, edi
jne 0x424ec8
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax]
push ebp
push esi
mov esi, dword [ecx + 8]
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ecx]
cmp eax, ecx
lea ebp, [ebx + 0x18]
je 0x424efd
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
push eax
mov dword [edx + 4], ecx
call fcn.00433080
mov eax, dword [ebp + 8]
add esp, 4
dec eax
mov dword [ebp + 8], eax
cmp esi, edi
jne 0x424f0b
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
mov edx, dword [esi]
push edx
call fcn.00433116
push esi
call fcn.00433116
push 0x20
call fcn.004255e0
mov esi, eax
mov dword [esi + 4], 0x5000
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
push 0x5000
mov dword [esp + 0x24], esi
mov dword [esi + 0x1c], edi
call fcn.004255e0
add esp, 0x10
mov edi, eax
mov dword [esi], edi
xor eax, eax
push eax
mov ecx, 0x1400
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebx + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x14]
push eax
push 0x5000
push ecx
push edx
call edi
test eax, eax
je 0x42506b
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
mov edx, dword [ebx + 0x34]
push 0
push eax
push ecx
push edx
mov ecx, ebx
call fcn.00424a00
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x42503d
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x425018
mov eax, dword [ebx + 0x24]
push 0
push 0
push 0x3a
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x24]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x5000
push edx
push eax
call edi
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
mov eax, dword [ebx + 0x34]
push 0
push ecx
push edx
push eax
mov ecx, ebx
call fcn.00424a00
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
mov dword [esi + 4], ecx
push edx
mov ecx, ebp
call fcn.00424e70
mov eax, dword [ebx]
push 0x20
push esi
push eax
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov ecx, dword [ebx]
push 0x20
push esi
push ecx
call dword [sym.imp.WINMM.dll_waveOutWrite]
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 8
ret
mov edx, dword [esi]
push edx
call fcn.00433116
push esi
call fcn.00433116
add esp, 8
pop esi
pop ebp
pop edi
mov dword [ebx + 0x5c], 1
mov eax, 1
pop ebx
add esp, 8
ret
mov dword [ebx + 0x5c], 0
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.00424e70
mov ecx, dword [ebx]
push 0x20
push esi
push ecx
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov edx, dword [ebx]
push 0x20
push esi
push edx
call dword [sym.imp.WINMM.dll_waveOutWrite]
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x432500
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x4325a0
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x432552
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x45898c]
xor eax, edx
inc esi
cmp esi, edi
jl 0x432533
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x43257b
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x45898c]
xor eax, edx
inc esi
cmp esi, edi
jl 0x43255e
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret

Function at 0x43466b
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 0x434688
call fcn.00438398
mov dword [eax], 0x16
xor eax, eax
jmp 0x4346f2
push esi
push 0x8c
push 1
call fcn.00434ffd
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4346dd
push esi
call fcn.00436230
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 0x4346bb
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4345d6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4346f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00434f8c
test ebx, ebx
pop ecx
je 0x4346ef
push ebx
call fcn.004383a1
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43473f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x442ab8
call fcn.00436cac
mov edi, 0x94
mov eax, edi
call fcn.004344e0
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 [0x59f558], ecx
mov eax, dword [esi + 4]
mov dword [0x59f564], eax
mov edx, dword [esi + 8]
mov dword [0x59f568], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x59f55c], esi
cmp ecx, 2
je 0x43479f
or esi, 0x8000
mov dword [0x59f55c], esi
shl eax, 8
add eax, edx
mov dword [0x59f560], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4347da
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347da
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4347f2
cmp eax, 0x20b
je 0x4347df
mov dword [ebp - 0x1c], esi
jmp 0x434806
cmp dword [ecx + 0x84], 0xe
jbe 0x4347da
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x434800
cmp dword [ecx + 0x74], 0xe
jbe 0x4347da
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00438cb8
pop ecx
test eax, eax
jne 0x43481a
push 0x1c
call fcn.0043471b
pop ecx
call fcn.0043642a
test eax, eax
jne 0x43482b
push 0x10
call fcn.0043471b
pop ecx
call fcn.00438c16
mov dword [ebp - 4], esi
call fcn.00438a18
test eax, eax
jge 0x434844
push 0x1b
call fcn.004346f6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x59fd90], eax
call fcn.004388f6
mov dword [0x59f544], eax
call fcn.00438854
test eax, eax
jge 0x43486a
push 8
call fcn.004346f6
pop ecx
call fcn.00438621
test eax, eax
jge 0x43487b
push 9
call fcn.004346f6
pop ecx
push 1
call fcn.00435b24
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x434891
push eax
call fcn.004346f6
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004385c4
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4348b2
movzx eax, word [ebp - 0x40]
jmp 0x4348b5
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00415e40
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4348d3
push edi
call fcn.00435c51
call fcn.00435c73
jmp 0x434905
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00436ce7
ret
Function at 0x435b8e
Capabilities:
Terminate process

Disassembly:
push 8
push 0x442bc8
call fcn.00436cac
push 8
call fcn.00437e9b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x59f598], esi
jne 0x435bc2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x59f594], esi
mov al, byte [ebp + 0x10]
mov byte [0x59f590], al
cmp dword [ebp + 0xc], edi
jne 0x435c0c
cmp dword [0x59fd88], edi
je 0x435bfc
mov eax, dword [0x59fd84]
sub eax, 4
mov dword [0x59fd84], eax
cmp eax, dword [0x59fd88]
jb 0x435bfc
mov eax, dword [eax]
cmp eax, edi
je 0x435bdd
call eax
jmp 0x435bdd
push 0x44a03c
mov eax, 0x44a038
call fcn.00435b0c
pop ecx
push 0x44a048
mov eax, 0x44a040
call fcn.00435b0c
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x435c3d
cmp dword [ebp + 0x10], edi
jne 0x435c4b
mov dword [0x59f598], esi
push dword [ebp + 8]
call fcn.00435aca
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x435c4a
push 8
call fcn.00437de6
pop ecx
ret
call fcn.00436ce7
ret

Function at 0x438414
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x458e40]
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 + 0x459490]
je 0x438449
inc eax
cmp eax, 0x13
jb 0x43843a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x459490]
jne 0x43856f
mov eax, dword [0x59f54c]
cmp eax, 1
je 0x438547
cmp eax, edx
jne 0x438479
cmp dword [0x458e94], 1
je 0x438547
cmp ecx, 0xfc
je 0x43856f
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 0x4384af
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00437c50
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004349f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4384e3
mov eax, edi
push eax
call fcn.004349f0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x442e14
push edi
call fcn.0043c220
add esp, 0x10
push edi
call fcn.004349f0
push dword [esi + 0x459494]
mov ebx, eax
call fcn.004349f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004344e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00437c50
push edi
push ebx
call fcn.00437c60
push 0x442e10
push ebx
call fcn.00437c60
push dword [esi + 0x459494]
push ebx
call fcn.00437c60
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043c610
add esp, 0x2c
jmp 0x43856f
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x459494]
push dword [esi]
call fcn.004349f0
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.004332fd
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x43c610
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x59f8ac], ebx
push esi
push edi
jne 0x43c690
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43c6cb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x59f8ac], eax
je 0x43c6cb
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x59f8b0], eax
call esi
cmp dword [0x59f558], 2
mov dword [0x59f8b4], eax
jne 0x43c690
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x59f8bc], eax
je 0x43c690
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x59f8b8], eax
mov eax, dword [0x59f8b8]
test eax, eax
je 0x43c6d5
call eax
test eax, eax
je 0x43c6bc
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x59f8bc]
test eax, eax
je 0x43c6bc
test byte [ebp - 8], 1
jne 0x43c6d5
cmp dword [0x59f564], 4
jb 0x43c6cf
or byte [ebp + 0x12], 0x20
jmp 0x43c6f4
xor eax, eax
jmp 0x43c704
or byte [ebp + 0x12], 4
jmp 0x43c6f4
mov eax, dword [0x59f8b0]
test eax, eax
je 0x43c6f4
call eax
mov ebx, eax
test ebx, ebx
je 0x43c6f4
mov eax, dword [0x59f8b4]
test eax, eax
je 0x43c6f4
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x59f8ac]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43c709
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 0x43c737
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 0x43c73e
cmp ebx, dword [eax + 4]
jae 0x43c73e
xor eax, eax
jmp 0x43c92e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43c74f
xor eax, eax
inc eax
jmp 0x43c92d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43c765
cmp ecx, edx
jae 0x43c8aa
cmp dword [eax + 4], 0
je 0x43c76e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43c756
cmp dword [ebp + 8], 0
je 0x43c790
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x43c8aa
cmp eax, esi
jae 0x43c8aa
mov eax, dword [0x59f8c0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43c7b5
cmp dword [esi*4 + 0x59f8c8], edi
je 0x43c8ae
inc esi
cmp esi, eax
jl 0x43c7a3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43c92a
cmp dword [ebp - 8], 0x1000000
jne 0x43c92a
test byte [ebp - 0xc], 0xcc
je 0x43c833
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x43c92a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43c92a
cmp word [eax + 0x18], 0x10b
jne 0x43c92a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x43c92a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43c833
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43c833
test byte [ecx + 0x27], 0x80
jne 0x43c8aa
push 1
push 0x59f908
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x43c747
mov ecx, dword [0x59f8c0]
test ecx, ecx
mov edx, ecx
jle 0x43c867
lea eax, [ecx*4 + 0x59f8c4]
cmp dword [eax], edi
je 0x43c867
dec edx
sub eax, 4
test edx, edx
jg 0x43c85b
test edx, edx
jne 0x43c898
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43c874
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x43c88c
lea eax, [edx*4 + 0x59f8c8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x43c87a
cmp ecx, 0x10
jge 0x43c898
inc ecx
mov dword [0x59f8c0], ecx
push 0
push 0x59f908
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x43c747
xor eax, eax
jmp 0x43c92d
test esi, esi
jle 0x43c747
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x59f908
call ebx
test eax, eax
jne 0x43c747
cmp dword [esi*4 + 0x59f8c8], edi
je 0x43c904
mov eax, dword [0x59f8c0]
lea esi, [eax - 1]
test esi, esi
jl 0x43c8f2
cmp dword [esi*4 + 0x59f8c8], edi
je 0x43c8ee
dec esi
jns 0x43c8e2
test esi, esi
jge 0x43c902
cmp eax, 0x10
jge 0x43c8fd
inc eax
mov dword [0x59f8c0], eax
lea esi, [eax - 1]
jmp 0x43c904
je 0x43c91c
xor ecx, ecx
test esi, esi
jl 0x43c91c
lea eax, [ecx*4 + 0x59f8c8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x43c90a
push 0
push 0x59f908
call ebx
jmp 0x43c747
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret