joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d140
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push str.wallpaper.jpg
mov ecx, 0x4562c8
call fcn.0041d2e0
mov eax, dword [ebp + 8]
push 0
mov esi, dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x456ca8
push 0x456d70
push 0
mov dword [0x456ca0], eax
call esi
mov edi, eax
test edi, edi
jne 0x41d194
pop edi
pop esi
pop ebp
ret
push 0
push dword [0x456ca0]
mov dword [0x456ca4], edi
push 0
push edi
push 0x14
push 0x50
push 0x172
push 0x12c
push 0x50000000
push 0x44df0c
push str.BUTTON
push 0
call esi
push 0
push dword [0x456ca0]
mov dword [0x456e38], eax
push 1
push dword [0x456ca4]
push 0x14
push 0x20
push 0xb3
push 0x190
push 0x50000000
push 0x44df40
push str.BUTTON
push 0
call esi
push 0
push dword [0x456ca0]
push 2
push dword [0x456ca4]
push 0x14
push 0x20
push 0xb3
push 0x1b0
push 0x50000000
push 0x44df48
push str.BUTTON
push 0
call esi
push 0
push dword [0x456ca0]
push 3
push dword [0x456ca4]
push 0x14
push 0x20
push 0xb3
push 0x1f0
push 0x50000000
push 0x44df4c
push str.BUTTON
push 0
call esi
push 0
push dword [0x456ca0]
push 4
push dword [0x456ca4]
push 0x14
push 0x20
push 0xb3
push 0x210
push 0x50000000
push 0x44df50
push str.BUTTON
push 0
call esi
push 0
push dword [0x456ca0]
push 5
push dword [0x456ca4]
push 0x14
push 0x20
push 0xb3
push 0x1d0
push 0x50000000
push 0x44df58
push str.BUTTON
push 0
call esi
mov dword [0x456e3c], eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
mov eax, 1
pop esi
pop ebp
ret
Function at 0x4464b7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044632d

Function at 0x7ffe53e8
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
not eax
not eax
inc esi
dec esi
push bx
inc esp
inc esp
and al, 0xff
push bx
inc esp
inc esp
push es
pop ds
pushf
popf
and al, 0xff
add al, 4
sub al, 4
and al, 0xff
push bx
inc esp
inc esp
and al, 0xff
pushf
popf
add al, 0
add al, 4
sub al, 4
and al, 0xff
push bx
inc esp
inc esp
push es
pop ds
pushf
popf
push es
pop ds
push bx
inc esp
inc esp
push eax
pop eax
not eax
not eax
and al, 0xff
and al, 0xff
cld
call 0x7ffe543e
pop edx
and al, 0xff
xor dx, dx
push eax
pop eax
pushal
inc eax
popal
add edx, 0xd5e0
inc esi
dec esi
add al, 0
xor ecx, ecx
and al, 0xff
not eax
not eax
cld
mov cl, 0x1e
add al, 4
sub al, 4
and al, 0xff
xor byte [ecx + edx], 0x2f
loop 0x7ffe5464
cld
push dword fs:[0x24]
pop dword [edx + 0xa]
pushal
inc eax
popal
mov cl, 0xff
inc esi
dec esi
push edx
loop 0x7ffe547c
and al, 0xff
lea esp, [esp]
mov dword [edx + 0x11], 0xffffacbb
add al, 0
and al, 0xff
mov ecx, dword [eax + 0x2c]
push eax
pop eax
xor eax, ecx
xor eax, ecx
stc
mov dword [edx + 0x1b], ecx
add al, 4
sub al, 4
push eax
pop eax
mov dword [edx + 0x100], ecx
cld
mov dword [eax + 0x2c], esp
push 0
lea esp, [esp]
push 0
push es
pop ds
push 0
and al, 0xff
add al, 0
nop
push 0
add al, 4
sub al, 4
push 0x30
inc esi
dec esi
pushf
popf
nop
push 0x20
add al, 4
sub al, 4
push es
pop ds
push 0
nop
push 0
add edx, 0xffff7f33
push eax
pop eax
clc
push edx
and al, 0xff
push edx
pushf
popf
cld
push 0
add al, 4
sub al, 4
call dword [edx + 0x8210]
push es
pop ds
xor eax, ecx
xor eax, ecx
cld
add esp, 0x3f8
pushf
popf
push es
pop ds
xor eax, eax
cld
inc eax
ret 0xc
Function at 0x1002e05
Capabilities:
Check if file exists
Delete file
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1014004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
lea edx, [ebp - 0x210]
push edx
push 0x2001b
xor esi, esi
push esi
push ecx
push eax
mov dword [ebp - 0x218], 0x80004005
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002f23
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1002f17
push ebx
push edi
xor ebx, ebx
xor edi, edi
cmp dword [ebp - 0x214], esi
jbe 0x1002f07
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.010059c0
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x210]
mov dword [ebp - 0x21c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1002efe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHELL32.dll_SHRemoveLocalizedName]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1002efd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1002efe
inc ebx
inc edi
cmp edi, dword [ebp - 0x214]
jb 0x1002e89
cmp ebx, dword [ebp - 0x214]
pop edi
pop ebx
jne 0x1002f17
mov dword [ebp - 0x218], esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
xor ecx, ebp
pop esi
call fcn.0100597b
leave
ret 8

Function at 0x1002f3d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x2001b
push esi
push esi
push esi
push dword [ebp + 8]
mov edi, 0x80004005
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002f8f
push esi
push esi
push 1
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1002f86
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 8
Function at 0x1002f9c
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1014004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x214], ecx
lea ecx, [ebp - 0x210]
push ecx
mov ebx, 0x2001b
push ebx
xor esi, esi
push esi
push eax
push 0x80000001
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], 0x80004005
mov dword [ebp - 0x210], esi
call edi
test eax, eax
jne 0x100312a
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x100310d
cmp dword [ebp - 0x218], esi
jbe 0x100310d
lea eax, [ebp - 0x21c]
push eax
push ebx
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], esi
push 0x80000001
call edi
test eax, eax
jne 0x100310d
xor ebx, ebx
mov dword [ebp - 0x214], esi
cmp dword [ebp - 0x218], esi
jbe 0x10030ed
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.010059c0
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x210]
mov dword [ebp - 0x228], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10030e4
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
call edi
test eax, eax
jne 0x10030e4
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call edi
inc dword [ebp - 0x214]
inc ebx
cmp ebx, dword [ebp - 0x218]
jb 0x1003071
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x218]
jne 0x1003101
mov dword [ebp - 0x220], esi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x224]
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100597b
leave
ret 8

Function at 0x100361b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1014004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push eax
mov word [ebp - 0xc], ax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
push 3
lea eax, [ebp - 0xc]
push eax
push 4
push edi
mov esi, ecx
mov ebx, 0x80004005
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
test eax, eax
jle 0x100366c
lea eax, [ebp - 0xc]
push eax
mov dword [esi + 4], edi
push 9
add esi, 8
push esi
call fcn.01003464
mov ebx, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0100597b
leave
ret 4
Function at 0x1003800
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1014004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x218], eax
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x210], 0x80004005
mov dword [ebp - 0x214], esi
call fcn.010059c0
push ebx
lea eax, [edi + 8]
push eax
push 0x1001320
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.010034d3
add esp, 0x20
push esi
lea eax, [ebp - 0x214]
push eax
push esi
push 0x2001b
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10038cf
cmp dword [ebp - 0x218], esi
je 0x10038bb
push esi
push esi
push 1
push esi
push dword [ebp - 0x218]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10038c1
mov dword [ebp - 0x210], esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10038d6
mov ecx, edi
call fcn.010033f2
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100597b
leave
ret 8

Function at 0x1003b52
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1014004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
mov dword [ebp - 0x210], 0x80004005
call fcn.010059c0
add esi, 8
push esi
mov ebx, 0x1001520
push ebx
push 0x1001510
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.010034d3
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyW]
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
mov edi, 0x80000001
push edi
call esi
test eax, eax
jne 0x1003bd8
push ebx
push edi
call esi
and dword [ebp - 0x210], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100597b
leave
ret
Function at 0x1003ed9
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1014004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x418], 0x80004005
call fcn.010059c0
add esp, 0xc
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x10015b8
push 0x10015ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x1003fd9
xor eax, eax
lea ecx, [ebp - 0x41c]
push ecx
push eax
push eax
push 0x1002b7c
mov dword [ebp - 0x41c], eax
call sub.SHELL32.dll_SHGetKnownFolderPath
mov dword [ebp - 0x418], eax
test eax, eax
jl 0x1003fd9
xor eax, eax
push edi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.010059c0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push 0x1001510
push esi
push eax
call fcn.010034d3
add esp, 0x20
mov dword [ebp - 0x418], eax
test eax, eax
jl 0x1003fcd
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
jne 0x1003fcd
mov dword [ebp - 0x418], 0x80004005
push dword [ebp - 0x41c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100597b
leave
ret 8
Function at 0x1003ff5
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1014004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x424], eax
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
mov dword [ebp - 0x41c], 0x80004005
call fcn.010059c0
and dword [ebp - 0x420], 0
add esp, 0xc
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push 0
push 0x10015d8
push 0x10015ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x1004154
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push 0x10015d0
push eax
call fcn.01005a3f
add esp, 0xc
cmp eax, 1
jne 0x1004154
xor eax, eax
push edi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.010059c0
add esp, 0xc
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x420]
push dword [ebp - 0x418]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x1004154
mov eax, dword [ebx]
and dword [ebp - 0x418], 0
lea ecx, [ebp - 0x418]
push ecx
mov esi, 0x100158c
push esi
push ebx
call dword [eax + 0xc]
mov dword [ebp - 0x41c], eax
test eax, eax
jl 0x1004144
push dword [ebp - 0x424]
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0x41c], eax
cmp eax, 0x800700b7
jne 0x1004144
push dword [ebp - 0x424]
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x28]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x1004154
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100597b
leave
ret 0x10
Function at 0x1004170
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [0x1014004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x828], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x82c], eax
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x830], esi
mov dword [ebp - 0x834], 0x80004005
call fcn.010059c0
add esp, 0xc
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x824]
push eax
push 0
push 0x10015d8
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x100439b
and dword [ebp - 0x83c], 0
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x824]
push 0x10015d0
push eax
call fcn.01005a3f
add esp, 0xc
cmp eax, 1
jne 0x100439b
xor eax, eax
push edi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.010059c0
add esp, 0xc
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x83c]
push dword [ebp - 0x82c]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x100439b
xor eax, eax
push edi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.010059c0
add esp, 0xc
push dword [ebp - 0x830]
lea eax, [ebp - 0x414]
push esi
push eax
push 0
push 0x1001618
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x100439b
mov eax, dword [ebx]
and dword [ebp - 0x828], 0
lea ecx, [ebp - 0x828]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push ebx
call dword [eax + 0x1c]
mov dword [ebp - 0x834], eax
test eax, eax
jl 0x100439b
cmp dword [ebp - 0x828], 0
jne 0x100439b
mov eax, dword [ebx]
and dword [ebp - 0x82c], 0
lea ecx, [ebp - 0x82c]
push ecx
push 0x100157c
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push ebx
call dword [eax + 0x14]
mov dword [ebp - 0x834], eax
test eax, eax
jl 0x1004378
xor eax, eax
push edi
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.010059c0
mov eax, dword [ebx]
add esp, 0xc
lea ecx, [ebp - 0x830]
push ecx
push ebx
call dword [eax + 0x30]
push dword [ebp - 0x830]
lea eax, [ebp - 0x61c]
push 0x1001600
push esi
push eax
call fcn.010034d3
add esp, 0x10
push dword [ebp - 0x830]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x838]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.01003800
jmp 0x100438b
mov ecx, dword [ebp - 0x838]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0100337a
mov eax, dword [ebp - 0x82c]
test eax, eax
je 0x100439b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x834]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100597b
leave
ret 0x10
Function at 0x10043b7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x1014004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 0x24c
lea eax, [ebp - 0x458]
push edi
push eax
mov dword [ebp - 0x45c], edi
call fcn.010059c0
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.010059c0
push 0x100164c
push esi
push 0x1001510
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x460], 1
call fcn.010034d3
add esp, 0x2c
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or edi, 0xffffffff
mov dword [ebp - 0x464], eax
cmp eax, edi
je 0x10044e4
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 1
push edi
push 0x1001648
push edi
lea eax, [ebp - 0x430]
push eax
call esi
cmp eax, 2
je 0x100448f
push 1
push edi
push 0x1001640
push edi
lea eax, [ebp - 0x430]
push eax
call esi
cmp eax, 2
jne 0x10044a8
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x464]
call ebx
mov dword [ebp - 0x460], eax
test eax, eax
jne 0x1004461
cmp dword [ebp - 0x460], 0
je 0x10044e3
cmp dword [ebp + 0xc], 0
je 0x10044e3
push 1
push edi
push 0x1001628
push edi
lea eax, [ebp - 0x430]
push eax
call esi
cmp eax, 2
jne 0x10044e3
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x464]
call ebx
mov dword [ebp - 0x460], eax
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x460], eax
pop edi
sete al
xor ecx, ebp
pop esi
call fcn.0100597b
leave
ret 8
Function at 0x1004535
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x1014004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x620], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x624], eax
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.010059c0
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.010059c0
xor eax, eax
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.010059c0
xor eax, eax
add esp, 0x24
mov word [edi], ax
lea eax, [ebp - 0x628]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x61c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetLocalizedName]
test eax, eax
jl 0x1004643
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x1004643
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1004643
push esi
lea ecx, [ebp - 0x20c]
push ecx
push dword [ebp - 0x628]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x1004643
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x624]
push 0x1001654
push dword [ebp + 0x14]
push edi
call fcn.010034d3
add esp, 0x14
test eax, eax
jl 0x1004643
mov dword [ebp - 0x620], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x620]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100597b
leave
ret 0x10

Function at 0x100465f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1014004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
push 9
lea ebx, [esi + 8]
push ebx
mov dword [ebp - 0x10], 0x80004005
call fcn.01003464
test eax, eax
jl 0x10046de
push 0
push esi
push 0
push 0x1003594
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesEx]
test eax, eax
je 0x10046de
push edi
xor eax, eax
push eax
mov word [ebp - 0xc], ax
lea edi, [ebp - 0xa]
push 3
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
pop edi
test eax, eax
jle 0x10046de
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
jne 0x10046de
and dword [ebp - 0x10], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100597b
leave
ret 4
Function at 0x1004962
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x1014004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
mov ebx, ecx
push esi
push eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x428], 0x80004005
call fcn.010059c0
push 0x1001684
add ebx, 8
push ebx
push 0x1001320
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.010034d3
add esp, 0x20
lea eax, [ebp - 0x418]
push eax
push 0x2001b
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
mov dword [ebp - 0x418], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004b0c
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x420]
push eax
push esi
push esi
push esi
push dword [ebp - 0x418]
mov dword [ebp - 0x420], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1004b00
cmp dword [ebp - 0x420], esi
jbe 0x1004b00
push 2
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1004b00
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x41c], esi
cmp eax, esi
jbe 0x1004ad6
xor eax, eax
push edi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push esi
push eax
call fcn.010059c0
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x41c]
mov dword [ebp - 0x42c], ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1004ac2
mov ecx, dword [ebp - 0x430]
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call fcn.01003bf2
test eax, eax
jl 0x1004ac2
inc dword [ebp - 0x424]
inc dword [ebp - 0x41c]
mov eax, dword [ebp - 0x420]
cmp dword [ebp - 0x41c], eax
jb 0x1004a58
cmp dword [ebp - 0x424], eax
jne 0x1004afa
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x1004afa
mov dword [ebp - 0x428], esi
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x428]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100597b
leave
ret