joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45fd20
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x45fd69
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4601e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48f270
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0045fd90
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045fe10
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045fe10
lea ecx, [esi + 0xc]
call fcn.0047e14e
lea ecx, [esi + 0x10]
call fcn.0047e14e
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004613a0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004613a0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004613a0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0047e1c3
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047e1c3
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x462770
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x4b642c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x462783
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4627c4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x4b64d4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4627f6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4627fa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4627eb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x462818
mov bl, byte [esp + ecx + 0x4c]
jmp 0x46281c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x46280d
xor ecx, ecx
mov eax, 0x4b643c
xor ebx, ebx
mov bl, byte [ecx + 0x4b64e4]
cmp byte [esp + ebx + 0x14], 0
je 0x462847
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x4b64fc]
cmp byte [esp + ebx + 0x14], 0
je 0x46285e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x46282e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4627b7
lea edx, [esp + 0x84]
push edx
call fcn.004628a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x48067d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4806b5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047e66a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047e642
jmp 0x4806c1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x481d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x481db2
call fcn.00487b19
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x481db2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x481da9
xor eax, eax
jmp 0x481dba
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00481dc0
pop edi
pop esi
pop ebx
ret 4

Function at 0x488049
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x488077
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x488095
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00487faf
jmp 0x488095
mov eax, dword [esi + 0x14]
test eax, eax
je 0x488095
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00487faf
test edi, edi
mov eax, edi
jne 0x48807f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4ddd28
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push edi
push ecx
mov eax, 0x18c
call fcn.006021b0
mov ecx, dword [esp + 0x18c]
mov edi, ecx
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [edi + 0x1b], eax
movzx eax, word [0x64715c]
push eax
call sub.WSOCK32.dll_htons
push 0
call sub.WSOCK32.dll_htonl
mov dword [0x64715c], 0
add esp, 0x190
pop edi
ret 4

Function at 0x4ddd98
Capabilities:
Delete file
Query or enumerate registry value

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 8
mov esi, ecx
mov eax, dword [esi + 0x23]
test eax, eax
jne 0x4dddb0
add esp, 8
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp], 0
mov ecx, 0x801
call fcn.004dbd80
mov ebp, eax
push dword [0x64715c]
push 0x74e014
push str._s__d
push ebp
call fcn.00602336
add esp, 0x10
push 1
call fcn.005caf52
push ebp
call fcn.005caf28
push 2
call fcn.005caf52
push ebp
call fcn.005caf28
mov dword [esp], 0
lea ebx, [esp]
push ebx
push 1
push section..data1
call fcn.005caf3d
lea ebx, [esp + 4]
push ebx
push 0x20019
push 0
push str.SOFTWAREODBCODBC.INIODBC_File_DSN
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ddee0
mov dword [esp], 0x801
mov ecx, 0x801
call fcn.004dbd80
mov ebx, eax
xor edx, edx
lea eax, [esp]
push eax
push ebx
push edx
push edx
push str.DefaultDSNDir
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ddecf
mov edi, ebx
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4dde74
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x4dde6c
mov edx, eax
mov dword [esp], edx
lea eax, [ebx + edx]
cmp byte [edx + ebx - 1], 0x5c
je 0x4dde92
lea eax, [edx + 1]
mov dword [esp], eax
mov byte [ebx + edx], 0x5c
mov eax, dword [esp]
add eax, ebx
mov byte [eax], 0
mov edi, ebx
mov edx, ebp
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x4ddea3
mov edx, str..dsn
mov edi, ebx
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x4ddebe
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call fcn.004dbc10
mov ecx, ebp
call fcn.004dbc10
mov dword [esi + 0x23], 0
add esp, 8
pop ebx
pop ebp
pop esi
pop edi
ret
Function at 0x5d7610
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
test edi, edi
je 0x5d7671
mov al, byte [edi]
test al, al
je 0x5d7671
push ebx
push ebp
mov ebx, 0x100
movsx eax, al
or eax, ebx
mov ebp, esi
mov edx, eax
mov ecx, eax
shr edx, 2
and edx, 0xf
and ecx, 0xf
xor edx, ecx
mov ecx, 0x20
sub ecx, edx
add ebx, 0x100
shr ebp, cl
mov ecx, edx
mov edx, eax
imul edx, eax
shl esi, cl
mov al, byte [edi + 1]
or ebp, esi
xor ebp, edx
inc edi
test al, al
mov esi, ebp
jne 0x5d7629
mov eax, esi
pop ebp
shr eax, 0x10
pop ebx
xor eax, esi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x6027d9
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x640380
call fcn.00607964
mov edi, 0x94
mov eax, edi
call fcn.006021b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x664868], ecx
mov eax, dword [esi + 4]
mov dword [0x664874], eax
mov edx, dword [esi + 8]
mov dword [0x664878], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x66486c], esi
cmp ecx, 2
je 0x602839
or esi, 0x8000
mov dword [0x66486c], esi
shl eax, 8
add eax, edx
mov dword [0x664870], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x602874
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x602874
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x60288c
cmp eax, 0x20b
je 0x602879
mov dword [ebp - 0x1c], esi
jmp 0x6028a0
cmp dword [ecx + 0x84], 0xe
jbe 0x602874
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x60289a
cmp dword [ecx + 0x74], 0xe
jbe 0x602874
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0060490a
pop ecx
test eax, eax
jne 0x6028cc
cmp dword [0x664854], 1
jne 0x6028b9
call fcn.00607127
push 0x1c
call fcn.00606fb0
push 0xff
call fcn.00602c34
pop ecx
pop ecx
call fcn.006078dc
mov dword [ebp - 4], esi
call fcn.00607731
test eax, eax
jge 0x6028e5
push 0x1b
call fcn.006027b4
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x74d6f4], eax
call fcn.0060760f
mov dword [0x66484c], eax
call fcn.0060756d
test eax, eax
jge 0x60290b
push 8
call fcn.006027b4
pop ecx
call fcn.0060733a
test eax, eax
jge 0x60291c
push 9
call fcn.006027b4
pop ecx
call fcn.00602c64
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x60292f
push eax
call fcn.006027b4
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.006072d1
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x602950
movzx eax, word [ebp - 0x34]
jmp 0x602953
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00401150
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x602971
push edi
call fcn.00602d8b
call fcn.00602dad
jmp 0x6029a3
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0060799f
ret
Function at 0x404910
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 0x404976
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.00403998
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004027e8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404960
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40497d
lea eax, [ebp - 0x10]
call fcn.00403734
ret

Function at 0x405974
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 0x405a6f
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x4059c8
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.00403824
jmp 0x405a56
call sub.kernel32.dll_GetCommandLineA_1
mov dword [edi], eax
mov eax, dword [edi]
call fcn.004058fc
mov dword [edi], eax
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi]
call fcn.00405924
mov dword [edi], eax
test ebx, ebx
je 0x4059f6
dec ebx
test ebx, ebx
jl 0x4059f6
mov eax, dword [edi]
cmp eax, dword [ebp - 8]
jne 0x4059cf
push esi
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 8]
call fcn.0040392c
mov eax, dword [ebp - 0x114]
mov ecx, dword [edi]
sub ecx, dword [ebp - 8]
mov edx, 1
call fcn.00403c24
mov eax, dword [esi]
call fcn.004039c4
cmp eax, 2
jl 0x405a56
mov eax, dword [esi]
cmp byte [eax], 0x22
jne 0x405a56
mov eax, dword [esi]
call fcn.004039c4
mov edx, dword [esi]
cmp byte [edx + eax - 1], 0x22
jne 0x405a56
push esi
mov eax, dword [esi]
call fcn.004039c4
mov ecx, eax
sub ecx, 2
mov eax, dword [esi]
mov edx, 2
call fcn.00403c24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a76
lea eax, [ebp - 0x114]
call fcn.00403734
ret

Function at 0x405b4c
Capabilities:
Create thread

Disassembly:
push ebx
mov eax, dword [0x419794]
mov byte [eax], 1
mov edx, dword [0x405028]
xor eax, eax
call fcn.00407834
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x405b3c
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
ret

Function at 0x405c14
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 0x405c2f
mov byte [ebx + 0x18], 1
pop ebx
ret
cmp word [ebx + 0x2c], 0
je 0x405c3e
mov edx, ebx
mov eax, dword [ebx + 0x2e]
call dword [ebx + 0x2a]
pop ebx
ret

Function at 0x405c40
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 0x4081cc
Capabilities:
Get file attributes

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

Function at 0x4092a8
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x37], 0xef
test dl, dl
je 0x4092b4
or byte [eax + 0x37], 0x10
mov byte [eax + 0x52], dl
mov ecx, dword [eax + 0x28]
jecxz 0x4092d0
push eax
je 0x4092d1
call dword [0x41911c]
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 [0x41911c]
ret

Function at 0x40c228
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 0x40c261
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403824
jmp 0x40c26a
mov eax, ebx
mov edx, esi
call fcn.00403788
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c91c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c794
mov eax, dword [0x419900]
cmp byte [eax], 0
je 0x40c998
mov eax, dword [0x4197d0]
call fcn.00402748
call fcn.00402624
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.0040b71c
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 0x40c9e0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c9ce
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41979c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41a660]
call fcn.00404360
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 0x40d38c
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 0x40d3f0
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.00403998
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040b5f0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d3f7
lea eax, [ebp - 0xc]
call fcn.00403734
ret
Function at 0x40e1d8
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 0x40e3c2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e20c
mov eax, dword [ebp - 8]
call fcn.00403734
jmp 0x40e3ac
mov eax, dword [ebp - 4]
call fcn.004039c4
mov dword [ebp - 0xc], eax
test byte [ebp - 0xc], 3
je 0x40e24b
push 0x40e3d8
push dword [ebp - 4]
push 0x40e3fc
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403a84
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x40aac0]
call fcn.0040c9e4
call fcn.00403174
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.00403824
mov ebx, 1
mov esi, 1
cmp ebx, dword [ebp - 0xc]
jg 0x40e381
mov edx, 4
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + ebx - 1]
cmp ecx, 0x3d
jg 0x40e2a0
je 0x40e2e6
sub ecx, 0x2b
je 0x40e2dc
sub ecx, 4
je 0x40e2e1
dec ecx
sub ecx, 0xa
jb 0x40e2ce
jmp 0x40e2eb
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x40e2b2
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x40e2c0
jmp 0x40e2eb
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
sub cl, 0x41
mov byte [eax], cl
jmp 0x40e316
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
sub cl, 0x47
mov byte [eax], cl
jmp 0x40e316
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
add cl, 4
mov byte [eax], cl
jmp 0x40e316
mov byte [eax], 0x3e
jmp 0x40e316
mov byte [eax], 0x3f
jmp 0x40e316
mov byte [eax], 0
jmp 0x40e316
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, 0x40e40c
mov dl, 1
mov eax, dword [0x40aac0]
call fcn.0040ca20
call fcn.00403174
inc ebx
inc eax
dec edx
jne 0x40e27f
mov eax, dword [ebp - 8]
call fcn.00403c1c
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.00403c1c
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.00403c1c
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 0x40e277
mov edx, dword [ebp - 4]
mov eax, 0x40e430
call fcn.00403cac
mov ebx, eax
test ebx, ebx
je 0x40e3ac
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.00403c64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e3c9
lea eax, [ebp - 0x18]
call fcn.00403734
ret

Function at 0x40ed78
Capabilities:
Hash data with md5

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

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

Function at 0x410b1c
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.00403bb4
xor eax, eax
push ebp
push 0x410d51
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10c]
mov eax, dword [ebp - 4]
call fcn.00408078
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.00408040
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 4]
call fcn.004037cc
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.004069e0
test eax, eax
jl 0x410bcd
lea ecx, [ebp - 0x110]
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.00406ad4
cmp dword [ebp - 0x110], 0
je 0x410bcd
mov ecx, esi
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.00406ad4
jmp 0x410d1b
cmp byte [0x4195c0], 0
jne 0x410be2
mov eax, esi
call fcn.00403734
jmp 0x410d1b
lea eax, [ebp - 0x104]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004027ac
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.004080c8
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x410ca1
mov edx, dword [eax + 0xc]
test edx, edx
je 0x410c98
mov edi, dword [edx]
test edi, edi
je 0x410c8f
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, 0x410d68
call fcn.00408160
jmp 0x410ca8
mov eax, esi
call fcn.00403734
jmp 0x410ca8
mov eax, esi
call fcn.00403734
jmp 0x410ca8
mov eax, esi
call fcn.00403734
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.004069e0
test eax, eax
jl 0x410cc6
mov ecx, dword [esi]
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.00406b80
jmp 0x410cee
push dword [ebp - 4]
push 0x410d7c
push dword [esi]
lea eax, [ebp - 0x134]
mov edx, 3
call fcn.00403a84
mov edx, dword [ebp - 0x134]
mov eax, dword [ebx + 0x40]
call fcn.00409f54
cmp dword [esi], 0
jne 0x410d1b
lea eax, [ebp - 0x138]
mov ecx, 0x410d88
mov edx, dword [ebp - 4]
call fcn.00403a10
mov edx, dword [ebp - 0x138]
mov eax, dword [0x41980c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
call fcn.00412630
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410d58
lea eax, [ebp - 0x138]
mov edx, 2
call fcn.00403758
lea eax, [ebp - 0x110]
mov edx, 3
call fcn.00403758
lea eax, [ebp - 4]
call fcn.00403734
ret