joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa1bd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa1bd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xa1bd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa1bd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xa1bd94
push eax
push esi
call fcn.00a1e20b
add esp, 8
pop esi
ret 0x10

Function at 0xa1bda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa1be22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xa1be15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xa34320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a1ddff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xa1bdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xa1be30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa1bec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xa1beb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xa34320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a1ddff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xa1beab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xa1be6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xa1c000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xa1c131
push esi
call fcn.00a1f145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00a0e080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xa1c131
push 0
push ebp
call fcn.00a0e3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00a0e260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xa1c08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00a0e2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xa1c121
push 0xa34918
push edi
call fcn.00a1d3f0
push eax
push ebx
push esi
call fcn.00a1bf60
push 0xa348f8
push edi
call fcn.00a1d3f0
push eax
push ebx
push esi
call fcn.00a1bf60
push 0xa348d8
push edi
call fcn.00a1d3f0
push eax
push ebx
push esi
call fcn.00a1bf60
push 0xa348c0
push edi
call fcn.00a1d3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00a1bf60
push 0xa348a0
push edi
call fcn.00a1d3f0
push eax
push ebx
push esi
call fcn.00a1bf60
push 0xa34888
push edi
call fcn.00a1d3f0
push eax
push ebx
push esi
call fcn.00a1bf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xa1d1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00a1d140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00a1d140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00a1d140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00a1d140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xa1dbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xa1dc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa2f87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xa1dc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xa1dc52
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x487b2ad4
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x6c8308f0
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x432003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x287d1d9d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x595d2806
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10004690
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [str.timeout]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov dword [eax], ecx
mov edx, dword [0x10011fbc]
push esi
push edi
mov dword [eax + 4], edx
mov dword [esp + 0x1c], 1
lea ebx, [ebx]
push ebp
mov esi, 2
mov dword [esp + 0x14], 0
call fcn.10004850
test eax, eax
jge 0x10004709
cmp eax, 0xfffffffd
je 0x100046f5
cmp eax, 0xffffffff
jne 0x10004709
call fcn.100048e5
push str.Serial_communication_error_n
call fcn.10001980
add esp, 4
jmp 0x100046c0
call fcn.100048e5
push str.Serial_connection_closed_n
call fcn.10001980
add esp, 4
jmp 0x100046c0
cmp eax, 0xfffffffe
je 0x100047d1
cmp eax, 0x24
jne 0x100046c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push ebp
call fcn.100043f0
mov ebx, eax
test ebx, ebx
jge 0x100047f0
mov esi, 1
mov edi, 0x10011fe0
jmp 0x10004740
push 0
lea edx, [esp + 0x18]
push edx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10004764
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x10004764
sub esi, eax
add edi, eax
test esi, esi
jg 0x10004740
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0xa
mov dword [esp + 0x1c], eax
jle 0x100046c0
cmp dword [esp + 0x10], 0
jne 0x1000478f
call fcn.100048e5
push str.Packet_error_is_ignored_and_continuing..._n
call fcn.10001980
add esp, 4
mov esi, 1
mov edi, 0x10011ee4
lea esp, [esp]
push 0
lea ecx, [esp + 0x24]
push ecx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100047c4
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x100047c4
sub esi, eax
add edi, eax
test esi, esi
jg 0x100047a0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret 0xc
call fcn.100048e5
push str.Timed_out._n
call fcn.10001980
add esp, 4
mov dword [esp + 0x10], 1
jmp 0x10004731
call fcn.100048e5
push str.Packet_received:
call fcn.10001980
call fcn.100048e5
push 0x10011420
call fcn.10001980
add esp, 8
mov esi, 1
mov edi, 0x10011ee4
jmp 0x10004820
push 0
lea eax, [esp + 0x24]
push eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10004844
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x10004844
sub esi, eax
add edi, eax
test esi, esi
jg 0x10004820
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 0xc
Function at 0x10004850
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
call fcn.10005614
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
push 0
lea eax, [esp + 0x10]
push eax
push 1
lea ecx, [esp + 0x20]
push ecx
push ebp
call ebx
test eax, eax
je 0x100048c0
mov eax, dword [esp + 0xc]
test eax, eax
jg 0x100048ca
jne 0x100048c0
call fcn.10005614
test esi, esi
jl 0x10004865
sub eax, edi
imul eax, eax, 0x3e8
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
mov ecx, esi
imul ecx, ecx, 0x3e8
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
jl 0x10004865
pop edi
pop ebp
mov eax, 0xfffffffe
pop ebx
pop ecx
ret 4
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 4
movzx eax, byte [esp + 0x14]
pop edi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x100048d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10013284]
jne 0x100048e0
repz ret
jmp fcn.100058e0

Function at 0x1000d0e5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10008757
and dword [ebp - 4], 0
cmp dword [0x100165b4], 0
mov ebx, eax
jne 0x1000d196
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000d247
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000d247
push eax
call fcn.100086e5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100165b4], eax
call esi
push eax
call fcn.100086e5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100165b8], eax
call esi
push eax
call fcn.100086e5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100165bc], eax
call esi
push eax
call fcn.100086e5
pop ecx
mov dword [0x100165c4], eax
test eax, eax
je 0x1000d196
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100086e5
pop ecx
mov dword [0x100165c0], eax
mov eax, dword [0x100165c0]
cmp eax, ebx
je 0x1000d1ee
cmp dword [0x100165c4], ebx
je 0x1000d1ee
push eax
call fcn.10008760
push dword [0x100165c4]
mov esi, eax
call fcn.10008760
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000d1ee
test edi, edi
je 0x1000d1ee
call esi
test eax, eax
je 0x1000d1e5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000d1e5
test byte [ebp - 0xc], 1
jne 0x1000d1ee
or dword [ebp + 0x10], 0x200000
jmp 0x1000d227
mov eax, dword [0x100165b8]
cmp eax, ebx
je 0x1000d227
push eax
call fcn.10008760
pop ecx
test eax, eax
je 0x1000d227
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000d227
mov eax, dword [0x100165bc]
cmp eax, ebx
je 0x1000d227
push eax
call fcn.10008760
pop ecx
test eax, eax
je 0x1000d227
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100165b4]
call fcn.10008760
pop ecx
test eax, eax
je 0x1000d247
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000d249
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x454e5076
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
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
mov ebx, 0x4304d8
nop
mov ecx, 0x45ac508d
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40328c
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.00404e3c
test esi, esi
jne 0x4032c2
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.00404f2c
jmp 0x4032e0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403190
mov edi, eax
test esi, esi
je 0x4032e0
cmp dword [ebx], 0
je 0x4032e0
dec esi
jmp 0x4032c9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403e28
Capabilities:
Query or enumerate registry value

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

Function at 0x404cbc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45b048], 0
je 0x404d1d
cmp word [0x45b21c], 0xd7b2
jne 0x404ce5
cmp dword [0x45b224], 0
jbe 0x404ce5
mov eax, 0x45b218
call dword [0x45b234]
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 0x404d44
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x459030], 0
jne 0x404d39
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4061d8
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 0x406408
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40625b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406408
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40625b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406424
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4062e4
xor eax, eax
push ebp
push 0x4062dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406014
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 0x4062c2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406444
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4062c2
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 0x4062e4
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 0x4063fe
cmp byte [ebp - 0xd], 0
jne 0x40632b
cmp byte [ebp - 0x12], 0
je 0x4063fe
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406344
dec ebx
cmp byte [ebx], 0x2e
je 0x406353
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406343
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4063fe
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406390
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 0x4063fe
cmp byte [ebp - 0xd], 0
je 0x4063fe
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 0x4063fe
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 0x408958
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4089aa
test eax, edx
je 0x4089ad
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40896d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408993
add ecx, 4
js 0x408983
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408990
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4089b9
test edx, edx
jne 0x408960
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x409190
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004052cc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4091a9
test al, 0x10
je 0x4091ad
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bc94
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 0x40bccd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404f2c
jmp 0x40bcd6
mov eax, ebx
mov edx, esi
call fcn.00404e90
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bce0
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 0x40bd02
movzx eax, byte [esp]
jmp 0x40bd04
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c394
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c20c
mov eax, dword [0x45a9a0]
cmp byte [eax], 0
je 0x40c410
mov eax, dword [0x45a7d0]
call fcn.004036dc
call fcn.00402ffc
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.00409414
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 0x40c458
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c446
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45a77c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45d7f4]
call fcn.00405fbc
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