joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401340
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create raw socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.004014a0
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea ebp, [ebx + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, ebp
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov dword [ebx + 0xc0], ecx
mov dword [ebx + 0xc4], esi
call dword [sym.imp.WS2_32.dll_socket]
or edi, 0xffffffff
mov dword [ebx + 0x38], eax
cmp eax, edi
jne 0x4013a8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
push esi
push eax
call fcn.004011d0
xor edx, edx
add esp, 8
mov dword [esp + 0x10], edx
mov word [esp + 0x10], 2
mov dword [esp + 0x14], edx
push ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x4013f0
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x401431
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
mov cx, word [ebx + 0xc0]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
mov eax, dword [ebx + 0x38]
lea edx, [esp + 0x10]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, edi
jne 0x40144a
mov ecx, dword [ebx + 0x38]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0x38], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
mov eax, dword [ebx + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0x38], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
push 8
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, dword [ebx + 0x38]
add esp, 4
lea esi, [ebx + 4]
mov dword [eax], edx
push eax
push 0x4015a0
mov ecx, esi
mov dword [eax + 4], ebx
call fcn.00404520
mov ecx, esi
call fcn.00404480
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 0xc
Function at 0x401d40
Capabilities:
Enumerate pe sections
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405280
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x41658c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.VirtualAlloc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [ebp - 0x24], edx
xor edx, edx
mov dx, word [eax + 0x14]
mov dword [ebp - 0x20], 0
lea edi, [edx + eax + 0x18]
mov dword [ebp - 0x18], edi
mov eax, dword [ecx]
xor ecx, ecx
mov cx, word [eax + 6]
mov eax, dword [ebp - 0x20]
cmp eax, ecx
jge 0x401f1d
push 0x4164b8
call ebx
push 0x4164b8
call ebx
mov eax, dword [edi + 0x10]
push 0x4164b8
test eax, eax
jne 0x401e4c
call ebx
push 0x4164b8
call ebx
mov edx, dword [ebp + 0xc]
push 0x4164b8
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x1c], eax
call ebx
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x401e40
push 0x4164b8
call ebx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [edi + 0xc]
push 4
push 0x1000
push ecx
mov ecx, dword [ebp - 0x24]
add edx, ecx
push edx
call dword [ebp - 0x28]
push 0xa
mov dword [ebp - 0x14], eax
call esi
push 0xa
call esi
mov eax, dword [ebp - 0x14]
push 0x4164b8
mov dword [edi + 8], eax
call ebx
push 0xa
call esi
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0x18]
push 0x4164b8
call ebx
jmp 0x401f08
call ebx
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
push 4
push 0x1000
push eax
mov eax, dword [ebp - 0x24]
add ecx, eax
push ecx
call dword [ebp - 0x28]
push 0xa
mov dword [ebp - 0x14], eax
call esi
push 0xa
call esi
lea edx, [ebp - 0x2c]
push 0x406c90
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0x3a
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0x14]
mov eax, ecx
add esi, edi
mov edi, dword [ebp - 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0x401eb1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
ret
mov ecx, dword [ebp - 0x20]
inc ecx
add edi, 0x28
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
jmp 0x401da0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401f30
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 0xa
call esi
mov ebx, dword [esp + 0x18]
xor ecx, ecx
push 0xa
mov eax, dword [ebx]
mov cx, word [eax + 0x14]
lea edi, [ecx + eax + 0x18]
call esi
mov ebx, dword [ebx]
xor ebp, ebp
cmp word [ebx + 6], bp
jbe 0x401ff7
add edi, 0x24
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401f97
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [0x416588]
jmp 0x401fdf
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x415a78]
je 0x401fb1
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401fcc
test al, 0x40
je 0x401fc3
mov ecx, dword [ebx + 0x20]
jmp 0x401fca
test al, 0x80
je 0x401fdf
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x401fdf
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [0x416584]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x401f64
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x402080
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
push ebx
mov al, 0x65
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
push esi
mov byte [esp + 0x29], al
mov byte [esp + 0x33], al
push edi
mov edi, dword [esp + 0x40]
mov al, 0x73
mov byte [esp + 0x38], al
mov byte [esp + 0x39], al
mov eax, dword [0x41658c]
mov ebp, dword [edi + 4]
push str.IsBadReadPtr
push eax
mov dword [esp + 0x18], ebp
mov byte [esp + 0x34], 0x47
mov byte [esp + 0x36], 0x74
mov byte [esp + 0x37], 0x50
mov byte [esp + 0x38], 0x72
mov byte [esp + 0x39], 0x6f
mov byte [esp + 0x3a], 0x63
mov byte [esp + 0x3b], 0x41
mov byte [esp + 0x3c], 0x64
mov byte [esp + 0x3d], 0x64
mov byte [esp + 0x3e], 0x72
mov byte [esp + 0x42], 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
mov dword [esp + 0x1c], eax
call esi
mov edx, dword [0x41658c]
lea ecx, [esp + 0x2c]
push ecx
push edx
call ebx
push 0xa
mov dword [esp + 0x44], eax
call esi
mov cl, 0x4c
mov al, 0x61
push 0xa
mov byte [esp + 0x20], cl
mov byte [esp + 0x21], 0x6f
mov byte [esp + 0x22], al
mov byte [esp + 0x23], 0x64
mov byte [esp + 0x24], cl
mov byte [esp + 0x25], 0x69
mov byte [esp + 0x26], 0x62
mov byte [esp + 0x27], 0x72
mov byte [esp + 0x28], al
mov byte [esp + 0x29], 0x72
mov byte [esp + 0x2a], 0x79
mov byte [esp + 0x2b], 0x41
mov byte [esp + 0x2c], 0
call esi
mov eax, dword [edi]
add eax, 0x80
mov ecx, dword [eax + 4]
test ecx, ecx
jbe 0x402258
mov esi, dword [eax]
push 0x14
add esi, ebp
push esi
mov dword [esp + 0x1c], esi
call dword [esp + 0x20]
test eax, eax
jne 0x402258
mov eax, dword [esi + 0xc]
test eax, eax
je 0x402258
mov ecx, dword [0x41658c]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [esp + 0x48]
mov edx, dword [esi + 0xc]
add edx, ebp
push edx
call eax
mov edx, dword [edi + 8]
mov ebx, eax
mov eax, dword [edi + 0xc]
lea ecx, [eax*4 + 4]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
mov dword [edi + 8], eax
test eax, eax
je 0x40224e
cmp ebx, 0xffffffff
je 0x40224e
mov ecx, dword [edi + 0xc]
mov dword [eax + ecx*4], ebx
mov edx, dword [edi + 0xc]
inc edx
mov dword [edi + 0xc], edx
mov eax, dword [esi]
test eax, eax
je 0x4021ed
mov esi, dword [esi + 0x10]
add ebp, eax
add esi, dword [esp + 0x10]
jmp 0x4021f4
mov edx, dword [esi + 0x10]
add ebp, edx
mov esi, ebp
mov eax, dword [ebp]
test eax, eax
je 0x40222b
test eax, 0x80000000
je 0x40220a
and eax, 0xffff
push eax
jmp 0x402213
mov ecx, dword [esp + 0x10]
lea edx, [eax + ecx + 2]
push edx
push ebx
call dword [esp + 0x48]
test eax, eax
mov dword [esi], eax
je 0x40224e
mov eax, dword [ebp + 4]
add ebp, 4
add esi, 4
test eax, eax
jne 0x4021fb
mov eax, dword [esp + 0x14]
push 0x14
add eax, 0x14
push eax
mov dword [esp + 0x1c], eax
call dword [esp + 0x20]
test eax, eax
jne 0x402258
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x402182
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret
Function at 0x402270
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov ebp, dword [eax + 4]
mov eax, dword [eax]
add eax, 0x78
push edi
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4022ef
mov esi, dword [eax]
push 0x416014
add esi, ebp
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4022ef
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4022ef
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x24]
add edi, ebp
add ebx, ebp
test eax, eax
mov dword [esp + 0x14], 0
jbe 0x4022ef
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
add eax, ebp
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x4022f6
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x18]
inc eax
add edi, 4
add ebx, 2
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x4022c2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
xor eax, eax
mov ax, word [ebx]
cmp eax, 0xffffffff
je 0x4022ef
cmp eax, dword [esi + 0x14]
ja 0x4022ef
mov edx, dword [esi + 0x1c]
pop edi
pop esi
lea eax, [edx + eax*4]
mov eax, dword [eax + ebp]
add eax, ebp
pop ebp
pop ebx
ret
Function at 0x402320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x3c
mov ecx, dword [0x41658c]
push ebx
push ebp
push esi
lea eax, [esp + 0x20]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov bl, 0x65
push eax
push ecx
mov byte [esp + 0x2c], 0x56
mov byte [esp + 0x2d], 0x69
mov byte [esp + 0x2e], 0x72
mov byte [esp + 0x2f], 0x74
mov byte [esp + 0x30], 0x75
mov byte [esp + 0x31], 0x61
mov byte [esp + 0x32], 0x6c
mov byte [esp + 0x33], 0x46
mov byte [esp + 0x34], 0x72
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], 0
call edi
mov dword [esp + 0x10], eax
mov al, 0x73
mov byte [esp + 0x44], al
mov byte [esp + 0x45], al
mov eax, dword [0x41658c]
lea edx, [esp + 0x3c]
push edx
push eax
mov byte [esp + 0x44], 0x47
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], 0x74
mov byte [esp + 0x47], 0x50
mov byte [esp + 0x48], 0x72
mov byte [esp + 0x49], 0x6f
mov byte [esp + 0x4a], 0x63
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4e], 0x48
mov byte [esp + 0x4f], bl
mov byte [esp + 0x50], 0x61
mov byte [esp + 0x51], 0x70
mov byte [esp + 0x52], 0
call edi
mov esi, dword [esp + 0x50]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0x14], eax
je 0x4024cf
cmp dword [esi + 0x10], ebp
je 0x4023f9
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push ebp
push ebp
mov edx, dword [ecx + 0x28]
push eax
add edx, eax
call edx
mov dword [esi + 0x10], ebp
mov ecx, dword [0x41658c]
lea eax, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x38], 0x46
mov byte [esp + 0x39], 0x72
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], 0x4c
mov byte [esp + 0x3d], 0x69
mov byte [esp + 0x3e], 0x62
mov byte [esp + 0x3f], 0x72
mov byte [esp + 0x40], 0x61
mov byte [esp + 0x41], 0x72
mov byte [esp + 0x42], 0x79
mov byte [esp + 0x43], 0
call edi
mov dword [esp + 0x50], eax
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x402478
mov eax, dword [esi + 0xc]
test eax, eax
jle 0x40246b
mov edx, dword [esi + 8]
mov eax, dword [edx + ebp*4]
cmp eax, 0xffffffff
je 0x402463
push eax
call dword [esp + 0x54]
mov eax, dword [esi + 0xc]
inc ebp
cmp ebp, eax
jl 0x402453
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [0x41658c]
lea ecx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x20], 0x48
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], 0x61
mov byte [esp + 0x23], 0x70
mov byte [esp + 0x24], 0x46
mov byte [esp + 0x25], 0x72
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], 0
call edi
mov edi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4024c5
push 0x8000
push 0
push eax
call dword [esp + 0x1c]
push esi
push 0
call dword [esp + 0x1c]
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x403770
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4037d2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x4039e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x403ad4
lea ecx, [esp + 0x10]
push ecx
push str..htm
push connect
mov ecx, edi
call fcn.00403770
test eax, eax
jne 0x403ad4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push connect
mov ecx, edi
call fcn.00403770
test eax, eax
jne 0x403ad4
lea edx, [esp + 0x10]
push str.__1_
push edx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x403aa5
lea eax, [esp + 0x10]
push 0x416458
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x403aa5
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x403aa8
mov byte [esi], 0
push 0x416454
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x404480
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4044b2
mov eax, dword [esi + 4]
test eax, eax
je 0x404496
call fcn.004044c0
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x404300
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
pop esi
ret
Function at 0x4046a0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
call fcn.004047a0
mov eax, dword [esp + 0x18]
push 0
push 1
push 2
mov dword [esi + 8], eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x40476c
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call fcn.004011d0
mov dx, word [esi + 8]
add esp, 8
mov word [esp + 4], 2
mov dword [esp + 8], 0
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 4]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40475b
mov eax, dword [esi + 4]
push bind
push eax
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x40473b
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
xor eax, eax
pop esi
add esp, 0x10
ret 8
push edi
lea edi, [esi + 0xc]
push esi
push 0x4049e0
mov ecx, edi
call fcn.00404520
mov ecx, edi
call fcn.00404480
mov eax, dword [esi + 0x10]
pop edi
test eax, eax
jne 0x404775
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov eax, 1
pop esi
add esp, 0x10
ret 8

Function at 0x4047a0
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4054fb
push eax
mov dword fs:[0], esp
sub esp, 0x150
push esi
mov esi, ecx
call fcn.00404790
test eax, eax
je 0x40487b
mov eax, dword [esi + 0x40]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [esp + 0xd4]
push 0x81
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [esp + 8]
call fcn.00401260
mov edx, dword [esi + 8]
push 0
lea eax, [esp + 0xd8]
push edx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x16c], 0
call fcn.00401340
lea ecx, [esp + 8]
call fcn.004014a0
or edi, 0xffffffff
lea ecx, [esp + 8]
mov dword [esp + 0x160], edi
call fcn.004012d0
lea ecx, [esi + 0xc]
call fcn.004044c0
mov eax, dword [esi + 4]
cmp eax, edi
je 0x404849
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], edi
mov ecx, esi
call fcn.00404920
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jbe 0x404869
push 0x32
call edi
mov ecx, esi
call fcn.00404920
test eax, eax
ja 0x40485a
push 0xc8
call edi
mov ecx, dword [esi + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop edi
mov ecx, dword [esp + 0x154]
pop esi
mov dword fs:[0], ecx
add esp, 0x15c
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.00401507
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x43ec00
Capabilities:
Get hostname

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x43ec24
mov esi, dword [esp + 0xc]
test esi, esi
je 0x43ec24
push edi
push esi
mov byte [esi], 0
call sub.nutsock4.dll_gethostname
add esp, 8
mov byte [esi + edi - 1], 0
pop edi
pop esi
ret

Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x859370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x85938e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x882074
push ecx
mov edi, eax
call fcn.0086d198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8593cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0086d02e
push esi
call fcn.0086cfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret