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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0x13
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.0056cdd0
add esp, 0xc
jo 0x56864c
jno 0x56864c
call 0x6706f401
mov cl, 0x6d
mov al, 0x66
mov byte [ebp - 0x14], 0x44
mov byte [ebp - 0xf], 0x54
mov byte [ebp - 0xa], 0x64
mov byte [ebp - 5], 0x65
mov byte [ebp - 0x13], cl
mov byte [ebp - 0xe], al
mov byte [ebp - 9], al
mov byte [ebp - 4], cl
mov byte [ebp - 0x12], 0x70
mov byte [ebp - 0xd], 0x73
mov byte [ebp - 8], 0x49
mov byte [ebp - 3], al
mov byte [ebp - 0x11], 0x74
mov byte [ebp - 0xc], 0x77
mov byte [ebp - 7], 0x62
mov byte [ebp - 2], 0
mov byte [ebp - 0x10], al
mov byte [ebp - 0xb], 0x6a
mov byte [ebp - 6], 0x6f
jne 0x56869b
je 0x56869b
call 0x8b42d429
inc ebp
int1
mov cl, byte [ebp - 0x14]
mov al, byte [ebp - 0xf]
mov dl, byte [ebp - 0xa]
dec cl
dec al
mov byte [ebp - 0x14], cl
mov cl, byte [ebp - 5]
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x13]
dec dl
dec cl
mov byte [ebp - 0xa], dl
mov dl, byte [ebp - 0xe]
dec al
mov byte [ebp - 5], cl
mov cl, byte [ebp - 9]
mov byte [ebp - 0x13], al
mov al, byte [ebp - 4]
dec dl
dec cl
mov byte [ebp - 0xe], dl
mov dl, byte [ebp - 0x12]
dec al
mov byte [ebp - 9], cl
mov cl, byte [ebp - 0xd]
mov byte [ebp - 4], al
mov al, byte [ebp - 8]
dec dl
dec cl
mov byte [ebp - 0x12], dl
mov dl, byte [ebp - 3]
dec al
mov byte [ebp - 0xd], cl
mov cl, byte [ebp - 0x11]
mov byte [ebp - 8], al
mov al, byte [ebp - 0xc]
dec dl
dec cl
mov byte [ebp - 3], dl
mov dl, byte [ebp - 7]
dec al
mov byte [ebp - 0x11], cl
mov cl, byte [ebp - 0x10]
mov byte [ebp - 0xc], al
mov al, byte [ebp - 0xb]
dec dl
dec cl
dec al
mov byte [ebp - 7], dl
mov byte [ebp - 0x10], cl
mov byte [ebp - 0xb], al
dec byte [ebp - 6]
jb 0x56872b
jae 0x56872b
sbb al, 0xe8
jo 0x568775
call fcn.0056cea0
add byte [eax], al
test eax, eax
jne 0x56873b
pop esi
mov esp, ebp
pop ebp
ret 4
jl 0x568740
jge 0x568740
call 0x5242d4d1
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0056cbe0
push 0x13
lea edx, [ebp - 0x14]
push 0
push edx
mov esi, eax
call fcn.0056cdd0
add esp, 0xc
test esi, esi
jne 0x568769
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
jb 0x56876e
jae 0x56876e
call 0xfca36fc8
invalid
push esi
call fcn.005683c0
add esp, 4
jo 0x56877c
les eax, [eax + esi*2]
add esi, dword [ecx + 1]
jno 0x56877c
call 0x505ecd0b
mov eax, dword [ebp + 8]
push eax
call esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x569230
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0x13
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.0056cdd0
add esp, 0xc
jl 0x56924c
jge 0x56924c
call 0x7608f900
mov al, 0x66
mov dl, 0x75
mov byte [ebp - 0xe], al
mov byte [ebp - 9], al
mov byte [ebp - 0x12], al
mov cl, 0x76
mov al, 0x73
mov byte [ebp - 0x14], 0x52
mov byte [ebp - 0xf], 0x54
mov byte [ebp - 0xa], 0x64
mov byte [ebp - 5], dl
mov byte [ebp - 0x13], cl
mov byte [ebp - 4], cl
mov byte [ebp - 0xd], al
mov byte [ebp - 8], 0x54
mov byte [ebp - 3], 0x74
mov byte [ebp - 0x11], al
mov byte [ebp - 0xc], 0x77
mov byte [ebp - 7], dl
mov byte [ebp - 2], 0
mov byte [ebp - 0x10], 0x7a
mov byte [ebp - 0xb], 0x6a
mov byte [ebp - 6], 0x62
jne 0x56929c
je 0x56929c
call 0x8b42e02a
inc ebp
int1
mov cl, byte [ebp - 0x14]
mov al, byte [ebp - 0xf]
mov dl, byte [ebp - 0xa]
dec cl
mov byte [ebp - 0x14], cl
mov cl, byte [ebp - 5]
dec al
dec dl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x13]
dec cl
mov byte [ebp - 0xa], dl
mov dl, byte [ebp - 0xe]
mov byte [ebp - 5], cl
mov cl, byte [ebp - 9]
dec al
dec dl
mov byte [ebp - 0x13], al
mov al, byte [ebp - 4]
dec cl
mov byte [ebp - 0xe], dl
mov dl, byte [ebp - 0x12]
mov byte [ebp - 9], cl
mov cl, byte [ebp - 0xd]
dec al
dec dl
mov byte [ebp - 4], al
mov al, byte [ebp - 8]
dec cl
mov byte [ebp - 0x12], dl
mov dl, byte [ebp - 3]
mov byte [ebp - 0xd], cl
mov cl, byte [ebp - 0x11]
dec al
dec dl
mov byte [ebp - 8], al
mov al, byte [ebp - 0xc]
dec cl
mov byte [ebp - 3], dl
mov dl, byte [ebp - 7]
mov byte [ebp - 0x11], cl
mov cl, byte [ebp - 0x10]
dec al
dec dl
dec cl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 0xb]
mov byte [ebp - 7], dl
mov byte [ebp - 0x10], cl
mov dl, byte [ebp - 6]
dec al
dec dl
mov byte [ebp - 0xb], al
mov byte [ebp - 6], dl
jns 0x569331
js 0x569331
call 0x91fe1d
add byte [ebp + 0x5e0775c0], al
call fcn.0056cea0
test eax, eax
jne 0x569341
pop esi
mov esp, ebp
pop ebp
ret 8
jle 0x569346
jg 0x569346
call 0x5242e0d7
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0056cbe0
push 0x13
lea edx, [ebp - 0x14]
push 0
push edx
mov esi, eax
call fcn.0056cdd0
add esp, 0xc
jbe 0x569367
ja 0x569367
mov al, 0x85
div byte [ebp + 9]
test esi, esi
jne 0x569374
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
jne 0x569379
je 0x569379
jmp 0x5693d0
push esi
call fcn.005683c0
add esp, 4
jbe 0x569387
ja 0x569387
call 0x8b62d916
dec ebp
or byte [eax + 0x51], dl
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call esi
pop esi
mov esp, ebp
pop ebp
ret 8
add dword [0x6808ec83], eax
Function at 0x56e2d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 4], eax
jb 0x56e2e9
jae 0x56e2e9
call 0x86532878
sal byte [ecx + edx - 0x7f], 0x7c
and al, 4
jbe 0x56e2f9
mov eax, dword [ebp - 4]
test eax, eax
je 0x56e301
cmp dword [esp + 4], 0x1770376
ja 0x56e2f9
mov eax, 0xf
mov esp, ebp
pop ebp
ret
sldt word [eax]
add byte [ebx + 0x76c35de5], cl
add esi, dword [edi + 1]
jbe 0x56e306
ja 0x56e306
call 0x1456f095
push ebp
add byte [eax + 0x11], bh
mov ecx, dword [0x551400]
mov eax, 0x11
add ecx, eax
mov dword [0x551400], ecx
jle 0x56e31e
jg 0x56e31e
call 0x145ae84b
push ebp
add byte [ecx + 0x7204247c], al
add esi, dword [ebx + 1]
sub dword [0x551404], eax
cmp dword [esp + 4], 0x1730372
mov eax, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x40da64
Capabilities:
Encode data using xor

Disassembly:
xchg edx, eax
rsqrtps xmm3, xmmword [ecx - 0x208da8ae]
insd dword es:[edi], dx
inc edi
and eax, 0x5b310352
mov eax, dword [0x9822acb5]
wait
pop es
das
lds eax, [ecx - 0x2ea458dc]
mov eax, 0x2f8335a3
xor ebp, esp
pop esi
push esi
add edx, esp
dec edx
and edi, ecx
sub eax, dword [edi]
add dword [ebp - 0x3ad69c8c], edi
scasd eax, dword es:[edi]
xchg ch, ah
arpl si, si
mov ebp, 0x158a2ec9
dec eax
push es
lahf
dec ebx
xor eax, 0xf67305b6
jl 0x40da22
popfd
test bl, 0x1c
and ebp, dword [ecx]
adc eax, 0xe029439c
mov ecx, 0x976e3d16
outsb dx, byte [esi]
xchg edi, eax
add byte [0x3f679c03], 0xd6
dec edi
ret
in eax, dx
scasd eax, dword es:[edi]
mov ebp, dword [ecx]
cmc
ja 0x40d9fe
lodsd eax, dword [esi]
in eax, dx
sub ah, cl
jp 0x40da54
fild dword [ecx + 0x19]
dec ecx
pushfd
wait
inc ecx
adc eax, 0x436ce17b
mov ch, 0xcb
das
inc ebx
test dword [esi], 0xb3088d09
push 0xa6d0e35
ror dword [ebx], cl
aad 0x3e
or eax, dword [edx + edx*8 + 0x2c9b295d]
mov eax, dword [0x81087063]
test ebp, 0xe2f731fc
mul edx
sub bl, 2
jmp 0x40daa3

Function at 0x417a10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x58
mov eax, dword [0x62e038]
mov dword [esp + 4], 0
push esi
lea ecx, [eax + eax]
mov eax, dword [0x62e03c]
or ecx, eax
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
fild qword [esp + 4]
test ecx, ecx
fadd qword [0x62e050]
fstp qword [0x62e050]
je 0x417a63
mov eax, dword [0x6317f0]
test eax, eax
je 0x417a57
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop esi
add esp, 0x58
ret 4
mov dl, byte [0x62e042]
mov cl, byte [str.3p_]
xor cl, dl
mov edx, dword [str.CB6B6]
mov byte [str.3p_], cl
mov ecx, dword [0x62e034]
and ecx, 4
and eax, 0xc
add edx, ecx
mov esi, dword [0x62e038]
mov dword [str.CB6B6], edx
mov edx, dword [0x62e048]
and edx, 0xff
push ebp
imul eax, edx
xor esi, eax
push edi
lea eax, [esp + 0x14]
push 0x50
push eax
mov dword [0x62e038], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.dsound.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x15]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x62e04e]
mov ecx, ebp
and ecx, 3
lea edx, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
mov cl, byte [0x62e040]
push edx
and cl, al
mov byte [0x62e040], cl
mov cl, byte [0x62e047]
or cl, 2
shr cl, 1
and ecx, 0xff
mov dword [esp + 0x6c], ecx
fild dword [esp + 0x6c]
fdivr qword [0x62e050]
fadd qword [0x62c2b0]
fstp qword [0x6319c0]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
mov dword [0x6317f0], eax
test eax, eax
pop ebp
je 0x417b88
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DirectSoundCreate
push eax
call esi
mov dword [0x6317ec], eax
mov eax, dword [0x6317f0]
push str.DirectSoundEnumerateA
push eax
call esi
mov ecx, dword [0x6317ec]
mov dword [0x6317f4], eax
test ecx, ecx
je 0x417b7e
test eax, eax
je 0x417b7e
mov eax, 1
pop esi
add esp, 0x58
ret 4
mov dword [0x6317f0], 0
xor eax, eax
pop esi
add esp, 0x58
ret 4
Function at 0x417d38
Capabilities:
Encode data using xor

Disassembly:
sub al, 0x7a
push es
nop
jo 0x417d9b
invalid
retf 0x8142

Function at 0x45bb80
Capabilities:
Encode data using xor

Disassembly:
pushal
mov ecx, 0x6825418e
dec ebp
shr ah, 1

Function at 0x6275d5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x62e3c0
cmp edx, dword [eax]
je 0x6275f7
add eax, 8
inc ecx
cmp eax, 0x62e450
jl 0x6275e8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x62e3c0]
jne 0x627725
mov eax, dword [0x633d60]
cmp eax, 1
je 0x6276ff
test eax, eax
jne 0x627628
cmp dword [0x62e2e8], 1
je 0x6276ff
cmp edx, 0xfc
je 0x627725
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62765f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00627fc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00628450
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6276a2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00628450
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62c634
push edi
call fcn.0062a320
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00627fc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00627fd0
lea eax, [ebp - 0xa0]
push 0x62c614
push eax
call fcn.00627fd0
push dword [esi + 0x62e3c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00627fd0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062a294
add esp, 0x2c
pop edi
jmp 0x627725
lea eax, [ebp + 8]
lea esi, [esi + 0x62e3c4]
push 0
push eax
push dword [esi]
call fcn.00628450
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401113
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 0x18
push 0x40fd30
call fcn.0040b4a0
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
call fcn.00401069
test eax, eax
je 0x401186
lea edi, [eax + 0x4120c0]
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x12400
push 0x4120c0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401186
call edi
test eax, eax
je 0x40116f
lea ecx, [ebp - 0x28]
push ecx
push 6
push ebx
call eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push 0x12400
push 0x4120c0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x28]
jmp 0x4011a2
call fcn.0040b4e8
ret

Function at 0x4011a8
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push 4
pop edx
push 3
pop eax
push 0xa
pop ecx
xor esi, esi
mov dword [ebp - 0x2c], 5
push esi
push esi
push esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0xc], 0x2d
mov dword [ebp - 8], 0x31
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x40120a
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, esi
mov edx, esi
mov al, byte [ebp + ecx*4 - 0x2c]
xor byte [edx + 0x4120c0], al
inc ecx
xor eax, eax
cmp ecx, 0xb
cmove ecx, eax
inc edx
cmp edx, 0x12400
jb 0x40120e
call fcn.00401113
push esi
test eax, eax
jne 0x401204
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x404bca
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x411050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00402e5c
mov dword [ebp - 0x14], eax
cmp dword [0x425210], esi
jne 0x404cbd
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x404c4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x404d9d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x404d9d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404d9d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x425210], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x425214], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x425218], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x425220], eax
test eax, eax
je 0x404cba
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42521c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x404ce2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404cd5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x404cf7
push 4
pop eax
jmp 0x404d9f
cmp dword [ebp - 0x14], esi
je 0x404cf7
push dword [0x425210]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x404cdc
mov eax, dword [0x42521c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x404d55
cmp dword [0x425220], edi
je 0x404d55
push eax
call ebx
push dword [0x425220]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x404d55
test eax, eax
je 0x404d55
call ecx
test eax, eax
je 0x404d4a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x404d4a
test byte [ebp - 8], 1
jne 0x404d55
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x404d85
mov eax, dword [0x425214]
cmp eax, edi
je 0x404d82
push eax
call ebx
test eax, eax
je 0x404d82
call eax
mov esi, eax
test esi, esi
je 0x404d82
mov eax, dword [0x425218]
cmp eax, edi
je 0x404d82
push eax
call ebx
test eax, eax
je 0x404d82
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x425210]
call ebx
test eax, eax
je 0x404d9d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x404d9f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004013c0
mov esp, ebp
pop ebp
ret
Function at 0x402fcc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4036d8
Capabilities:
Query or enumerate registry value

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

Function at 0x404584
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47c04c], 0
je 0x4045e5
cmp word [0x47c220], 0xd7b2
jne 0x4045ad
cmp dword [0x47c228], 0
jbe 0x4045ad
mov eax, 0x47c21c
call dword [0x47c238]
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 0x40460c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x471030], 0
jne 0x404601
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405d98
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 0x405fc8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e1b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405fc8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e1b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405fe4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405ea4
xor eax, eax
push ebp
push 0x405e9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405bd4
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 0x405e82
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406004
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405e82
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 0x405ea4
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 0x405fbe
cmp byte [ebp - 0xd], 0
jne 0x405eeb
cmp byte [ebp - 0x12], 0
je 0x405fbe
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405f04
dec ebx
cmp byte [ebx], 0x2e
je 0x405f13
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405f03
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405fbe
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405f50
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 0x405fbe
cmp byte [ebp - 0xd], 0
je 0x405fbe
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 0x405fbe
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 0x4086fc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40878c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40878c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40873f
test edx, 3
jne 0x40872e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408739
jmp 0x40873f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40873f
cmp dword [ecx - 8], 1
je 0x408749
mov edx, ebx
or edx, 3
call fcn.00404e50
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 0x40875b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404704

Function at 0x408798
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408828
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408828
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4087db
test edx, 3
jne 0x4087ca
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4087d5
jmp 0x4087db
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4087db
cmp dword [ecx - 8], 1
je 0x4087e5
mov edx, ebx
or edx, 3
call fcn.00404e50
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 0x4087f7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404704

Function at 0x40bc5c
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 0x40bc95
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047f4
jmp 0x40bc9e
mov eax, ebx
mov edx, esi
call fcn.00404758
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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