joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10083690
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x100a33c0]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1008370f
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1003fab0
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.1004df90
push esi
call dword [0x100a3004]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x1008386f
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x10083769
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1003fab0
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.1004df90
push 0
mov esi, 0x4d
call dword [0x100a3004]
add esp, 0x20
jmp 0x10083861
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x100837a9
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1003fab0
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.1004df90
add esp, 0x1c
mov esi, 0x4d
jmp 0x1008384d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x100837d7
jg 0x100837bd
cmp edi, 0x100000
jbe 0x100837d7
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.1004df90
add esp, 0xc
mov esi, 0x4d
jmp 0x1008384d
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100837ef
lea esi, [eax + 0x1b]
jmp 0x1008384d
test edi, edi
je 0x10083834
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1008388c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10083888
add esi, eax
cmp esi, edi
jb 0x10083800
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.10083490
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x100a3004]
add esp, 4
push dword [esp + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1008b0e2
add esp, 0x120
ret
mov edi, esi
jmp 0x10083834
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1003fab0
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.1004df90
add esp, 0x1c
mov esi, 0x4d
jmp 0x1008384d
Function at 0x10089f20
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
jne 0x10089f4b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x10089f9a
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x10089fa2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x1008a016
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x10089fd0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x1008a045
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x1009ab1d
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x1009ab1e
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x1008a020
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x1008a050
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.100503b0
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [section..data]
mov esi, eax
add esp, 8
test esi, esi
je 0x1008a1d2
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x1008a0d2
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x1008a146
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x1008a100
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x1008a175
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x1009ab1d
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x1009ab1e
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x1008a150
push dword [esp + 0x30]
call fcn.100503b0
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x1008a1a0
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x100a3004]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x1008a2a0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1008a2c6
mov eax, 0x1b
add esp, 0xc
ret
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1008a2fe
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esp + 4], 0
mov eax, 2
add esp, 0xc
ret
push dword [esp + 0x18]
call fcn.100503b0
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x20
jne 0x1008a355
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x1008a364
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x1008a375
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0xc
ret
Function at 0x1008afb0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x1008affb
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x1008afc1
pop edi
pop esi
pop ebx
ret
Function at 0x403f7b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403f92
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x403fc7
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x403fc3
cmp edi, eax
jae 0x403fc7
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x403fb5
cmp edi, eax
jb 0x403fcb
xor eax, eax
jmp 0x403fd4
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405fd5
Capabilities:
Encode data using base64

Disassembly:
push 0x14
mov eax, 0x504e56
call fcn.004d9fb6
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x18], 0
cmp dword [eax + 0x14], 0x10
jb 0x405ff5
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
jmp 0x405ff8
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 8]
mov eax, dword [eax + 0x10]
and dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
and dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x18], 1
test eax, eax
je 0x406135
dec eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [ebp + esi + 0xc], al
mov bl, byte [ebp + 0xd]
inc esi
inc dword [ebp - 0x14]
cmp esi, 3
jne 0x406093
mov al, byte [ebp + 0xc]
shr al, 2
mov byte [ebp - 0x10], al
mov al, byte [ebp + 0xc]
and al, 3
shl al, 4
mov cl, bl
shr cl, 4
add al, cl
mov cl, byte [ebp + 0xe]
mov byte [ebp - 0xf], al
mov al, bl
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0xe], al
mov al, byte [ebp + 0xe]
and al, 0x3f
mov byte [ebp - 0xd], al
xor esi, esi
movzx eax, byte [ebp + esi - 0x10]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0x1c], al
push dword [ebp - 0x1c]
mov ecx, edi
push 1
call fcn.00409738
inc esi
cmp esi, 4
jl 0x406071
xor esi, esi
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x406021
test esi, esi
je 0x406135
cmp esi, 3
jge 0x4060bf
push 3
pop ecx
sub ecx, esi
push ecx
lea eax, [ebp + esi + 0xc]
push 0
push eax
call fcn.004d92e0
mov bl, byte [ebp + 0xd]
add esp, 0xc
mov al, byte [ebp + 0xc]
mov cl, al
shr cl, 2
mov byte [ebp - 0x10], cl
and al, 3
mov cl, bl
shl al, 4
shr cl, 4
add al, cl
mov byte [ebp - 0xf], al
mov al, byte [ebp + 0xe]
and bl, 0xf
mov cl, al
shl bl, 2
shr cl, 6
add bl, cl
mov byte [ebp - 0xe], bl
and al, 0x3f
lea ebx, [esi + 1]
xor edi, edi
mov byte [ebp - 0xd], al
test ebx, ebx
jle 0x40611a
movzx eax, byte [ebp + edi - 0x10]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [ebp + 8]
mov byte [ebp + 0xc], al
push dword [ebp + 0xc]
push 1
call fcn.00409738
inc edi
cmp edi, ebx
jl 0x4060fa
push 3
pop edi
cmp esi, edi
jge 0x406132
sub edi, esi
mov ecx, dword [ebp + 8]
push 0x3d
push 1
call fcn.00409738
dec edi
jne 0x406123
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.004da08e
ret
Function at 0x40f2bc
Capabilities:
Get system information on windows

Disassembly:
push 0x14c
mov eax, 0x507e22
call fcn.004da01f
lea ecx, [ebp - 0x88]
call fcn.0040f5df
lea eax, [ebp - 0x34]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x139], bl
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x34], 9
je 0x40f2f9
cmp word [ebp - 0x34], 6
jne 0x40f300
mov byte [ebp - 0x139], 1
xor eax, eax
cmp byte [ebp - 0x139], bl
sete al
dec eax
and eax, 0x20
add eax, 0x20
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov eax, dword [ebp - 0x138]
cdq
push 0xffffffffffffffc4
pop ecx
idiv ecx
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00428aca
pop ecx
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.0040f4f6
lea edi, [ebp - 0x158]
mov byte [ebp - 4], 2
call fcn.00405284
mov dword [ebp - method.DuiLib::CControlUI.virtual_372], vtable.sensors_analytics::PropertiesNode.0
push 0xf
pop edi
mov byte [ebp - 4], 3
push 6
push str.ostype
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004024af
push str.windows
lea esi, [ebp - 0x2c]
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 4
call fcn.00404dd3
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00402566
push 0xa
push str.os_version
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004024af
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x2c]
lea edi, [ebp - 0x158]
mov byte [ebp - 4], 5
call fcn.00404d33
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00402566
push 0xf
pop esi
push 5
push str.osbit
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004024af
mov byte [ebp - 4], 6
push dword [ebp - 0x140]
lea edi, [ebp - 0x2c]
lea ecx, [ebp - 0x158]
call fcn.00404b19
push ebx
push 1
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00402566
push 6
push str.oslang
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004024af
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x2c]
lea edi, [ebp - 0x158]
mov byte [ebp - 4], 7
call fcn.00404d33
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00402566
push 6
push str.oszone
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004024af
push dword [ebp - 0x144]
lea edi, [ebp - 0x2c]
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 8
call fcn.00404b19
xor esi, esi
push ebx
inc esi
push esi
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00402566
mov eax, dword [0x550308]
cmp eax, ebx
je 0x40f4bf
mov edx, dword [eax]
lea edi, [ebp - 0x158]
call fcn.00405245
lea eax, [ebp - 0x154]
push eax
mov byte [ebp - 4], 2
call fcn.00407d6d
push ebx
push esi
lea ecx, [ebp - 0x50]
call fcn.00402566
push ebx
push esi
lea ecx, [ebp - 0x6c]
call fcn.00402566
push ebx
push esi
lea ecx, [ebp - 0x88]
call fcn.0040482f
call fcn.004da0a2
ret
Function at 0x40f5df
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x9c
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x18
mov eax, 0x504bff
call fcn.004d9fb6
xor ebx, ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x20], ebx
push 0x7e
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x14], esi
call fcn.004d92e0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push str.Control_PanelDesktopMuiCached
push 0x80000001
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40f682
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.MachinePreferredUILanguages
push dword [ebp - 0x10]
mov dword [ebp - 0x24], 7
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x1c]
push eax
mov ecx, esi
call fcn.00404526
push ebx
xor edi, edi
push 0x535e58
mov dword [ebp - 4], ebx
inc edi
push esi
mov dword [ebp - 0x20], edi
call fcn.0040f6f1
cmp eax, 0xffffffff
je 0x40f6cc
push eax
push ebx
push esi
lea esi, [ebp]
call fcn.0040f71c
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x14]
mov esi, eax
call fcn.004036ba
push ebx
push 1
lea ecx, [ebp]
call fcn.0040482f
mov esi, edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.004d5ddb
add ebp, 0xa0
leave
ret
Function at 0x412f16
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x1c
mov eax, 0x506e6e
call fcn.004d9fb6
xor eax, eax
push 0x206
mov word [ebp + 0x1c], ax
xor ebx, ebx
lea eax, [ebp + 0x1e]
push ebx
push eax
call fcn.004d92e0
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
jle 0x412f7e
cmp word [ebp + eax*2 + 0x1a], 0x5c
je 0x412f7e
push 0x535180
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
mov word [ebp], ax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
mov dword [ebp + 0x14], 7
mov dword [ebp + 0x10], ebx
call fcn.00404501
push 0x535184
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.0041208a
lea eax, [ebp]
push eax
call fcn.0042c07c
pop ecx
test al, al
jne 0x412fc4
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00404501
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp]
call fcn.004120cd
test byte [0x550cb4], 1
jne 0x413014
or dword [0x550cb4], 1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00428aca
pop ecx
push eax
mov byte [ebp - 4], 2
call fcn.00427c04
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00402566
push 0x5098c9
call fcn.004d82f9
pop ecx
mov byte [ebp - 4], bl
mov dword [0x550334], 0x550c38
call fcn.00427d11
push ebx
push 1
lea ecx, [ebp]
call fcn.0040482f
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 + 0x224]
xor ecx, ebp
call fcn.004d5ddb
add ebp, 0x228
leave
ret

Function at 0x413053
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, eax
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x413071
xor eax, eax
jmp 0x4130df
cmp dword [ebp - 0x14], 0x10000
je 0x41306d
push edi
mov edi, dword [ebp - 0x20]
push 0x104
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4130dc
mov eax, dword [edi + 0x3c]
sub esi, dword [ebp - 0x20]
and dword [ebp - 4], 0
add eax, edi
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
xor edx, edx
mov dword [ebp - 8], eax
cmp dx, ax
jae 0x4130dc
mov edx, dword [ecx + 0x10]
mov edi, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
cmp edx, edi
ja 0x4130c2
mov edx, edi
cmp esi, eax
jb 0x4130cc
add edx, eax
cmp esi, edx
jbe 0x4130e2
inc dword [ebp - 4]
mov ax, word [ebp - 4]
add ecx, 0x28
cmp ax, word [ebp - 8]
jb 0x4130b3
xor eax, eax
pop edi
pop esi
leave
ret
sub esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
xor eax, eax
mov byte [ebx + 8], 0
inc eax
jmp 0x4130de
Function at 0x41345d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x310
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x310], eax
push 4
mov eax, 0x5021fb
call fcn.004d9fb6
push 0xffffffffffffffff
push str.LANG_EN
lea ecx, [ebp]
call fcn.0043af60
xor ebx, ebx
push 4
mov dword [ebp - 4], ebx
call fcn.0043b93d
lea eax, [ebp + 0x84]
push eax
call fcn.0043b7cc
pop ecx
pop ecx
mov byte [ebp - 4], 1
call fcn.0043b94a
dec eax
je 0x4135ff
dec eax
je 0x4135c2
dec eax
je 0x41354a
dec eax
jne 0x41367c
push 0x535270
push 0x85
call fcn.0043b8bc
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x41367c
push edi
call fcn.0043b8bc
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, ebx
je 0x41353e
push edi
call fcn.0043b8bc
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
jbe 0x41353e
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.0043e3f9
add esp, 0xc
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
mov dword [eax], 0x535280
call fcn.004143f2
mov ecx, eax
call fcn.00442a4f
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x41367c
xor eax, eax
push 0x206
mov word [ebp + 0x108], ax
lea eax, [ebp + 0x10a]
push ebx
push eax
call fcn.004d92e0
sub esp, 0x78
push 0x21
pop ecx
mov edi, esp
lea eax, [ebp + 0x108]
push str.skin_s_skin_
lea esi, [ebp]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x8c
lea eax, [ebp + 0x108]
push eax
lea ecx, [ebp + 0x84]
call fcn.0043ad09
lea ecx, [ebp + 0x84]
call fcn.0043ab5c
push eax
call fcn.0043b8f6
mov dword [esp], 0x535228
push ecx
mov eax, esp
mov dword [eax], str.IDR_RES
jmp 0x41366d
push str.skin_
lea ecx, [ebp + 0x84]
call fcn.0043ad09
lea ecx, [ebp + 0x84]
call fcn.0043ab5c
push eax
call fcn.0043b8f6
push ebx
push 1
push str.res.zip
call fcn.0043e487
add esp, 0x10
push ebx
push ecx
mov eax, esp
mov dword [eax], 0x53525c
jmp 0x41366d
xor eax, eax
push 0x206
mov word [ebp + 0x108], ax
lea eax, [ebp + 0x10a]
push ebx
push eax
call fcn.004d92e0
sub esp, 0x78
push 0x21
pop ecx
mov edi, esp
lea eax, [ebp + 0x108]
push str...lib_skin_s_skin_
lea esi, [ebp]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x8c
lea eax, [ebp + 0x108]
push eax
lea ecx, [ebp + 0x84]
call fcn.0043ad09
lea ecx, [ebp + 0x84]
call fcn.0043ab5c
push eax
call fcn.0043b8f6
pop ecx
push ebx
push ecx
mov eax, esp
mov dword [eax], str.res.xml
mov dword [ebp - 0x10], esp
call fcn.004143f2
mov ecx, eax
call fcn.00442a4f
lea ecx, [ebp + 0x84]
mov byte [ebp - 4], bl
call fcn.0043ab42
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.0043ab42
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x310]
xor ecx, ebp
call fcn.004d5ddb
add ebp, 0x314
leave
ret