joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5873ac
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x587548
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x5734f8]
call fcn.00572b70
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x58752b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.0057ade0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00407d1c
mov eax, dword [ebp - 4]
add eax, 0x10
mov edx, dword [esi + 0x18]
call fcn.00407d1c
mov eax, esi
call fcn.0057accc
mov edx, dword [ebp - 4]
call fcn.0057953c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x58743e
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
je 0x58743e
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x587454
mov ecx, 0x587564
mov dl, 1
mov eax, dword [0x54e710]
call fcn.00425260
call fcn.00406448
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xc]
mov eax, esi
call fcn.00587eec
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
movzx ebx, byte [eax + 0x28]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0x20]
mov dword [edi], edx
mov edx, dword [eax + 0x24]
mov dword [edi + 4], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x18]
mov dword [edi + 8], edx
mov edx, dword [eax + 0x1c]
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x18]
mov dword [edi + 0x10], edx
mov edx, dword [eax + 0x1c]
mov dword [edi + 0x14], edx
lea eax, [edi + 0x3c]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0xc]
call fcn.00407d08
mov eax, ebx
call fcn.00587350
mov dword [edi + 0x18], eax
xor eax, eax
mov dword [edi + 0x1c], eax
xor eax, eax
mov dword [edi + 0x24], eax
xor eax, eax
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [edi + 0x2c], eax
xor eax, eax
mov dword [edi + 0x30], eax
lea eax, [edi + 0x34]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x10]
call fcn.00407d08
lea eax, [edi + 0x38]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x28]
call fcn.00407d08
lea eax, [edi + 0x40]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x20]
call fcn.00407d08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x587532
cmp dword [ebp - 8], 0
je 0x587522
mov eax, dword [ebp - 8]
call fcn.00405004
mov eax, dword [ebp - 4]
call fcn.00405004
ret
Function at 0x58e624
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x58e701
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x58e651
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebx + 0x38], eax
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0041fa80
mov eax, dword [ebp - 4]
call fcn.00407c20
push eax
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventW
mov dword [ebx + 0x38], eax
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x2c]
call fcn.0058d398
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.005898f8
mov edx, dword [ebp - 8]
lea eax, [ebx + 0xc]
call fcn.0040a924
mov eax, dword [ebx + 8]
push eax
movzx eax, byte [ebx + 0x15]
push eax
push dword [ebx + 0x24]
mov eax, dword [ebx + 0x18]
push eax
mov eax, dword [ebx + 0x1c]
push eax
lea eax, [ebx + 0x20]
push eax
movzx eax, byte [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x3c]
push eax
mov eax, dword [ebx + 0x40]
push eax
lea edx, [ebx + 0x10]
mov ecx, dword [ebx + 0x28]
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
call dword [esi + 0x4c]
mov eax, dword [ebx + 0x34]
mov edx, dword [eax]
call dword [edx + 0x30]
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0xa0]
mov byte [eax + 0x18], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58e708
lea eax, [ebp - 0xc]
call fcn.0040a90c
lea eax, [ebp - 8]
call fcn.0040a90c
lea eax, [ebp - 4]
call fcn.00406d50
ret
Function at 0x597384
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406d50
push esp
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, 0x80000000
sete al
test al, al
je 0x5973d8
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
test eax, eax
je 0x5973cf
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00407ccc
mov eax, dword [esp]
push eax
call sub.ole32.dll_CoTaskMemFree
add esp, 0x20c
pop esi
pop ebx
ret
Function at 0x5973ec
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.00406e44
mov eax, dword [ebp - 8]
call fcn.00406e44
mov eax, dword [ebp + 0xc]
call fcn.00406e44
xor eax, eax
push ebp
push 0x5975e8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x597493
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x597608
push dword [ebp - 4]
push 0x59761c
push dword [ebp - 8]
push 0x597634
push dword [ebp + 0xc]
lea eax, [ebp - 0x60]
mov edx, 6
call fcn.00407638
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0xc]
call fcn.00407ce8
push 1
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00407c20
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.shell32.dll_ShellExecuteW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59749f
cmp ebx, 0x20
jb 0x5974ab
xor ebx, ebx
jmp 0x5975b0
xor edx, edx
push ebp
push 0x5975a4
push dword fs:[edx]
mov dword fs:[edx], esp
push 1
push 0
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00543c84
test eax, eax
je 0x5974d6
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 8]
call fcn.00407780
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
call fcn.00407780
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, 0x59763c
mov dword [ebp - 0x34], eax
mov eax, 0x59763c
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 1
mov eax, dword [ebp - 4]
call fcn.00407780
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 4]
mov edx, 0x59764c
call fcn.004075b4
mov eax, dword [ebp - 0x64]
call fcn.00407780
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
cmp byte [ebp + 8], 0
je 0x597570
mov eax, 8
jmp 0x597572
xor eax, eax
push eax
push 0
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.00543d60
mov ebx, eax
cmp dword [ebp - 0x14], 0
je 0x59759a
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.00543cf4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5975b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5975ef
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.00406de0
lea eax, [ebp - 0xc]
call fcn.00406d50
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406de0
lea eax, [ebp + 0xc]
call fcn.00406d74
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x41dc3e73
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
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
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x6dfd21c8
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

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

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408e84
nop
mov ecx, 0x358375c0
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x52d63229
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x494096
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c3d70]
jne 0x4940a0
repz ret
jmp fcn.00498c1f

Function at 0x496fb0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c3d70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00491482
and dword [ebp - 0x14], 0
cmp dword [0x4c6c1c], 0
mov dword [ebp - 0x18], eax
jne 0x497063
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x49710b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a0fc8
push ebx
call edi
test eax, eax
je 0x49710b
mov esi, dword [fcn.0048d710]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4c6c1c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4c6c20], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4c6c24], eax
call edi
push eax
call esi
mov dword [0x4c6c2c], eax
test eax, eax
je 0x497063
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4c6c28], eax
mov eax, dword [0x4c6c28]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.0048d714]
cmp eax, ecx
je 0x4970bc
cmp dword [0x4c6c2c], ecx
je 0x4970bc
push eax
call esi
push dword [0x4c6c2c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4970bc
test ebx, ebx
je 0x4970bc
call edi
test eax, eax
je 0x4970b3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4970b3
test byte [ebp - 8], 1
jne 0x4970bc
or dword [ebp + 0x10], 0x200000
jmp 0x4970ef
mov eax, dword [0x4c6c20]
cmp eax, dword [ebp - 0x18]
je 0x4970ef
push eax
call esi
test eax, eax
je 0x4970ef
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4970ef
mov eax, dword [0x4c6c24]
cmp eax, dword [ebp - 0x18]
je 0x4970ef
push eax
call esi
test eax, eax
je 0x4970ef
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c6c1c]
call esi
test eax, eax
je 0x49710b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x49710d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00494096
leave
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x40332c
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.00404b70
test esi, esi
jne 0x403362
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.00404c60
jmp 0x403380
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031d0
mov edi, eax
test esi, esi
je 0x403380
cmp dword [ebx], 0
je 0x403380
dec esi
jmp 0x403369
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403b1c
Capabilities:
Query or enumerate registry value

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

Function at 0x4049d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f904c], 0
je 0x404a31
cmp word [0x4f9220], 0xd7b2
jne 0x4049f9
cmp dword [0x4f9228], 0
jbe 0x4049f9
mov eax, 0x4f921c
call dword [0x4f9238]
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 0x404a58
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f3030], 0
jne 0x404a4d
push 0
push 0x4f3754
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4063dc
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 0x40660c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40645f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40660c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40645f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406628
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4064e8
xor eax, eax
push ebp
push 0x4064e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406218
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 0x4064c6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406648
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4064c6
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 0x4064e8
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 0x406602
cmp byte [ebp - 0xd], 0
jne 0x40652f
cmp byte [ebp - 0x12], 0
je 0x406602
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406548
dec ebx
cmp byte [ebx], 0x2e
je 0x406557
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406547
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406602
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406594
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 0x406602
cmp byte [ebp - 0xd], 0
je 0x406602
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 0x406602
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 0x408da4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408df6
test eax, edx
je 0x408df9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408db9
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 0x408ddf
add ecx, 4
js 0x408dcf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408ddc
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 0x408e05
test edx, edx
jne 0x408dac
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405000
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4098b6
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x4098d7
cmp ebx, 3
je 0x4098d7
cmp ebx, 0x7b
je 0x4098d7
mov eax, esi
call fcn.00409858
test al, al
jne 0x4098db
xor eax, eax
jmp 0x4098dd
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405000
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4098f9
test al, 0x10
jne 0x4098fd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c5fc
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 0x40c635
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404c60
jmp 0x40c63e
mov eax, ebx
mov edx, esi
call fcn.00404bc4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cb74
mov eax, dword [0x4f8644]
cmp byte [eax], 0
je 0x40cd78
mov eax, dword [0x4f83a4]
call fcn.004034e4
call fcn.00403004
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.00409c58
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 0x40cdc0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cdae
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4f8338]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4fb7f8]
call fcn.004061c0
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 0x40d680
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 0x40d756
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404c08
lea eax, [ebp - 4]
call fcn.00405058
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405000
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d740
mov eax, ebx
call fcn.00402ea8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d739
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.00405000
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d723
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d768
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d723
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 0x40d740
mov eax, dword [ebp - 0x10]
call fcn.00402ec4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d75d
lea eax, [ebp - 4]
call fcn.00404b70
ret