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

Disassembly:
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x18156517
je 0x181564ec
invalid
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x1815655e
lea eax, [ebp - 0x714]
push eax
call fcn.181544d8
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.1815448d
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x18156569
jmp 0x1815656e
jmp fcn.18155e6a
cmp dword [ebp - 0x37c], 0
jne 0x18156618
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x7ec], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x7e8], eax
and dword [ebp - 0x7e0], 0
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x7e4], eax
push dword [ebp - 0x7e4]
lea eax, [ebp - 0x7ec]
push eax
push dword [ebp - 0x748]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.181546a4
add esp, 0x14
mov dword [ebp - 0x7e0], eax
cmp dword [ebp - 0x7e0], 0
je 0x18156604
lea eax, [ebp - 0x714]
push eax
call fcn.181544d8
pop ecx

Function at 0x1815706d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1815710a
push ebx
push esi
call fcn.18157036
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.18156f7f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x181570b7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x18157109
push edi
push eax
call fcn.18153a38
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x181570d7
call fcn.18151c88
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x18157108
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.18156f7f
add esp, 0x20
test eax, eax
jne 0x181570f6
push edi
call fcn.18151c88
jmp 0x181570fe
push ebx
call fcn.18151c88
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1815710d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1815711e
pop esi
ret
push ebx
push edi
push esi
call fcn.18157036
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.18153a38
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x18157146
push ebx
push esi
push edi
call fcn.1813f840
add esp, 0xc
push 0
call fcn.18151c88
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1815750a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1815715b
Function at 0x4044d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x40
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [0x4de47c]
mov edi, dword [edi]
xor edi, ebp
mov dword [ebp - 0xc], edi
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call sub.KERNEL32.dll_VirtualAlloc
sub esp, 0x10
mov dword [ebp - 0x24], eax
cmp eax, 0
jne 0x40452d
jmp 0x404541
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
cmp word [eax + 4], 0
je 0x404590
jmp 0x4045bc
mov eax, dword [ebp - 0x24]
mov word [ebp - 0x18], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x38], eax
jmp 0x40451b
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [ebp - 0x30]
mov word [ebp - 0x1e], ax
movzx edx, ax
call fcn.00408360
mov ecx, dword [ebp - 0x30]
mov word [ebp - 0x10], ax
call fcn.00401c30
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
mov eax, dword [0x4de47c]
mov eax, dword [eax]
sub eax, ecx
jne 0x404581
jmp 0x404586
call fcn.004a85b0
mov eax, dword [ebp - 0x28]
add esp, 0x40
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
mov eax, dword [0x4de47c]
mov eax, dword [eax]
sub eax, ecx
jne 0x404581
jmp 0x4045b2
mov eax, dword [ebp - 0x28]
add esp, 0x40
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x30]
call fcn.00401c30
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
mov eax, dword [0x4de47c]
mov eax, dword [eax]
sub eax, ecx
jne 0x404581
jmp 0x4045e6
mov eax, dword [ebp - 0x28]
add esp, 0x40
pop esi
pop edi
pop ebp
ret
Function at 0x4064c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0xbc
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb0], ecx
mov esi, dword [ebp + 8]
mov eax, dword [0x4de47c]
mov eax, dword [eax]
xor eax, ebp
mov dword [ebp - 8], eax
call sub.KERNEL32.dll_GetCommandLineW
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0xa4]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00440410
cmp word [ebp - 0x80], 0
je 0x406566
mov ecx, dword [ebp - 0xac]
mov ax, word [ebp - 0x80]
mov word [ebp - 0x58], ax
call fcn.00401c30
mov ecx, dword [ebp - 0xb4]
lea eax, [ebp - 0x7c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x28
call fcn.004a72a0
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov eax, dword [0x4de47c]
mov eax, dword [eax]
sub eax, ecx
jne 0x4065d2
jmp 0x406557
mov eax, dword [ebp - 0xb0]
add esp, 0xbc
pop esi
pop ebp
ret
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x54]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x24
call fcn.004a72a0
mov word [ebp - 0xc], 0
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x54]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x24
call fcn.004a72a0
mov ecx, dword [ebp - 0xb4]
lea eax, [ebp - 0x30]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x28
call fcn.004a72a0
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov eax, dword [0x4de47c]
mov eax, dword [eax]
sub eax, ecx
jne 0x4065d2
jmp 0x4065d7
call fcn.004a85b0
mov eax, dword [ebp - 0xb0]
add esp, 0xbc
pop esi
pop ebp
ret
Function at 0x4439d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, edx
mov edx, dword [0x4de47c]
mov edx, dword [edx]
xor edx, ebp
mov dword [ebp - 8], edx
mov edx, eax
mov dword [ebp - 0x1c], edx
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp edx, 0
je 0x443a1d
jmp 0x443a1f
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
xor eax, eax
cmp eax, ecx
jbe 0x443a65
jmp 0x443a67
mov al, byte [ebp - 0x21]
test al, 1
jne 0x443a2d
jmp 0x443a58
jmp 0x443a26
xor eax, eax
mov byte [ebp - 0x21], al
jmp 0x443a14
mov al, 1
mov byte [ebp - 0x21], al
jmp 0x443a14
mov eax, 0xaaaaaaaa
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov eax, dword [0x4de47c]
mov eax, dword [eax]
sub eax, ecx
jne 0x443a83
jmp 0x443a4c
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
add esp, 0x28
pop esi
pop ebp
ret
jmp 0x4439fd
mov ecx, dword [ebp - 0x1c]
xor eax, eax
cmp eax, ecx
jbe 0x443a94
jmp 0x443a96
jmp 0x443a5a
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
call fcn.00401eb0
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov eax, dword [0x4de47c]
mov eax, dword [eax]
sub eax, ecx
jne 0x443a83
jmp 0x443a88
call fcn.004a85b0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
add esp, 0x28
pop esi
pop ebp
ret
jmp 0x443a71
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
call fcn.00401ee0
Function at 0x448400
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [0x4de47c]
mov eax, dword [eax]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
mov dword [esp], eax
mov dword [esp + 4], 0xaa
mov dword [esp + 8], 8
call fcn.004a6a40
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x34], 0x4d430001
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x34]
xor edx, edx
rol edi, 3
rol edi, 0xd
rol edi, 0x3d
rol edi, 0x33
xchg ebx, ebx
lea eax, [ebp - 0x3c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GetFileSizeEx
sub esp, 8
cmp eax, 0
je 0x4484da
jmp 0x448528
mov eax, dword [ebp - 0x4c]
movsd xmm0, qword [ebp - 0x3c]
mov word [ebp - 8], 0
movsd qword [ebp - 0x10], xmm0
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, dword [0x4de47c]
mov eax, dword [eax]
sub eax, ecx
jne 0x4484cd
jmp 0x4484d2
call fcn.004a85b0
mov eax, dword [ebp - 0x48]
add esp, 0x5c
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [ebp - 0x50]
mov word [ebp - 0x3e], ax
movzx edx, ax
call fcn.00408360
mov ecx, dword [ebp - 0x50]
mov word [ebp - 0x14], ax
call fcn.00401c30
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, dword [0x4de47c]
mov eax, dword [eax]
sub eax, ecx
jne 0x4484cd
jmp 0x448520
mov eax, dword [ebp - 0x48]
add esp, 0x5c
pop ebp
ret
jmp 0x448497
Function at 0x4832c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4de48c]
mov dword [eax], 0
pop ebp
jmp fcn.004830e0
Function at 0x4a8ad0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
ja case.default.0x4a8ae2
jmp dword [eax*4 + 0x4e1600]
cmp dword [0x4e51dc], 0
je 0x4a8bde
push 0x4e51e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4e51f8]
test edi, edi
je 0x4a8bd3
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4a8b2b
mov edi, dword [edi + 8]
test edi, edi
je 0x4a8bd3
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
call ebx
test eax, eax
jne 0x4a8b20
test esi, esi
je 0x4a8b20
mov eax, dword [edi + 4]
push esi
call eax
add esp, 4
jmp 0x4a8b20
call fcn.004835a0
jmp case.default.0x4a8ae2
cmp dword [0x4e51dc], 0
je case.default.0x4a8ae2
push 0x4e51e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4e51f8]
test edi, edi
je 0x4a8bc6
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4a8b87
mov edi, dword [edi + 8]
test edi, edi
je 0x4a8bc6
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
call ebx
test eax, eax
jne 0x4a8b80
test esi, esi
je 0x4a8b80
mov eax, dword [edi + 4]
push esi
call eax
add esp, 4
jmp 0x4a8b80
cmp dword [0x4e51dc], 0
jne 0x4a8bba
push 0x4e51e0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4e51dc], 1
jmp case.default.0x4a8ae2
push 0x4e51e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x4a8ae2
push 0x4e51e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4e51dc]
cmp eax, 1
jne case.default.0x4a8ae2
mov eax, dword [0x4e51f8]
test eax, eax
je 0x4a8c12
nop word cs:[eax + eax]
nop dword [eax + eax]
mov esi, dword [eax + 8]
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
test esi, esi
mov eax, esi
jne 0x4a8c00
mov dword [0x4e51f8], 0
mov dword [0x4e51dc], 0
push 0x4e51e0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4a8d90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [0x4de484]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x4a8df6
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x4a8df6
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x4a8df6
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x4a8df6
mov edx, dword [ebp + 8]
sub edx, dword [0x4de484]
movzx edi, word [esi + 0x14]
lea esi, [esi + edi + 0x18]
jmp 0x4a8de6
add esi, 0x28
dec ecx
je 0x4a8df6
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x4a8de0
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x4a8de0
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x403000
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403db8
Capabilities:
Query or enumerate registry value

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

Function at 0x404c5c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e9048], 0
je 0x404cbd
cmp word [0x4e921c], 0xd7b2
jne 0x404c85
cmp dword [0x4e9224], 0
jbe 0x404c85
mov eax, 0x4e9218
call dword [0x4e9234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404ce4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x476030], 0
jne 0x404cd9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4061c0
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 0x4063f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406243
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406243
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40640c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4062cc
xor eax, eax
push ebp
push 0x4062c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405ffc
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 0x4062aa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40642c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4062aa
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 0x4062cc
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 0x4063e6
cmp byte [ebp - 0xd], 0
jne 0x406313
cmp byte [ebp - 0x12], 0
je 0x4063e6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40632c
dec ebx
cmp byte [ebx], 0x2e
je 0x40633b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40632b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4063e6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406378
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 0x4063e6
cmp byte [ebp - 0xd], 0
je 0x4063e6
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 0x4063e6
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
Function at 0x408834
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4088c4
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4088c4
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408877
test edx, 3
jne 0x408866
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408871
jmp 0x408877
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408877
cmp dword [ecx - 8], 1
je 0x408881
mov edx, ebx
or edx, 3
call fcn.00405528
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408893
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404ddc

Function at 0x4088d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408960
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408960
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408913
test edx, 3
jne 0x408902
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40890d
jmp 0x408913
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408913
cmp dword [ecx - 8], 1
je 0x40891d
mov edx, ebx
or edx, 3
call fcn.00405528
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40892f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404ddc

Function at 0x40bbd8
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 0x40bc11
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404ecc
jmp 0x40bc1a
mov eax, ebx
mov edx, esi
call fcn.00404e30
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bc24
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 0x40bc46
movzx eax, byte [esp]
jmp 0x40bc48
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c2d8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c150
mov eax, dword [0x4e8850]
cmp byte [eax], 0
je 0x40c354
mov eax, dword [0x4e8608]
call fcn.0040344c
call fcn.00402e38
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.0040935c
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 0x40c39c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c38a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4e85ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4eb7f4]
call fcn.00405fa4
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 0x40cbe8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ccbe
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404e74
lea eax, [ebp - 4]
call fcn.004052f0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004052a0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cca8
mov eax, ebx
call fcn.00402cdc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cca1
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 - 4]
call fcn.004052a0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cc8b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ccd0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cc8b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cca8
mov eax, dword [ebp - 0x10]
call fcn.00402cf8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ccc5
lea eax, [ebp - 4]
call fcn.00404ddc
ret