joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10033188
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100331d2
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10033179
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10033188
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10438e2b
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x100331d9
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1001a04f
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10033278
add edi, 4
add eax, 2
dec ecx
jne 0x100331be
call 0x10033225
loope 0x1003321b
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10033275
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10033286
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10033239
cmp eax, ecx
ja 0x10033239
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100332c3
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100332b9
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001a52e
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x403080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push esi
push edi
mov ecx, 0x10
xor eax, eax
mov edi, dword [ebp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x408]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x408]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
push ecx
lea ecx, [ebp - 0x408]
push ecx
call fcn.00403580
add esp, 8
lea edx, [ebp - 0x408]
push edx
push str.SoftwareMicrosoftSecurity_s
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0
lea ecx, [ebp - 0x40c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
lea edx, [ebp - 0x204]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403195
mov dword [ebp - 0x208], 0x40
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.Stamp
mov eax, dword [ebp - 0x40c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x208], 0
jne 0x40316c
mov ecx, dword [ebp - 0x40c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403195
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00403580
add esp, 8
mov eax, dword [ebp - 0x40c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4031a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push esi
push edi
mov dword [ebp - 4], 0
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x430]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x430]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
push ecx
lea ecx, [ebp - 0x430]
push ecx
call fcn.00403580
add esp, 8
lea edx, [ebp - 0x430]
push edx
push str.SoftwareMicrosoftSecurity_s
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0
lea ecx, [ebp - 0x434]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
lea edx, [ebp - 0x208]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403310
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x22c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov dword [ebp - 0x230], 0x21
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0x407654
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x230], 0
jne 0x4032a0
mov ecx, dword [ebp - 0x434]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x403313
lea edi, [ebp - 0x22c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.00403580
add esp, 8
lea edi, [ebp - 0x21c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
test ecx, ecx
jbe 0x403303
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cdq
mov ecx, 0x3c
idiv ecx
cdq
mov ecx, 0x3c
idiv ecx
cdq
mov ecx, 0x18
idiv ecx
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x434]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Packed with generic packer

Disassembly:
call fcn.00415d85
or byte [ebp + 1], 0
inc edx
inc esi
xchg byte [ebx - 0x30], ch
sahf
jp 0x400fb4
mov cl, 0x76
outsb dx, byte [esi]
cld
invalid
Function at 0x416ad6
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0x18
mov eax, dword [ebp - 0x1c]
mov eax, dword fs:[eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x416b64
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x18]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00416791
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x416b74
cmp dword [ebp - 0x10], 0
je 0x416b28
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x41a29d
Capabilities:
Encrypt data using speck

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
jmp 0x41a2e0
mov eax, dword [ebp - 4]
lea edx, [eax*4]
mov eax, dword [ebp + 8]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x18], edx
add dword [ebp - 4], 1
cmp dword [ebp - 4], 3
jbe 0x41a2c4
mov dword [ebp - 4], 0
jmp 0x41a34d
mov eax, dword [ebp - 0x20]
ror eax, 8
mov edx, eax
mov eax, dword [ebp - 0x1c]
add edx, eax
mov eax, dword [ebp - 0x18]
xor eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
rol eax, 3
mov edx, eax
mov eax, dword [ebp - 0x20]
xor eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
ror eax, 8
mov edx, eax
mov eax, dword [ebp - 0x18]
add eax, edx
xor eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
rol eax, 3
mov edx, eax
mov eax, dword [ebp - 0xc]
xor eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
add dword [ebp - 4], 1
cmp dword [ebp - 4], 0x1a
jbe 0x41a2ef
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
leave
ret
Function at 0x41a495
Capabilities:
Encrypt data using chaskey

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
jmp 0x41a4ea
mov eax, dword [ebp - 8]
lea edx, [eax*4]
mov eax, dword [ebp - 0xc]
add eax, edx
mov edx, dword [ebp - 8]
lea ecx, [edx*4]
mov edx, dword [ebp - 0xc]
add edx, ecx
mov ecx, dword [edx]
mov edx, dword [ebp - 8]
lea ebx, [edx*4]
mov edx, dword [ebp - 0x10]
add edx, ebx
mov edx, dword [edx]
xor edx, ecx
mov dword [eax], edx
add dword [ebp - 8], 1
cmp dword [ebp - 8], 3
jbe 0x41a4b1
mov dword [ebp - 8], 0
jmp 0x41a5ea
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov eax, dword [ebp - 0xc]
add eax, 4
mov eax, dword [eax]
add edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
lea edx, [eax + 4]
mov eax, dword [ebp - 0xc]
add eax, 4
mov eax, dword [eax]
rol eax, 5
mov ecx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
xor eax, ecx
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
add eax, 8
mov edx, dword [ebp - 0xc]
add edx, 8
mov ecx, dword [edx]
mov edx, dword [ebp - 0xc]
add edx, 0xc
mov edx, dword [edx]
add edx, ecx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
add eax, 0xc
mov edx, dword [ebp - 0xc]
add edx, 0xc
mov edx, dword [edx]
mov ecx, edx
rol ecx, 8
mov edx, dword [ebp - 0xc]
add edx, 8
mov edx, dword [edx]
xor edx, ecx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
add eax, 8
mov edx, dword [ebp - 0xc]
add edx, 8
mov ecx, dword [edx]
mov edx, dword [ebp - 0xc]
add edx, 4
mov edx, dword [edx]
add edx, ecx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
rol eax, 0x10
mov edx, eax
mov eax, dword [ebp - 0xc]
add eax, 0xc
mov eax, dword [eax]
add edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 0xc]
add eax, 0xc
mov eax, dword [eax]
rol eax, 0xd
mov ecx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
xor eax, ecx
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
add eax, 4
mov edx, dword [ebp - 0xc]
add edx, 4
mov edx, dword [edx]
mov ecx, edx
rol ecx, 7
mov edx, dword [ebp - 0xc]
add edx, 8
mov edx, dword [edx]
xor edx, ecx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
add eax, 8
mov edx, dword [ebp - 0xc]
add edx, 8
mov edx, dword [edx]
rol edx, 0x10
mov dword [eax], edx
add dword [ebp - 8], 1
cmp dword [ebp - 8], 0xf
jbe 0x41a4fc
mov dword [ebp - 8], 0
jmp 0x41a636
mov eax, dword [ebp - 8]
lea edx, [eax*4]
mov eax, dword [ebp - 0xc]
add eax, edx
mov edx, dword [ebp - 8]
lea ecx, [edx*4]
mov edx, dword [ebp - 0xc]
add edx, ecx
mov ecx, dword [edx]
mov edx, dword [ebp - 8]
lea ebx, [edx*4]
mov edx, dword [ebp - 0x10]
add edx, ebx
mov edx, dword [edx]
xor edx, ecx
mov dword [eax], edx
add dword [ebp - 8], 1
cmp dword [ebp - 8], 3
jbe 0x41a5fd
nop
add esp, 0x10
pop ebx
pop ebp
ret
Function at 0x41a643
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
jmp 0x41a718
mov dword [ebp - 0xc], 0
jmp 0x41a67d
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
add edx, ecx
mov byte [edx], al
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0xf
jbe 0x41a664
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0041a495
mov eax, 0x10
cmp dword [ebp + 0x14], 0x10
cmovbe eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x41a6d4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, edx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
add edx, ecx
movzx ebx, byte [edx]
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
add edx, ecx
movzx edx, byte [edx]
xor edx, ebx
mov byte [eax], dl
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jb 0x41a6ae
mov eax, dword [ebp - 0x14]
sub dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x10
jmp 0x41a711
mov eax, dword [ebp - 0xc]
lea edx, [eax - 1]
mov eax, dword [ebp - 0x10]
add eax, edx
movzx edx, byte [eax]
add edx, 1
mov byte [eax], dl
movzx eax, byte [eax]
test al, al
je 0x41a70d
jmp 0x41a718
sub dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
test eax, eax
jg 0x41a6f1
cmp dword [ebp + 0x14], 0
jne 0x41a65b
nop
add esp, 0x28
pop ebx
pop ebp
ret
Function at 0x403af0
Capabilities:
Query or enumerate registry value

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

Function at 0x4048e8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49704c], 0
je 0x404949
cmp word [0x497220], 0xd7b2
jne 0x404911
cmp dword [0x497228], 0
jbe 0x404911
mov eax, 0x49721c
call dword [0x497238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x495070
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 0x404970
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x495030], 0
jne 0x404965
push 0
push 0x495068
push 0x495070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406d48
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 0x406dae
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.00404cec
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004034f4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406d98
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406db5
lea eax, [ebp - 0x10]
call fcn.00404a6c
ret
Function at 0x4091b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0xc], eax
lea esi, [ebp - 8]
xor eax, eax
push ebp
push 0x40935d
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 0x34
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x409374
lea eax, [ebp - 0x114]
mov edx, ebx
call fcn.00404c54
push dword [ebp - 0x114]
push 0x409398
lea eax, [ebp - 0x110]
mov edx, 3
call fcn.00404dfc
mov eax, dword [ebp - 0x110]
call fcn.00404f3c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40932d
mov dword [esi], 0xff
push esi
lea eax, [ebp - 0x10b]
push eax
push esi
push 0
push 0x40939c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x409324
lea eax, [ebp - 0xc]
call fcn.00404a6c
mov dword [esi], 1
jmp 0x4092b0
lea eax, [ebp - 0x118]
mov edx, dword [esi]
mov dl, byte [ebp + edx - 0x10c]
call fcn.00404c54
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0xc]
call fcn.00404d44
inc dword [esi]
mov eax, dword [esi]
cmp byte [ebp + eax - 0x10c], 0
jne 0x40928c
push 0x4093ac
push dword [ebp - 0xc]
push 0x4093b8
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.00404dfc
mov eax, dword [ebp - 0x11c]
push eax
lea eax, [ebp - 0x120]
mov ecx, 0x4093d4
mov edx, dword [ebp - 0xc]
call fcn.00404d88
mov eax, dword [ebp - 0x120]
push eax
push dword [ebp - 0xc]
push 0x4093ec
push 0x409410
lea eax, [ebp - 0x124]
mov edx, 3
call fcn.00404dfc
mov eax, dword [ebp - 0x124]
pop edx
pop ecx
call fcn.00408cdc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
inc ebx
cmp bl, 0x38
jne 0x4091ff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409364
lea eax, [ebp - 0x124]
mov edx, 6
call fcn.00404a90
lea eax, [ebp - 0xc]
call fcn.00404a6c
ret

Function at 0x40de44
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 0x40de7d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b5c
jmp 0x40de86
mov eax, ebx
mov edx, esi
call fcn.00404ac0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40de90
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 0x40deb1
mov al, byte [esp]
jmp 0x40deb3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40e548
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40e3b0
mov eax, dword [0x496580]
cmp byte [eax], 0
je 0x40e5c4
mov eax, dword [0x49634c]
call fcn.00403110
call fcn.00402c54
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.0040afa0
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 0x40e60c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e5fa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4962f0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x497668]
call fcn.00406198
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 0x40eeb0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ef86
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404b04
lea eax, [ebp - 8]
call fcn.00404f8c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404f3c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ef70
mov eax, ebx
call fcn.00402ac8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ef69
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404f3c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ef53
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ef98
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ef53
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ef70
mov eax, dword [ebp - 0x10]
call fcn.00402af8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ef8d
lea eax, [ebp - 8]
call fcn.00404a6c
ret

Function at 0x40f4f4
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 0x40f558
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.00404cec
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040aa64
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f55f
lea eax, [ebp - 0xc]
call fcn.00404a6c
ret
Function at 0x424bac
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x497888
cmp dword [edi], 0
jne 0x424c28
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x497884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x495588
mov ecx, 2
call fcn.00402ce8
mov edx, 0x424b84
lea eax, [esi + 5]
call fcn.00424ba4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00424ba4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x424bfd
mov dword [0x497884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4261c4
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 0x4261ca
ret

Function at 0x428898
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 0x4288e9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4288d0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4288c0
jmp 0x4288e9
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 0x4288d1
pop ebx
mov esp, ebp
pop ebp
ret