joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100bfd80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100cf614]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
mov eax, 1
imul ecx, eax, 0xc
mov byte [ebp + ecx - 0x1c], 0x4d
mov edx, 1
imul eax, edx, 0x11
mov byte [ebp + eax - 0x1c], 0x6c
mov ecx, 1
imul edx, ecx, 9
mov byte [ebp + edx - 0x1c], 0x63
mov eax, 1
shl eax, 1
mov byte [ebp + eax - 0x1c], 0x49
mov ecx, 1
imul edx, ecx, 0x12
mov byte [ebp + edx - 0x1c], 0x61
mov eax, 1
imul ecx, eax, 5
mov byte [ebp + ecx - 0x1c], 0x49
mov edx, 1
imul eax, edx, 0x13
mov byte [ebp + eax - 0x1c], 0x29
mov ecx, 1
imul edx, ecx, 0xa
mov byte [ebp + edx - 0x1c], 0x20
mov eax, 1
imul ecx, eax, 0xe
mov byte [ebp + ecx - 0x1c], 0x7a
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x1c], 0x4e
mov ecx, 1
imul edx, ecx, 0xb
mov byte [ebp + edx - 0x1c], 0x28
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x1c], 0x53
mov ecx, 1
imul edx, ecx, 0xd
mov byte [ebp + edx - 0x1c], 0x6f
mov eax, 1
shl eax, 2
mov byte [ebp + eax - 0x1c], 0x5f
mov ecx, 1
imul edx, ecx, 7
mov byte [ebp + edx - 0x1c], 0x65
mov eax, 1
imul ecx, eax, 3
mov byte [ebp + ecx - 0x1c], 0x53
mov edx, 1
shl edx, 3
mov byte [ebp + edx - 0x1c], 0x74
mov eax, 1
imul ecx, eax, 0x14
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0x15
jae 0x100bfe86
jmp 0x100bfe8b
call fcn.1001d926
mov edx, dword [ebp - 0x24]
mov byte [ebp + edx - 0x1c], 0
mov eax, 1
shl eax, 4
mov byte [ebp + eax - 0x1c], 0x6c
mov ecx, 1
imul edx, ecx, 6
mov byte [ebp + edx - 0x1c], 0x6e
mov eax, 1
imul ecx, eax, 0xf
mov byte [ebp + ecx - 0x1c], 0x69
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000e540
mov eax, dword [ebp - 0x20]
or eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019cf8
mov esp, ebp
pop ebp
ret
Function at 0x100bfee0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100cf614]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0
call fcn.100bdb20
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x100c0043
mov eax, 1
imul ecx, eax, 0xb
mov byte [ebp + ecx - 0x18], 0x65
mov edx, 1
imul eax, edx, 0xa
mov byte [ebp + eax - 0x18], 0x63
mov ecx, 1
imul edx, ecx, 0xf
mov byte [ebp + edx - 0x18], 0x74
mov eax, 1
imul ecx, eax, 7
mov byte [ebp + ecx - 0x18], 0x72
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x18], 0x51
mov ecx, 1
imul edx, ecx, 3
mov byte [ebp + edx - 0x18], 0x72
mov eax, 1
shl eax, 2
mov byte [ebp + eax - 0x18], 0x79
mov ecx, 1
shl ecx, 1
mov byte [ebp + ecx - 0x18], 0x65
mov edx, 1
imul eax, edx, 0x11
mov byte [ebp + eax - 0x18], 0x73
mov ecx, 1
imul edx, ecx, 0xd
mov byte [ebp + edx - 0x18], 0x74
mov eax, 1
imul ecx, eax, 9
mov byte [ebp + ecx - 0x18], 0x69
mov edx, 1
imul eax, edx, 5
mov byte [ebp + eax - 0x18], 0x53
mov ecx, 1
shl ecx, 4
mov byte [ebp + ecx - 0x18], 0x75
mov edx, 1
imul eax, edx, 0xc
mov byte [ebp + eax - 0x18], 0x53
mov ecx, 1
imul edx, ecx, 0xe
mov byte [ebp + edx - 0x18], 0x61
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x18], 0x75
mov ecx, 1
shl ecx, 3
mov byte [ebp + ecx - 0x18], 0x76
mov edx, 1
imul eax, edx, 0x12
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x13
jae 0x100bfff8
jmp 0x100bfffd
call fcn.1001d926
mov ecx, dword [ebp - 0x28]
mov byte [ebp + ecx - 0x18], 0
mov edx, 1
imul eax, edx, 6
mov byte [ebp + eax - 0x18], 0x65
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x100c0037
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x1c]
push edx
call fcn.100bc340
add esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019cf8
mov esp, ebp
pop ebp
ret
Function at 0x100c0e50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bf578
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x100cf614]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.10005440
lea ecx, [ebp - 0x38]
call fcn.1000e510
mov dword [ebp - 4], 0
push 0x20
lea ecx, [ebp - 0x38]
call fcn.10013b60
mov dword [ebp - 0x3c], 0
jmp 0x100c0eb9
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0x10
jge 0x100c0fec
mov edx, 1
imul eax, edx, 0xc
mov byte [ebp + eax - 0x50], 0x63
mov ecx, 1
imul edx, ecx, 0xb
mov byte [ebp + edx - 0x50], 0x62
mov eax, 1
imul ecx, eax, 3
mov byte [ebp + ecx - 0x50], 0x33
mov edx, 1
imul eax, edx, 9
mov byte [ebp + eax - 0x50], 0x39
mov ecx, 1
imul edx, ecx, 0xf
mov byte [ebp + edx - 0x50], 0x66
mov eax, 1
imul ecx, eax, 0xe
mov byte [ebp + ecx - 0x50], 0x65
mov edx, 1
shl edx, 3
mov byte [ebp + edx - 0x50], 0x38
mov eax, 1
shl eax, 4
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0x11
jae 0x100c0f31
jmp 0x100c0f36
call fcn.1001d926
mov ecx, dword [ebp - 0x58]
mov byte [ebp + ecx - 0x50], 0
mov edx, 1
imul eax, edx, 0xd
mov byte [ebp + eax - 0x50], 0x64
mov ecx, 1
shl ecx, 1
mov byte [ebp + ecx - 0x50], 0x32
mov edx, 1
shl edx, 0
mov byte [ebp + edx - 0x50], 0x31
mov eax, 1
imul ecx, eax, 5
mov byte [ebp + ecx - 0x50], 0x35
mov edx, 1
imul eax, edx, 0xa
mov byte [ebp + eax - 0x50], 0x61
mov ecx, 1
imul edx, ecx, 6
mov byte [ebp + edx - 0x50], 0x36
mov eax, 1
imul ecx, eax, 7
mov byte [ebp + ecx - 0x50], 0x37
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x50], 0x30
mov ecx, 1
shl ecx, 2
mov byte [ebp + ecx - 0x50], 0x34
mov edx, dword [ebp - 0x3c]
movzx eax, byte [ebp + edx - 0x20]
sar eax, 4
and eax, 0xf
movzx ecx, byte [ebp + eax - 0x50]
push ecx
lea ecx, [ebp - 0x38]
call fcn.100129f0
mov edx, dword [ebp - 0x3c]
movzx eax, byte [ebp + edx - 0x20]
and eax, 0xf
movzx ecx, byte [ebp + eax - 0x50]
push ecx
lea ecx, [ebp - 0x38]
call fcn.100129f0
jmp 0x100c0eb0
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000e580
mov eax, dword [ebp - 0x54]
or eax, 1
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.1000e680
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10019cf8
mov esp, ebp
pop ebp
ret 4
Function at 0x100c1170
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100cf614]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 1
imul ecx, eax, 0xa
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0xb
jae 0x100c1193
jmp 0x100c1198
call fcn.1001d926
mov edx, dword [ebp - 0x14]
mov byte [ebp + edx - 0x10], 0
mov eax, 1
imul ecx, eax, 7
mov byte [ebp + ecx - 0x10], 0x64
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x10], 0x55
mov ecx, 1
shl ecx, 3
mov byte [ebp + ecx - 0x10], 0x6c
mov edx, 1
imul eax, edx, 5
mov byte [ebp + eax - 0x10], 0x32
mov ecx, 1
shl ecx, 1
mov byte [ebp + ecx - 0x10], 0x65
mov edx, 1
imul eax, edx, 9
mov byte [ebp + eax - 0x10], 0x6c
mov ecx, 1
imul edx, ecx, 6
mov byte [ebp + edx - 0x10], 0x2e
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x10], 0x73
mov ecx, 1
imul edx, ecx, 3
mov byte [ebp + edx - 0x10], 0x72
mov eax, 1
shl eax, 2
mov byte [ebp + eax - 0x10], 0x33
lea ecx, [ebp - 0x10]
push ecx
call fcn.100bda10
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019cf8
mov esp, ebp
pop ebp
ret
Function at 0x100c1690
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100cf614]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x15], 0
mov eax, 1
shl eax, 3
mov byte [ebp + eax - 0x14], 0x32
mov ecx, 1
shl ecx, 2
mov byte [ebp + ecx - 0x14], 0x65
mov edx, 1
imul eax, edx, 3
mov byte [ebp + eax - 0x14], 0x63
mov ecx, 1
imul edx, ecx, 6
mov byte [ebp + edx - 0x14], 0x73
mov eax, 1
imul ecx, eax, 0xa
mov byte [ebp + ecx - 0x14], 0x69
mov edx, 1
imul eax, edx, 5
mov byte [ebp + eax - 0x14], 0x73
mov ecx, 1
imul edx, ecx, 7
mov byte [ebp + edx - 0x14], 0x33
mov eax, 1
shl eax, 1
mov byte [ebp + eax - 0x14], 0x6f
mov ecx, 1
imul edx, ecx, 9
mov byte [ebp + edx - 0x14], 0x46
mov eax, 1
imul ecx, eax, 0xb
mov byte [ebp + ecx - 0x14], 0x72
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x14], 0x50
mov ecx, 1
shl ecx, 0
mov byte [ebp + ecx - 0x14], 0x72
mov edx, 1
imul eax, edx, 0xc
mov byte [ebp + eax - 0x14], 0x73
mov ecx, 1
imul edx, ecx, 0xd
mov byte [ebp + edx - 0x14], 0x74
mov eax, 1
imul ecx, eax, 0xe
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0xf
jae 0x100c176c
jmp 0x100c1771
call fcn.1001d926
mov edx, dword [ebp - 0x1c]
mov byte [ebp + edx - 0x14], 0
lea eax, [ebp - 0x14]
push eax
call fcn.100b94f0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x100c17b1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x20]
test eax, eax
je 0x100c17a7
mov byte [ebp - 0x16], 1
jmp 0x100c17ab
mov byte [ebp - 0x16], 0
mov al, byte [ebp - 0x16]
mov byte [ebp - 0x15], al
movzx eax, byte [ebp - 0x15]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019cf8
mov esp, ebp
pop ebp
ret
Function at 0x100c17d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100cf614]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 1
call fcn.100bdb20
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100c18f2
mov eax, 1
shl eax, 1
mov byte [ebp + eax - 0x14], 0x67
mov ecx, 1
imul edx, ecx, 6
mov byte [ebp + edx - 0x14], 0x65
mov eax, 1
imul ecx, eax, 5
mov byte [ebp + ecx - 0x14], 0x6c
mov edx, 1
imul eax, edx, 3
mov byte [ebp + eax - 0x14], 0x44
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x14], 0x52
mov eax, 1
shl eax, 2
mov byte [ebp + eax - 0x14], 0x65
mov ecx, 1
imul edx, ecx, 0xc
mov byte [ebp + edx - 0x14], 0x41
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x14], 0x65
mov ecx, 1
imul edx, ecx, 0xa
mov byte [ebp + edx - 0x14], 0x65
mov eax, 1
imul ecx, eax, 9
mov byte [ebp + ecx - 0x14], 0x4b
mov edx, 1
shl edx, 3
mov byte [ebp + edx - 0x14], 0x65
mov eax, 1
imul ecx, eax, 7
mov byte [ebp + ecx - 0x14], 0x74
mov edx, 1
imul eax, edx, 0xd
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xe
jae 0x100c18a7
jmp 0x100c18ac
call fcn.1001d926
mov ecx, dword [ebp - 0x24]
mov byte [ebp + ecx - 0x14], 0
mov edx, 1
imul eax, edx, 0xb
mov byte [ebp + eax - 0x14], 0x79
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x100c18e6
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x18]
push edx
call fcn.100bc340
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019cf8
mov esp, ebp
pop ebp
ret
Function at 0x100c19b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100cf614]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0xe
call fcn.100bb4b0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100c1ad2
mov eax, 1
imul ecx, eax, 0xb
mov byte [ebp + ecx - 0x14], 0x67
mov edx, 1
imul eax, edx, 0xd
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xe
jae 0x100c19f9
jmp 0x100c19fe
call fcn.1001d926
mov ecx, dword [ebp - 0x24]
mov byte [ebp + ecx - 0x14], 0
mov edx, 1
imul eax, edx, 5
mov byte [ebp + eax - 0x14], 0x6f
mov ecx, 1
imul edx, ecx, 0xa
mov byte [ebp + edx - 0x14], 0x6e
mov eax, 1
imul ecx, eax, 3
mov byte [ebp + ecx - 0x14], 0x64
mov edx, 1
imul eax, edx, 6
mov byte [ebp + eax - 0x14], 0x53
mov ecx, 1
shl ecx, 2
mov byte [ebp + ecx - 0x14], 0x54
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x14], 0x55
mov ecx, 1
imul edx, ecx, 9
mov byte [ebp + edx - 0x14], 0x69
mov eax, 1
imul ecx, eax, 7
mov byte [ebp + ecx - 0x14], 0x74
mov edx, 1
imul eax, edx, 0xc
mov byte [ebp + eax - 0x14], 0x41
mov ecx, 1
shl ecx, 0
mov byte [ebp + ecx - 0x14], 0x75
mov edx, 1
shl edx, 3
mov byte [ebp + edx - 0x14], 0x72
mov eax, 1
shl eax, 1
mov byte [ebp + eax - 0x14], 0x69
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x100c1ac6
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x18]
push edx
call fcn.100bc340
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019cf8
mov esp, ebp
pop ebp
ret
Function at 0x5709d0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x47290271
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..rdata
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x62fc38e4
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219

Function at 0x401000
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
push edi
mov ebx, eax
xor edi, edi
xor eax, eax
mov dword [esp + eax*4 + 0x10], eax
inc eax
cmp eax, 0x100
jl 0x401010
xor ecx, ecx
lea esi, [ecx + 2]
xor edx, edx
mov eax, ecx
mov ebp, 0xf
div ebp
movzx eax, byte [edx + ebx]
add eax, edi
add eax, dword [esp + ecx*4 + 0x10]
mov edi, eax
and edi, 0x800000ff
jns 0x401048
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + ecx*4 + 0x10]
mov edx, dword [esp + edi*4 + 0x10]
mov dword [esp + ecx*4 + 0x10], edx
movzx eax, al
mov dword [esp + edi*4 + 0x10], eax
xor edx, edx
lea eax, [esi - 1]
div ebp
movzx edx, byte [edx + ebx]
add edx, edi
add edx, dword [esp + ecx*4 + 0x14]
mov edi, edx
and edi, 0x800000ff
jns 0x40107e
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + ecx*4 + 0x14]
mov edx, dword [esp + edi*4 + 0x10]
movzx eax, al
mov dword [esp + ecx*4 + 0x14], edx
mov dword [esp + edi*4 + 0x10], eax
xor edx, edx
mov eax, esi
div ebp
movzx edx, byte [edx + ebx]
add edx, dword [esp + ecx*4 + 0x18]
add edi, edx
and edi, 0x800000ff
jns 0x4010b1
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + ecx*4 + 0x18]
mov edx, dword [esp + edi*4 + 0x10]
mov dword [esp + ecx*4 + 0x18], edx
movzx eax, al
mov dword [esp + edi*4 + 0x10], eax
xor edx, edx
lea eax, [esi + 1]
div ebp
movzx edx, byte [edx + ebx]
add edx, edi
add edx, dword [esp + ecx*4 + 0x1c]
mov edi, edx
and edi, 0x800000ff
jns 0x4010e7
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + ecx*4 + 0x1c]
mov edx, dword [esp + edi*4 + 0x10]
mov dword [esp + ecx*4 + 0x1c], edx
movzx eax, al
add esi, 4
add ecx, 4
cmp esi, 0x102
mov dword [esp + edi*4 + 0x10], eax
jl 0x401021
mov eax, dword [esp + 0x418]
xor edx, edx
test eax, eax
jbe 0x40118a
mov ebp, dword [esp + 0x414]
inc ecx
and ecx, 0x800000ff
jns 0x401131
dec ecx
or ecx, 0xffffff00
inc ecx
mov esi, dword [esp + ecx*4 + 0x10]
add edi, esi
and edi, 0x800000ff
jns 0x401147
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + ecx*4 + 0x10]
mov esi, dword [esp + edi*4 + 0x10]
mov dword [esp + ecx*4 + 0x10], esi
movzx esi, bl
mov dword [esp + edi*4 + 0x10], esi
mov ebx, dword [esp + ecx*4 + 0x10]
add ebx, esi
and ebx, 0x800000ff
jns 0x401170
dec ebx
or ebx, 0xffffff00
inc ebx
movzx ebx, byte [esp + ebx*4 + 0x10]
xor byte [edx + ebp], bl
inc edx
cmp edx, eax
jb 0x401120
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x400
ret
mov eax, dword [esp + 0x414]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret
Function at 0x402984
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4029c1
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4029e1
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404d88
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402c80
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404b20
test esi, esi
jne 0x402cb6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404c10
jmp 0x402cd4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402b34
mov edi, eax
test esi, esi
je 0x402cd4
cmp dword [ebx], 0
je 0x402cd4
dec esi
jmp 0x402cbd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403abc
Capabilities:
Query or enumerate registry value

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

Function at 0x404900
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x59004c], 0
je 0x404961
cmp word [0x590220], 0xd7b2
jne 0x404929
cmp dword [0x590228], 0
jbe 0x404929
mov eax, 0x59021c
call dword [0x590238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x58a058
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 0x404988
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x58a020], 0
jne 0x40497d
push 0
push 0x58a078
push 0x58a058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404ad4
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.00402764
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x59004d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a9c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40670c
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 0x40693c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40678f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40693c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40678f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406958
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406818
xor eax, eax
push ebp
push 0x406811
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406554
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 0x4067f6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406978
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4067f6
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 0x406818
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 0x406932
cmp byte [ebp - 0xd], 0
jne 0x40685f
cmp byte [ebp - 0x12], 0
je 0x406932
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406878
dec ebx
cmp byte [ebx], 0x2e
je 0x406887
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406877
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406932
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4068c4
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 0x406932
cmp byte [ebp - 0xd], 0
je 0x406932
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 0x406932
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