joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423eb0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45601f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xf4]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xc
call fcn.00417f40
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x18
call fcn.00425e40
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0x24
call fcn.004269d0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x58], 0
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x5c], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x34], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x30], 0
push 0x18
call fcn.00431bf8
add esp, 4
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0xe0], 0
je 0x423f83
mov ecx, dword [ebp - 0xe0]
call fcn.00413410
mov dword [ebp - 0xf4], eax
jmp 0x423f8d
mov dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xec]
mov dword [ecx + 0x60], edx
push 0x4220b0
push 0x422100
push 0x400
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x60]
call fcn.0042edf0
push 0x1770
mov ecx, dword [ebp - 0x14]
add ecx, 0xc
call fcn.00417fd0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x38], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x3c], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x48], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x4c], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x50], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x55], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x54], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x49], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x44], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x40], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xf4
cmp ebp, esp
call fcn.0043234a
mov esp, ebp
pop ebp
ret
Function at 0x425c60
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov esi, esp
push 0
push 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp esi, esp
call fcn.0043234a
test eax, eax
je 0x425ca2
mov al, 1
jmp 0x425d00
mov eax, dword [ebp - 8]
add eax, 0x5c
push eax
push 4
mov ecx, dword [ebp - 8]
push ecx
push 0x4257c0
push 0
push 0
call fcn.00433e6a
add esp, 0x18
mov edx, dword [ebp - 8]
mov dword [edx + 0x58], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x58], 0
jne 0x425ce8
mov esi, esp
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.0043234a
xor al, al
jmp 0x425d00
mov esi, esp
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.0043234a
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.0043234a
mov esp, ebp
pop ebp
ret
Function at 0x429c80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, esp
call fcn.0043234a
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x64], eax
mov esi, esp
push 0x10
mov eax, dword [ebp - 8]
add eax, 0x10
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.0042f4c0
push eax
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
mov edx, dword [0x462598]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp esi, esp
call fcn.0043234a
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x429cff
mov eax, dword [ebp + 8]
push eax
mov ecx, 0x462648
call fcn.0042fcd0
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.0043234a
mov esp, ebp
pop ebp
ret 8
Function at 0x42a960
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x234]
mov ecx, 0x8d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x460280]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x4c], 0x10
mov word [ebp - 0x34], 2
mov eax, dword [ebp + 0x14]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x164], 0
jmp 0x42a9df
mov eax, dword [ebp - 0x164]
add eax, 1
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x164]
cmp eax, dword [ebp - 0x158]
jae 0x42aa03
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp + eax*4 - 0x154]
cmp ecx, dword [ebp + 8]
jne 0x42aa01
jmp 0x42aa03
jmp 0x42a9d0
mov eax, dword [ebp - 0x164]
cmp eax, dword [ebp - 0x158]
jne 0x42aa39
cmp dword [ebp - 0x158], 0x40
jae 0x42aa39
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x154], ecx
mov eax, dword [ebp - 0x158]
add eax, 1
mov dword [ebp - 0x158], eax
xor eax, eax
jne 0x42a9c4
mov esi, esp
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
lea ecx, [ebp - 0x158]
push ecx
mov edx, dword [ebp + 8]
add edx, 1
push edx
call dword [sym.imp.WS2_32.dll_select]
cmp esi, esp
call fcn.0043234a
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
jne 0x42aa75
xor eax, eax
jmp 0x42aac8
cmp dword [ebp - 0x170], 0
jge 0x42aa83
or eax, 0xffffffff
jmp 0x42aac8
cmp dword [ebp + 0x18], 0
je 0x42aa91
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
jmp 0x42aa97
lea eax, [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov esi, esp
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp esi, esp
call fcn.0043234a
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
push edx
mov ecx, ebp
push eax
lea edx, [0x42aaf7]
call fcn.0043236d
pop eax
pop edx
mov ecx, dword [ebp - 4]
call fcn.00432663
pop edi
pop esi
pop ebx
add esp, 0x234
cmp ebp, esp
call fcn.0043234a
mov esp, ebp
pop ebp
ret 0x14
Function at 0x42b960
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov esi, esp
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xa0]
push ecx
mov edx, dword [ebp - 8]
add edx, 0xa0
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.0043234a
test eax, eax
je 0x42b9ac
jmp 0x42ba01
mov esi, esp
push 1
mov eax, dword [ebp - 8]
add eax, 0xa0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.0043234a
push 0
push 4
mov eax, dword [ebp - 8]
push eax
push 0x42b8c0
push 0
push 0
call fcn.00433e6a
add esp, 0x18
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xa8], eax
mov esi, esp
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.0043234a
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.0043234a
mov esp, ebp
pop ebp
ret

Function at 0x42bed0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov esi, esp
push 0x10
mov eax, dword [ebp - 8]
add eax, 0x24
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.0042f4c0
push eax
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp esi, esp
call fcn.0043234a
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x42bf3a
mov eax, dword [ebp + 8]
push eax
mov ecx, 0x462648
call fcn.0042fcd0
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.0043234a
mov esp, ebp
pop ebp
ret 8

Function at 0x42bf50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov esi, esp
push 0x10
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.0042f4c0
push eax
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp esi, esp
call fcn.0043234a
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x42bfb7
mov eax, dword [ebp + 8]
push eax
mov ecx, 0x462648
call fcn.0042fcd0
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.0043234a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42c210
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xd8]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov esi, esp
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call fcn.0043234a
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], eax
push 0x10
push 0
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
call fcn.00432b00
add esp, 0xc
mov eax, dword [ebp - 8]
mov word [eax + 0x14], 2
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], 0
mov esi, esp
mov ax, word [0x462330]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.0043234a
mov ecx, dword [ebp - 8]
mov word [ecx + 0x16], ax
push 0x10
push 0
mov eax, dword [ebp - 8]
add eax, 0x24
push eax
call fcn.00432b00
add esp, 0xc
mov eax, dword [ebp - 8]
mov word [eax + 0x24], 2
mov esi, esp
push 0x10
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp esi, esp
call fcn.0043234a
mov dword [ebp - 0x14], 1
mov esi, esp
lea eax, [ebp - 0x14]
push eax
push 0x8004667e
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp esi, esp
call fcn.0043234a
push 0
call fcn.00431e48
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x38], eax
mov ecx, dword [ebp - 8]
call fcn.0042b960
mov eax, dword [ebp - 8]
mov byte [eax + 0xa4], 1
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x42c33b]
call fcn.0043236d
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.0043234a
mov esp, ebp
pop ebp
ret
Function at 0x433e6a
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 0x433e87
call fcn.004387aa
mov dword [eax], 0x16
xor eax, eax
jmp 0x433ef1
push esi
push 0x8c
push 1
call fcn.0043796c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x433edc
push esi
call fcn.00434ad3
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 0x433eba
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x433dd5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x433ef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00433364
test ebx, ebx
pop ecx
je 0x433eee
push ebx
call fcn.004387bc
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x433ff2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4588a0
call fcn.0043614c
mov edi, 0x94
mov eax, edi
call fcn.00432680
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 [0x46bfa4], ecx
mov eax, dword [esi + 4]
mov dword [0x46bfb0], eax
mov edx, dword [esi + 8]
mov dword [0x46bfb4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x46bfa8], esi
cmp ecx, 2
je 0x434052
or esi, 0x8000
mov dword [0x46bfa8], esi
shl eax, 8
add eax, edx
mov dword [0x46bfac], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x43408d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43408d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4340a5
cmp eax, 0x20b
je 0x434092
mov dword [ebp - 0x1c], esi
jmp 0x4340b9
cmp dword [ecx + 0x84], 0xe
jbe 0x43408d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4340b3
cmp dword [ecx + 0x74], 0xe
jbe 0x43408d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00436712
pop ecx
test eax, eax
jne 0x4340cd
push 0x1c
call fcn.00433fce
pop ecx
call fcn.00434ccd
test eax, eax
jne 0x4340de
push 0x10
call fcn.00433fce
pop ecx
call fcn.00438e33
mov dword [ebp - 4], esi
call fcn.0043776e
test eax, eax
jge 0x4340f7
push 0x1b
call fcn.00433fa9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46c754], eax
call fcn.00438d11
mov dword [0x46be9c], eax
call fcn.00438c6f
test eax, eax
jge 0x43411d
push 8
call fcn.00433fa9
pop ecx
call fcn.00438a3c
test eax, eax
jge 0x43412e
push 9
call fcn.00433fa9
pop ecx
push 1
call fcn.004362fb
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x434144
push eax
call fcn.00433fa9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004389df
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x434165
movzx eax, word [ebp - 0x40]
jmp 0x434168
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00420430
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x434186
push edi
call fcn.00436428
call fcn.0043644a
jmp 0x4341b8
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00436187
ret
Function at 0x43882f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x460280]
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 + 0x460b58]
je 0x438864
inc eax
cmp eax, 0x13
jb 0x438855
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x460b58]
jne 0x43898a
mov eax, dword [0x46bea4]
cmp eax, 1
je 0x438962
cmp eax, edx
jne 0x438894
cmp dword [0x460584], 1
je 0x438962
cmp ecx, 0xfc
je 0x43898a
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 0x4388ca
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00431d50
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00433220
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4388fe
mov eax, edi
push eax
call fcn.00433220
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x458b1c
push edi
call fcn.00433c80
add esp, 0x10
push edi
call fcn.00433220
push dword [esi + 0x460b5c]
mov ebx, eax
call fcn.00433220
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00432680
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00431d50
push edi
push ebx
call fcn.00431d60
push 0x458b18
push ebx
call fcn.00431d60
push dword [esi + 0x460b5c]
push ebx
call fcn.00431d60
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00439a26
add esp, 0x2c
jmp 0x43898a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x460b5c]
push dword [esi]
call fcn.00433220
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.00432663
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x439593
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x460280]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4395c4
xor eax, eax
jmp 0x43974d
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x46c620]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x439600
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0043b349
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4396db
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x439719
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x439664
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x439655
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x439635
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4396a4
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4396ad
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x439626
jmp 0x4396af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x439748
cmp dword [ebp - 0x6c], edi
je 0x439719
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x43970e
call fcn.004387aa
mov dword [eax], 9
call fcn.004387b3
mov dword [eax], esi
jmp 0x439743
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x439703
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4396af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4396af
push dword [ebp - 0x6c]
call fcn.004387bc
pop ecx
jmp 0x439743
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x439731
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x439731
xor eax, eax
jmp 0x43974b
call fcn.004387aa
mov dword [eax], 0x1c
call fcn.004387b3
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x43974b
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00432663
add ebp, 0x3a0
leave
ret
Function at 0x439a26
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x46c2d8], ebx
push esi
push edi
jne 0x439aa6
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x439ae1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x459a54
push edi
call esi
test eax, eax
mov dword [0x46c2d8], eax
je 0x439ae1
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x46c2dc], eax
call esi
cmp dword [0x46bfa4], 2
mov dword [0x46c2e0], eax
jne 0x439aa6
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x46c2e8], eax
je 0x439aa6
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x46c2e4], eax
mov eax, dword [0x46c2e4]
test eax, eax
je 0x439aeb
call eax
test eax, eax
je 0x439ad2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x46c2e8]
test eax, eax
je 0x439ad2
test byte [ebp - 8], 1
jne 0x439aeb
cmp dword [0x46bfb0], 4
jb 0x439ae5
or byte [ebp + 0x12], 0x20
jmp 0x439b0a
xor eax, eax
jmp 0x439b1a
or byte [ebp + 0x12], 4
jmp 0x439b0a
mov eax, dword [0x46c2dc]
test eax, eax
je 0x439b0a
call eax
mov ebx, eax
test ebx, ebx
je 0x439b0a
mov eax, dword [0x46c2e0]
test eax, eax
je 0x439b0a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x46c2d8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439b1f
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 0x439b4d
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 0x439b54
cmp ebx, dword [eax + 4]
jae 0x439b54
xor eax, eax
jmp 0x439d44
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x439b65
xor eax, eax
inc eax
jmp 0x439d43
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x439b7b
cmp ecx, edx
jae 0x439cc0
cmp dword [eax + 4], 0
je 0x439b84
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x439b6c
cmp dword [ebp + 8], 0
je 0x439ba6
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x439cc0
cmp eax, esi
jae 0x439cc0
mov eax, dword [0x46c2f0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x439bcb
cmp dword [esi*4 + 0x46c2f8], edi
je 0x439cc4
inc esi
cmp esi, eax
jl 0x439bb9
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x439d40
cmp dword [ebp - 8], 0x1000000
jne 0x439d40
test byte [ebp - 0xc], 0xcc
je 0x439c49
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x439d40
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x439d40
cmp word [eax + 0x18], 0x10b
jne 0x439d40
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x439d40
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x439c49
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x439c49
test byte [ecx + 0x27], 0x80
jne 0x439cc0
push 1
push 0x46c338
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x439b5d
mov ecx, dword [0x46c2f0]
test ecx, ecx
mov edx, ecx
jle 0x439c7d
lea eax, [ecx*4 + 0x46c2f4]
cmp dword [eax], edi
je 0x439c7d
dec edx
sub eax, 4
test edx, edx
jg 0x439c71
test edx, edx
jne 0x439cae
push 0xf
pop ebx
cmp ecx, ebx
jg 0x439c8a
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x439ca2
lea eax, [edx*4 + 0x46c2f8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x439c90
cmp ecx, 0x10
jge 0x439cae
inc ecx
mov dword [0x46c2f0], ecx
push 0
push 0x46c338
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x439b5d
xor eax, eax
jmp 0x439d43
test esi, esi
jle 0x439b5d
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x46c338
call ebx
test eax, eax
jne 0x439b5d
cmp dword [esi*4 + 0x46c2f8], edi
je 0x439d1a
mov eax, dword [0x46c2f0]
lea esi, [eax - 1]
test esi, esi
jl 0x439d08
cmp dword [esi*4 + 0x46c2f8], edi
je 0x439d04
dec esi
jns 0x439cf8
test esi, esi
jge 0x439d18
cmp eax, 0x10
jge 0x439d13
inc eax
mov dword [0x46c2f0], eax
lea esi, [eax - 1]
jmp 0x439d1a
je 0x439d32
xor ecx, ecx
test esi, esi
jl 0x439d32
lea eax, [ecx*4 + 0x46c2f8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x439d20
push 0
push 0x46c338
call ebx
jmp 0x439b5d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret