joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a90
Capabilities:
Hash data via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe465
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 7
jbe 0x402ac8
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x2c], 0x5305e4
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x402b0d
mov byte [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esi + 0xc], edi
jmp 0x402c60
mov dword [ebp - 0x24], 0x52fe14
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0x52fe1c
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00402ec0
mov edi, eax
test edi, edi
je 0x402b4c
mov dword [esi + 0xc], edi
jmp 0x402c1e
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 3
push ecx
push 0x400
lea ecx, [ebp - 0x38]
call fcn.00403620
mov esi, dword [ebp - 0x38]
nop dword [eax]
push 0
lea eax, [ebp - 0x10]
push eax
push 0x400
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402bbf
push 0
push dword [ebp - 0x10]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x402bc6
cmp dword [ebp - 0x10], 0
jne 0x402b80
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
call fcn.00402f40
mov edi, eax
jmp 0x402bd4
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], edi
mov byte [ebp - 4], 2
test esi, esi
je 0x402c1e
mov ecx, dword [ebp - 0x30]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x402bff
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c96
push ecx
push esi
call fcn.004d4054
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x52fe1c
test eax, eax
je 0x402c37
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0x52fe14
test eax, eax
je 0x402c59
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], 0x5305e4
test ebx, ebx
je 0x402c80
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 0
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 4
call fcn.004d91af
int3
Function at 0x402ec0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
lea ebx, [edi + 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x402f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
ret 8
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
lea eax, [edi + 4]
push eax
push 0
push 0
push 0x800c
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x402ef4
pop edi
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x404290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe780
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x569080]
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 0x404317
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404317
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4042f7
cmp esi, edx
jae 0x404317
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4042e5
cmp esi, edx
jae 0x404317
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 0x404a70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe896
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x569080]
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
test edi, edi
je 0x404b5f
push 0
push edi
lea ecx, [ebp - 0x28]
call fcn.00405130
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
mov eax, dword [ebp - 0x30]
cmova 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 ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
dec ecx
xorps xmm0, xmm0
cmp dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ecx
cmova eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*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 0x404b90
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
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.004d3ce9
mov esp, ebp
pop ebp
ret
Function at 0x4066c0
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 0x406767
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40675f
push str.SHGetSpecialFolderPathW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40675f
push 0x20a
call fcn.004d4097
add esp, 4
mov dword [esi + 4], eax
mov ecx, edi
mov dword [esi], 0x105
push 0
push 0x23
push eax
push 0
call dword [0x525578]
call edi
test eax, eax
je 0x406753
mov esi, dword [esi + 4]
xor edx, edx
mov ecx, esi
cmp word [esi], dx
je 0x406753
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x406736
test edx, edx
je 0x406753
cmp word [esi + edx*2 - 2], 0x5c
je 0x406753
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.004d4097
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 0x4067bd
mov esi, dword [esi + 4]
xor edx, edx
mov ecx, esi
cmp word [esi], dx
je 0x4067bd
nop word [eax + eax]
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x4067a0
test edx, edx
je 0x4067bd
cmp word [esi + edx*2 - 2], 0x5c
je 0x4067bd
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]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x525578]
call esi
cmp edi, 1
pop edi
sete al
pop esi
add esp, 8
ret

Function at 0x406950
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fea95
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x569080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x406a08
lea eax, [ebp - 0x40]
push eax
call fcn.00423c20
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 7
jbe 0x40699d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404130
xorps xmm0, xmm0
xor eax, eax
movlpd qword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 3
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x4069f9
push 0
push eax
mov ecx, esi
call fcn.00405790
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404130
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3ce9
mov esp, ebp
pop ebp
ret
Function at 0x407140
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fedc9
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x569080]
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], 7
jbe 0x407190
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 0x4071d8
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
movups xmmword [edi], 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 0x4072f9
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 0x407220
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00403f80
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.004049c0
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00423ef0
add esp, 0x18
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.004242a0
mov byte [ebp - 4], 3
mov dword [ebp - 0x234], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x4072dc
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4072d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407316
push ecx
push edx
call fcn.004d4054
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.004d3ce9
mov esp, ebp
pop ebp
ret
call fcn.004d91af
int3
Function at 0x407b70
Capabilities:
Create directory
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff135
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x569080]
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 [0x56c32c]
cmp eax, dword [esi + 4]
jle 0x407c88
push 0x56c32c
call fcn.004d3d9f
add esp, 4
cmp dword [0x56c32c], 0xffffffff
jne 0x407c88
mov dword [ebp - 4], 0
push 0x38
mov dword [ebp - 0x5c], 0x56c330
mov dword [0x56c330], 0
mov dword [0x56c334], 0
mov dword [0x56c338], 0
call fcn.004d4062
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [0x56c334], eax
mov byte [ebp - 4], 1
mov dword [0x56c33c], 0
mov dword [0x56c340], 0
mov dword [0x56c344], 0
mov byte [ebp - 4], 2
mov ecx, 0x56c33c
push dword [0x56c334]
mov dword [0x56c348], 7
push 0x10
mov dword [0x56c34c], 8
mov dword [0x56c330], 0x3f800000
call fcn.00407ed0
mov byte [ebp - 4], 0
push 0x523b00
call fcn.004d403f
mov dword [ebp - 4], 0xffffffff
push 0x56c32c
call fcn.004d3d4e
add esp, 8
mov eax, dword [0x56c31c]
cmp eax, dword [esi + 4]
jle 0x407cd0
push 0x56c31c
call fcn.004d3d9f
add esp, 4
cmp dword [0x56c31c], 0xffffffff
jne 0x407cd0
mov dword [ebp - 4], 5
push 0x523a60
call fcn.004d403f
mov dword [ebp - 4], 0xffffffff
push 0x56c31c
call fcn.004d3d4e
add esp, 8
cmp dword [edi + 0x14], 7
mov esi, edi
mov ebx, dword [edi + 0x10]
jbe 0x407cdd
mov esi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
add ebx, ebx
je 0x407cf9
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x407ce8
push edx
push edi
lea eax, [ebp - 0x68]
push eax
call fcn.00408940
mov esi, dword [0x56c334]
mov eax, dword [eax + 4]
test eax, eax
cmovne esi, eax
cmp esi, dword [0x56c334]
jne 0x407d21
mov esi, 0x569b48
jmp 0x407d24
add esi, 0x20
cmp dword [esi + 0x10], 0
je 0x407d44
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x407d34
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, esi
jmp 0x407dc8
cmp dword [edi + 0x14], 7
mov edx, edi
jbe 0x407d4e
mov edx, dword [edi]
push 0
lea ecx, [ebp - 0x58]
call fcn.00407070
add esp, 4
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x40]
push edi
call fcn.004049c0
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.004049c0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00407fc0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.00404130
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.00404130
mov esi, dword [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00404130
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.004d3ce9
mov esp, ebp
pop ebp
ret
Function at 0x4089f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x408a1a
mov edx, dword [esp + 0xc]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x408a04
pop edi
mov eax, edx
pop esi
ret
mov eax, dword [esp + 0xc]
pop edi
pop esi
ret

Function at 0x408b20
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x4ff38d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x569080]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x105
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x408c70
cmp eax, 0x105
jae 0x408c70
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x408c95
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
lea eax, [ebp]
test eax, 0xffff0000
jne 0x408bc0
movzx eax, ax
lea ecx, [ebp - 0x10]
push eax
call fcn.004043d0
jmp 0x408be2
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408bc6
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00403870
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 1
push 0x5321bc
call fcn.00402660
test ebx, ebx
jne 0x408c00
xor ecx, ecx
jmp 0x408c14
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408c05
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x10]
call fcn.00402660
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.004d537f
add esp, 8
test eax, eax
jne 0x408c34
xor ebx, ebx
jmp 0x408c41
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x408c6c
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov eax, ebx
jmp 0x408c72
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004d3ce9
lea esp, [ebp + 0x210]
pop ebp
ret
push 0x80004005
call fcn.004027d0
int3
Function at 0x409210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff4cd
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x569080]
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 0x409308
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 0x409308
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x409308
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.004d4097
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], 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 0x4092b5
xor bl, bl
jmp 0x4092db
mov eax, esi
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4092c0
mov ecx, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.00403870
mov bl, 1
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.004d4092
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 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 0x409320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.004d4f20
push 0xffffffffffffffff
push 0x4ff50d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x569080]
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 dword [ebp - 0x18], ecx
cmp dword [ecx + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x24], eax
jne 0x409376
xor al, al
jmp 0x409476
cmp byte [ebp + 0x8010], 0
je 0x409389
mov ecx, eax
call fcn.00409960
mov ecx, dword [ebp - 0x18]
xor ebx, ebx
nop dword [eax + eax]
push 0
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], 0x3fff
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push ebx
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x409461
mov edi, dword [ebp - 0x10]
call fcn.004047f0
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4094aa
mov eax, dword [eax]
push 2
push edi
mov esi, dword [eax]
mov ecx, esi
call dword [0x525578]
mov ecx, dword [ebp - 0x1c]
call esi
mov esi, eax
test esi, esi
je 0x4094a5
lea ecx, [esi + 0x10]
mov dword [ebp - 0x20], ecx
test edi, edi
js 0x40949b
cmp edi, dword [ecx - 8]
jg 0x40949b
mov dword [ecx - 0xc], edi
xor eax, eax
add edi, edi
mov word [edi + ecx], ax
test edi, edi
je 0x409423
push edi
lea eax, [ebp]
push eax
push ecx
call fcn.004d5880
add esp, 0xc
mov dword [ebp - 4], 1
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
push eax
call fcn.00409a20
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40945e
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x14]
inc ebx
test eax, eax
jne 0x40946e
mov ecx, dword [ebp - 0x18]
jmp 0x409390
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.004d3ce9
lea esp, [ebp + 0x8004]
pop ebp
ret 8
push 0x80070057
call fcn.004027d0
call fcn.004027f0
push 0x80004005
call fcn.004027d0
int3
Function at 0x40aa60
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff81f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x40ab9f
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 0x18], eax
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x40ab9f
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
push edi
push dword [0x56b0d0]
mov dword [ebp - 0x14], 3
call fcn.0040b380
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x40ab47
push 0
push edi
push dword [0x56b0d0]
lea ecx, [ebp - 0x10]
call fcn.0040b380
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.00409df0
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 0x40ab8b
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov eax, ebx
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.004027d0
int3