joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5249c0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and eax, 1
test al, al
je 0x5249ef
mov eax, dword [ebp - 4]
shr eax, 1
xor eax, 0xedb88320
mov dword [ebp - 4], eax
jmp 0x5249f2
shr dword [ebp - 4], 1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 8
jne 0x5249d6
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [eax*4 + 0x548d64], edx
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x100
jne 0x5249cb
mov byte [0x549164], 1
mov esp, ebp
pop ebp
ret

Function at 0x524a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp byte [0x549164], 0
jne 0x524a43
call fcn.005249c0
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x524a82
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + edx]
xor eax, dword [ebp - 0x14]
and eax, 0xff
mov eax, dword [eax*4 + 0x548d64]
mov edx, dword [ebp - 0x14]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x18]
dec dword [ebp - 0x1c]
jne 0x524a56
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4027cc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x402c54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41a01c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402cec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ccc
xor eax, eax
push ebp
push 0x402cc5
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 0x402d08
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 0x402ccc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x41a01c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41a01c], ax
mov esp, ebp
pop ebp
ret

Function at 0x403598
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41b044], 0
je 0x4035f9
cmp word [0x41b218], 0xd7b2
jne 0x4035c1
cmp dword [0x41b220], 0
jbe 0x4035c1
mov eax, 0x41b214
call dword [0x41b230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41a064
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 0x403620
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41a028], 0
jne 0x403615
push 0
push 0x41a05c
push 0x41a064
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40496c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404b9c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4049ef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404b9c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4049ef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404bb8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404a78
xor eax, eax
push ebp
push 0x404a71
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004047b4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404a56
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404bd8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404a56
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404a78
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404b92
cmp byte [ebp - 0xd], 0
jne 0x404abf
cmp byte [ebp - 0x12], 0
je 0x404b92
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404ad8
dec ebx
cmp byte [ebx], 0x2e
je 0x404ae7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404ad7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404b92
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404b24
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404b92
cmp byte [ebp - 0xd], 0
je 0x404b92
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404b92
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404a78
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404b9c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4049ef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404b9c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4049ef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404bb8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404a78
xor eax, eax
push ebp
push 0x404a71
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004047b4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404a56
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404bd8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404a56
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404a78
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404b92
cmp byte [ebp - 0xd], 0
jne 0x404abf
cmp byte [ebp - 0x12], 0
je 0x404b92
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404ad8
dec ebx
cmp byte [ebx], 0x2e
je 0x404ae7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404ad7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404b92
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404b24
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404b92
cmp byte [ebp - 0xd], 0
je 0x404b92
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404b92
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404f80
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 0x404fe6
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 0x404fd0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404fed
lea eax, [ebp - 0x10]
call fcn.00403734
ret

Function at 0x405fe4
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 0x4060df
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406038
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 0x4060c6
call sub.kernel32.dll_GetCommandLineA_1
mov dword [edi], eax
mov eax, dword [edi]
call fcn.00405f6c
mov dword [edi], eax
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi]
call fcn.00405f94
mov dword [edi], eax
test ebx, ebx
je 0x406066
dec ebx
test ebx, ebx
jl 0x406066
mov eax, dword [edi]
cmp eax, dword [ebp - 8]
jne 0x40603f
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 0x4060c6
mov eax, dword [esi]
cmp byte [eax], 0x22
jne 0x4060c6
mov eax, dword [esi]
call fcn.004039c4
mov edx, dword [esi]
cmp byte [edx + eax - 1], 0x22
jne 0x4060c6
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 0x4060e6
lea eax, [ebp - 0x114]
call fcn.00403734
ret

Function at 0x4061bc
Capabilities:
Create thread

Disassembly:
push ebx
mov eax, dword [0x41a798]
mov byte [eax], 1
mov edx, dword [0x405698]
xor eax, eax
call fcn.00407ea4
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x4061ac
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
ret

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

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

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

Function at 0x409918
Capabilities:
Hide graphical window

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

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

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

Function at 0x40cf8c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ce04
mov eax, dword [0x41a904]
cmp byte [eax], 0
je 0x40d008
mov eax, dword [0x41a7d4]
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.0040bd8c
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 0x40d050
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d03e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41a7a0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41b660]
call fcn.00404778
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 0x40d9fc
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 0x40da60
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.0040bc60
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da67
lea eax, [ebp - 0xc]
call fcn.00403734
ret
Function at 0x40e848
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 0x40ea32
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e87c
mov eax, dword [ebp - 8]
call fcn.00403734
jmp 0x40ea1c
mov eax, dword [ebp - 4]
call fcn.004039c4
mov dword [ebp - 0xc], eax
test byte [ebp - 0xc], 3
je 0x40e8bb
push 0x40ea48
push dword [ebp - 4]
push 0x40ea6c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403a84
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x40b130]
call fcn.0040d054
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 0x40e9f1
mov edx, 4
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + ebx - 1]
cmp ecx, 0x3d
jg 0x40e910
je 0x40e956
sub ecx, 0x2b
je 0x40e94c
sub ecx, 4
je 0x40e951
dec ecx
sub ecx, 0xa
jb 0x40e93e
jmp 0x40e95b
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x40e922
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x40e930
jmp 0x40e95b
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
sub cl, 0x41
mov byte [eax], cl
jmp 0x40e986
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
sub cl, 0x47
mov byte [eax], cl
jmp 0x40e986
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
add cl, 4
mov byte [eax], cl
jmp 0x40e986
mov byte [eax], 0x3e
jmp 0x40e986
mov byte [eax], 0x3f
jmp 0x40e986
mov byte [eax], 0
jmp 0x40e986
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, 0x40ea7c
mov dl, 1
mov eax, dword [0x40b130]
call fcn.0040d090
call fcn.00403174
inc ebx
inc eax
dec edx
jne 0x40e8ef
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 0x40e8e7
mov edx, dword [ebp - 4]
mov eax, 0x40eaa0
call fcn.00403cac
mov ebx, eax
test ebx, ebx
je 0x40ea1c
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 0x40ea39
lea eax, [ebp - 0x18]
call fcn.00403734
ret

Function at 0x40f3e8
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 0x411150
Capabilities:
Initialize winsock library

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

Function at 0x41118c
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 0x4113c1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10c]
mov eax, dword [ebp - 4]
call fcn.004086e8
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.004086b0
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 4]
call fcn.004037cc
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.00407050
test eax, eax
jl 0x41123d
lea ecx, [ebp - 0x110]
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.00407144
cmp dword [ebp - 0x110], 0
je 0x41123d
mov ecx, esi
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.00407144
jmp 0x41138b
cmp byte [0x41a5c4], 0
jne 0x411252
mov eax, esi
call fcn.00403734
jmp 0x41138b
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.00408738
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x411311
mov edx, dword [eax + 0xc]
test edx, edx
je 0x411308
mov edi, dword [edx]
test edi, edi
je 0x4112ff
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, 0x4113d8
call fcn.004087d0
jmp 0x411318
mov eax, esi
call fcn.00403734
jmp 0x411318
mov eax, esi
call fcn.00403734
jmp 0x411318
mov eax, esi
call fcn.00403734
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.00407050
test eax, eax
jl 0x411336
mov ecx, dword [esi]
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.004071f0
jmp 0x41135e
push dword [ebp - 4]
push 0x4113ec
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.0040a5c4
cmp dword [esi], 0
jne 0x41138b
lea eax, [ebp - 0x138]
mov ecx, 0x4113f8
mov edx, dword [ebp - 4]
call fcn.00403a10
mov edx, dword [ebp - 0x138]
mov eax, dword [0x41a810]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
call fcn.00412d70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4113c8
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
Function at 0x4116a0
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.00403bb4
xor eax, eax
push ebp
push 0x41180a
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 0x4116e6
inc eax
jne 0x411714
push 0x411824
push dword [esi + 0xc]
push 0x411840
lea edx, [ebp - 0x18]
mov eax, edi
call fcn.004085fc
push dword [ebp - 0x18]
lea eax, [esi + 4]
mov edx, 4
call fcn.00403a84
xor ebx, ebx
jmp 0x4117ec
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 0x41174c
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 0x41176d
lea eax, [esi + 4]
mov edx, 0x41184c
call fcn.00403788
mov eax, dword [esi + 8]
push eax
call sub.wsock32.dll_closesocket
mov dword [esi + 8], 0xffffffff
xor ebx, ebx
jmp 0x4117ec
cmp dword [esi + 0x58], 0
je 0x41179a
mov eax, dword [esi + 0x58]
call fcn.00403bc4
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 0x4117bb
mov eax, dword [ebp - 4]
call fcn.00403bc4
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 0x4117ec
lea eax, [esi + 4]
mov edx, 0x41186c
call fcn.00403788
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 0x411811
lea eax, [ebp - 0x18]
call fcn.00403734
lea eax, [ebp - 4]
call fcn.00403734
ret