joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x1f180a59
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x73d35065
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x45451f3d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x27c22ec1
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147e
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401499
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ed
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ed
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f1
xor eax, eax
jmp 0x401503
cmp dword [ebp - 4], edi
je 0x401500
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x401ce6
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [edi + 8]
test eax, eax
jbe 0x401ca3
inc edi
or byte [ebp - 0x74d88940], al
enter 0x78b, 0x3b
enter 0x276, 0xffffffffffffff8b
enter 0x478b, 0xc
mov ecx, eax
mov eax, dword [edi]
cmp ecx, eax
jbe 0x401c86
mov ecx, eax
mov eax, dword [edi + 0xc]
push ecx
add eax, dword [ebp + 8]
push eax
push ebx
call fcn.00402430
push dword [esi + 0x38]
push dword [edi]
call fcn.00401cca
add esp, 0x14
jmp 0x401cb4
mov eax, dword [edi]
test eax, eax
je 0x401cb6
push dword [esi + 0x38]
push eax
call fcn.00401cca
pop ecx
pop ecx
add ebx, eax
movzx eax, word [esi + 6]
inc dword [ebp + 0x18]
add edi, 0x28
cmp dword [ebp + 0x18], eax
jl 0x401c75
pop edi
pop esi
pop ebx
pop ebp
ret
lahf
jae 0x401c76
cmp dword [eax - 0x4d1398a6], 0xb7231b5d
push esi
aam 0x7f
cmp eax, 0x1f9390f5
test al, 0xe1
cmp ecx, dword [edx + 0x7f]
xchg esi, eax
sub al, 0x4a
cmp al, 0xf0
nop
dec ebp
sbb dword [ebx - 0x18ef03bc], edi
scasb al, byte es:[edi]
push ecx
adc ch, dh
enter 0xffffffffffffd9ee, 0xffffffffffffffa3
aam 0xf5
adc byte [edi - 0x713d5ec3], 0xa5
push ebp
popal
push 0x45797aa0
mov dword [0x8b3c44ef], eax
stc
ja 0x401d67
ret 0xa58e
and edx, esp
mov dword [0x7b015610], eax
mov ebp, eax
mov cl, 0xe4
pop ebp
neg byte [eax + 0x6c00544e]
mov esp, 0x49bbc01a
xor ebp, esp
outsd dx, dword [esi]
add esp, dword ds:[edx + 0x69]
clc
cmpsb byte [esi], byte es:[edi]
outsd dx, dword [esi]
xchg edi, eax
nop
sbb byte [ecx - 0x7326b716], 0xde
rcl byte [0x7dad59c1]
sub bh, byte [ebp - 0x69]
xor ecx, ecx
out 0x87, eax
call 0x9353cf18
pop ebx
inc ecx
out 0x41, al
adc edx, dword [ebx + 0x41e6415b]
jne 0x401d1b
retf
Function at 0x4010a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424004]
jne 0x4010b2
repz ret
jmp fcn.00401495

Function at 0x4072a7
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.00401a27
and dword [ebp - 4], 0
cmp dword [0x42cdf0], 0
mov ebx, eax
jne 0x407358
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407409
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407409
push eax
call fcn.004019b5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42cdf0], eax
call esi
push eax
call fcn.004019b5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42cdf4], eax
call esi
push eax
call fcn.004019b5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42cdf8], eax
call esi
push eax
call fcn.004019b5
pop ecx
mov dword [0x42ce00], eax
test eax, eax
je 0x407358
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004019b5
pop ecx
mov dword [0x42cdfc], eax
mov eax, dword [0x42cdfc]
cmp eax, ebx
je 0x4073b0
cmp dword [0x42ce00], ebx
je 0x4073b0
push eax
call fcn.00401a30
push dword [0x42ce00]
mov esi, eax
call fcn.00401a30
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4073b0
test edi, edi
je 0x4073b0
call esi
test eax, eax
je 0x4073a7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4073a7
test byte [ebp - 0xc], 1
jne 0x4073b0
or dword [ebp + 0x10], 0x200000
jmp 0x4073e9
mov eax, dword [0x42cdf4]
cmp eax, ebx
je 0x4073e9
push eax
call fcn.00401a30
pop ecx
test eax, eax
je 0x4073e9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4073e9
mov eax, dword [0x42cdf8]
cmp eax, ebx
je 0x4073e9
push eax
call fcn.00401a30
pop ecx
test eax, eax
je 0x4073e9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42cdf0]
call fcn.00401a30
pop ecx
test eax, eax
je 0x407409
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40740b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420ab0
Capabilities:
Check for software breakpoints
Get geographical location
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc4
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x420ad5
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x365ea9e0
jge 0x420b22
cmp dword [0x42dc04], 0xc31
jne 0x420af2
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
cmp dword [ebp - 4], 0x176afc
jle 0x420b20
cmp dword [0x42dc04], 0xa
jne 0x420b1e
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x420b22
jmp 0x420acc
mov dword [ebp - 0x64], 0
jmp 0x420b34
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0x5f6c74
jge 0x420b54
cmp dword [ebp - 0x64], 0x562d05
jne 0x420b52
mov edx, dword [0x424c58]
mov dword [0x42df8c], edx
jmp 0x420b2b
cmp dword [0x42dc04], 0x7c
jne 0x420b88
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
cmp dword [0x42dc04], 0x2d
jne 0x420b88
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [0x42dc04], 0x110a
jne 0x420c61
mov dword [0x42dbf0], 0
mov dword [0x42dbf4], 0
cmp dword [0x42dc04], 0xcc
jne 0x420bca
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x42d3d0], 0x14
push 0
lea ecx, [ebp - 0x480]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapValidate]
push 0
push 0
call fcn.0040111f
add esp, 8
push 0
push 0
call fcn.0040111f
add esp, 8
mov edx, dword [0x422cf4]
mov dword [ebp - 0xc88], edx
push 0x7fc
push 0
lea eax, [ebp - 0xc84]
push eax
call fcn.00403540
add esp, 0xc
lea ecx, [ebp - 0x488]
mov dword [ebp - 0x484], ecx
push 0
push 0
call fcn.0040111f
add esp, 8
push 0
call fcn.00401286
add esp, 4
push 0
call fcn.004010b7
add esp, 4
call fcn.0041ff00
mov dword [ebp - 0xc90], 0
jmp 0x420c81
mov edx, dword [ebp - 0xc90]
add edx, 1
mov dword [ebp - 0xc90], edx
mov eax, dword [ebp - 0xc90]
cmp eax, dword [0x42dc04]
jae 0x420cdc
mov ecx, dword [0x42df8c]
mov dword [ebp - 0xc94], ecx
mov eax, 0xa231
add dword [ebp - 0xc94], eax
mov edx, dword [0x42d65c]
add edx, dword [ebp - 0xc90]
mov eax, dword [ebp - 0xc94]
add eax, dword [ebp - 0xc90]
mov cl, byte [eax]
mov byte [edx], cl
cmp dword [0x42dc04], 0x5ab
jne 0x420cda
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x420c72
call fcn.00420830
call fcn.0041ff30
mov eax, 0x424c60
call fcn.00420a70
mov dword [ebp - 0xc98], 0
jmp 0x420d0b
mov edx, dword [ebp - 0xc98]
add edx, 1
mov dword [ebp - 0xc98], edx
cmp dword [ebp - 0xc98], 0x15a63d
jge 0x420d34
cmp dword [ebp - 0xc98], 0xbd9cb
jne 0x420d32
mov eax, dword [0x42d65c]
add eax, 0x2a59
mov dword [0x42d65c], eax
jmp 0x420cfc
jmp dword [0x42d65c]
Function at 0x403658
Capabilities:
Query or enumerate registry value

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

Function at 0x4044ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45a048], 0
je 0x40454d
cmp word [0x45a21c], 0xd7b2
jne 0x404515
cmp dword [0x45a224], 0
jbe 0x404515
mov eax, 0x45a218
call dword [0x45a234]
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 0x404574
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45802c], 0
jne 0x404569
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405c58
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 0x405e88
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405cdb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e88
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405cdb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ea4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405d64
xor eax, eax
push ebp
push 0x405d5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405a94
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 0x405d42
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405ec4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d42
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 0x405d64
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 0x405e7e
cmp byte [ebp - 0xd], 0
jne 0x405dab
cmp byte [ebp - 0x12], 0
je 0x405e7e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405dc4
dec ebx
cmp byte [ebx], 0x2e
je 0x405dd3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405dc3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e7e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e10
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 0x405e7e
cmp byte [ebp - 0xd], 0
je 0x405e7e
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 0x405e7e
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 0x4082ac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40833c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40833c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4082ef
test edx, 3
jne 0x4082de
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4082e9
jmp 0x4082ef
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4082ef
cmp dword [ecx - 8], 1
je 0x4082f9
mov edx, ebx
or edx, 3
call fcn.00404db8
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 0x40830b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040466c

Function at 0x408348
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4083d8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4083d8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40838b
test edx, 3
jne 0x40837a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408385
jmp 0x40838b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40838b
cmp dword [ecx - 8], 1
je 0x408395
mov edx, ebx
or edx, 3
call fcn.00404db8
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 0x4083a7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040466c

Function at 0x40b614
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 0x40b64d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040475c
jmp 0x40b656
mov eax, ebx
mov edx, esi
call fcn.004046c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bb8c
mov eax, dword [0x459ae0]
cmp byte [eax], 0
je 0x40bd90
mov eax, dword [0x4598e8]
call fcn.00403020
call fcn.00402df8
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.00408d74
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 0x40bdd8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bdc6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45988c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45c7f4]
call fcn.00405a3c
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 0x40c624
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 0x40c6fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404704
lea eax, [ebp - 4]
call fcn.00404b80
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b30
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c6e4
mov eax, ebx
call fcn.00402c9c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c6dd
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.00404b30
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c6c7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c70c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c6c7
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 0x40c6e4
mov eax, dword [ebp - 0x10]
call fcn.00402cb8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c701
lea eax, [ebp - 4]
call fcn.0040466c
ret
Function at 0x41ed60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45d300
cmp dword [edi], 0
jne 0x41eddc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45d2fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x458b7c
mov ecx, 2
call fcn.00402e8c
mov edx, 0x41ed38
lea eax, [esi + 5]
call fcn.0041ed58
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ed58
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 0x41edb1
mov dword [0x45d2fc], 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 0x421300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404b30
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x421358
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x459c00]
mov dl, 1
mov eax, dword [0x420e24]
call fcn.0040bed4
call fcn.004040b4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00420f2c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4221b4
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 0x4221ba
ret