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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x4e949c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2ec], ebx
push edi
test ebx, ebx
je 0x45fdf4
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x45fdf4
push esi
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00464a00
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x2d8]
add esp, 0xc
push eax
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x45fdc9
xor edi, edi
mov dword [ebp - 0x2dc], 0x104
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x1d0]
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x45fdb8
lea eax, [ebp - 0x2e0]
push eax
push 1
push 0
lea eax, [ebp - 0x1d0]
push eax
push dword [ebp - 0x2d8]
call esi
test eax, eax
jne 0x45fd82
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2e8], 1
push eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2e4], 0x104
push eax
lea eax, [ebp - 0x2e8]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x2e0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45fd7a
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00464a00
push 0x64
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.0045fe10
add esp, 0x18
test eax, eax
je 0x45fd7a
cmp byte [ebp - 0x68], 0
je 0x45fd3c
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x45fd7a
lea ecx, [ebp - 0x68]
mov edx, 0x64
lea esi, [ebp - 0xcc]
mov eax, ecx
sub esi, eax
nop
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x45fd69
mov al, byte [esi + ecx]
test al, al
je 0x45fd69
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x45fd50
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov byte [eax], 0
push dword [ebp - 0x2e0]
call ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0x104
push eax
lea eax, [ebp - 0x1d0]
inc edi
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x45fc90
push dword [ebp - 0x2d8]
call ebx
mov ebx, dword [ebp - 0x2ec]
mov edi, dword [ebp + 0xc]
cmp byte [ebp - 0x68], 0
pop esi
je 0x45fdf4
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
call fcn.00461340
xor ecx, ecx
test eax, eax
pop edi
setns cl
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.00462391
mov esp, ebp
pop ebp
ret
Function at 0x45ff30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x4e949c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4600af
cmp dword [ebp + 0xc], 0x20
jb 0x4600af
push 0x400
lea eax, [ebp - 0x504]
mov dword [ebp - 0x50c], 1
push 0
push eax
mov dword [ebp - 0x508], 0x400
call fcn.00464a00
add esp, 0xc
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x50c]
push eax
push 0x4cc284
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4600af
lea ecx, [ebp - 0x504]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45ffc0
sub ecx, edx
cmp ecx, 0x40
jne 0x4600af
lea edx, [ecx + 0x40]
push esi
lea ecx, [ebp - 0x84]
lea esi, [ebp - 0x504]
mov eax, ecx
sub esi, eax
lea eax, [edx - 0x60]
test eax, eax
je 0x45fffc
mov al, byte [esi + ecx]
test al, al
je 0x45fffc
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x45ffe6
test edx, edx
lea eax, [ecx - 1]
lea esi, [ebp - 0x4e4]
mov edx, 0x80
cmovne eax, ecx
lea ecx, [ebp - 0x104]
mov byte [eax], 0
mov eax, ecx
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x460039
mov al, byte [esi + ecx]
test al, al
je 0x460039
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x460020
test edx, edx
lea eax, [ecx - 1]
push 0x400
cmovne eax, ecx
push 0
mov byte [eax], 0
lea eax, [ebp - 0x504]
push eax
call fcn.00464a00
push 0x400
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004600c0
add esp, 0x18
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
test eax, eax
jne 0x4600af
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
push edi
call fcn.00461340
neg eax
pop edi
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.00462391
mov esp, ebp
pop ebp
ret
Function at 0x460e30
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c10
call fcn.00462a70
mov eax, dword [0x4e949c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c10], eax
test eax, eax
je 0x460f9d
cmp dword [ebp + 0xc], 0
je 0x460f9d
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop dword [eax]
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004613b0
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x460f80
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2c0c], 0
lea eax, [ebp - 0x2bfc]
movq qword [ebp - 0x2c08], xmm0
push 0
push eax
mov dword [ebp - 0x2c00], 0
mov dword [ebp - 0x2c08], 0
mov dword [ebp - 0x2c04], 0
call fcn.00464a00
add esp, 0xc
lea eax, [ebp - 0x2c0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2bfc]
push eax
push 0xc
lea eax, [ebp - 0x2c08]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x460f75
push 0x3e8
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.00464a00
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x2be4]
lea eax, [ebp - 0x2bfc]
push eax
call fcn.00462280
add esp, 0x1c
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x2c10]
call fcn.00461340
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x460f8a
inc esi
cmp esi, 0x10
jl 0x460e70
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret
Function at 0x460fb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4e949c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x461098
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00464a00
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test edx, edx
je 0x461098
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x461007
sub ecx, esi
mov eax, 0x103
sar ecx, 1
sub eax, ecx
cmp edx, eax
jae 0x461098
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x461030
mov eax, dword [0x4cc0c8]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x461045
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x461060
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00462391
mov esp, ebp
pop ebp
ret
Function at 0x4610b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x4e949c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.00464a00
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.004600c0
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x46111a
mov al, byte [edi + ecx]
test al, al
je 0x46111a
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x461101
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x46113b
inc eax
sub ecx, 1
jne 0x461130
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x461190
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x461185
lea edi, [ebp - 0x84]
mov eax, SysReAllocString
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x461184
mov bl, byte [edi + ecx]
test bl, bl
je 0x461184
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x461170
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.00464a00
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x4cc284
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x46124a
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x461214
test cl, cl
je 0x461210
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x461214
add eax, 2
add esi, 2
test cl, cl
jne 0x4611f4
xor eax, eax
jmp 0x461219
sbb eax, eax
or eax, 1
test eax, eax
je 0x46124a
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x461226
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x461253
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x4cc284
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00462391
mov esp, ebp
pop ebp
ret

Function at 0x4a2ee0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a2ae5

Function at 0x4a2eeb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a2c66

Function at 0x4ac497
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004abc71

Function at 0x4ac4a2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004abeac
Function at 0x4aca1c
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ac7a3
Function at 0x1000af8b
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1001cf10]
xor eax, ebp
mov dword [ebp + 0x88], eax
and dword [ebp - 0x80], 0
push ebx
mov ebx, dword [ebp + 0x94]
push esi
push edi
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, 0x10014bfc
test eax, eax
je 0x1000aff5
lea eax, [ebp - 0x7c]
push edi
push eax
call sub.msvcr100.dll_strcat
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.msvcr100.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
call esi
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x1000b028
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1000b028
lea eax, [ebp - 0x7c]
push edi
push eax
call sub.msvcr100.dll_strcat
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.msvcr100.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
call esi
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp + 0x88]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100122d0
add ebp, 0x8c
leave
ret

Function at 0x1000b889
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1000b898
pop dword [ebp - 0x44]
mov eax, 0x63d1e8b3
add eax, 0xac2ecfe5
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x3756ec
add dword [ebp - 0x54], 0x4e1aee5f
mov dword [ebp - 0x50], 0x8754ea42
add dword [ebp - 0x50], 0xaade6203
mov dword [ebp - 0x4c], 0xeffb287e
sub dword [ebp - 0x4c], 0xa3aee450
mov dword [ebp - 0x48], 0x6718971
sub dword [ebp - 0x48], 0x6718971
lea eax, [ebp - 0x54]
push eax
mov eax, 0x8c56ab16
sub eax, 0x7c5579be
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xad62fcb5
sub dword [ebp - 0x54], 0x38f0935f
mov dword [ebp - 0x50], 0x6640f451
add dword [ebp - 0x50], 0xdb2b6d24
mov dword [ebp - 0x4c], 0xdbf2db4c
sub dword [ebp - 0x4c], 0x78836ee0
mov dword [ebp - 0x48], 0x54b58d3b
add dword [ebp - 0x48], 0xab4a72c5
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xda78a972
add eax, 0x358887ea
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3874a
push 0
call eax
mov ecx, 0x4adf
mov edi, eax
mov ebx, 0x10020600
add ebx, dword [ebp - 0x44]
mov edx, 0x4335fbee
add edx, 0x375a67d7
mov dword [ebp - 0x34], 0x243ce6d0
mov esi, dword [ebx]
sub dword [ebp - 0x34], esi
add esi, edx
xor dword [ebp - 4], 0x6d4338f0
mov dword [edi], esi
xor dword [ebp - 0x1c], 0x13a09bbf
add edi, 0x324126f8
sub edi, 0x324126f4
add ebx, 0xe2584dfb
sub ebx, 0xe2584df7
loop 0x1000b9ae
add eax, 0xcc4b60de
sub eax, 0xcc4a428f
xor ebx, ebx
add ebx, eax
add eax, 0xde5aa7e3
sub eax, 0xde5aa7de
mov ecx, 0x30c3ea38
sub ecx, 0x20c3ea38
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x100122d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001cf10]
jne 0x100122da
repz ret
jmp fcn.100128eb
Function at 0x10001527
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x3d8]
sub esp, 0x458
mov eax, dword [0x10047578]
xor eax, ebp
mov dword [ebp + 0x3d4], eax
mov eax, dword [ebp + 0x3e4]
push ebx
push esi
mov esi, dword [ebp + 0x3e0]
push edi
push esi
mov dword [ebp - 0x78], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push esi
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
push 0x5a
push esi
fstp dword [ebp - 0x70]
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fstp dword [ebp - 0x6c]
fld dword [ebp - 0x70]
fmul qword [0x10038a48]
fld qword [0x10038a40]
fdiv st(1), st(0)
fxch st(1)
call fcn.1001d980
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x3e8]
imul eax, eax, 0xa
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul dword [ebp - 0x6c]
fdivrp st(1)
call fcn.1001d980
mov dword [ebp - 0x7c], eax
push 1
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.GDI32.dll_DPtoLP]
fild dword [ebp - 0x7c]
fabs
fdiv qword [0x10038a38]
fadd qword [0x10038a30]
call fcn.1001d980
neg eax
cmp dword [ebp + 0x3ec], ebx
mov dword [ebp - 0x68], eax
setne al
mov byte [ebp - 0x53], al
mov eax, dword [ebp + 0x3f0]
neg eax
sbb eax, eax
and eax, 0x2bc
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x54], bl
mov dword [ebp - 0x52], ebx
mov word [ebp - 0x4e], bx
mov dword [ebp - 0x58], eax
push 0x400
lea eax, [ebp - 0x2c]
push eax
push 0x1002
push 0x800
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
push 5
lea eax, [ebp - 0x2c]
push 0x100389dc
push eax
call fcn.1001fa50
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x4c]
je 0x10001671
push dword [ebp - 0x78]
jmp 0x10001676
push 0x100389e4
push 0x20
push eax
call fcn.1001fa50
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push dword [ebp - 0x74]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [ebp + 0x3d4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d742
add ebp, 0x3d8
leave
ret 0x14
Function at 0x10007dfb
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x3d8]
sub esp, 0x458
mov eax, dword [0x10047578]
xor eax, ebp
mov dword [ebp + 0x3d4], eax
mov eax, dword [ebp + 0x3e4]
push ebx
push esi
mov esi, dword [ebp + 0x3e0]
push edi
push esi
mov dword [ebp - 0x78], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push esi
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
push 0x5a
push esi
fstp dword [ebp - 0x70]
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fstp dword [ebp - 0x6c]
fld dword [ebp - 0x70]
fmul qword [0x10038a48]
fld qword [0x10038a40]
fdiv st(1), st(0)
fxch st(1)
call fcn.1001d980
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x3e8]
imul eax, eax, 0xa
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul dword [ebp - 0x6c]
fdivrp st(1)
call fcn.1001d980
mov dword [ebp - 0x7c], eax
push 1
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.GDI32.dll_DPtoLP]
fild dword [ebp - 0x7c]
fabs
fdiv qword [0x10038a38]
fadd qword [0x10038a30]
call fcn.1001d980
neg eax
cmp dword [ebp + 0x3ec], ebx
mov dword [ebp - 0x68], eax
setne al
mov byte [ebp - 0x53], al
mov eax, dword [ebp + 0x3f0]
neg eax
sbb eax, eax
and eax, 0x2bc
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x54], bl
mov dword [ebp - 0x52], ebx
mov word [ebp - 0x4e], bx
mov dword [ebp - 0x58], eax
push 0x400
lea eax, [ebp - 0x2c]
push eax
push 0x1002
push 0x800
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
push 5
lea eax, [ebp - 0x2c]
push 0x10039320
push eax
call fcn.1001fa50
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x4c]
je 0x10007f45
push dword [ebp - 0x78]
jmp 0x10007f4a
push 0x10039328
push 0x20
push eax
call fcn.1001fa50
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push dword [ebp - 0x74]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [ebp + 0x3d4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d742
add ebp, 0x3d8
leave
ret 0x14

Function at 0x10008ee6
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10008f34
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x10008f45
push 0xd
pop eax
jmp 0x10008f6f
push edi
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x10008f48
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x1000c26f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x10047578]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.1001fa50
mov ebx, eax
cmp ebx, esi
je 0x1000c2e2
lea ecx, [ebp - 0x74]
call fcn.1000135a
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d742
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1000c2fa
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.1000c26f
cmp eax, esi
jne 0x1000c32c
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x1000c2ea
lea ecx, [ebp - 0x74]
call fcn.1000135a
push dword [ebp - 0x78]
mov ecx, edi
call fcn.10008dd7
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.1000135a
mov eax, esi
jmp 0x1000c2c8
Function at 0x1000dbda
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x10047578]
xor eax, ebp
mov dword [ebp + 0xac], eax
mov eax, dword [ebp + 0xb8]
push esi
mov esi, dword [ebp + 0xbc]
push 0x10039ee8
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.1001fa50
add esp, 0xc
test eax, eax
jne 0x1000dd31
push esi
call fcn.1001fa50
pop ecx
test eax, eax
jne 0x1000dd31
push edi
xor edi, edi
inc edi
jmp 0x1000dd04
cmp dword [ebp - 0x78], 0x4034b50
jne 0x1000dd27
cmp word [ebp - 0x70], 0
jne 0x1000dd27
push dword [ebp - 0x7c]
movzx eax, word [ebp - 0x5e]
movzx esi, word [ebp - 0x5e]
push eax
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.1001fa50
add esp, 0x10
cmp eax, esi
jne 0x1000dd27
lea eax, [ebp - 0x58]
push eax
mov byte [ebp + esi - 0x58], 0
call fcn.1001fa50
cmp word [ebp - 0x5c], 0
pop ecx
jbe 0x1000dc9c
movzx eax, word [ebp - 0x5c]
push edi
push eax
push dword [ebp - 0x7c]
call fcn.1002011f
add esp, 0xc
test eax, eax
jne 0x1000dd27
movzx eax, word [ebp - 0x5e]
cmp byte [ebp + eax - 0x59], 0x2f
je 0x1000dd04
push 0x10039eec
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.1001fa50
add esp, 0xc
test eax, eax
jne 0x1000dd27
push dword [ebp - 0x62]
call fcn.1001fa50
push dword [ebp - 0x7c]
mov esi, eax
push dword [ebp - 0x62]
push edi
push esi
call fcn.1001fa50
add esp, 0x14
cmp eax, dword [ebp - 0x62]
jne 0x1000dd20
push dword [ebp - 0x80]
push dword [ebp - 0x62]
push edi
push esi
call fcn.1002001b
add esp, 0x10
push esi
cmp eax, dword [ebp - 0x62]
jne 0x1000dd21
call fcn.1001fa50
push dword [ebp - 0x80]
call fcn.1001fe50
pop ecx
pop ecx
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push edi
push 0x1e
push eax
call fcn.1001fa50
add esp, 0x10
cmp eax, edi
je 0x1000dc34
jmp 0x1000dd27
push esi
call fcn.1001fa50
pop ecx
push dword [ebp - 0x7c]
call fcn.1001fe50
pop ecx
pop edi
mov ecx, dword [ebp + 0xac]
xor ecx, ebp
pop esi
call fcn.1001d742
add ebp, 0xb0
leave
ret