joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dbf3
Capabilities:
Download and write a file
Get socket status
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x427484]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10c], eax
cmp edi, 0xffffffff
jne 0x40dc23
or eax, edi
jmp 0x40dcee
mov eax, dword [ebp + 0x14]
push esi
xor esi, esi
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], 1
cmp eax, esi
je 0x40dc5c
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x114], eax
cmp eax, 0xffffffff
jne 0x40dc54
mov dword [ebp - 0x114], esi
lea eax, [ebp - 0x114]
jmp 0x40dc5e
xor eax, eax
push eax
push esi
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, esi
jge 0x40dc84
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.select_returns_error__d_n
jmp 0x40dcde
jne 0x40dc8b
push 0xfffffffffffffffe
pop eax
jmp 0x40dced
cmp ebx, esi
je 0x40dcea
cmp dword [ebp + 0x10], esi
je 0x40dcea
push esi
push dword [ebp + 0x10]
push ebx
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
je 0x40dcd2
cmp edi, esi
je 0x40dcce
cmp dword [ebp - 0x10c], 0xffffffff
je 0x40dcca
push esi
lea eax, [ebp - 0x118]
push eax
push edi
push ebx
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
jmp 0x40dced
xor eax, eax
jmp 0x40dced
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv_returns_error__d_n
call fcn.0040e70d
pop ecx
pop ecx
or eax, 0xffffffff
jmp 0x40dced
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040ffa3
leave
ret

Function at 0x40dcfc
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
or eax, 0xffffffff
cmp dword [ebp + 8], eax
je 0x40dd59
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
je 0x40dd27
push 0
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
xor esi, esi
inc eax
test edi, edi
je 0x40dd4e
test eax, eax
jle 0x40dd4e
push 0
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
add esi, eax
cmp esi, edi
jb 0x40dd30
cmp esi, edi
sbb eax, eax
pop edi
and eax, 0xfffffffe
pop esi
inc eax
pop ebx
leave
ret
Function at 0x40dd5b
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push ebx
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [ebp - 4], eax
or eax, 0xffffffff
cmp dword [ebp + 8], eax
je 0x40ddf5
cmp ebx, 0x7fff
jbe 0x40dd86
push 0xfffffffffffffff7
pop eax
jmp 0x40ddf5
cmp dword [ebp + 0x14], eax
je 0x40dd9e
push 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.WS2_32.dll_send]
push edi
xor edi, edi
push edi
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call esi
test ebx, ebx
je 0x40ddd4
test eax, eax
jle 0x40ddd6
push 0
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
push dword [ebp + 8]
call esi
add edi, eax
cmp edi, ebx
jb 0x40ddb8
test eax, eax
jns 0x40ddeb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_returns_error__d_n
call fcn.0040e70d
pop ecx
pop ecx
cmp edi, ebx
sbb eax, eax
and eax, 0xfffffffe
pop edi
inc eax
pop esi
pop ebx
leave
ret

Function at 0x40de77
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x427484]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
and dword [ebp - 0x28], 0
push esi
mov esi, dword [sym.imp.WS2_32.dll_getaddrinfo]
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x48]
push eax
push edx
push ebx
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 6
call esi
cmp eax, 0x277c
je 0x40ded2
cmp eax, 0x277d
jne 0x40defc
movzx eax, word [ebp + 0x14]
or dword [ebp - 0x48], 8
push eax
lea eax, [ebp - 0x24]
push 0x427050
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
test eax, eax
je 0x40df0e
push dword [ebp - 0x28]
push 0xffffffffffffffff
call fcn.0040da86
pop ecx
pop ecx
jmp 0x40df49
mov eax, dword [ebp - 0x28]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40df00
mov eax, dword [ebp - 0x28]
push dword [eax + 0x10]
push dword [eax + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_connect]
push dword [ebp - 0x28]
test eax, eax
je 0x40df41
push esi
jmp 0x40df05
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffa3
leave
ret
Function at 0x40e12c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x427484]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x204], eax
jne 0x40e159
mov eax, 0x427054
jmp 0x40e169
cmp dword [ebp + 0xc], 2
mov eax, str.DELETE
je 0x40e169
mov eax, str.OTHER
push ebx
mov ebx, dword [ebp + 0x14]
push ebx
push edi
push eax
push dword [ebp + 0xc]
push str.TrayMessage_Call_:_msg__d___s___wnd__d__id__d_n
call fcn.0040e70d
push 0x1fc
lea eax, [ebp - 0x200]
push 0
push eax
call fcn.00412af0
add esp, 0x20
cmp dword [ebp + 0xc], 2
mov dword [ebp - 0x1f8], ebx
mov dword [ebp - 0x200], 0x1fc
mov dword [ebp - 0x1fc], edi
pop ebx
je 0x40e1df
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1f0], eax
mov eax, dword [ebp - 0x204]
mov dword [ebp - 0x1ec], eax
push 0x7f
lea eax, [ebp - 0x1e8]
push eax
push edi
mov dword [ebp - 0x1f4], 7
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x200]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
pop edi
test eax, eax
jne 0x40e20e
call fcn.0040e9cb
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error__d_in_Shell_NotifyIcon___s__n
call fcn.0040e70d
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ffa3
leave
ret

Function at 0x40e70d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x427484]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.Th_5d_:
mov esi, 0x1ff
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.00411196
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 8]
sub esi, eax
lea eax, [ebp + eax - 0x204]
push esi
push eax
call fcn.004112f5
add esp, 0x20
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040ffa3
leave
ret

Function at 0x40ea32
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ebx, ebx
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x40ea5b
push 0x2c
push str._libsmini_tcp4u_tcp4u_exchg.c
push str.nKeyLen___0
call fcn.00410334
add esp, 0xc
xor ecx, ecx
cmp dword [ebp + 8], ebx
jle 0x40ea77
mov eax, ebx
cdq
idiv dword [ebp - 4]
add ebx, 0xd
mov al, byte [edx + esi]
xor byte [ecx + edi], al
inc ecx
cmp ecx, dword [ebp + 8]
jl 0x40ea62
mov eax, edi
pop ebx
leave
ret

Function at 0x40eba0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
lea eax, [ecx + 1]
and ecx, 0x10
neg eax
sbb eax, eax
and eax, ecx
pop ebp
ret
Function at 0x40ebbc
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x374
mov eax, dword [0x427484]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x104
push eax
lea eax, [ebp - 0x11c]
push eax
mov byte [ebp - 0x19], 0
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push str..
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40ecc3
test byte [ebp - 0x36c], 0x10
jne 0x40ecad
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x368]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x374]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0xb
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x22c]
push eax
push 1
push 0x800
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push dword [ebp - 0x34c]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x21c]
push str._s_t_s_t_d
push eax
mov byte [ebp - 6], 0
mov byte [ebp - 0x302], 0
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x36c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ec1f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040ffa3
leave
ret

Function at 0x40ecd8
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x40f584
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x4271e0
push 0
mov dword [ebp - 8], 0x4271dc
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40f5d7
push esi
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
movzx eax, word [ebp + 0xc]
push 2
push 0
push eax
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x40f8d7
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x427484]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
or dword [ebp - 0x448], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp + 0x14]
push 0x5c
push esi
mov dword [ebp - 0x45c], esi
mov dword [ebp - 0x454], edi
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x458], ebx
call fcn.0040ffc0
pop ecx
pop ecx
test eax, eax
je 0x40f932
lea esi, [eax + 1]
push 0x40
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ebx
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x444]
push eax
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 5], 0
call edi
mov esi, eax
test esi, esi
jle 0x40f9b9
mov eax, dword [ebp + 0x18]
dec eax
je 0x40f98f
sub eax, 3
jne 0x40faa5
lea eax, [ebp - 0x444]
push eax
call fcn.00410b8e
pop ecx
mov ecx, dword [ebp - 0x44c]
mov dword [ecx], eax
jmp 0x40faa5
push dword [ebp - 0x450]
mov edi, dword [ebp - 0x44c]
lea eax, [ebp - 0x444]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x450]
mov byte [eax + edi - 1], 0
jmp 0x40faa5
push dword [ebp - 0x458]
lea eax, [ebp - 0x444]
push ebx
push eax
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call edi
xor esi, esi
lea edx, [ebp - 0x444]
cmp eax, esi
jle 0x40fa33
cmp byte [edx], 0
je 0x40fa33
mov edi, dword [ebp - 0x454]
mov ecx, edx
mov bl, byte [ecx]
cmp bl, byte [edi]
jne 0x40fa0a
test bl, bl
je 0x40fa06
mov bl, byte [ecx + 1]
cmp bl, byte [edi + 1]
jne 0x40fa0a
add ecx, 2
add edi, 2
test bl, bl
jne 0x40f9ea
xor ecx, ecx
jmp 0x40fa0f
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, esi
je 0x40fa33
mov ecx, edx
lea edi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x40fa18
sub ecx, edi
lea edx, [edx + ecx + 1]
mov ecx, edx
lea edi, [ebp - 0x444]
sub ecx, edi
cmp ecx, eax
jl 0x40f9dd
mov ecx, edx
lea edi, [ebp - 0x444]
sub ecx, edi
cmp ecx, eax
jge 0x40fa46
cmp byte [edx], 0
jne 0x40faa5
lea eax, [ebp - 0x448]
push eax
push 0x20019
push esi
push dword [ebp - 0x45c]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40faa5
lea eax, [ebp - 0x450]
push eax
push dword [ebp - 0x44c]
push esi
push esi
push dword [ebp - 0x454]
push dword [ebp - 0x448]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 0x448], 0xffffffff
je 0x40faa5
push dword [ebp - 0x448]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffa3
leave
ret
Function at 0x40fab6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x427484]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
mov dword [ebp - 0x488], eax
mov eax, dword [ebp + 0x1c]
push bind
push eax
mov dword [ebp - 0x490], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40fb7b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5c
push edi
call fcn.0040ffc0
pop ecx
pop ecx
test eax, eax
je 0x40fb1a
lea edi, [eax + 1]
push edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x18]
dec eax
je 0x40fb5d
sub eax, 3
jne 0x40fbe3
push dword [ebx]
lea eax, [ebp - 0x484]
push 0x4271ec
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebp - 0x490]
lea eax, [ebp - 0x484]
push eax
jmp 0x40fb64
push dword [ebp - 0x490]
push ebx
push dword [ebp - 0x488]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, eax
jmp 0x40fbe3
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x48c]
push eax
xor eax, eax
push eax
push 0x20006
push eax
push eax
push eax
push edi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40fbe3
cmp dword [ebp + 0x18], 1
jne 0x40fbb4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
jmp 0x40fbb7
mov eax, dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x18]
push 0
push dword [ebp - 0x488]
push dword [ebp - 0x48c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x48c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffa3
leave
ret
Function at 0x40fe81
Capabilities:
Create tcp socket
Create udp socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x427484]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
movzx eax, word [esi]
push edi
push dword [ebp + 8]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x24]
push 0x4273ac
push eax
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x50], 8
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x44], 0x11
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov eax, dword [ebp - 0x28]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x40ff71
push 4
lea eax, [ebp - 0x30]
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov eax, str.UdpSend:_Port__d_may_be_reused
je 0x40ff24
mov eax, 0x4273d0
push ebx
push dword [ebp + 8]
push eax
call fcn.0040e70d
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
push dword [eax + 0x10]
push dword [eax + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_bind]
push dword [ebp - 0x28]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.UdpSend_bind_returns__d__error__d_
call fcn.0040e70d
add esp, 0xc
test ebx, ebx
pop ebx
jns 0x40ff7f
push 0xfffffffffffffff8
pop esi
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040ffa3
leave
ret
push dword [ebp + 0x10]
push esi
push 0
push dword [ebp + 0x18]
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
push esi
push str.sendto_returns__d
call fcn.0040e70d
pop ecx
pop ecx
jmp 0x40ff68

Function at 0x40ffa3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427484]
jne 0x40ffad
repz ret
jmp fcn.00412ed1
Function at 0x4149e9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x427484]
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.00417ee9
and dword [ebp - 0x14], 0
cmp dword [0x42de28], 0
mov dword [ebp - 0x18], eax
jne 0x414a9c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x414b44
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x414b44
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42de28], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42de2c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42de30], eax
call edi
push eax
call esi
mov dword [0x42de38], eax
test eax, eax
je 0x414a9c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42de34], eax
mov eax, dword [0x42de34]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x414af5
cmp dword [0x42de38], ecx
je 0x414af5
push eax
call esi
push dword [0x42de38]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x414af5
test ebx, ebx
je 0x414af5
call edi
test eax, eax
je 0x414aec
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x414aec
test byte [ebp - 8], 1
jne 0x414af5
or dword [ebp + 0x10], 0x200000
jmp 0x414b28
mov eax, dword [0x42de2c]
cmp eax, dword [ebp - 0x18]
je 0x414b28
push eax
call esi
test eax, eax
je 0x414b28
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x414b28
mov eax, dword [0x42de30]
cmp eax, dword [ebp - 0x18]
je 0x414b28
push eax
call esi
test eax, eax
je 0x414b28
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42de28]
call esi
test eax, eax
je 0x414b44
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x414b46
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffa3
leave
ret
Function at 0x401007
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x428310]
mov dword [ebp - 0x28], eax
mov eax, dword [0x428314]
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [ebx + 4]
xor ecx, ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], ecx
call fcn.00401000
mov eax, dword [0x428318]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x18], eax
mov eax, dword [0x42831c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [0x2818bc4]
cmp eax, 0xfa9
jne 0x40107e
mov dword [0x2818bc0], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40108b
mov dword [0x281864c], ecx
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
add edx, esi
xor eax, edx
xor eax, dword [ebp - 0x20]
cmp dword [0x2818bc4], 0x213
mov dword [0x2818bbc], 0xf4ea3dee
mov dword [ebp - 4], eax
jne 0x4010cc
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov eax, dword [ebp - 4]
xor ecx, ecx
sub edi, eax
cmp dword [0x2818bc4], 0xc
jne 0x4010ee
lea eax, [ebp - 0x2c]
push eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
xor ecx, ecx
mov eax, edi
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
add dword [ebp - 8], 0x61c88647
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x28]
add edx, edi
xor eax, edx
xor eax, dword [ebp - 4]
sub esi, eax
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
jne 0x401052
mov dword [ebx + 4], edi
pop edi
mov dword [ebx], esi
pop esi
leave
ret
Function at 0x40112c
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040b050
mov eax, dword [0x2818bc4]
mov ecx, dword [0x2818650]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x401201
push ebx
push edi
mov ebx, ecx
mov edi, eax
cmp dword [0x2818bc4], 0x959
jne 0x4011f0
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push str.Mokigehate_xolega_viricuh_mazu_fiboy
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push str.zewaxuwawazuwuyuvivi
push esi
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push str.ozofowegad_dinomebaxedidox
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
push esi
lea eax, [ebp - 0x1000]
push eax
push esi
push str.pajebipew
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.00401007
add ebx, 8
dec edi
jne 0x401158
pop edi
pop ebx
pop esi
leave
ret