joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412907
Capabilities:
Contain obfuscated stackstrings

Disassembly:
popal
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004125f7
aas
xchg edi, eax
push ebp
mov byte [0x50c0458d], al
call fcn.00412607
push eax
push esi
push dword [ebp + 8]
call fcn.004125bc
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.004125f7
shr dword [edi + 0x458d7f4f], cl
call 0x512986ed
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00412607
push eax
push esi
push dword [ebp + 8]
call fcn.004125bc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00412607
push eax
push esi
push dword [ebp + 8]
call fcn.004125bc
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00412607
push eax
push esi
push dword [ebp + 8]
call fcn.004125bc
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004125f7
add cl, byte [esi + ebp*4 + 0x6c]
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
inc ebp
sbb dword [ebx - 0x3a], 0x45
test byte [ecx - 0x3a], bh
inc ebp
test dword [edx - 0x3a], esi
inc ebp
xchg byte [ebx - 0x3a], ah
inc ebp
xchg dword [edx - 0x3a], edi
inc ebp
mov byte [ebx - 0x3a], dh
inc ebp
mov dword [esi - 0x3a], ebx
inc ebp
mov dh, byte [edi - 0x3a]
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid
invalid
Function at 0x412c9e
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x412cab
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x412ca6
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x412c90
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x412c98
cmp edx, ebx
jne 0x412de6
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add al, byte [ebx]
enter 0x4d39, 8
add al, byte [ebx]
enter 0x4d39, 8
jb 0x412c67
add eax, dword [eax + 4]
jmp 0x412c54
mov dword [ebp + 0xc], ebx
jmp 0x412cb6
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x412cce
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x412cec
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x412d4a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x412d31
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x412d3a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x412d44
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x412d26
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x412cb0
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x412d97
dec eax
je 0x412d8e
sub eax, 3
je 0x412d85
mov dword [ebp - 4], 0x40
jmp 0x412db4
mov dword [ebp - 4], 4
jmp 0x412d9a
mov dword [ebp - 4], 0x20
jmp 0x412d9a
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x412de6
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x412d66
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004125f7
cdq
inc esi
and bh, dl
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x412df2
push 0x8000
Function at 0x4156f7
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], edx
push eax
xor edi, edi
mov ebx, ecx
push edi
push edi
push 0x62
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, 0xc0000023
je 0x41572b
test esi, esi
js 0x415797
mov esi, 0xc0000001
jmp 0x415797
push dword [ebp - 4]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x41574b
mov esi, 0xc000009a
jmp 0x415797
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 0x62
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test esi, esi
js 0x415785
movzx ecx, word [edi]
mov eax, dword [ebp + 8]
add ecx, 2
mov dword [eax], ecx
cmp ecx, dword [ebp - 8]
jbe 0x415778
mov esi, 0xc0000023
jmp 0x415785
push ecx
push dword [edi + 4]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword fs:[0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415dc8
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push ebx
push esi
push edi
push eax
lea edx, [ebp - 4]
mov edi, ecx
call fcn.00416064
mov ebx, dword [ebp - 4]
test eax, eax
js 0x415e24
xor esi, esi
cmp dword [ebp - 0xc], esi
jbe 0x415e24
mov edx, dword [ebx + esi*4]
lea eax, [ebp - 8]
push eax
push 0xf003f
mov ecx, edi
call fcn.00415e5c
test eax, eax
js 0x415e1e
mov ecx, dword [ebp - 8]
call fcn.00415dc8
test eax, eax
jns 0x415e1e
mov ecx, dword [ebp - 8]
call fcn.00415bf6
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x415df3
test ebx, ebx
je 0x415e3a
mov eax, dword fs:[0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push edi
call dword [sym.imp.ntdll.dll_ZwDeleteKey]
mov esi, eax
test esi, esi
js 0x415e4e
push edi
call dword [sym.imp.ntdll.dll_ZwClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40645c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406480
xor eax, eax
test eax, eax
je 0x406492
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406492
xor ecx, ecx
jmp 0x406495
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406581
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232bc], 0
push esi
jne 0x4065b8
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406592
mov dword [ecx*4 + 0x4232b8], eax
inc ecx
cmp ecx, 0x100
jl 0x40658d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065e9
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232b8]
xor eax, esi
inc ecx
dec edx
jne 0x4065cb
pop edi
not eax
pop esi
ret 0xc

Function at 0x401d7d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov edx, dword [0x404050]
mov ebx, eax
add edx, eax
mov eax, 0x404054
call fcn.00401cbd
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x4034fa
push edx
sub edi, fcn.00402ca4
push edi
xor eax, eax
push fcn.00402ca4
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x401de7
mov eax, fcn.00402ca4
mov ebx, esi
mov edx, edi
call fcn.00401cbd
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.0040189d
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401eeb
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ecx
push edx
sub esp, 0x430
xor eax, eax
mov dword [esp + 0x424], eax
mov dword [esp + 0x428], 0x14
mov eax, dword [esp + 0x424]
mov word [esp + 0x208], ax
lea eax, [esp + 0x428]
push eax
lea eax, [esp + 0x414]
push eax
push 1
push 1
lea eax, [esp + 0x218]
push eax
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringW]
movzx eax, word [esp + 0x410]
sub eax, 0x47
mov dword [esp + 0x42c], eax
mov eax, dword [esp + 0x428]
add dword [esp + 0x42c], eax
push 0x104
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x42c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov eax, esp
push eax
call dword [sym.imp.SHLWAPI.DLL_PathFindExtensionW]
mov eax, dword [esp + 0x42c]
add esp, 0x430
pop edx
pop ecx
ret
Function at 0x53174b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0x5317a6
cmp eax, 0xffffffff
je 0x5317a6
cmp dword [ebp + 8], ebx
je 0x5317a6
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 0x44]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x53f302
cmp esi, dword [ebp - 4]
jne 0x53f31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0x53179e

Function at 0x53227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x54621c
call fcn.00531350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0x54b458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00532097
test eax, eax
jne 0x5323c4
lea eax, [ebp - 0x20]
push eax
push dword [0x54b45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.005323dc
test eax, eax
jne 0x5323c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.005313e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x5323c4
lea eax, [ebp - 0x20]
push eax
push dword [0x54b45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.005323dc
test eax, eax
jne 0x5323bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0x5323bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005313e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x5323bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0x5323b2
cmp dword [ebp + 8], ebx
je 0x53ea08
push dword [0x54b460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005313e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x5323b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.005321cb
push dword [0x54b460]
push edi
push dword [ebp - 0x18]
call fcn.00532436
push dword [ebp - 0x14]
call fcn.005313c0
pop ecx
push dword [ebp - 0x1c]
call fcn.005313c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00531f10
mov eax, dword [ebp - 0x18]
call fcn.00531390
ret 4
Function at 0x5323dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0x53242c
cmp dword [ebp - 4], 2
ja 0x53e965
mov ecx, dword [edi]
test cl, 1
jne 0x53242c
cmp esi, ebx
je 0x532425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0x53242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0x532425

Function at 0x5324ed
Capabilities:
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x546b05
call fcn.00531350
mov esi, ecx
mov eax, dword [esi + 0x44]
xor edi, edi
mov ebx, 0x8007000e
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0x532519
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [ebp + 8], edi
je 0x53265b
cmp dword [ebp + 0xc], edi
je 0x53265b
push 1
call fcn.0053227c
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x53264a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], edi
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005313e0
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x53259b
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.005321cb
mov ebx, eax
test ebx, ebx
jl 0x53259b
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00532436
mov ebx, eax
test ebx, ebx
jl 0x53259b
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jl 0x532632
push 2
pop ebx
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005313e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x532654
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.005321cb
mov ebx, eax
test ebx, ebx
jl 0x532623
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.00532436
mov ebx, eax
test ebx, ebx
jl 0x532623
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x532623
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x53f3a2
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x532632
push dword [ebp - 0x14]
call fcn.005313c0
pop ecx
cmp dword [ebp - 0x18], 0
je 0x532641
push dword [ebp - 0x18]
call fcn.005313c0
pop ecx
push dword [ebp - 0x1c]
call fcn.005313c0
pop ecx
mov eax, ebx
call fcn.00531390
ret 8
mov ebx, 0x8007000e
jmp 0x5325fe
mov ebx, 0x80070057
jmp 0x53264a
Function at 0x533a67
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x533ae4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x533ac0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x533ad0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
pop esi
je 0x53e30e
mov eax, dword [ebp - 8]
leave
ret
Function at 0x534267
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x54b00c], esi
jne 0x5342be
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x532c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x54b00c], eax
cmp eax, esi
je 0x53e4ec
push 0xffffffffffffffff
push dword [0x54b014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x54b014]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0x54b018], esi
jl 0x53e50a
pop esi
leave
ret

Function at 0x534441
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x534498
call fcn.00532712
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x534490
cmp ecx, 0xffffffff
je 0x534490
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x534489
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x534489
cmp edx, 0x10000000
jae 0x534489
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x53e892
mov dword [ebp - 4], 0xfffffffe
call fcn.00532757
ret 4

Function at 0x53681f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x54b004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0x536933
push edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x420], eax
cmp eax, edi
ja 0x53ed16
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.005321cb
test eax, eax
jl 0x536932
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0x5368c3
push 0x536994
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00532436
test eax, eax
jl 0x536932
push 0x536980
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00532436
test eax, eax
jl 0x536932
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x53ed20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x536970
push eax
call edi
push 0x53695c
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0x536948
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0x536940
cmp dword [esi + 0x34], 0
je 0x536940
test eax, eax
je 0x536940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005320d4
leave
ret
mov eax, 0x8007007f
jmp 0x536932
Function at 0x5371f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0x54608c
call fcn.005339dd
lea ecx, [ebp - 0x34]
call fcn.00536c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.0053758b
test eax, eax
jl 0x53722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.005372a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0x537298
cmp ax, si
jne 0x53e4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.00531451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0053758b
mov esi, eax
test esi, esi
jl 0x537280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.005372a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.0053760b
mov eax, esi
call fcn.00532b9f
ret

Function at 0x53791d
Capabilities:
Identify system language via api

Disassembly:
lea eax, [ebp - 0x30]
push eax
call esi
push 8
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x30], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x53dc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0x537900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0x5379a8
push 1
lea ecx, [ebp - 0x20]
call fcn.005379e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x5378ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.005371e0
cmp esi, ebx
jl 0x5379a8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 3
movzx eax, ax
pop ecx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x18], eax
jmp 0x537992
push 0x24
mov eax, 0x545c85
call fcn.005326dd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20]
push eax
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0xc], ebx
je 0x537854
push 1
lea ecx, [ebp - 0x20]
call fcn.005379e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x533984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x5379a6
push 3
pop eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x18], 0x409
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20]
push edx
push 0x5379d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00537455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.005371e0
mov eax, esi
call fcn.00531390
ret 0xc
Function at 0x537b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0x545fc0
call fcn.005339dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], esi
call fcn.00537c2b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x58]
mov ebx, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x537b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0x537b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0x537b5b
inc esi
cmp esi, edi
jb 0x537b46
cmp esi, edi
jb 0x537c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0x537c0e
cmp word [edx], 0x30
jne 0x537b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0x537b6f
cmp eax, edi
jae 0x537c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x537b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0x537c0e
push 0x10
push 0
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, si
jne 0x537c03
movzx eax, ax
movzx eax, ax
push eax
push 0x537c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00531451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.00536c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.0053760b
mov eax, dword [ebp - 0x54]
call fcn.00532b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0x537bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0x537be9