joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a550
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7727f8]
xor edx, edx
cmp eax, edx
jne 0x41a576
xor eax, eax
mov byte [eax + 0x7726f8], al
inc eax
cmp eax, 0x100
jl 0x41a55e
mov dword [0x7727f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7726f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41a607
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41a5da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41a5a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41a680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41a6d3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41a6ba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f1e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x464dc8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42f219
inc eax
mov dword [esi + 0x10], eax
jmp 0x42f32c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42f22d
mov eax, 0xffffffc7
jmp 0x42f32e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42f23e
cmp dword [esi + 8], eax
jne 0x42f22d
cmp dword [esi + 8], eax
jne 0x42f257
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42f257
mov eax, 0xffffffc7
jmp 0x42f32e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42f26b
push eax
mov ecx, ebx
call fcn.0042ea10
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004019f0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42f29c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401a10
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042e180
test eax, eax
mov dword [esp + 0x38], eax
je 0x42f2cf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x748e30
call fcn.00401bf0
mov eax, dword [esp + 0x38]
jmp 0x42f32e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042f040
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42f313
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042f060
mov esi, eax
test esi, esi
jne 0x42f343
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042f040
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42f2e5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x748e30
call fcn.00401bf0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x748e30
call fcn.00401bf0
mov eax, esi
jmp 0x42f32e
Function at 0x43b930
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43b963
push esi
call fcn.0043ea20
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43b95c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43b9e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43b9d2
mov eax, dword [esi + 8]
test eax, eax
je 0x43b987
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43b9ce
cmp eax, 2
je 0x43b9d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43b97a
cmp eax, 3
je 0x43b9ad
cmp eax, 1
jne 0x43b97a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43b97a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43b97a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043ba10
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43b9f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043ba10
add esp, 4
pop esi
ret
Function at 0x40562c
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 0x405692
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.00403ba0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004028d4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40567c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405699
lea eax, [ebp - 0x10]
call fcn.00403930
ret

Function at 0x406940
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov esi, edx
mov ebx, eax
lea edi, [ebp - 4]
xor eax, eax
push ebp
push 0x406a3b
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406994
push 0x105
lea eax, [ebp - 0x10d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x10d]
mov eax, esi
call fcn.00403a20
jmp 0x406a22
call sub.kernel32.dll_GetCommandLineA_1
mov dword [edi], eax
mov eax, dword [edi]
call fcn.004068c8
mov dword [edi], eax
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi]
call fcn.004068f0
mov dword [edi], eax
test ebx, ebx
je 0x4069c2
dec ebx
test ebx, ebx
jl 0x4069c2
mov eax, dword [edi]
cmp eax, dword [ebp - 8]
jne 0x40699b
push esi
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 8]
call fcn.00403b28
mov eax, dword [ebp - 0x114]
mov ecx, dword [edi]
sub ecx, dword [ebp - 8]
mov edx, 1
call fcn.00403e2c
mov eax, dword [esi]
call fcn.00403bcc
cmp eax, 2
jl 0x406a22
mov eax, dword [esi]
cmp byte [eax], 0x22
jne 0x406a22
mov eax, dword [esi]
call fcn.00403bcc
mov edx, dword [esi]
cmp byte [edx + eax - 1], 0x22
jne 0x406a22
push esi
mov eax, dword [esi]
call fcn.00403bcc
mov ecx, eax
sub ecx, 2
mov eax, dword [esi]
mov edx, 2
call fcn.00403e2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a42
lea eax, [ebp - 0x114]
call fcn.00403930
ret

Function at 0x407758
Capabilities:
Create thread

Disassembly:
push ebx
mov eax, dword [0x42a964]
mov byte [eax], 1
mov edx, dword [0x405db4]
xor eax, eax
call fcn.00409678
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x407748
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
ret

Function at 0x407820
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x40783b
mov byte [ebx + 0x18], 1
pop ebx
ret
cmp word [ebx + 0x2c], 0
je 0x40784a
mov edx, ebx
mov eax, dword [ebx + 0x2e]
call dword [ebx + 0x2a]
pop ebx
ret

Function at 0x40784c
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_TerminateThread
mov byte [ebx + 0x19], 1
pop ebx
ret
Function at 0x40a0d4
Capabilities:
Get file attributes

Disassembly:
call fcn.00406048
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x40a0e8
dec eax
and al, 0x10
sete al
ret

Function at 0x40b1b0
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x37], 0xef
test dl, dl
je 0x40b1bc
or byte [eax + 0x37], 0x10
mov byte [eax + 0x52], dl
mov ecx, dword [eax + 0x28]
jecxz 0x40b1d8
push eax
je 0x40b1d9
call dword [0x42a12c]
pop eax
push 5
push dword [eax + 0x28]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x174], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x42a12c]
ret

Function at 0x40c610
Capabilities:
Capture screenshot

Disassembly:
push ebx
mov ebx, eax
call fcn.0040c4a4
je 0x40c642
mov eax, ebx
push edx
call fcn.00408ee4
pop edx
cmp eax, edx
je 0x40c642
test edx, edx
mov eax, ebx
jne 0x40c634
pop ebx
inc edx
jmp fcn.00408ed4
mov byte [ebx + 0x49], dl
xor edx, edx
call fcn.00408ed4
xchg ebx, eax
cmp eax, 0
pop ebx
jne fcn.0040c660
ret
Function at 0x41067c
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 0x4106b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403a20
jmp 0x4106be
mov eax, ebx
mov edx, esi
call fcn.00403984
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4106c8
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 0x4106e9
mov al, byte [esp]
jmp 0x4106eb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x410d70
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x410be8
mov eax, dword [0x42ab10]
cmp byte [eax], 0
je 0x410dec
mov eax, dword [0x42a9a8]
call fcn.00402834
call fcn.00402698
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.0040e03c
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 0x410e34
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x410e22
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x42a96c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x42b668]
call fcn.00404e18
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 0x411b18
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 0x411b7c
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.00403ba0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040dd04
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411b83
lea eax, [ebp - 0xc]
call fcn.00403930
ret
Function at 0x412ce0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x412eca
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x412d14
mov eax, dword [ebp - 8]
call fcn.00403930
jmp 0x412eb4
mov eax, dword [ebp - 4]
call fcn.00403bcc
mov dword [ebp - 0xc], eax
test byte [ebp - 0xc], 3
je 0x412d53
push 0x412ee0
push dword [ebp - 4]
push 0x412f04
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403c8c
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x40d030]
call fcn.00410e38
call fcn.00403370
mov eax, dword [ebp - 0xc]
shr eax, 2
lea eax, [eax + eax*2]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
call fcn.00403a20
mov ebx, 1
mov esi, 1
cmp ebx, dword [ebp - 0xc]
jg 0x412e89
mov edx, 4
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + ebx - 1]
cmp ecx, 0x3d
jg 0x412da8
je 0x412dee
sub ecx, 0x2b
je 0x412de4
sub ecx, 4
je 0x412de9
dec ecx
sub ecx, 0xa
jb 0x412dd6
jmp 0x412df3
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x412dba
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x412dc8
jmp 0x412df3
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
sub cl, 0x41
mov byte [eax], cl
jmp 0x412e1e
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
sub cl, 0x47
mov byte [eax], cl
jmp 0x412e1e
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
add cl, 4
mov byte [eax], cl
jmp 0x412e1e
mov byte [eax], 0x3e
jmp 0x412e1e
mov byte [eax], 0x3f
jmp 0x412e1e
mov byte [eax], 0
jmp 0x412e1e
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx - 1]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, 0x412f14
mov dl, 1
mov eax, dword [0x40d030]
call fcn.00410e74
call fcn.00403370
inc ebx
inc eax
dec edx
jne 0x412d87
mov eax, dword [ebp - 8]
call fcn.00403e24
xor edx, edx
mov dl, byte [ebp - 0x14]
shl edx, 2
xor ecx, ecx
mov cl, byte [ebp - 0x13]
shr ecx, 4
or edx, ecx
mov byte [eax + esi - 1], dl
mov eax, dword [ebp - 8]
call fcn.00403e24
xor edx, edx
mov dl, byte [ebp - 0x13]
shl edx, 4
xor ecx, ecx
mov cl, byte [ebp - 0x12]
shr ecx, 2
or edx, ecx
mov byte [eax + esi], dl
mov eax, dword [ebp - 8]
call fcn.00403e24
xor edx, edx
mov dl, byte [ebp - 0x12]
shl edx, 6
xor ecx, ecx
mov cl, byte [ebp - 0x11]
or edx, ecx
mov byte [eax + esi + 1], dl
add esi, 3
cmp ebx, dword [ebp - 0xc]
jle 0x412d7f
mov edx, dword [ebp - 4]
mov eax, 0x412f38
call fcn.00403eb4
mov ebx, eax
test ebx, ebx
je 0x412eb4
mov eax, dword [ebp - 0xc]
sub eax, ebx
inc eax
mov ebx, eax
mov edx, dword [ebp - 0x10]
sub edx, ebx
inc edx
mov eax, dword [ebp - 8]
mov ecx, ebx
call fcn.00403e6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412ed1
lea eax, [ebp - 0x18]
call fcn.00403930
ret

Function at 0x413880
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00402898
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret
Function at 0x41c888
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
mov byte [0x42a768], 1
push esp
xor edx, edx
mov al, 1
call fcn.00405ce0
push eax
call sub.wsock32.dll_WSAStartup
test eax, eax
sete al
add esp, 0x190
ret

Function at 0x41c8c4
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x10c], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403dbc
xor eax, eax
push ebp
push 0x41caf9
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10c]
mov eax, dword [ebp - 4]
call fcn.00409f1c
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.00409ee4
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 4]
call fcn.004039c8
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.004085ec
test eax, eax
jl 0x41c975
lea ecx, [ebp - 0x110]
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.004086e0
cmp dword [ebp - 0x110], 0
je 0x41c975
mov ecx, esi
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.004086e0
jmp 0x41cac3
cmp byte [0x42a768], 0
jne 0x41c98a
mov eax, esi
call fcn.00403930
jmp 0x41cac3
lea eax, [ebp - 0x104]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00402898
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x104]
mov edx, dword [ebp - 4]
call fcn.00409fd0
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x41ca49
mov edx, dword [eax + 0xc]
test edx, edx
je 0x41ca40
mov edi, dword [edx]
test edi, edi
je 0x41ca37
push esi
xor eax, eax
mov al, byte [edi]
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x12c], 0
xor eax, eax
mov al, byte [edi + 1]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0
xor eax, eax
mov al, byte [edi + 2]
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x11c], 0
xor eax, eax
mov al, byte [edi + 3]
mov dword [ebp - 0x118], eax
mov byte [ebp - 0x114], 0
lea edx, [ebp - 0x130]
mov ecx, 3
mov eax, 0x41cb10
call fcn.0040a068
jmp 0x41ca50
mov eax, esi
call fcn.00403930
jmp 0x41ca50
mov eax, esi
call fcn.00403930
jmp 0x41ca50
mov eax, esi
call fcn.00403930
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.004085ec
test eax, eax
jl 0x41ca6e
mov ecx, dword [esi]
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.0040878c
jmp 0x41ca96
push dword [ebp - 4]
push 0x41cb24
push dword [esi]
lea eax, [ebp - 0x134]
mov edx, 3
call fcn.00403c8c
mov edx, dword [ebp - 0x134]
mov eax, dword [ebx + 0x40]
call fcn.0040be90
cmp dword [esi], 0
jne 0x41cac3
lea eax, [ebp - 0x138]
mov ecx, 0x41cb30
mov edx, dword [ebp - 4]
call fcn.00403c18
mov edx, dword [ebp - 0x138]
mov eax, dword [0x42a9ec]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
call fcn.0041e4b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cb00
lea eax, [ebp - 0x138]
mov edx, 2
call fcn.00403954
lea eax, [ebp - 0x110]
mov edx, 3
call fcn.00403954
lea eax, [ebp - 4]
call fcn.00403930
ret
Function at 0x41cdd8
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403dbc
xor eax, eax
push ebp
push 0x41cf42
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x41ce1e
inc eax
jne 0x41ce4c
push 0x41cf5c
push dword [esi + 0xc]
push 0x41cf78
lea edx, [ebp - 0x18]
mov eax, edi
call fcn.00409e30
push dword [ebp - 0x18]
lea eax, [esi + 4]
mov edx, 4
call fcn.00403c8c
xor ebx, ebx
jmp 0x41cf24
push 4
lea eax, [esi + 0x4c]
push eax
push 0x1005
push 0xffff
mov eax, dword [esi + 8]
push eax
call sub.wsock32.dll_setsockopt
inc eax
je 0x41ce84
push 4
lea eax, [esi + 0x4c]
push eax
push 0x1006
push 0xffff
mov eax, dword [esi + 8]
push eax
call sub.wsock32.dll_setsockopt
inc eax
jne 0x41cea5
lea eax, [esi + 4]
mov edx, 0x41cf84
call fcn.00403984
mov eax, dword [esi + 8]
push eax
call sub.wsock32.dll_closesocket
mov dword [esi + 8], 0xffffffff
xor ebx, ebx
jmp 0x41cf24
cmp dword [esi + 0x58], 0
je 0x41ced2
mov eax, dword [esi + 0x58]
call fcn.00403dcc
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x10], eax
mov ax, word [esi + 0x5c]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x12], ax
mov word [ebp - 0x14], 2
jmp 0x41cef3
mov eax, dword [ebp - 4]
call fcn.00403dcc
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x10], eax
push edi
call sub.wsock32.dll_htons
mov word [ebp - 0x12], ax
mov word [ebp - 0x14], 2
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi + 8]
push eax
call sub.wsock32.dll_connect
inc eax
jne 0x41cf24
lea eax, [esi + 4]
mov edx, 0x41cfa4
call fcn.00403984
mov eax, dword [esi + 8]
push eax
call sub.wsock32.dll_closesocket
mov dword [esi + 8], 0xffffffff
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cf49
lea eax, [ebp - 0x18]
call fcn.00403930
lea eax, [ebp - 4]
call fcn.00403930
ret
Function at 0x4238b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffef8
mov ebx, eax
lea esi, [esp + 4]
mov eax, ebx
call fcn.00403930
push esp
push 0x20019
push 0
push 0x423998
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42392a
xor eax, eax
mov dword [esi], eax
lea eax, [esp + 8]
mov byte [eax], 0
inc dword [esi]
inc eax
cmp dword [esi], 0x100
jne 0x4238e8
mov dword [esi], 0xff
push esi
lea eax, [esp + 0xc]
push eax
push esi
push 0
push 0x4239c0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x42392a
mov eax, ebx
lea edx, [esp + 8]
mov ecx, pe_nt_image_headers32
call fcn.00403ba0
jmp 0x42398d
push esp
push 0x20019
push 0
push 0x423998
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42398d
xor eax, eax
mov dword [esi], eax
lea eax, [esp + 8]
mov byte [eax], 0
inc dword [esi]
inc eax
cmp dword [esi], 0x100
jne 0x42394d
mov dword [esi], 0xff
push esi
lea eax, [esp + 0xc]
push eax
push esi
push 0
push 0x4239c0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x42398d
mov eax, ebx
lea edx, [esp + 8]
mov ecx, pe_nt_image_headers32
call fcn.00403ba0
add esp, 0x108
pop esi
pop ebx
ret