joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401750
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x408018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp dword [esi + 0x18], 0x10
mov edi, eax
lea eax, [esi + 4]
jb 0x40177a
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
movzx ecx, word [esi]
mov eax, 2
push ecx
mov dword [ebp - 0x10], edx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x14]
push edx
push edi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4017c4
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040518a
mov esp, ebp
pop ebp
ret
push 0x401
mov dword [esi + 0x4c0], edi
lea edi, [esi + 0xb8]
push 0
push edi
call sub.MSVCR100.dll_memset
mov eax, dword [esi + 0x4c0]
add esp, 0xc
push 0
push 0x400
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4017b3
mov ecx, dword [ebp - 4]
mov byte [esi + eax + 0xb8], 0
xor ecx, ebp
mov al, 1
pop edi
call fcn.0040518a
mov esp, ebp
pop ebp
ret

Function at 0x401870
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push 0x401
lea esi, [edi + 0xb8]
push 0
push esi
call sub.MSVCR100.dll_memset
mov eax, dword [edi + 0x4c0]
add esp, 0xc
push 0
push 0x400
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
pop esi
cmp eax, 0xffffffff
jne 0x4018a5
xor al, al
ret
mov byte [eax + edi + 0xb8], 0
mov al, 1
ret
Function at 0x401c30
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405e78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x408018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
push 0xc
mov eax, str.MAIL_FROM:__
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.004034b0
push esi
lea eax, [ebx + 0x20]
push eax
or eax, 0xffffffff
lea edi, [ebp - 0x2c]
call fcn.00403400
push 3
mov eax, 0x4062b8
mov ecx, edi
call fcn.004034b0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x401ca5
mov eax, edi
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x4c0]
push esi
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x401dd2
push 0x401
lea edi, [ebx + 0xb8]
push esi
push edi
call sub.MSVCR100.dll_memset
mov eax, dword [ebx + 0x4c0]
add esp, 0xc
push esi
push 0x400
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x401dd2
mov byte [ebx + eax + 0xb8], 0
push 0xa
mov eax, str.RCPT_TO:__
lea ecx, [ebp - 0x2c]
call fcn.004034b0
push esi
lea ecx, [ebx + 0x58]
push ecx
or eax, 0xffffffff
lea edi, [ebp - 0x2c]
call fcn.00403400
push 3
mov eax, 0x4062b8
mov ecx, edi
call fcn.004034b0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x401d33
mov eax, edi
mov edx, dword [ebp - 0x1c]
push esi
push edx
push eax
mov eax, dword [ebx + 0x4c0]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x401dc6
mov edi, ebx
call fcn.00401870
test al, al
je 0x401dc6
mov edi, 6
mov eax, str.DATA_r_n
lea esi, [ebp - 0x2c]
call fcn.00403aa0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x401d73
mov eax, esi
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x401dbc
mov edi, ebx
call fcn.00401870
test al, al
je 0x401dbc
lea eax, [ebp - 0x2c]
mov ecx, ebx
call fcn.00401e10
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.00401820
lea esi, [ebp - 0x2c]
test al, al
je 0x401dbf
call fcn.00402710
mov al, 1
jmp 0x401de7
lea esi, [ebp - 0x2c]
call fcn.00402710
jmp 0x401de5
cmp dword [ebp - 0x18], 0x10
jb 0x401de5
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x401ddc
cmp dword [ebp - 0x18], 0x10
jb 0x401de5
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040518a
mov esp, ebp
pop ebp
ret
Function at 0x401ef0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405da8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x408018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov dword [ebp - 4], eax
lea edi, [eax + 0xe]
mov eax, str.__qwertyuiop_r_n
lea esi, [ebp - 0x2c]
call fcn.00403aa0
push 0x19
mov eax, str.Content_Type:_text_plain_
mov ecx, esi
call fcn.004034b0
push 0x14
mov eax, str.charset_gb2312__r_n_r_n
mov ecx, esi
call fcn.004034b0
push 0
lea eax, [ebx + 0x90]
push eax
or eax, 0xffffffff
mov edi, esi
call fcn.00403400
push 4
mov eax, str._r_n_r_n
mov ecx, esi
call fcn.004034b0
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x401f8b
mov eax, edi
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne bl
cmp dword [ebp - 0x18], esi
jb 0x401fb7
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040518a
mov esp, ebp
pop ebp
ret
Function at 0x402550
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405da8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x408018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov dword [ebp - 4], eax
lea edi, [eax + 0xe]
mov eax, str.__qwertyuiop__
lea esi, [ebp - 0x2c]
call fcn.00403aa0
push 5
mov eax, str._r_n._r_n
mov ecx, esi
call fcn.004034b0
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x4025bc
mov eax, esi
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x402673
push 0x401
lea esi, [ebx + 0xb8]
push 0
push esi
call sub.MSVCR100.dll_memset
mov eax, dword [ebx + 0x4c0]
add esp, 0xc
push 0
push 0x400
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x402673
mov byte [ebx + eax + 0xb8], 0
mov edi, 6
mov eax, str.QUIT_r_n
lea esi, [ebp - 0x2c]
call fcn.00403aa0
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x402633
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40265b
mov edi, ebx
call fcn.00401870
test al, al
je 0x40265b
mov bl, 1
jmp 0x40265d
xor bl, bl
cmp dword [ebp - 0x18], esi
jb 0x40266f
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
jmp 0x402687
cmp dword [ebp - 0x18], edi
jb 0x402685
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040518a
mov esp, ebp
pop ebp
ret
Function at 0x403790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405da8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x408018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x403922
cmp byte [ebx + 0x49], 0
je 0x403922
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x403916
lea esi, [ebp - 0x2c]
call fcn.004033a0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403803
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x40383b
dec eax
je 0x40383f
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x40391d
call fcn.00402710
xor al, al
jmp 0x403924
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40384f
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40387d
cmp edi, 0x10
jae 0x40385e
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40390e
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x40391a
test esi, esi
jne 0x4037f7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40393f
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40393f
cmp edi, esi
jae 0x4038f7
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00403bc0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4037f7
mov ecx, eax
cmp edi, 0x10
jae 0x4038d3
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4038ee
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4037f1
test esi, esi
jne 0x4038c9
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x403906
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4037f1
lea esi, [ebp - 0x2c]
call fcn.00402710
xor al, al
jmp 0x403924
lea esi, [ebp - 0x2c]
call fcn.00402710
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040518a
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x403f30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x408018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 8
mov esi, str.QQScreenshot.exe
lea edi, [ebp - 0x254]
rep movsd dword es:[edi], dword [esi]
push 0x228
xor ebx, ebx
lea eax, [ebp - 0x22c]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x230]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x403fb2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040518a
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x403fc0
lea ecx, [ebp - 0x20c]
lea eax, [ebp - 0x254]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403ff6
test dx, dx
je 0x403ff2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403ff6
add eax, 4
add ecx, 4
test dx, dx
jne 0x403fd0
xor eax, eax
jmp 0x403ffb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40400f
lea edx, [ebp - 0x230]
push edx
push esi
call edi
test eax, eax
jne 0x403fc0
jmp 0x404015
mov ebx, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040518a
mov esp, ebp
pop ebp
ret
Function at 0x404030
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x408018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.QQ.exe]
mov edx, dword [0x406520]
mov ecx, dword [0x40651c]
push ebx
push esi
mov dword [ebp - 0x238], edx
mov edx, dword [0x40652c]
mov dword [ebp - 0x240], eax
mov ax, word [0x406524]
mov dword [ebp - 0x23c], ecx
mov ecx, dword [str.TIM.exe]
push 0x228
mov dword [ebp - 0x24c], edx
xor ebx, ebx
mov word [ebp - 0x234], ax
mov eax, dword [0x406530]
mov dword [ebp - 0x250], ecx
mov ecx, dword [0x406534]
lea edx, [ebp - 0x22c]
push ebx
push edx
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4040fb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040518a
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x404110
lea ecx, [ebp - 0x20c]
lea eax, [ebp - 0x240]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404146
test dx, dx
je 0x404142
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404146
add eax, 4
add ecx, 4
test dx, dx
jne 0x404120
xor eax, eax
jmp 0x40414b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4041a3
lea ecx, [ebp - 0x20c]
lea eax, [ebp - 0x250]
jmp 0x404160
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404186
test dx, dx
je 0x404182
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404186
add eax, 4
add ecx, 4
test dx, dx
jne 0x404160
xor eax, eax
jmp 0x40418b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4041a3
lea ecx, [ebp - 0x230]
push ecx
push esi
call edi
test eax, eax
jne 0x404110
jmp 0x4041a9
mov ebx, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040518a
mov esp, ebp
pop ebp
ret
Function at 0x4041d0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x408018]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
push edi
push eax
push 4
xor edi, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
jne 0x404232
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040518a
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Thread32Next]
lea esp, [esp]
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x14], ecx
je 0x404255
lea edx, [ebp - 0x20]
push edx
push esi
call ebx
test eax, eax
jne 0x404240
jmp 0x404258
mov edi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop ebx
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040518a
mov esp, ebp
pop ebp
ret

Function at 0x404280
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
cmp eax, ecx
je 0x4042c1
push esi
mov edx, 0x320033
push edi
movzx esi, word [eax + 0x14]
mov edi, dword [eax + 0x18]
cmp dword [edi + esi - 0xc], edx
je 0x4042bc
mov eax, dword [eax]
cmp eax, ecx
jne 0x4042a3
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404c00
Capabilities:
Terminate process

Disassembly:
push esi
push 0
push str.5B3838F5_0C81_46D9_A4C0_6EA28CA3E942
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x404c22
call fcn.00403f30
test eax, eax
jne 0x404c45
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00404030
mov esi, eax
test esi, esi
je 0x404c45
push esi
call fcn.004041d0
add esp, 4
test eax, eax
je 0x404c45
push esi
mov ecx, eax
call fcn.004042d0
add esp, 4
xor eax, eax
pop esi
ret

Function at 0x40518a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408018]
jne 0x405194
repz ret
jmp fcn.004055a7
Function at 0x4010d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c004]
jne 0x4010e0
repz ret
jmp fcn.00401541

Function at 0x404efb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403be9
and dword [ebp - 0x14], 0
cmp dword [0x42ec78], 0
mov dword [ebp - 0x18], eax
jne 0x404fae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405056
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405056
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42ec78], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42ec7c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42ec80], eax
call edi
push eax
call esi
mov dword [0x42ec88], eax
test eax, eax
je 0x404fae
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42ec84], eax
mov eax, dword [0x42ec84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405007
cmp dword [0x42ec88], ecx
je 0x405007
push eax
call esi
push dword [0x42ec88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405007
test ebx, ebx
je 0x405007
call edi
test eax, eax
je 0x404ffe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x404ffe
test byte [ebp - 8], 1
jne 0x405007
or dword [ebp + 0x10], 0x200000
jmp 0x40503a
mov eax, dword [0x42ec7c]
cmp eax, dword [ebp - 0x18]
je 0x40503a
push eax
call esi
test eax, eax
je 0x40503a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40503a
mov eax, dword [0x42ec80]
cmp eax, dword [ebp - 0x18]
je 0x40503a
push eax
call esi
test eax, eax
je 0x40503a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42ec78]
call esi
test eax, eax
je 0x405056
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405058
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010d6
leave
ret
Function at 0x420ec0
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
test edi, edi
jle 0x420ed3
call fcn.00420e60
xor byte [edx + esi], al
inc edx
cmp edx, edi
jl 0x420ec6
cmp edi, 0x2d
jne 0x420eec
mov dword [0x2bd46d8], 0xa62e7790
mov dword [0x2bd46dc], 0xffffffff
ret

Function at 0x420ef0
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x42c004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x42cdd0]
push esi
mov esi, dword [0x2bd224c]
push edi
mov edi, dword [0x2bd46cc]
call fcn.00420e90
cmp dword [0x2bd46cc], 0x2f
jne 0x420f5d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.00420ec0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.004010d6
add esp, 0x24
ret
Function at 0x4211d0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
jmp 0x4211e8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1519a5
jge 0x421229
mov dword [0x2bd4334], 0x8e46a6f0
cmp dword [0x2bd46cc], 0x3dc
jne 0x421227
xor ecx, ecx
mov word [ebp - 8], cx
xor edx, edx
mov word [ebp - 6], dx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
jmp 0x4211df
mov dword [ebp - 0x10], 0
jmp 0x42123b
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x12cad2a
jge 0x4212d6
cmp dword [0x2bd46cc], 0xa5f
jne 0x42125c
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebp - 0x10], 0x84620b
jne 0x421281
mov eax, dword [0x42dbf0]
mov dword [0x2bd46cc], eax
mov ecx, dword [0x2bd46cc]
add ecx, 0xa231
mov dword [0x2bd46cc], ecx
cmp dword [0x2bd46cc], 0x141
jne 0x4212d1
xor edx, edx
mov word [ebp - 0x24], dx
xor eax, eax
mov word [ebp - 0x22], ax
xor ecx, ecx
mov word [ebp - 0x20], cx
xor edx, edx
mov word [ebp - 0x1e], dx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputA]
mov dword [0x42f1b8], 0xec58acac
mov dword [0x42f1bc], 0xffffffff
jmp 0x421232
call fcn.00420f80
jmp dword [0x2bd224c]
Function at 0x4010b0
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop

Function at 0x401120
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call sym.___main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x4011ad
cmp al, 9
je 0x4011a0
cmp al, 0x20
je 0x4011a0
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp al, 0x5c
je 0x401208
cmp al, 0x22
je 0x401210
mov dword [ebp - 0x6c], 0
movzx eax, byte [ebx + 1]
inc ebx
test al, al
je 0x4011ad
cmp al, 9
sete cl
cmp al, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x401160
test edi, 1
jne 0x401160
lea esi, [esi]
movzx eax, byte [ebx + 1]
inc ebx
cmp al, 9
je 0x4011a0
cmp al, 0x20
je 0x4011a0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x4011c8
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
inc dword [ebp - 0x6c]
jmp 0x401177
and dword [ebp - 0x6c], 1
jne 0x401170
xor edi, 1
jmp 0x401177