joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov eax, dword [ebp + 8]
mov ecx, dword [0x100ef3d0]
add ecx, 0x9dd
mov dword [0x100ef3d4], ecx
mov dword [ebp - 0x30], eax
call fcn.1000bbf0
xor ecx, ecx
mov dword [0x100ef3d4], 0xd18
mov dword [0x100ef3d0], 0x13c7
mov edx, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
jmp 0x1000b66c
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
lea edx, [0x100dad94]
mov esi, dword [ebp - 0x48]
add esi, ecx
imul edi, eax, 0x54
mov ebx, edx
add ebx, edi
add ebx, 4
mov edi, eax
add edi, 1
mov dword [ebp - 0x4c], eax
imul eax, eax, 0x54
mov dword [ebp - 0x50], eax
mov eax, edx
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x50]
add eax, ecx
add eax, 0x50
mov ecx, dword [ebp - 0x4c]
imul ecx, ecx, 0x54
add edx, ecx
mov eax, dword [eax]
mov ecx, dword [edx]
movzx edx, word [ebx]
xor edx, eax
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], edi
call fcn.1000bfb0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
add eax, ecx
mov edx, dword [ebp - 0x5c]
cmp edx, 0x3e2
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], eax
je 0x1000b759
jmp 0x1000b5dc
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
lea edx, [0x100dad94]
mov esi, ecx
add esi, 1
imul edi, ecx, 0x54
mov ebx, edx
add ebx, edi
add ebx, 0x50
imul ecx, ecx, 0x54
add edx, ecx
add edx, 4
mov ecx, dword [ebx]
movzx edx, word [edx]
xor edx, ecx
add edx, eax
cmp esi, 0x3e2
mov eax, edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], eax
jne 0x1000b66c
lea eax, [0x1000d0f1]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [0x100ef3d0], 0x385
mov dword [0x100ef3d4], 0xfffffb0c
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x68], ecx
call fcn.1000bc10
mov dword [0x100ef3d4], 0x23dd
mov dword [0x100ef3d0], 0x1d1b
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call fcn.1000c060
mov ecx, eax
mov dword [0x100ef3ec], eax
mov eax, esp
mov edx, dword [ebp - 0x60]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov dword [0x100ef3d0], 0x1918
mov edx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], ecx
jmp 0x1000b5dc
mov dword [0x100ef3d0], 0x1a25
mov eax, dword [ebp - 0x48]
add eax, 0xc77ad
mov ecx, dword [ebp - 0x48]
add ecx, 0x1d339
mov edx, dword [ebp - 0x48]
mov dword [esp], edx
mov dword [esp + 4], edx
mov esi, dword [ebp - 0x60]
mov dword [esp + 8], esi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], ecx
call fcn.1000af20
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x6c]
mov dword [ecx], edx
mov dword [ecx + 4], 0x147a00
mov edx, dword [ebp - 0x70]
mov dword [ecx + 8], edx
mov dword [0x100ef3d4], 0x13b6
mov dword [ecx + 0xc], 0x20b0
mov edx, dword [0x100ef3d4]
add edx, 0xffffe116
mov dword [0x100ef3d0], edx
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000ba20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [fcn.1000ba20]
mov ecx, 0xb7c
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jmp 0x1000ba39
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp word [ecx], 0x5a4d
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
je 0x1000ba6b
mov eax, dword [ebp - 0xc]
add eax, 0xffffe014
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffff000
and ecx, 0xfffff000
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jmp 0x1000ba39
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x1000ba4c
mov eax, dword [ebp - 0xc]
mov dword [0x100ef3d0], eax
mov eax, dword [ebp - 0x10]
add esp, 0x10
pop ebp
ret
Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x18]
test ebx, ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
je 0x40216e
push esi
call dword [0x776c114c]
movzx ecx, word [0x776cf104]
cmp eax, ecx
jne 0x40216e
mov ecx, dword [esi]
mov edi, dword [0x776cf0f4]
cmp ecx, dword [edi]
jne 0x40216e
mov ecx, eax
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40216b
mov eax, dword [ebp + 0x24]
or dword [eax], 2
push ebx
mov dword [ebp + 0x14], ebx
call dword [0x776c114c]
mov esi, dword [ebp + 0x14]
movzx eax, byte [esi + 1]
movzx eax, byte [esi + eax*4 + 4]
mov ecx, dword [ebp + 0x10]
mov edx, eax
shr edx, 4
mov ebx, dword [ecx + edx*4 + 0x40]
and eax, 0xf
and ebx, dword [ecx + eax*4]
push esi
call dword [0x776c114c]
test ebx, ebx
mov dword [ebp + 0x10], eax
mov byte [ebp + 0x27], 0
je 0x4021f3
test bl, bl
mov byte [ebp + 0x1b], bl
je 0x4021ec
movzx eax, byte [ebp + 0x27]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebp - 8], eax
movzx eax, byte [ebp + 0x1b]
movzx edi, byte [eax + 0x776cf108]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
add eax, edi
lea edx, [ecx + eax*8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax]
mov dword [ebp - 0xc], edi
jne 0x4021e1
mov ecx, dword [ebp + 0x10]
mov edi, eax
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x402231
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp - 0xc]
mov al, 1
mov ecx, edi
shl al, cl
xor byte [ebp + 0x1b], al
jne 0x4021ae
inc byte [ebp + 0x27]
shr ebx, 1
jne 0x40219b
push 0x20
pop eax
cmp dword [ebp + 8], eax
mov dword [ebp + 0x18], eax
jbe 0x402228
mov eax, dword [ebp + 0xc]
mov edx, dword [esi]
add eax, 0x100
mov edi, dword [eax]
cmp edx, dword [edi]
jne 0x40221a
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x40224a
mov esi, dword [ebp + 0x14]
inc dword [ebp + 0x18]
mov ecx, dword [ebp + 0x18]
add eax, 8
cmp ecx, dword [ebp + 8]
jb 0x402208
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x20
mov edx, dword [edx + 4]
test edx, 4
jne 0x40225b
cmp dword [ebp + 0x20], 0
je 0x402228
test edx, 0x10
jmp 0x402259
mov eax, dword [eax + 4]
test al, 4
jne 0x40225b
cmp dword [ebp + 0x20], 0
je 0x402228
test al, 0x10
je 0x402228
xor eax, eax
inc eax
jmp 0x40222a
Function at 0x406720
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42e79b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40464c
call fcn.0040790b
push 4
mov dword [esp + 0x18], 0
call fcn.00408a24
mov edi, eax
add esp, 4
test edi, edi
je 0x406794
push ebx
call fcn.00407706
mov dword [edi], eax
call fcn.004074c5
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004078cc
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406788
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004078f4
pop ebx
jmp 0x406796
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4095fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431354]
jne 0x409605
repz ret
jmp fcn.0040dc4c
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x68291b56
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6fa45805
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x43ffa6
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 0x43ffe8
call fcn.00453157
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 0x43ffe8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x43ffdf
xor eax, eax
jmp 0x43fff0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0043fff6
pop edi
pop esi
pop ebx
ret 4

Function at 0x4411c5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4411e7
cmp dword [edi + 0x3c], 0
jne 0x4411e7
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00453157
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00441214
pop edi
pop esi
pop ebx
ret 8

Function at 0x441262
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00453157
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x441293
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004412a6
pop edi
pop esi
pop ebx
ret 8

Function at 0x4540cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.00453157
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x45410c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45410c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x454110
xor eax, eax
jmp 0x45418e
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00440fb7
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x454148
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x454132
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0045427f
push ebx
mov edi, eax
call fcn.00440fe0
test edi, edi
pop ecx
je 0x45418a
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00454048
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00454193
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4546e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x108
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
call edi
mov esi, eax
push dword [0x473a4c]
call edi
mov edi, eax
push dword [0x473a40]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [0x473ab8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push dword [0x473a58]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
lea eax, [esp + 4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movzx eax, byte [esp + 4]
test al, al
je 0x454762
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
movsx eax, al
mov word [ebp + ecx*2], ax
movzx eax, byte [esp + ecx + 5]
inc ecx
test al, al
jne 0x454750
push ebp
call ebx
mov ebp, dword [0x473a8c]
cmp dword [ebp], 0
je 0x4547be
mov ebx, eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp byte [ebp], al
je 0x454788
cmp byte [ebp + 1], al
jne 0x4548b0
movzx ecx, word [ebx]
xor eax, eax
test cx, cx
je 0x4547b0
add ebx, 2
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, cx
add eax, ecx
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x4547a0
cmp eax, dword [ebp + 4]
je 0x4547be
cmp eax, dword [ebp + 8]
jne 0x4548b0
mov dword [esp], 0
push dword [0x473a58]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + 0x14]
mov dword [eax + 0x14], ecx
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + 0x18]
mov dword [eax + 0x18], ecx
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0x1c], ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4548b0
mov edi, eax
mov ebx, dword [sub.WINSPOOL.DRV_ClosePrinter]
mov ebp, esp
in eax, 0x55

Function at 0x454846
Capabilities:
Terminate process

Disassembly:
in eax, 0x55
push dword [0x473a64]
push 0x4000
push ebx
call eax
mov ecx, dword [0x473a50]
mov eax, dword [esi + ecx + 4]
lea ecx, [esi + ecx + 8]
mov edx, 4
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [ecx + edx - 4]
add esi, eax
mov dword [ebx + edx + 4], esi
add edx, 4
cmp edx, 0x3ffc
jb 0x454870
mov eax, dword [0x473a90]
mov dword [ebx + 8], eax
push ebp
push dword [esp + 4]
push 0x4000
push ebx
call edi
mov eax, dword [0x473a70]
add eax, ebx
add eax, dword [ebx + 0xc]
add ebx, dword [0x473a70]
push ebx
call eax
add esp, 4
push 0x10
push dword [0x473ab4]
push dword [0x473a7c]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40293c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x40296b
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c34
jmp 0x402989
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402864
mov edi, eax
test ebx, ebx
je 0x402989
cmp dword [esi], 0
je 0x402989
dec ebx
jmp 0x402972
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x45a040], 0x8088405
inc edx
mov dword [0x45a040], edx
mul edx
mov eax, edx
ret

Function at 0x402ca8
Capabilities:
Query or enumerate registry value

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

Function at 0x403b00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040270c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x45a045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403ac8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405aa0
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 0xf003f
push 0
push 0x405c5c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b01
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405c78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405b73
xor eax, eax
push ebp
push 0x405b6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.004058f8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405b55
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405c98
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b73
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x405c54
cmp byte [ebp - 0xd], 0
jne 0x405bb5
cmp byte [ebp - 0x12], 0
je 0x405c54
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405bce
dec ebx
cmp byte [ebx], 0x2e
je 0x405bdd
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405bcd
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405c54
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405c0a
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405c54
cmp byte [ebp - 0xd], 0
je 0x405c54
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405c54
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x4096c4
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 0x4096fd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403c34
jmp 0x409706
mov eax, ebx
mov edx, esi
call fcn.00403ba0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409710
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 0x409731
mov al, byte [esp]
jmp 0x409733
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413bd8
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x413bed
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x415bfc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x415c02
ret

Function at 0x417fb4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x418005
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x417fec
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x417fdc
jmp 0x418005
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x417fed
pop ebx
mov esp, ebp
pop ebp
ret