joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e9b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d20c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4d4558]
push 0
lea ecx, [esp + 0x20]
call fcn.004c81fb
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0048e350
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004c8129
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004c490d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004c490d
push 1
push 0
push 0
mov ecx, esi
call fcn.004c48b5
push 1
push 0
push 1
mov ecx, esi
call fcn.004c48b5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004c826d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x48eb30
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d20e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004c81fb
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0048e350
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004c8129
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4d4558]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x48ebf4
cmp dword [esp + 0x40], 1
jne 0x48ebf2
cmp ecx, eax
jge 0x48ebf4
mov eax, ecx
cmp eax, 0xc8
jge 0x48ec00
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0048e9b0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4d4554]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004c826d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x48f380
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d2153
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004c2d2a
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x5b0dd8
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x5ae648
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4d40cc]
push eax
mov ecx, edi
call fcn.004c84a3
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004c9a3e
test eax, eax
je 0x48f49c
mov ecx, dword [esp + 0x3c]
call fcn.004c84d0
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4d4578]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x48f460
push edi
mov ecx, esi
call fcn.004c5a8c
mov ecx, esi
call fcn.0048f600
cmp dword [esp + 0x38], 1
jne 0x48f495
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004c5bf6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x491ec0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x491ef3
push esi
call fcn.00494fb0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x491eec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x491f79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x491f62
mov eax, dword [esi + 8]
test eax, eax
je 0x491f17
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x491f5e
cmp eax, 2
je 0x491f62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x491f0a
cmp eax, 3
je 0x491f3d
cmp eax, 1
jne 0x491f0a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x491f0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x491f0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00491fa0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x491f88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00491fa0
add esp, 4
pop esi
ret
Function at 0x4a4200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d2c90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004a3db0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004a3e30
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004a3e30
lea ecx, [esi + 0xc]
call fcn.004c16bb
lea ecx, [esi + 0x10]
call fcn.004c16bb
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004a53c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004a53c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004a53c0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004c1730
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004c1730
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10004ae0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x10004b10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10004b06
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1000a0f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018a22e
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x101f8000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x10], 0
test byte [ebx + 4], 1
jne 0x1000a13a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0
push ecx
push dword [ebp + 0xc]
mov ecx, esi
call fcn.10009be0
mov edx, dword [ebp + 0x10]
mov dword [edx + 0xc], eax
test eax, eax
jle 0x1000a222
lea ecx, [ebp - 0x3c]
call fcn.10002a80
mov dword [ebp - 4], 1
lea eax, [ebp - 0x68]
push ecx
mov ecx, dword [edx + 0xc]
push eax
call fcn.1000c240
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 0x3c]
call dword [edx + 0x44]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x38], ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x2c]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
call dword [eax + 0x44]
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10003850
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.10003d50
test byte [ebx + 4], 1
jne 0x1000a1cb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
sub eax, dword [ebx + 0x10]
mov dword [ebx + 0x10], eax
sbb ecx, dword [ebx + 0x14]
mov dword [ebx + 0x14], ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.10002a80
mov byte [ebp - 4], 3
lea ecx, [edi + 0x10]
mov eax, dword [ebp - 0x38]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [edi], vtable.CWString.0
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x10]
call dword [eax + 0x44]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 0x10]
call fcn.10003850
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.10003d50
jmp 0x1000a2ad
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.10002a80
mov dword [ebp - 4], 0x10
mov dword [edi], vtable.CWString.0
cmp word [0x101ce2fc], 0
je 0x1000a29f
mov ecx, edi
call fcn.1001c820
mov edx, eax
mov eax, dword [edx + 0x14]
cmp eax, 2
jb 0x1000a267
mov ecx, dword [edx + 0xc]
movzx ecx, word [ecx + eax - 2]
test cx, cx
jne 0x1000a267
add eax, 0xfffffffe
mov dword [edx + 0x14], eax
mov eax, dword [edi + 0x20]
mov ebx, dword [edi + 0x24]
sub eax, ebx
cmp eax, 2
jl 0x1000a288
mov eax, dword [edi + 0x1c]
movzx ecx, word [0x101ce2fc]
mov word [ebx + eax], cx
add dword [edi + 0x24], 2
jmp 0x1000a29f
lea edx, [ebx + 2]
push edx
lea ecx, [edi + 0x10]
call fcn.1001b240
mov cx, word [0x101ce2fc]
mov word [eax + ebx], cx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
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 0x1c
Function at 0x10012d40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018b3cd
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x101f8000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x10012da9
mov dword [ebp - 4], eax
call fcn.10004ae0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x10004b10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10012dcb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
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 0x10013990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018b63b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x101f8000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CVolObject.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
lea edx, [esi + 0xc]
mov dword [esi], vtable.rg_n9199::rg_n9363.0
lea edi, [edx + 4]
mov dword [edx], vtable.CWinHttpRequestEvents.0
mov dword [edi], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
mov dword [edx + 0x20], 0
mov byte [ebp - 4], 1
lea eax, [esi + 0x34]
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.CVolObject.0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov byte [ebp - 4], 2
mov dword [eax], vtable.CVolComObject.0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x48]
call fcn.10002a80
mov byte [ebp - 4], 4
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov byte [ebp - 4], 5
mov dword [esi + 0x84], 1
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov byte [ebp - 4], 6
mov dword [esi + 0x94], 1
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov byte [ebp - 4], 7
mov dword [esi + 0xa4], 1
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov byte [ebp - 4], 8
mov eax, dword [edx]
mov dword [esi + 0x30], 0
mov eax, dword [eax + 4]
cmp eax, method.CWinHttpRequestEvents.virtual_4
jne 0x10013b25
lock inc dword [edi]
jmp 0x10013b28
push edx
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10016660
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018bcfb
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x101f8000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x80000
mov dword [0x10201a90], 0x101d1ef0
mov dword [0x10201a98], 0x101d2334
push 0
mov dword [ebp - 0x14], 0x10201a90
mov dword [0x10201aac], 1
mov dword [0x10201aa8], 0x100
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x100168f8
lea eax, [ecx + 0x80000]
mov dword [0x10201aa4], ecx
mov dword [0x10201aa0], eax
mov edx, 0x7ff
mov eax, dword [0x10201aa8]
mov dword [0x10201a9c], ecx
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x10201aa8]
add ecx, eax
sub edx, 1
jne 0x100166f4
mov dword [ecx], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0x10201ab0
mov dword [ebp - 0x18], 0x10201ab0
mov dword [ebp - 0x1c], 0x10201ab0
mov dword [0x10201ab0], 0x101d0fec
mov dword [0x10201ab4], edx
mov dword [0x10201ab8], edx
mov byte [ebp - 4], 1
mov dword [0x10201ab0], 0x101d0f2c
mov dword [0x10201abc], edx
mov dword [0x10201ac4], edx
mov dword [0x10201ac0], edx
mov dword [0x10201ac8], 0x40
mov byte [ebp - 4], 2
mov dword [0x10201ac8], 0x80
mov byte [ebp - 4], 5
mov dword [0x10201acc], edx
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10201ae0
mov dword [ebp - 0x20], 0x10201ae0
call esi
mov byte [ebp - 4], 7
mov dword [0x10201af8], 0
mov byte [ebp - 4], 8
push 0x10201b04
mov dword [ebp - 0x24], 0x10201b04
call esi
mov byte [ebp - 4], 9
mov dword [0x10201b1c], 0x3e8
mov dword [ebp - 0x28], 0x10201b30
mov dword [ebp - 0x2c], 0x10201b30
mov dword [0x10201b30], 0x101d0fec
mov dword [0x10201b34], 0
mov dword [0x10201b38], 0
mov byte [ebp - 4], 0xa
mov dword [0x10201b30], 0x101d0f2c
mov dword [0x10201b3c], 0
mov dword [0x10201b44], 0
mov dword [0x10201b40], 0
mov dword [0x10201b48], 0x40
mov byte [ebp - 4], 0xb
mov dword [0x10201b48], 0x80
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3c]
mov dword [0x10201b24], 0x3e80
mov dword [0x10201b28], 1
mov dword [0x10201b2c], 0
lea eax, [eax*2 + 2]
mov dword [0x10201b20], eax
mov byte [ebp - 4], 0xe
push 0x10201b4c
call esi
mov byte [ebp - 4], 0xf
push ecx
mov ecx, 0x10201b64
call fcn.10003160
mov byte [ebp - 4], 0x10
mov dword [0x10201ad0], 0
mov dword [0x10201b8c], 0
movsd xmm0, qword [0x101d23f0]
movsd qword [0x10201ad8], xmm0
xorps xmm0, xmm0
mov dword [0x10201b90], 0
mov dword [0x10201b94], 0
mov dword [0x10201b98], 0
mov dword [0x10201ad4], 0
movq qword [0x10201afc], xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x10201a90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.1016bfe8
int3
Function at 0x10017290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x14], 0
test ebx, ebx
jne 0x100172af
pop esi
lea eax, [ebx + 1]
pop ebx
pop ebp
ret 0xc
mov eax, dword [ecx]
push edi
xor edi, edi
call dword [eax]
push dword [ebp + 0x10]
mov ecx, eax
movzx eax, bx
push eax
push ecx
mov dword [ebp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x10017385
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x10017385
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x1001737c
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [esi + 0x14], 0
cmp dword [esi + 0x10], edi
jl 0x10017360
cmp edi, 1
jne 0x10017325
mov eax, dword [esi + 0xc]
mov cl, byte [ebx]
mov byte [eax], cl
inc dword [esi + 0x14]
jmp 0x10017377
cmp edi, 2
jne 0x10017338
mov eax, dword [esi + 0xc]
movzx ecx, word [ebx]
mov word [eax], cx
add dword [esi + 0x14], edi
jmp 0x10017377
cmp edi, 4
jne 0x10017349
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov dword [eax], ecx
add dword [esi + 0x14], edi
jmp 0x10017377
cmp edi, 8
jne 0x10017360
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [esi + 0x14], edi
jmp 0x10017377
test edi, edi
jle 0x10017377
push edi
mov ecx, esi
call fcn.1001b240
push edi
push ebx
push eax
call fcn.101676e0
add esp, 0xc
mov edi, 1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1001f966
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001f9bf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1001f9bf
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x1001f9b0
cmp esi, ecx
jae 0x1001f9bf
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x1001f99e
cmp esi, ecx
jae 0x1001f9bf
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x1001f9c1
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10022455
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x1002249a
call fcn.1002891c
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10022497
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100224e1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x100224bd
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1019c9e0]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x100224de
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x1019c9e0]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x10023e1c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x1018c872
call fcn.101661c7
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 0x10023ec4
push dword [ebp + 8]
call fcn.1002413b
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10023f4a
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_RegQueryValueExW]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
jne 0x10023ead
push ecx
call fcn.10025026
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_RegQueryValueExW]
test eax, eax
jne 0x10023ead
xor edi, edi
inc edi
jmp 0x10023eb7
push dword [ebx]
call fcn.10025021
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.10023ce3
jmp 0x10023f48
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 [0x1019c9e0]
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 0x10023f40
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.10025026
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x10023f3a
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.10023cbf
push esi
lea ecx, [ebp - 0x10]
mov bl, al
call fcn.10023cbf
mov ecx, dword [ebp + 0x10]
shl bl, 4
sub bl, 0x51
add al, bl
mov ecx, dword [ecx]
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
cmp edi, dword [eax]
jb 0x10023f08
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.1001e6c0
mov eax, edi
call fcn.10166195
ret 0x10

Function at 0x10023f52
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 0x10023fa5
push esi
push dword [ebp + 8]
call fcn.1002413b
mov edi, eax
test edi, edi
je 0x10023fa0
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_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10023fa0
mov eax, dword [ebp - 8]
jmp 0x10023fb7
mov eax, dword [ebp + 0x10]
jmp 0x10023fb7
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc