joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013d4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4140e0
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x414327
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
nop dword [eax]
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
sub byte [edi + ebp], 0x63
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xe1
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xfe
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x5e
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xd
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xd9
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x82
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x2b
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xf7
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xe4
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xd2
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x10
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x1e
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xbf
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x6c
inc edi
cmp edi, ebx
jb 0x414100
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x4036f2
Capabilities:
Terminate process

Disassembly:
jmp 0x454de9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x454dfa
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405af6
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x494e23
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401df7
mov eax, dword [0x508c34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00406073
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x494e65
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x494fc1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004061d6
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x50cb98]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403346
mov ecx, dword [esi*4 + 0x50cb98]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x494fba
cmp eax, dword [edi + ecx + 0x24]
jne 0x494fba
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x494fba
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403346
add esp, 0x14
test edx, edx
jl 0x494fba
jg 0x494f30
test eax, eax
jb 0x494fba
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x494fba
jl 0x494f4a
cmp dword [ebp - 0x1008], eax
ja 0x494fba
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x494f68
test ebx, ebx
je 0x494fa1
cmp ecx, edi
jae 0x494fa1
mov al, byte [ecx]
cmp al, 0xd
jne 0x494f82
lea eax, [edi - 1]
cmp ecx, eax
jae 0x494f8e
cmp byte [ecx + 1], 0xa
jne 0x494f8e
inc ecx
jmp 0x494f8e
movzx eax, al
movsx eax, byte [eax + 0x508f68]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x494f68
cmp edx, ebx
jne 0x494f68
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x494fbf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040311b
leave
ret
Function at 0x495700
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x50cb98]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x495740
cmp byte [ebx], 0xa
jne 0x495740
or byte [eax + edi + 0x28], 4
jmp 0x495745
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x495843
mov al, byte [edx]
cmp al, 0x1a
je 0x495825
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x495774
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x495799
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4957a3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x495756
jmp 0x495843
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x495820
cmp dword [ebp - 0xc], 0
je 0x495820
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x50cb98]
test byte [eax + edi + 0x28], 0x48
je 0x4957fa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4957e5
mov byte [esi], dl
jmp 0x4957f6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x50cb98]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x495843
cmp byte [ebp - 1], 0xa
jne 0x495809
cmp esi, ebx
jne 0x495809
mov byte [esi], 0xa
jmp 0x495842
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040197e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x495843
mov byte [esi], 0xd
jmp 0x495842
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x50cb98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49583f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x495843
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49589f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x50cb98]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4958e2
cmp word [esi], dx
jne 0x4958e2
or byte [edi + eax + 0x28], 4
jmp 0x4958e7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x495a3a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x495a1a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x495929
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49595f
cmp eax, edx
jae 0x49596b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x495901
jmp 0x495a3a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x495a16
cmp dword [ebp - 0x14], 0
je 0x495a16
mov eax, dword [ebx*4 + 0x50cb98]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4959ee
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4959b7
mov word [esi], cx
jmp 0x4959ea
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x50cb98]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x50cb98]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x50cb98]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x495a3a
pop ebx
cmp word [ebp - 4], bx
jne 0x4959ff
cmp esi, dword [ebp + 0xc]
jne 0x4959ff
mov word [esi], bx
jmp 0x495a37
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040197e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x495a3a
push 0xd
jmp 0x495a33
mov ecx, dword [ebx*4 + 0x50cb98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x495a31
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x495a3a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49ce21
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x508c34]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49ce6c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049d2e3
test al, al
jne 0x49ce66
sub edx, 2
cmp edx, edi
jne 0x49ce4c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49ce8e
lea eax, [edi + 2]
cmp edx, eax
je 0x49ce8e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049ca1a
add esp, 0x10
jmp 0x49cf88
push esi
lea ecx, [ebp - 0x255]
call fcn.0049d2e3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49ced1
push dword [ebp - 0x25c]
jmp 0x49ce7e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49cf0e
cmp word [ebp - 0x226], 0
je 0x49cf2f
cmp word [ebp - 0x226], ax
jne 0x49cf0e
cmp word [ebp - 0x224], 0
je 0x49cf2f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049ca1a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49cf7b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49cee8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49cf63
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49cf88
push 0x49c402
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004056ff
add esp, 0x10
jmp 0x49cf58
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040311b
leave
ret
Function at 0x402ac8
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.00404328
test esi, esi
jne 0x402afe
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.00404418
jmp 0x402b1c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029dc
mov edi, eax
test esi, esi
je 0x402b1c
cmp dword [ebx], 0
je 0x402b1c
dec esi
jmp 0x402b05
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403348
Capabilities:
Query or enumerate registry value

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

Function at 0x404108
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x58804c], 0
je 0x404169
cmp word [0x588220], 0xd7b2
jne 0x404131
cmp dword [0x588228], 0
jbe 0x404131
mov eax, 0x58821c
call dword [0x588238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x584070
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 0x404190
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x584034], 0
jne 0x404185
push 0
push 0x584068
push 0x584070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4042dc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027a0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x58804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4042a4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405f4c
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 0x40617c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405fcf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40617c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405fcf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406198
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406058
xor eax, eax
push ebp
push 0x406051
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405d94
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 0x406036
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4061b8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406036
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 0x406058
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 0x406172
cmp byte [ebp - 0xd], 0
jne 0x40609f
cmp byte [ebp - 0x12], 0
je 0x406172
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4060b8
dec ebx
cmp byte [ebx], 0x2e
je 0x4060c7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4060b7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406172
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406104
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 0x406172
cmp byte [ebp - 0xd], 0
je 0x406172
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 0x406172
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 0x406844
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4068aa
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404598
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ea8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406894
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4068b1
lea eax, [ebp - 0x10]
call fcn.00404328
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004047e8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4096e9
test al, 0x10
jne 0x4096ed
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4096f4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004047e8
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409716
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c8f4
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 0x40c92d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404418
jmp 0x40c936
mov eax, ebx
mov edx, esi
call fcn.0040437c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c940
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 0x40c961
mov al, byte [esp]
jmp 0x40c963
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40cfe8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ce60
mov eax, dword [0x587788]
cmp byte [eax], 0
je 0x40d064
mov eax, dword [0x5872fc]
call fcn.00402c50
call fcn.00402908
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.00409ab8
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 0x40d0ac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d09a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x587268]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x588668]
call fcn.00405d58
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 0x40d96c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40da42
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004043c0
lea eax, [ebp - 8]
call fcn.00404838
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004047e8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40da2c
mov eax, ebx
call fcn.004027a0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40da25
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 - 8]
call fcn.004047e8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40da0f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40da54
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40da0f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da2c
mov eax, dword [ebp - 0x10]
call fcn.004027c0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da49
lea eax, [ebp - 8]
call fcn.00404328
ret

Function at 0x40e00c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40e070
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404598
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004092fc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e077
lea eax, [ebp - 0xc]
call fcn.00404328
ret