joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473a04
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40873c]
call fcn.00405e14
xor eax, eax
push ebp
push 0x473ba5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x57eb04], 0
jne 0x473a5f
mov ecx, dword [0x5861a0]
mov dl, 1
mov eax, dword [0x408b7c]
call fcn.0040e3a0
call fcn.00404a94
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.004039a4
mov eax, ebx
call fcn.00405b58
mov dword [ebp - 0x24], eax
mov esi, 0x473bb4
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00407158
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405b68
test eax, eax
jle 0x473b48
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x473b34
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405418
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x473ada
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00405430
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x473af0
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00405430
mov eax, dword [ebp - 0x54]
call fcn.00405638
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405418
mov eax, dword [ebp - 0x58]
call fcn.00405638
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x473b36
xor eax, eax
test al, al
je 0x473b41
mov ebx, 0x15
jmp 0x473b4d
mov ebx, 0x10
jmp 0x473b4d
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x57eb04]
call fcn.00473884
mov eax, dword [ebp - 4]
call fcn.00473884
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00407170
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473bac
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.004051cc
lea eax, [ebp - 0xc]
mov edx, dword [0x40873c]
call fcn.00405ee4
ret
Function at 0x474ae0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00405628
xor eax, eax
push ebp
push 0x474b80
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x474b0e
mov esi, dword [0x5897f8]
jmp 0x474b1e
mov eax, dword [ebp - 8]
call fcn.00405638
push eax
call sub.kernel32.dll_GetModuleHandleA_1
mov esi, eax
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
lea ecx, [eax + 0xc]
mov edx, dword [ecx]
mov eax, edx
cmp esi, dword [eax + 0x18]
jne 0x474b64
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
mov ecx, dword [eax + 0x10]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov ecx, dword [eax + 8]
mov dword [ecx + 4], edx
jmp 0x474b6a
mov edx, dword [edx]
cmp edx, ecx
jne 0x474b33
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474b87
lea eax, [ebp - 8]
call fcn.004051a8
ret

Function at 0x47544c
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.004039a4
ret

Function at 0x475710
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xfffffff4
cmp byte [0x58bd44], 0
jne 0x475783
cmp byte [0x58bd45], 0
je 0x475783
mov byte [0x58bd45], 0
mov eax, dword [0x58bd4c]
push eax
call sub.advapi32.dll_RegCloseKey_1
push esp
push 0xf003f
push 0
push 0x475788
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x475783
mov dword [esp + 4], 4
lea eax, [esp + 4]
push eax
push 0x58bd48
lea eax, [esp + 0x10]
push eax
push 0
push 0x47579c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
add esp, 0xc
ret
Function at 0x4b6a50
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
test esi, esi
jne 0x4b6a63
mov eax, dword [0x58cdc0]
mov esi, dword [eax + 0x1c]
mov ebx, 1
push 0
push edi
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
add ebx, eax
push ebx
push edi
push pe_nt_image_headers32
push esi
call sub.user32.dll_SendMessageA
push 0x32
call sub.kernel32.dll_Sleep_2
add ebx, 0
add ebx, 0
or ebx, 0xc0000000
push ebx
push edi
push 0x101
push esi
call sub.user32.dll_SendMessageA
pop edi
pop esi
pop ebx
ret

Function at 0x4b6d20
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405628
xor eax, eax
push ebp
push 0x4b6e9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405638
mov esi, eax
push esi
push 0
push 2
call sub.kernel32.dll_OpenFileMappingA
mov edi, eax
test edi, edi
jne 0x4b6da9
test bl, bl
je 0x4b6e84
push esi
push 0x4038
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov edi, eax
push 0
push 0
push 0
push 0xf001f
push edi
call sub.kernel32.dll_MapViewOfFile
mov dword [0x58cdc4], eax
mov eax, dword [0x58cdc4]
mov byte [eax + 0x91], 0
mov eax, dword [0x58cdc4]
mov byte [eax + 0x84], 0
jmp 0x4b6dbf
push 0
push 0
push 0
push 0xf001f
push edi
call sub.kernel32.dll_MapViewOfFile
mov dword [0x58cdc4], eax
test bl, bl
je 0x4b6e84
mov eax, 0x4b6eb4
call fcn.004b6f90
test eax, eax
jbe 0x4b6dfc
xor esi, esi
mov edx, dword [0x58cdc4]
cmp dword [edx + esi*4 + 0x268], 0
jne 0x4b6df6
mov edx, dword [0x58cdc4]
mov dword [edx + esi*4 + 0x268], eax
jmp 0x4b6dfc
inc esi
cmp esi, 0x10
jne 0x4b6dd7
xor ebx, ebx
xor esi, esi
call sub.kernel32.dll_GetCurrentProcessId
mov edx, dword [0x58cdc4]
cmp eax, dword [edx + esi*4 + 0x268]
jne 0x4b6e18
mov bl, 1
jmp 0x4b6e1e
inc esi
cmp esi, 0x10
jne 0x4b6e00
test bl, bl
jne 0x4b6e84
xor esi, esi
mov eax, dword [0x58cdc4]
cmp dword [eax + esi*4 + 0x268], 0
jne 0x4b6e49
call sub.kernel32.dll_GetCurrentProcessId
mov edx, dword [0x58cdc4]
mov dword [edx + esi*4 + 0x268], eax
mov bl, 1
jmp 0x4b6e4f
inc esi
cmp esi, 0x10
jne 0x4b6e24
test bl, bl
jne 0x4b6e84
xor esi, esi
mov eax, dword [0x58cdc4]
mov eax, dword [eax + esi*4 + 0x268]
call fcn.004b79ec
test al, al
jne 0x4b6e7e
call sub.kernel32.dll_GetCurrentProcessId
mov edx, dword [0x58cdc4]
mov dword [edx + esi*4 + 0x268], eax
jmp 0x4b6e84
inc esi
cmp esi, 0x10
jne 0x4b6e55
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6ea1
lea eax, [ebp - 4]
call fcn.004051a8
ret

Function at 0x4b6ebc
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4b6eed
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.00405418
jmp 0x4b6ef4
mov eax, ebx
call fcn.004051a8
add esp, 0x104
pop ebx
ret
Function at 0x4b723c
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe08
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b733d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor edx, edx
push ebp
push 0x4b7320
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1d8]
push eax
push 2
call sub.wsock32.dll_WSAStartup
push 0x40
lea eax, [ebp - 0x45]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x45]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x4b729e
call fcn.00404b40
jmp 0x4b7327
mov eax, dword [eax + 0xc]
mov ebx, dword [eax]
lea eax, [ebp - 4]
push eax
movzx eax, byte [ebx]
mov dword [ebp - 0x1f8], eax
mov byte [ebp - 0x1f4], 0
movzx eax, byte [ebx + 1]
mov dword [ebp - 0x1f0], eax
mov byte [ebp - 0x1ec], 0
movzx eax, byte [ebx + 2]
mov dword [ebp - 0x1e8], eax
mov byte [ebp - 0x1e4], 0
movzx eax, byte [ebx + 3]
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 0x1dc], 0
lea edx, [ebp - 0x1f8]
mov ecx, 3
mov eax, 0x4b7358
call fcn.0040b340
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004051fc
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7327
call sub.wsock32.dll_WSACleanup
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7344
lea eax, [ebp - 4]
call fcn.004051a8
ret

Function at 0x4b7b5c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
xor ebx, ebx
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
call fcn.004b9988
mov eax, esp
push eax
push 0x4b7a5c
call sub.user32.dll_EnumWindows
mov eax, dword [esp + 4]
test eax, eax
jbe 0x4b7b8c
mov dword [esi], eax
mov bl, 1
mov eax, ebx
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4b8e50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov edi, dword [0x586750]
call fcn.004b9988
mov ebx, eax
jmp 0x4b8e93
push 0xa
call sub.kernel32.dll_Sleep_2
mov eax, dword [edi]
call fcn.004716f0
call fcn.004b9988
sub eax, ebx
xor edx, edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x4b8e8f
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4b8e93
jmp 0x4b8e9e
pop edx
pop eax
jle 0x4b8e9e
mov eax, dword [edi]
cmp byte [eax + 0xa4], 0
je 0x4b8e64
pop edi
pop esi
pop ebx
ret
Function at 0x4b982c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405628
mov eax, dword [ebp + 0x10]
call fcn.00405628
mov eax, dword [ebp + 0xc]
call fcn.00405628
lea esi, [ebp - 0x214]
xor eax, eax
push ebp
push 0x4b9976
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [esi], eax
mov byte [esi + 0x20d], 0
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
movzx eax, byte [ebp + 8]
mov byte [esi + 0x20c], al
lea eax, [esi + 0xc]
xor ecx, ecx
mov edx, 0x40
call fcn.004039a4
lea eax, [ebp - 4]
call fcn.00405698
mov edx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4b98ab
sub eax, 4
mov eax, dword [eax]
lea ecx, [esi + 0xc]
xchg edx, ecx
xchg ecx, eax
call fcn.00403140
lea eax, [esi + 0x4c]
xor ecx, ecx
mov edx, 0x40
call fcn.004039a4
lea eax, [ebp + 0x10]
call fcn.00405698
mov edx, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4b98db
sub eax, 4
mov eax, dword [eax]
lea ecx, [esi + 0x4c]
xchg edx, ecx
xchg ecx, eax
call fcn.00403140
lea eax, [esi + 0x8c]
xor ecx, ecx
mov edx, 0x80
call fcn.004039a4
lea eax, [ebp + 0xc]
call fcn.00405698
mov edx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4b990e
sub eax, 4
mov eax, dword [eax]
lea ecx, [esi + 0x8c]
xchg edx, ecx
xchg ecx, eax
call fcn.00403140
test ebx, ebx
jne 0x4b992d
push esi
push 0x4b9730
call sub.user32.dll_EnumWindows
jmp 0x4b9951
push esi
push 0x4b9730
push ebx
call sub.user32.dll_EnumChildWindows
cmp dword [esi], 0
jne 0x4b9951
mov byte [esi + 0x20d], 1
push esi
push 0x4b9730
push ebx
call sub.user32.dll_EnumChildWindows
mov ebx, dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b997d
lea eax, [ebp - 4]
call fcn.004051a8
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004051cc
ret
Function at 0x4f4d74
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4f4da2
mov eax, ebx
call fcn.004f5828
cmp dword [ebx + 0x40], 0
je 0x4f4d9b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4f4e13
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4f4e05
cmp dword [ebx + 8], 0
je 0x4f4dc4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4f4dd6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4f4e05
cmp dword [ebx + 8], 0
je 0x4f4db7
cmp eax, 3
je 0x4f4de9
dec eax
jne 0x4f4db7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4f4db7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4f4db7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4f4e31
cmp dword [ebx + 0x14], 0xcc
je 0x4f4e31
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004f4e3c
pop ebx
ret

Function at 0x5057a8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor esi, esi
xor ecx, ecx
mov ebx, edx
add ebx, ebx
add ebx, ebx
add ebx, ecx
lea ebx, [eax + ebx*4]
movzx ebx, byte [ebx + esi + 0x27]
lea edi, [eax + esi*4]
xor byte [edi + ecx + 0x117], bl
inc ecx
cmp ecx, 4
jne 0x5057af
inc esi
cmp esi, 4
jne 0x5057ad
pop edi
pop esi
pop ebx
ret
Function at 0x5057dc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 5]
dec eax
test eax, eax
jl 0x505826
inc eax
mov dword [esp + 4], eax
xor esi, esi
mov eax, esi
add eax, eax
add eax, eax
movzx edx, byte [ebx + eax + 7]
mov byte [ebx + esi*4 + 0x27], dl
movzx edx, byte [ebx + eax + 8]
mov byte [ebx + esi*4 + 0x28], dl
movzx edx, byte [ebx + eax + 9]
mov byte [ebx + esi*4 + 0x29], dl
movzx eax, byte [ebx + eax + 0xa]
mov byte [ebx + esi*4 + 0x2a], al
inc esi
dec dword [esp + 4]
jne 0x5057f5
movzx esi, byte [ebx + 5]
movzx eax, byte [ebx + 4]
movzx edx, byte [ebx + 6]
inc edx
imul edx
dec eax
sub eax, esi
jl 0x505926
inc eax
mov dword [esp + 4], eax
xor ecx, ecx
mov eax, esp
lea edx, [ebx + esi*4]
movzx edx, byte [edx + ecx + 0x23]
mov byte [eax], dl
inc ecx
inc eax
cmp ecx, 4
jne 0x505847
movzx eax, byte [ebx + 5]
push eax
mov eax, esi
pop edx
mov ecx, edx
cdq
idiv ecx
test edx, edx
jne 0x5058c4
lea eax, [esp + 2]
push eax
lea eax, [esp + 7]
push eax
lea ecx, [esp + 9]
lea edx, [esp + 8]
mov eax, ebx
call fcn.00505c98
lea eax, [esp + 2]
push eax
lea eax, [esp + 7]
push eax
lea ecx, [esp + 9]
lea edx, [esp + 8]
mov eax, ebx
call fcn.00505c0c
mov ecx, 4
mov ebp, 0x5860f0
mov edi, esp
movzx eax, byte [ebx + 5]
push eax
mov eax, esi
pop edx
push ecx
mov ecx, edx
cdq
idiv ecx
pop ecx
movzx eax, byte [ebp + eax*4]
xor byte [edi], al
inc edi
inc ebp
dec ecx
jne 0x5058a7
jmp 0x5058f7
movzx ecx, byte [ebx + 5]
cmp cl, 6
jbe 0x5058f7
movzx eax, cl
push eax
mov eax, esi
pop edx
mov ecx, edx
cdq
idiv ecx
cmp edx, 4
jne 0x5058f7
lea eax, [esp + 2]
push eax
lea eax, [esp + 7]
push eax
lea ecx, [esp + 9]
lea edx, [esp + 8]
mov eax, ebx
call fcn.00505c0c
xor ecx, ecx
mov eax, esp
movzx edx, byte [ebx + 5]
mov edi, esi
sub edi, edx
lea edx, [ebx + edi*4]
movzx edx, byte [edx + ecx + 0x27]
xor dl, byte [eax]
lea edi, [ebx + esi*4]
mov byte [edi + ecx + 0x27], dl
inc ecx
inc eax
cmp ecx, 4
jne 0x5058fb
inc esi
dec dword [esp + 4]
jne 0x505843
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x505930
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov edi, 0x585ff0
xor ecx, ecx
xor edx, edx
lea eax, [esi + ecx*4]
movzx eax, byte [eax + edx + 0x117]
mov ebx, eax
and bl, 0xf
movzx ebx, bl
movzx eax, al
shr eax, 4
add eax, eax
lea eax, [edi + eax*8]
movzx eax, byte [eax + ebx]
lea ebx, [esi + ecx*4]
mov byte [ebx + edx + 0x117], al
inc edx
cmp edx, 4
jne 0x50593e
inc ecx
cmp ecx, 4
jne 0x50593c
pop edi
pop esi
pop ebx
ret
Function at 0x5059f8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
xor edx, edx
mov ecx, esp
xor edi, edi
mov eax, ecx
lea ebx, [esi + edx*4]
movzx ebx, byte [ebx + edi + 0x117]
mov byte [eax], bl
inc edi
inc eax
cmp edi, 4
jne 0x505a08
inc edx
add ecx, 4
cmp edx, 4
jne 0x505a04
xor edi, edi
mov ebx, esp
movzx edx, byte [ebx]
mov eax, esi
call fcn.00505bc0
push eax
movzx edx, byte [ebx + 4]
mov eax, esi
call fcn.00505b70
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 8]
mov eax, esi
call fcn.00505b94
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 0xc]
mov eax, esi
call fcn.00505b48
pop edx
xor dl, al
mov byte [esi + edi + 0x117], dl
movzx edx, byte [ebx]
mov eax, esi
call fcn.00505b48
push eax
movzx edx, byte [ebx + 4]
mov eax, esi
call fcn.00505bc0
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 8]
mov eax, esi
call fcn.00505b70
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 0xc]
mov eax, esi
call fcn.00505b94
pop edx
xor dl, al
mov byte [esi + edi + 0x11b], dl
movzx edx, byte [ebx]
mov eax, esi
call fcn.00505b94
push eax
movzx edx, byte [ebx + 4]
mov eax, esi
call fcn.00505b48
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 8]
mov eax, esi
call fcn.00505bc0
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 0xc]
mov eax, esi
call fcn.00505b70
pop edx
xor dl, al
mov byte [esi + edi + 0x11f], dl
movzx edx, byte [ebx]
mov eax, esi
call fcn.00505b70
push eax
movzx edx, byte [ebx + 4]
mov eax, esi
call fcn.00505b94
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 8]
mov eax, esi
call fcn.00505b48
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 0xc]
mov eax, esi
call fcn.00505bc0
pop edx
xor dl, al
mov byte [esi + edi + 0x123], dl
inc edi
inc ebx
cmp edi, 4
jne 0x505a29
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x505c0c
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx ebx, byte [esi]
and bl, 0xf
movzx ebx, bl
movzx edi, byte [esi]
shr edi, 4
add edi, edi
lea edi, [edi*8 + 0x585ef0]
movzx ebx, byte [edi + ebx]
mov byte [esi], bl
movzx ebx, byte [eax]
and bl, 0xf
movzx ebx, bl
movzx esi, byte [eax]
shr esi, 4
add esi, esi
lea esi, [esi*8 + 0x585ef0]
movzx ebx, byte [esi + ebx]
mov byte [eax], bl
movzx eax, byte [ecx]
and al, 0xf
movzx eax, al
movzx ebx, byte [ecx]
shr ebx, 4
add ebx, ebx
lea ebx, [ebx*8 + 0x585ef0]
movzx eax, byte [ebx + eax]
mov byte [ecx], al
movzx eax, byte [edx]
and al, 0xf
movzx eax, al
movzx ecx, byte [edx]
shr ecx, 4
add ecx, ecx
lea ecx, [ecx*8 + 0x585ef0]
movzx eax, byte [ecx + eax]
mov byte [edx], al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x5060d8
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x29c], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405628
xor eax, eax
push ebp
push 0x506270
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x50628c
call fcn.00405784
mov ebx, eax
test ebx, ebx
jle 0x50612d
lea eax, [ebp - 4]
push eax
lea edx, [ebx + 2]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
call fcn.004056a0
mov edx, dword [ebp - 4]
mov eax, 0x506298
call fcn.00405784
mov ebx, eax
test ebx, ebx
jle 0x506154
lea eax, [ebp - 4]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004056a0
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x506248
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x298]
mov edx, dword [ebp - 4]
call fcn.0040a934
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x506231
mov edx, dword [eax + 0xc]
test edx, edx
je 0x50622b
mov ebx, dword [edx]
test ebx, ebx
je 0x506225
lea eax, [ebp - 0x29c]
push eax
movzx eax, byte [ebx]
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 0x2b8], 0
movzx eax, byte [ebx + 1]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
movzx eax, byte [ebx + 2]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
movzx eax, byte [ebx + 3]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
lea edx, [ebp - 0x2bc]
mov ecx, 3
mov eax, 0x5062a4
call fcn.0040b340
mov edx, dword [ebp - 0x29c]
mov eax, esi
call fcn.004051fc
mov byte [ebp - 5], 1
jmp 0x506235
mov byte [ebp - 5], 0
jmp 0x506235
mov byte [ebp - 5], 0
jmp 0x506235
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50624f
call sub.wsock32.dll_WSACleanup
ret
Function at 0x5092cc
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x29c], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405628
xor eax, eax
push ebp
push 0x50946c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x509488
call fcn.00405784
mov ebx, eax
test ebx, ebx
jle 0x509321
lea eax, [ebp - 4]
push eax
lea edx, [ebx + 2]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
call fcn.004056a0
mov edx, dword [ebp - 4]
mov eax, 0x509494
call fcn.00405784
mov ebx, eax
test ebx, ebx
jle 0x509348
lea eax, [ebp - 4]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004056a0
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x50943c
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x298]
mov edx, dword [ebp - 4]
call fcn.0040a934
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x509425
mov edx, dword [eax + 0xc]
test edx, edx
je 0x50941f
mov ebx, dword [edx]
test ebx, ebx
je 0x509419
lea eax, [ebp - 0x29c]
push eax
movzx eax, byte [ebx]
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 0x2b8], 0
movzx eax, byte [ebx + 1]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
movzx eax, byte [ebx + 2]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
movzx eax, byte [ebx + 3]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
lea edx, [ebp - 0x2bc]
mov ecx, 3
mov eax, 0x5094a0
call fcn.0040b340
mov edx, dword [ebp - 0x29c]
mov eax, esi
call fcn.004051fc
mov byte [ebp - 5], 1
jmp 0x509429
mov byte [ebp - 5], 0
jmp 0x509429
mov byte [ebp - 5], 0
jmp 0x509429
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509443
call sub.wsock32.dll_WSACleanup
ret