joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a68
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004049f8
test esi, esi
jne 0x402a9e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404ae8
jmp 0x402abc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040291c
mov edi, eax
test esi, esi
je 0x402abc
cmp dword [ebx], 0
je 0x402abc
dec esi
jmp 0x402aa5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031ec
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x487008], 0x8088405
inc edx
mov dword [ebx + 0x487008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403b80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x487024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c18
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403bf8
xor eax, eax
push ebp
push 0x403bf1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403c34
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403bf8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x487024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x487024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4047d8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48d04c], 0
je 0x404839
cmp word [0x48d220], 0xd7b2
jne 0x404801
cmp dword [0x48d228], 0
jbe 0x404801
mov eax, 0x48d21c
call dword [0x48d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x487094
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404860
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x487034], 0
jne 0x404855
push 0
push 0x48708c
push 0x487094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4049ac
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026f4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48d04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404974
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4069d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406a3a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404c68
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004035a8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406a24
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a41
lea eax, [ebp - 0x10]
call fcn.004049f8
ret

Function at 0x4091c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404eb8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4091e1
test al, 0x10
jne 0x4091e5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409244
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404eb8
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x409258
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404eb8
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40927a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c17c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c1b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404ae8
jmp 0x40c1be
mov eax, ebx
mov edx, esi
call fcn.00404a4c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c1c8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c1e9
mov al, byte [esp]
jmp 0x40c1eb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c870
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c6e8
mov eax, dword [0x48c264]
cmp byte [eax], 0
je 0x40c8ec
mov eax, dword [0x48bfcc]
call fcn.00402f10
call fcn.0040283c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409814
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c934
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c922
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48bf74]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48d668]
call fcn.00405ee4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40d71c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d780
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404c68
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408d04
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d787
lea eax, [ebp - 0xc]
call fcn.004049f8
ret

Function at 0x419464
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00419290
dec esi
jne 0x419486
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4195d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48d888
cmp dword [edi], 0
jne 0x419650
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x48d884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x487478
mov ecx, 2
call fcn.004028dc
mov edx, 0x4195ac
lea eax, [esi + 5]
call fcn.004195cc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004195cc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x419625
mov dword [0x48d884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41a018
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41a0ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
xor eax, eax
push ebp
push 0x41a0dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x22], 1
mov word [ebp - 0x20], 1
mov word [ebp - 0x14], 0x10
movzx eax, word [ebp - 0x20]
movzx edx, word [ebp - 0x14]
imul edx
shr eax, 3
mov word [ebp - 0x16], ax
mov dword [ebp - 0x1e], 0x3e80
movzx eax, word [ebp - 0x16]
imul dword [ebp - 0x1e]
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x12], 0
push 0
push 0
push 0
lea eax, [ebp - 0x22]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
push eax
call sub.winmm.dll_waveInOpen
test eax, eax
jne 0x41a0b6
push 0xa0000000
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.winmm.dll_mixerGetID
test eax, eax
jne 0x41a0b6
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a0e3
cmp dword [ebp - 0xc], 0
je 0x41a0db
mov eax, dword [ebp - 0xc]
push eax
call sub.winmm.dll_waveInReset
mov eax, dword [ebp - 0xc]
push eax
call sub.winmm.dll_waveInClose
ret

Function at 0x41db70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.004031cc
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x48c3d8]
cmp byte [edx + 0xc], 0
je 0x41dbd4
mov edx, dword [0x48c3c4]
cmp dword [edx], 2
jne 0x41dbd4
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x41dbd8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x41dc90
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0041db70
test al, al
je 0x41dc72
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404ae8
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x41dc72
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404eb8
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00404eb8
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404bf0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x41dc2b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41dc97
lea eax, [ebp - 0x2c]
call fcn.004049f8
lea eax, [ebp - 0xc]
call fcn.004049f8
ret

Function at 0x41de50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0041d718
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404eb8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x41deae
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48c128]
mov dl, 1
mov eax, dword [0x41d610]
call fcn.0040ca30
call fcn.004043b4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41deb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404eb8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41df10
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48c3e4]
mov dl, 1
mov eax, dword [0x41d610]
call fcn.0040ca30
call fcn.004043b4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d748
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42ab04
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
add eax, 0x18
mov edx, 0x40
call fcn.0042a054
pop ecx
pop ebp
ret

Function at 0x42afdc
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x42b0f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, dword [0x48c3c4]
cmp dword [eax], 2
jne 0x42b0c9
xor eax, eax
push ebp
push 0x42b0bf
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x48e754], 0
je 0x42b033
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42b0c9
mov dword [ebp - 0xc], 0xff
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x42afb8]
call fcn.00405df8
add esp, 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00404bf0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004087cc
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
call fcn.0042ae4c
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.004087cc
mov edx, dword [ebp - 0x18]
pop eax
call fcn.00404e04
jne 0x42b09d
mov byte [ebp - 1], 1
push 0
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x42afb8]
call fcn.00405df8
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42b0c9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b0f9
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404a1c
lea eax, [ebp - 8]
mov edx, dword [0x42afb8]
call fcn.00405e04
ret

Function at 0x42b104
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42b21a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
call fcn.004049f8
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push pe_nt_image_headers32
add byte [ebp - 0x1177b], cl
call dword [eax + 0x68]
sub byte [edx - 0x1517ffbe], dh
mov esi, 0xc085fffd
Function at 0x42bc90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x42bccc
push dword [ebp - 0x18]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00404bf0
jmp 0x42bcd9
mov eax, dword [ebp - 8]
mov edx, 0x42bce8
call fcn.00404a4c
mov esp, ebp
pop ebp
ret

Function at 0x42bcf0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42bdd9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x42bdb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004049f8
push 0x40
lea eax, [ebp - 0x50]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x50]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42bd4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42bdc3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.004049f8
jmp 0x42bda3
cmp dword [ebp - 0x10], 0
jle 0x42bd7a
mov eax, dword [ebp - 4]
mov edx, 0x42bdf0
call fcn.00404cc0
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x54]
call fcn.004099c8
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.00404cc0
mov eax, dword [ebp - 4]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
cmp dword [eax + edx*4], 0
jne 0x42bd64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42bdc3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bde0
lea eax, [ebp - 0x54]
call fcn.004049f8
ret
Function at 0x42beac
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff978
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x688], ecx
mov dword [ebp - 0x684], ecx
mov dword [ebp - 0x680], ecx
mov dword [ebp - 0x67c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42c0c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004049f8
mov eax, dword [ebp - 8]
call fcn.004049f8
mov byte [ebp - 9], 0
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x42c097
xor eax, eax
push ebp
push 0x42c084
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x415508]
call fcn.00403cb8
mov dword [ebp - 0x28], eax
mov dl, 1
mov eax, dword [0x415508]
call fcn.00403cb8
mov dword [ebp - 0x2c], eax
mov dl, 0x2c
mov eax, dword [ebp - 0x28]
call fcn.0041760c
mov dl, 0x2c
mov eax, dword [ebp - 0x2c]
call fcn.0041760c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], eax
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0x400
lea eax, [ebp - 0x678]
push eax
push 0
push 0
push 0x4004747f
mov eax, dword [ebp - 0x10]
push eax
call sub.WS2_32.DLL_WSAIoctl
inc eax
je 0x42c01b
mov eax, dword [ebp - 0x18]
mov ecx, 0x4c
cdq
idiv ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x42c017
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], 0
imul eax, dword [ebp - 0x24], 0x13
mov eax, dword [ebp + eax*4 - 0x678]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
and eax, 4
cmp eax, 4
je 0x42c00f
imul eax, dword [ebp - 0x24], 0x13
push dword [ebp + eax*4 - 0x670]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00404bf0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x38]
imul eax, dword [ebp - 0x24], 0x13
push dword [ebp + eax*4 - 0x640]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x34]
call fcn.00404bf0
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x24]
dec dword [ebp - 0x38]
jne 0x42bfac
mov byte [ebp - 9], 1
lea edx, [ebp - 0x680]
mov eax, dword [ebp - 0x28]
call fcn.00416b00
mov edx, dword [ebp - 0x680]
mov eax, dword [ebp - 4]
call fcn.00404a4c
lea edx, [ebp - 0x684]
mov eax, dword [ebp - 0x2c]
call fcn.00416b00
cmp dword [ebp - 0x684], 0
je 0x42c06a
lea edx, [ebp - 0x688]
mov eax, dword [ebp - 0x2c]
call fcn.00416b00
mov edx, dword [ebp - 0x688]
mov eax, dword [ebp - 8]
call fcn.00404a4c
mov eax, dword [ebp - 0x28]
call fcn.00403ce8
mov eax, dword [ebp - 0x2c]
call fcn.00403ce8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42c08e
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_closesocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c0c9
lea eax, [ebp - 0x688]
mov edx, 4
call fcn.00404a1c
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00404a1c
ret
Function at 0x42cf1c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049f8
xor eax, eax
push ebp
push 0x42cf66
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
lea eax, [ebp - 0x44]
push eax
call sub.wsock32.dll_gethostname
inc eax
je 0x42cf5c
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x44]
mov ecx, 0x40
call fcn.00404c68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42cf78
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e27c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, ecx
and ebx, 7
shr ecx, 3
je 0x42e2bf
mov esi, dword [edx]
xor dword [eax], esi
mov esi, dword [edx + 4]
xor dword [eax + 4], esi
mov esi, dword [edx + 8]
xor dword [eax + 8], esi
mov esi, dword [edx + 0xc]
xor dword [eax + 0xc], esi
mov esi, dword [edx + 0x10]
xor dword [eax + 0x10], esi
mov esi, dword [edx + 0x14]
xor dword [eax + 0x14], esi
mov esi, dword [edx + 0x18]
xor dword [eax + 0x18], esi
mov esi, dword [edx + 0x1c]
xor dword [eax + 0x1c], esi
add edx, 0x20
add eax, 0x20
dec ecx
jne 0x42e288
jmp dword [ebx*4 + 0x42e2c6]

Function at 0x42e34c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
jle 0x42e36d
cmp dword [ebp - 0xc], 0x100
jle 0x42e383
mov ecx, 0x42e43c
mov dl, 1
mov eax, dword [0x407b58]
call fcn.0040c938
call fcn.004043b4
xor eax, eax
mov dword [ebp - 0x10], eax
mov al, byte [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 0xc]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov edx, dword [ebp - 0x10]
mov byte [ebp + edx - 0x115], al
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x100
jne 0x42e388
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + edx]
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
movzx edx, byte [ebp + edx - 0x115]
add eax, edx
and eax, 0xff
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov al, byte [eax + edx]
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov al, byte [eax + edx]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov byte [edx + ecx], al
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov cl, byte [ebp - 0x15]
mov byte [eax + edx], cl
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x100
jne 0x42e3c0
mov edx, dword [ebp - 4]
add edx, 0x100
mov eax, dword [ebp - 4]
mov ecx, pe_nt_image_headers32
call fcn.004028dc
mov esp, ebp
pop ebp
ret