joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e600
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4e3050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403ef7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403ef7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403ed7
cmp esi, edx
jae 0x403ef7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403ec5
cmp esi, edx
jae 0x403ef7
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e686
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4e3050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x30], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
push 0
mov dword [ebp - 0x38], esi
push 0
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 0xc]
push 0x2000003
add eax, 0x30
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CertNameToStrW]
mov edi, eax
xorps xmm0, xmm0
test edi, edi
je 0x404504
push edi
push 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
call fcn.00404960
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x28]
push edi
push ecx
mov eax, dword [eax + 0xc]
push 0x2000003
add eax, 0x30
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CertNameToStrW]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
dec eax
xorps xmm0, xmm0
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x18], eax
cmovae ecx, dword [ebp - 0x28]
xor edx, edx
mov word [ecx + eax*2], dx
xor eax, eax
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x28]
mov word [ebp - 0x28], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], al
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x404532
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047d4df
mov esp, ebp
pop ebp
ret
Function at 0x405c40
Capabilities:
Get common file path

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
push edi
push eax
push 0x23
push 0
mov esi, edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jns 0x405ce1
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x405cd9
push str.SHGetSpecialFolderPathW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x405cd9
push 0x20a
call fcn.0047d9ad
add esp, 4
mov dword [esi + 4], eax
mov dword [esi], 0x105
push 0
push 0x23
push eax
push 0
call edi
test eax, eax
je 0x405ccd
mov esi, dword [esi + 4]
xor edx, edx
mov ecx, esi
cmp word [esi], dx
je 0x405ccd
nop
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x405cb0
test edx, edx
je 0x405ccd
cmp word [esi + edx*2 - 2], 0x5c
je 0x405ccd
mov dword [esi + edx*2], 0x5c
cmp eax, 1
pop edi
sete al
pop esi
add esp, 8
ret
pop edi
xor al, al
pop esi
add esp, 8
ret
push 0x20a
call fcn.0047d9ad
add esp, 4
mov dword [esi + 4], eax
mov dword [esi], 0x105
push eax
push dword [esp + 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edi, eax
test edi, edi
je 0x405d31
mov esi, dword [esi + 4]
xor edx, edx
mov ecx, esi
cmp word [esi], dx
je 0x405d31
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x405d14
test edx, edx
je 0x405d31
cmp word [esi + edx*2 - 2], 0x5c
je 0x405d31
mov dword [esi + edx*2], 0x5c
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 8]
push dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
cmp edi, 1
pop edi
sete al
pop esi
add esp, 8
ret
Function at 0x406470
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49eaf9
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4e3050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x238], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x234], 0
cmp dword [edx + 0x14], 8
jb 0x4064c0
mov edx, dword [edx]
lea ecx, [ebp - 0x218]
push ecx
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406505
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], 1
jmp 0x406629
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
movups xmmword [ebp - 0x230], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406550
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00403c30
mov dword [ebp - 4], 3
lea eax, [ebp - 0x230]
push 1
sub esp, 0x18
mov dword [ebp - 0x238], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x240], esp
push eax
call fcn.00404d40
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.004216c0
add esp, 0x18
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.00421ad0
mov byte [ebp - 4], 3
mov dword [ebp - 0x234], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x40660c
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406602
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406646
push ecx
push edx
call fcn.0047d96a
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047d4df
mov esp, ebp
pop ebp
ret
call fcn.004827af
int3
Function at 0x406f90
Capabilities:
Create directory
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ee65
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4e3050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x4e548c]
cmp eax, dword [esi + 4]
jle 0x4070a8
push 0x4e548c
call fcn.0047d643
add esp, 4
cmp dword [0x4e548c], 0xffffffff
jne 0x4070a8
mov dword [ebp - 4], 0
push 0x38
mov dword [ebp - 0x5c], 0x4e5490
mov dword [0x4e5490], 0
mov dword [0x4e5494], 0
mov dword [0x4e5498], 0
call fcn.0047d978
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [0x4e5494], eax
mov byte [ebp - 4], 1
mov dword [0x4e549c], 0
mov dword [0x4e54a0], 0
mov dword [0x4e54a4], 0
mov byte [ebp - 4], 2
mov ecx, 0x4e549c
push dword [0x4e5494]
mov dword [0x4e54a8], 7
push 0x10
mov dword [0x4e54ac], 8
mov dword [0x4e5490], 0x3f800000
call fcn.004072f0
mov byte [ebp - 4], 0
push 0x4b4880
call fcn.0047d955
mov dword [ebp - 4], 0xffffffff
push 0x4e548c
call fcn.0047d5f9
add esp, 8
mov eax, dword [0x4e547c]
cmp eax, dword [esi + 4]
jle 0x4070f0
push 0x4e547c
call fcn.0047d643
add esp, 4
cmp dword [0x4e547c], 0xffffffff
jne 0x4070f0
mov dword [ebp - 4], 5
push 0x4b47e0
call fcn.0047d955
mov dword [ebp - 4], 0xffffffff
push 0x4e547c
call fcn.0047d5f9
add esp, 8
cmp dword [edi + 0x14], 8
mov esi, edi
mov ebx, dword [edi + 0x10]
jb 0x4070fd
mov esi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
add ebx, ebx
je 0x407119
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x407108
push edx
push edi
lea eax, [ebp - 0x68]
push eax
call fcn.00407cb0
mov esi, dword [0x4e5494]
mov eax, dword [eax + 4]
test eax, eax
cmovne esi, eax
cmp esi, dword [0x4e5494]
jne 0x407141
mov esi, 0x4e3aa8
jmp 0x407144
add esi, 0x20
cmp dword [esi + 0x10], 0
je 0x407164
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x407154
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, esi
jmp 0x4071e8
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x40716e
mov edx, dword [edi]
push 0
lea ecx, [ebp - 0x58]
call fcn.004063a0
add esp, 4
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x40]
push edi
call fcn.00404d40
mov byte [ebp - 4], 7
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x58]
push eax
call fcn.00404d40
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004073f0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.00403d10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.00403d10
mov esi, dword [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00403d10
lea eax, [esi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047d4df
mov esp, ebp
pop ebp
ret
Function at 0x4073f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49eefd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e3050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edx, ebx
cmp dword [ebx + 0x14], 8
mov edi, dword [ebx + 0x10]
jb 0x407428
mov edx, dword [ebx]
xor ecx, ecx
mov esi, 0x811c9dc5
add edi, edi
je 0x407444
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x407433
push esi
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.00407cb0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x407473
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4e5498], 0x4924924
je 0x4075d0
mov dword [ebp - 0x14], 0x4e5494
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
push 0x38
mov dword [ebp - 0x10], 0
call fcn.0047d978
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
lea ecx, [edi + 8]
push ebx
call fcn.00407d60
mov dword [ebp - 4], 1
mov ecx, dword [0x4e5498]
mov ebx, dword [0x4e54ac]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movd xmm1, ebx
addsd xmm0, qword [eax*8 + 0x4c9fa0]
cvtdq2pd xmm1, xmm1
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x4c9fa0]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
movss xmm1, dword [0x4e5490]
comiss xmm2, xmm1
jbe 0x40755e
divss xmm0, xmm1
call fcn.00407e00
call fcn.0049d480
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x407540
cmp ebx, 0x200
jae 0x40753e
shl ebx, 3
cmp ebx, ecx
jae 0x407540
mov ebx, ecx
push ebx
call fcn.00407750
push esi
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00407cb0
mov ecx, dword [0x4e5498]
mov edx, dword [eax]
jmp 0x407561
mov edx, dword [ebp - 0x1c]
mov ebx, dword [edx + 4]
inc ecx
mov dword [0x4e5498], ecx
mov dword [edi], edx
mov dword [edi + 4], ebx
mov dword [ebx], edi
mov dword [edx + 4], edi
mov eax, dword [0x4e54a8]
mov ecx, dword [0x4e549c]
and eax, esi
mov dword [ebp - 0x10], 0
mov esi, dword [ecx + eax*8]
cmp esi, dword [0x4e5494]
jne 0x407599
mov dword [ecx + eax*8], edi
jmp 0x4075a8
cmp esi, edx
jne 0x4075a2
mov dword [ecx + eax*8], edi
jmp 0x4075ac
cmp dword [ecx + eax*8 + 4], ebx
jne 0x4075ac
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.0047c715
int3
Function at 0x407ef0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x49f0ed
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4e3050]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x105
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40801f
cmp eax, 0x105
jae 0x40801f
call fcn.004042d0
mov ecx, eax
test ecx, ecx
je 0x408043
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403430
test al, al
jne 0x407f9d
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407f81
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004035a0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 1
push 0x4c3188
call fcn.00402420
test esi, esi
jne 0x407fbb
xor ecx, ecx
jmp 0x407fcf
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407fc0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.00402420
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.0047ea63
add esp, 8
test eax, eax
jne 0x407fef
xor edi, edi
jmp 0x407ffc
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40801b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x408021
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.0047d4df
lea esp, [ebp + 0x210]
pop ebp
ret
push 0x80004005
call fcn.00402570
int3
Function at 0x408550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f22d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e3050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x408648
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
push dword [ebx]
mov dword [ebp - 0x10], 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408648
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x408648
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d9ad
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push esi
push 0
push 0
push dword [ebx]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4085f4
xor bl, bl
jmp 0x40861b
mov eax, esi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408600
mov ecx, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.004035a0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0047d9a8
add esp, 4
mov dword [ebp + 8], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.0047e600
push 0xffffffffffffffff
push 0x49f26d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4e3050]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
cmp dword [eax + 4], 0
mov ecx, dword [ebp + 0x800c]
mov dword [ebp - 0x20], ecx
jne 0x4086b8
xor al, al
jmp 0x40879f
cmp byte [ebp + 0x8010], 0
je 0x4086c9
call fcn.00408c60
mov eax, dword [ebp - 0x18]
xor ebx, ebx
nop dword [eax + eax]
push 0
push 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0x3fff
push ecx
push 0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp]
push ecx
push ebx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40878a
mov edi, dword [ebp - 0x10]
call fcn.004042d0
test eax, eax
je 0x4087d3
mov ecx, dword [eax]
push 2
push edi
mov edx, dword [ecx]
mov ecx, eax
call edx
test eax, eax
je 0x4087ce
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
test edi, edi
js 0x4087c4
cmp edi, dword [esi - 8]
jg 0x4087c4
mov dword [esi - 0xc], edi
xor eax, eax
add edi, edi
mov word [edi + esi], ax
test edi, edi
je 0x408755
push edi
lea eax, [ebp]
push eax
push esi
call fcn.0047ef70
add esp, 0xc
mov dword [ebp - 4], 1
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push eax
call fcn.00408d00
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408787
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
inc ebx
test eax, eax
jne 0x408797
mov eax, dword [ebp - 0x18]
jmp 0x4086d0
cmp eax, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.0047d4df
lea esp, [ebp + 0x8004]
pop ebp
ret 8
push 0x80070057
call fcn.00402570
call fcn.00402590
push 0x80004005
call fcn.00402570
int3
Function at 0x409cb0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f60f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4e3050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.004042d0
test eax, eax
je 0x409dc2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
call fcn.004042d0
test eax, eax
je 0x409dc2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push esi
push ebx
push dword [0x4e4488]
mov dword [ebp - 0x14], 3
call fcn.0040a480
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x409d76
push 0
push ebx
push dword [0x4e4488]
lea ecx, [ebp - 0x10]
call fcn.0040a480
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.00409090
mov eax, 3
mov dword [ebp - 0x14], eax
and eax, 0xfffffffd
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x409dae
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402570
int3
Function at 0x40b710
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f9cd
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4e3050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], 0x4c15b0
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x40b76d
xor edi, edi
jmp 0x40b778
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x4c15b0
test esi, esi
je 0x40b798
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ba10
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49facd
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e3050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
movzx ebx, cx
push 0x1004
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x40ba65
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d9ad
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
push edi
push esi
push 0x1004
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x40baa0
xor bl, bl
jmp 0x40bad9
dec eax
lea ecx, [ebp - 0x10]
push eax
push esi
call fcn.00409100
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push eax
call fcn.00409090
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bad7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0047d9a8
add esp, 4
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret