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

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x409af1
cmp ebx, 0x20
je 0x409af1
cmp ebx, 0xffffffe0
je 0x409af1
jne 0x409afa
add eax, 1
cmp esi, eax
je 0x409b07
jne 0x409ad6
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x409b0b
jne 0x409ad2
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x409be0
test ecx, ecx
je 0x409be0
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x409be0
test ebx, ebx
je 0x409be0
mov ebx, eax
add ebx, edx
je 0x409be0
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x409be0
cmp dword [edx + eax + 0x14], 0
je 0x409be0
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x409be0
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x409bd0
test dl, dl
je 0x409bcc
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x409bd0
add edi, 2
add esi, 2
test dl, dl
jne 0x409bb0
xor eax, eax
jmp 0x409bd5
sbb eax, eax
or eax, 1
test eax, eax
je 0x409bec
inc ebp
cmp ebp, dword [esp + 4]
jb 0x409b9d
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x40aae2
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x40ab10
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x40ab07
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x40aaff
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x40ab31
mov esp, ebp
pop ebp
ret

Function at 0x40ab35
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x40aba1
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x40abce
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x40abbd
xor ecx, eax
xor edx, ebx
dec edi
jne 0x40abae
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x40abf4
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x40ab95
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x40ac20
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40d1e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x40d1fe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x40d1f3
pop esi
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x42645767
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x19e53400
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401460
Capabilities:
Delete file
Set socket configuration

Disassembly:
sub esp, 0x308
mov eax, dword [0x419294]
xor eax, esp
mov dword [esp + 0x304], eax
mov eax, dword [esp + 0x30c]
push edi
push eax
push str.TEMP
call fcn.0040557e
add esp, 4
push eax
lea ecx, [esp + 0x20c]
push str._s_d.ini
push ecx
call fcn.0040446b
lea edx, [esp + 0x214]
push 0x4165e8
push edx
call fcn.004054e0
mov edi, eax
add esp, 0x18
test edi, edi
je 0x40162b
push edi
lea eax, [esp + 8]
push 0x200
push eax
call fcn.004052d4
add esp, 0xc
test eax, eax
je 0x401614
push esi
lea ecx, [esp + 8]
push 0xd
push ecx
call fcn.004050d0
add esp, 8
test eax, eax
je 0x4014ee
mov byte [eax], 0
lea edx, [esp + 8]
push 0xa
push edx
call fcn.004050d0
add esp, 8
test eax, eax
je 0x401504
mov byte [eax], 0
lea eax, [esp + 8]
push 0x3d
push eax
call fcn.004050d0
add esp, 8
test eax, eax
je 0x4015f8
mov byte [eax], 0
lea esi, [eax + 1]
mov ecx, str.pipe
lea eax, [esp + 8]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401550
test dl, dl
je 0x40154c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401550
add eax, 2
add ecx, 2
test dl, dl
jne 0x401530
xor eax, eax
jmp 0x401555
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401571
push 0x104
push esi
push 0x45c6c0
call fcn.004051b0
add esp, 0xc
jmp 0x4015f8
mov ecx, str.host_ip
lea eax, [esp + 8]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4015a0
test dl, dl
je 0x40159c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4015a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x401580
xor eax, eax
jmp 0x4015a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4015b6
push esi
call sub.WSOCK32.dll_inet_addr
mov dword [0x45c9d8], eax
jmp 0x4015f8
mov ecx, str.host_port
lea eax, [esp + 8]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4015e0
test dl, dl
je 0x4015dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4015e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4015c0
xor eax, eax
jmp 0x4015e5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4015f8
push esi
call fcn.004051a4
add esp, 4
mov word [0x45c9dc], ax
push edi
lea ecx, [esp + 0xc]
push 0x200
push ecx
call fcn.004052d4
add esp, 0xc
test eax, eax
jne 0x4014d8
pop esi
push edi
call fcn.00405678
add esp, 4
lea edx, [esp + 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x308]
pop edi
xor ecx, esp
call fcn.0040445c
add esp, 0x308
ret
Function at 0x4019a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor esi, esi
lea esp, [esp]
cmp esi, ebp
jae 0x401a17
mov ecx, dword [esp + 0x10]
push 0
mov eax, ebp
sub eax, esi
push eax
lea edx, [esi + ecx]
push edx
push ebx
call sub.WSOCK32.dll_send
mov edi, eax
test edi, edi
jge 0x4019fa
call sub.WSOCK32.dll_WSAGetLastError
push ebx
cmp eax, 0x2747
jne 0x401a04
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.KERROR:_send___error_:__d__socket__x___retrying_to_send_data_in_2sec_n
call fcn.00404130
add esp, 0xc
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, edi
test edi, edi
jl 0x4019b0
pop edi
pop esi
pop ebp
ret
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.KERROR:_send___error_:__d__socket__x_n
call fcn.00404130
add esp, 0xc
pop edi
pop esi
pop ebp
ret

Function at 0x402b80
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x1a8
mov eax, dword [0x419294]
xor eax, esp
mov dword [esp + 0x1a0], eax
push esi
lea eax, [esp + 0x10]
push eax
push 0x202
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], connect
call sub.WSOCK32.dll_WSAStartup
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
push 4
lea ecx, [esp + 0x10]
push ecx
push 0x1006
mov esi, eax
push 0xffff
push esi
call sub.WSOCK32.dll_setsockopt
push 4
lea edx, [esp + 0xc]
push edx
push 0x1001
push 0xffff
push esi
call sub.WSOCK32.dll_setsockopt
mov ecx, dword [esp + 0x1b4]
mov eax, 2
push ecx
mov word [0x45c690], ax
call sub.WSOCK32.dll_htons
mov ecx, dword [esp + 0x1a4]
mov edx, dword [esp + 0x1b0]
mov word [0x45c692], ax
mov eax, esi
pop esi
xor ecx, esp
mov dword [0x45c694], edx
call fcn.0040445c
add esp, 0x1a8
ret
Function at 0x402cfe
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push str.RtlInitUnicodeString
push str.ntdll.dll
mov dword [0x45c6bc], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45c6b8], eax
test eax, eax
jne 0x402cd4
or eax, 0xffffffff
add esp, 0xc
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x45c6a0
call esi
push 0x41b1b0
mov dword [0x41b1c8], 0
call esi
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
push str.FilterPort
call sub.FLTLIB.DLL_FilterConnectCommunicationPort
cmp dword [esp + 8], 0xffffffff
jne 0x402d2e
push str.cannot_connect_to_filter_communication_port_n
call fcn.0040468f
add eax, 0x40
push eax
call fcn.00404909
add esp, 8
push 0
call fcn.0040501a
push str.___connected_to_filter_communication_port_n
call fcn.00404844
mov ecx, dword [esp + 0xc]
add esp, 4
push 1
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x402d78
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_creating_completion_port_:__d_n
call fcn.0040468f
add eax, 0x40
push eax
call fcn.00404909
add esp, 0xc
push 0
call fcn.0040501a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
xor esi, esi
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0x402e10
push 0
push 0
call edi
mov dword [esp + esi*4 + 8], eax
test eax, eax
je 0x402dc0
inc esi
cmp esi, 1
jl 0x402d81
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x10]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x402ddd
push str.Failed_to_wait_for_threads_n
jmp 0x402dc5
push str.Error_creating_thread_n
call fcn.0040468f
add eax, 0x40
push eax
call fcn.00404909
add esp, 8
push 0
call fcn.0040501a
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [esp + esi*4 + 8]
push ecx
call edi
test eax, eax
je 0x402dfe
inc esi
cmp esi, 1
jl 0x402de5
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
push str.Failed_to_close_handle_n
jmp 0x402dc5

Function at 0x404130
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ecx
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
call fcn.00403e90
add esp, 4
mov dword [esp], eax
test eax, eax
jle 0x404193
push esi
inc eax
push edi
push eax
call fcn.004045c5
mov edx, dword [esp + 0x14]
mov esi, eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00403e90
mov ecx, dword [0x45c684]
add esp, 8
push 0xffffffffffffffff
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
push eax
push esi
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push esi
mov edi, eax
call fcn.004044e8
add esp, 4
mov eax, edi
pop edi
pop esi
pop ecx
ret
or eax, 0xffffffff
pop ecx
ret

Function at 0x40445c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419294]
jne 0x404466
repz ret
jmp fcn.00405e90
Function at 0x40c635
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00408702
and dword [ebp - 4], 0
cmp dword [0x41b0c4], 0
mov ebx, eax
jne 0x40c6e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c797
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c797
push eax
call fcn.00408690
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41b0c4], eax
call esi
push eax
call fcn.00408690
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41b0c8], eax
call esi
push eax
call fcn.00408690
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41b0cc], eax
call esi
push eax
call fcn.00408690
pop ecx
mov dword [0x41b0d4], eax
test eax, eax
je 0x40c6e6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00408690
pop ecx
mov dword [0x41b0d0], eax
mov eax, dword [0x41b0d0]
cmp eax, ebx
je 0x40c73e
cmp dword [0x41b0d4], ebx
je 0x40c73e
push eax
call fcn.0040870b
push dword [0x41b0d4]
mov esi, eax
call fcn.0040870b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c73e
test edi, edi
je 0x40c73e
call esi
test eax, eax
je 0x40c735
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c735
test byte [ebp - 0xc], 1
jne 0x40c73e
or dword [ebp + 0x10], 0x200000
jmp 0x40c777
mov eax, dword [0x41b0c8]
cmp eax, ebx
je 0x40c777
push eax
call fcn.0040870b
pop ecx
test eax, eax
je 0x40c777
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c777
mov eax, dword [0x41b0cc]
cmp eax, ebx
je 0x40c777
push eax
call fcn.0040870b
pop ecx
test eax, eax
je 0x40c777
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41b0c4]
call fcn.0040870b
pop ecx
test eax, eax
je 0x40c797
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c799
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401019
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push 0x577458
push 0x5773bc
push str.signdata
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x4010b3
lea eax, [ebp - 0x404]
lea edx, [eax + 2]
xor edi, edi
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x401061
sub eax, edx
sar eax, 1
test al, 1
jne 0x4010b3
shr eax, 1
mov dword [esi + 0x10], eax
add eax, 4
push eax
call fcn.0052f86d
pop ecx
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x10], edi
jbe 0x4010af
push ebx
lea ebx, [ebp - 0x404]
mov eax, dword [esi + 0x1c]
add eax, edi
push eax
push 0x5773b0
push ebx
call fcn.0052f9a7
add esp, 0xc
inc edi
add ebx, 4
cmp edi, dword [esi + 0x10]
jb 0x401091
pop ebx
mov al, 1
jmp 0x4010b5
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0052f7d0
leave
ret 4
Function at 0x40111a
Capabilities:
Hash data via wincrypt

Disassembly:
push 0xf0
mov eax, 0x565821
call fcn.00539a44
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xf8]
push eax
mov esi, ecx
call fcn.0040130b
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xf0], ebx
jne 0x4012ea
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.004031f2
push str._signdata_
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.0040319e
push str.sign
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0040319e
mov byte [ebp - 4], 3
jmp 0x4011d3
cmp dword [ebp - 0x18], ebx
je 0x4011d3
lea ebx, [ebp - 0x64]
lea ecx, [ebp - 0x2c]
call fcn.004010c4
test al, al
jne 0x4011d1
lea ebx, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.004010c4
test al, al
jne 0x4011d1
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4011bd
lea eax, [ebp - 0x28]
push 0
push dword [ebp - 0x18]
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp eax, 1
jne 0x40124c
xor ebx, ebx
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
push 0xa
lea eax, [ebp + eax - 0xf8]
push eax
call fcn.00402040
movzx eax, al
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00402208
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx + 8]
and al, 6
movsx eax, al
add esp, 0xc
neg eax
sbb eax, eax
not eax
test ecx, eax
jne 0x40118e
lea esi, [ebp - 0xf0]
call fcn.00401cb4
test eax, eax
jne 0x401246
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
push ebx
lea ecx, [ebp + ecx - 0xf8]
push 2
call fcn.00402d26
mov byte [ebp - 0x65], 1
jmp 0x401298
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
mov eax, esi
call fcn.00401000
mov esi, dword [esi + 8]
test esi, esi
je 0x40126a
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea esi, [ebp - 0xf0]
call fcn.00401cb4
test eax, eax
jne 0x401292
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
push 0
lea ecx, [ebp + ecx - 0xf8]
push 2
call fcn.00402d26
mov byte [ebp - 0x65], 0
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00403211
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00403211
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403211
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.004013ba
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], vtable.std::ios_base.0
call fcn.0052eee7
mov al, byte [ebp - 0x65]
pop ecx
call fcn.00539ac7
ret 4
mov byte [ebp - 0x65], bl
jmp 0x4012b9