joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4672bb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov ebx, eax
xor eax, eax
inc esi
push edi
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
je 0x46732f
lea esi, [ebx + 1]
lea ebx, [esi + esi]
mov eax, ebx
call fcn.0043eea0
mov edi, esp
push ebx
push 0
push edi
call fcn.0043b2b0
add esp, 0xc
push esi
push dword [ebp + 0x10]
push edi
call fcn.0043a770
add esp, 0xc
push esi
push edi
call fcn.0046710c
pop ecx
pop ecx
test esi, esi
je 0x46732a
push esi
push dword [ebp + 0x10]
lea eax, [esi + edi]
push eax
mov dword [ebp - 8], eax
call fcn.0043a770
add esp, 0xc
push esi
push dword [ebp - 8]
push dword [ebp + 0x14]
call fcn.0046708e
add esp, 0xc
push 3
pop esi
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push 0x20006
push eax
push eax
push eax
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x46736b
push ebx
push edi
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov dword [ebp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x49ad73f9
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x5b897a07
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x40895f
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
mov ebx, dword [esp]
add esp, 4
add esi, 0x5ed8b03c
inc edi
call fcn.00408988
inc edi
xor dword [ecx], ebx
inc ecx
mov edi, 0x7c229fc
cmp ecx, eax
jne fcn.0040895f
dec esi
sub edi, esi
ret
Function at 0x1000b067
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1006135c
call fcn.10060c78
sub esp, 0x18
push ebx
push esi
mov dword [ebp - 0x20], 0x761c
cmp dword [ebp - 0x20], 0x76ec
push edi
mov dword [ebp - 0x10], esp
jle 0x1000b0e8
xor esi, esi
mov dword [ebp - 0x1c], esi
mov ebx, esi
mov dword [ebp - 0x18], 0x6f37
mov dword [ebp - 0x14], ebx
xor edi, edi
and dword [ebp - 0x24], 0
mov esi, ebx
mov ebx, dword [ebp - 0x24]
mov ecx, edi
shl esi, cl
mov eax, esi
mov ecx, 0x10652ef8
xor eax, ebx
cdq
push edx
push eax
call fcn.1000b3d4
inc ebx
cmp ebx, 0x5538
jl 0x1000b0aa
mov ebx, dword [ebp - 0x14]
inc edi
cmp edi, 0x2856
jl 0x1000b09d
dec ebx
dec dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
jne 0x1000b09b
mov esi, dword [ebp - 0x1c]
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, 0x2875
jl 0x1000b08f
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0x74b3
jge 0x1000b104
mov edx, 0x100078f4
mov ecx, 0x10652ef8
call fcn.1000eaa5
fldz
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10017290
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100172bb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push 0
push 0xeb
call fcn.10017b17
add esp, 0xc
jmp 0x10017425
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x100172e4
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10017425
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x1f82
cmp dword [ebp - 0x1c], 0x612
jge 0x100173e6
push 0x117b8d64
mov ecx, 0x10652fb0
call fcn.1000b1d9
and dword [ebp - 4], 0
jmp 0x10017320
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [0x117b8d64]
jge 0x10017354
mov eax, dword [ebp - 4]
lea eax, [eax*4 + 0x10a24a58]
push eax
mov eax, dword [ebp - 4]
lea eax, [eax*4 + 0x11124178]
push eax
mov ecx, 0x10652fb0
call fcn.1000b1d9
mov ecx, eax
call fcn.1000b1d9
jmp 0x10017319
cmp dword [0x117b8d64], 2
jg 0x10017378
push fcn.1000ea73
mov edx, 0x10007a40
mov ecx, 0x10652ef8
call fcn.1000eaa5
mov ecx, eax
call fcn.1000b3c8
push 1
push 0
call fcn.1001700e
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x100173ae
push 2
push 0
call fcn.1001700e
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x100173ae
push 2
push 1
call fcn.1001700e
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x100173cb
push fcn.1000ea73
mov edx, 0x10007a40
mov ecx, 0x10652ef8
call fcn.1000eaa5
mov ecx, eax
call fcn.1000b3c8
jmp 0x100173e6
push fcn.1000ea73
mov edx, 0x10007a44
mov ecx, 0x10652ef8
call fcn.1000eaa5
mov ecx, eax
call fcn.1000b3c8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x10017408
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 2
jge 0x10017425
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x28]
call fcn.1000b52a
mov dword [eax], 0x3061ece3
jmp 0x100173fd
mov esp, ebp
pop ebp
ret
Function at 0x10028032
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x10028096
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x1002807c
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x1002807a
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10028091
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [eax], 0xfb1bde59
jmp 0x100281c0
lea eax, [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x1002810e
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100280ec
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 1
jge 0x10028109
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x3c]
call fcn.1000b52a
mov dword [eax], 0xfffffffd
jmp 0x100280e1
jmp 0x100281c0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], 0x18c6
cmp dword [ebp - 0x50], 0x10bf
jge 0x10028196
push 0x117a06bc
push 0x11493148
push 0x10007a30
call fcn.1004833b
add esp, 0xc
mov eax, dword [0x117a06bc]
cdq
idiv dword [0x11493148]
mov dword [ebp - 0x54], eax
mov eax, dword [0x117a06bc]
cdq
idiv dword [0x11493148]
mov dword [ebp - 0x58], edx
cmp dword [ebp - 0x54], 2
jne 0x10028188
mov eax, dword [0x11493148]
sub eax, dword [ebp - 0x58]
push eax
push 0x10007a24
call fcn.10048556
pop ecx
pop ecx
jmp 0x10028196
push 0
push 0x10007a24
call fcn.10048556
pop ecx
pop ecx
mov eax, dword [ebp - 8]
mov dword [eax], 0xffffffee
jmp 0x100281ac
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0xffffffe2
je 0x100281c0
mov eax, dword [ebp - 0x5c]
cmp dword [eax], 0
je 0x100281be
jmp 0x100281c0
jmp 0x100281a1
mov esp, ebp
pop ebp
ret
Function at 0x1002c49f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002c4dd
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
push 1
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.1002c50a
add esp, 0x14
jmp 0x1002c506
lea eax, [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x1002c4f7
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x1002c506
push 0x85c
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esp, ebp
pop ebp
ret
Function at 0x10056ae0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp ax, bx
jbe 0x10056b00
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x10056afa
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x10056aeb
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.100568a6
cdq
fnstcw word [ecx - 0x57ba72b4]
push eax
call fcn.100568b6
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.1005686b
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x10056b94
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67

Function at 0x10056c55
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 8]
call fcn.1005686b
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34

Function at 0x10056c85
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.100568b6
push eax
push esi
push dword [ebp + 8]
call fcn.1005686b
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.100568b6
push eax
push esi
push dword [ebp + 8]
call fcn.1005686b
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.100568a6
mov edi, 0x88026a92
popfd
jl 0x10056d2b
invalid
invalid
Function at 0x100577e3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosb byte es:[edi], al
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
invalid
invalid
invalid

Function at 0x10057c33
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.1005686b
add esp, 0xc
mov dword [ebp - 0x6c8], eax
push 0
lea eax, [ebp - 0x6e0]
push eax
push dword [ebp - 0x378]
push dword [ebp - 4]
push dword [ebp - 0x66c]
call dword [ebp - 0x6c8]
mov dword [ebp - 0x6cc], eax
push dword [ebp - 0x66c]
call dword [ebp - 0x680]
cmp dword [ebp - 0x6cc], 0
je 0x10058a39
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.10056817
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x10057cb3
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x10057cfc
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x10057ca6
call fcn.100568a6
das
ja 0x10057d1a
sbb byte [eax - 0x72b5b], al
inc dword [eax]
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54

Function at 0x10057d2f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.100568a6
pop ecx
fstp xword [eax - 0x65]
lea eax, [ebp - 0x72c]
push eax
call fcn.100568b6
pop ecx
push eax
push dword [ebp + 0x18]
jne 0x10057dbc
push dword [ebp + 0x14]
call fcn.1005686b
add esp, 0xc
mov dword [ebp - 0x6e4], eax
call fcn.100568a6
popal
or eax, 0x858d7427
call 0x61057dbd
push 0x40
push 5
push dword [ebp - 0x3a8]
call dword [ebp - 0x6e4]
push 5
lea eax, [ebp - 0x394]
push eax
push dword [ebp - 0x3a8]
call fcn.10056817
inc dword [ebx - 0x7a72f33c]
call 0x61057deb
invalid
mov ch, pe_nt_image_headers32
clc
Function at 0x1005ad32
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10067750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1004e438
mov dword [ebp - 0x14], eax
cmp dword [0x10654018], esi
jne 0x1005ae25
push 0x800
push esi
push 0x1000686c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1005adb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1005af05
push esi
push esi
push 0x1000686c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1005af05
push 0x10006884
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005af05
push eax
call ebx
push 0x10006890
push edi
mov dword [0x10654018], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100068a0
push edi
mov dword [0x1065401c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100068b4
push edi
mov dword [0x10654020], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10654028], eax
test eax, eax
je 0x1005ae22
push 0x100068d0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10654024], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1005ae4a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1005ae3d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1005ae5f
push 4
pop eax
jmp 0x1005af07
cmp dword [ebp - 0x14], esi
je 0x1005ae5f
push dword [0x10654018]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1005ae44
mov eax, dword [0x10654024]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1005aebd
cmp dword [0x10654028], edi
je 0x1005aebd
push eax
call ebx
push dword [0x10654028]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1005aebd
test eax, eax
je 0x1005aebd
call ecx
test eax, eax
je 0x1005aeb2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1005aeb2
test byte [ebp - 8], 1
jne 0x1005aebd
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1005aeed
mov eax, dword [0x1065401c]
cmp eax, edi
je 0x1005aeea
push eax
call ebx
test eax, eax
je 0x1005aeea
call eax
mov esi, eax
test esi, esi
je 0x1005aeea
mov eax, dword [0x10654020]
cmp eax, edi
je 0x1005aeea
push eax
call ebx
test eax, eax
je 0x1005aeea
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10654018]
call ebx
test eax, eax
je 0x1005af05
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1005af07
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004b9c3
mov esp, ebp
pop ebp
ret
Function at 0x402e0c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4035a4
Capabilities:
Query or enumerate registry value

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

Function at 0x403f08
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a044], 0
je 0x403f69
cmp word [0x40a218], 0xd7b2
jne 0x403f31
cmp dword [0x40a220], 0
jbe 0x403f31
mov eax, 0x40a214
call dword [0x40a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409064
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 0x403f90
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409024], 0
jne 0x403f85
push 0
push 0x40905c
push 0x409064
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404d18
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 0x404d7e
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.004042d4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f60
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404d68
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404d85
lea eax, [ebp - 0x10]
call fcn.0040408c
ret

Function at 0x406b60
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 0x406b99
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040417c
jmp 0x406ba2
mov eax, ebx
mov edx, esi
call fcn.004040e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x407264
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4070cc
mov eax, dword [0x4093b4]
cmp byte [eax], 0
je 0x4072e0
mov eax, dword [0x409308]
call fcn.00402d80
call fcn.004029b8
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.00406034
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 0x407328
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x407316
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4092e8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40a660]
call fcn.004046e8
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 0x407d04
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 0x407d68
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.004042d4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405efc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407d6f
lea eax, [ebp - 0xc]
call fcn.0040408c
ret