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

Disassembly:
push 0xffffffffffffffff
push 0x46fff8
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 [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00468a5b
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043e5a0
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.00468989
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.0046524d
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.0046524d
push 1
push 0
push 0
mov ecx, esi
call fcn.004651f5
push 1
push 0
push 1
mov ecx, esi
call fcn.004651f5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00468acd
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43ed80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470018
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.00468a5b
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043e5a0
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.00468989
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
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 0x43ee44
cmp dword [esp + 0x40], 1
jne 0x43ee42
cmp ecx, eax
jge 0x43ee44
mov eax, ecx
cmp eax, 0xc8
jge 0x43ee50
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043ec00
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00468acd
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43f5c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470083
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.0046366e
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
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], method.CEdit.virtual_0
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 [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00468d03
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046a319
test eax, eax
je 0x43f6dc
mov ecx, dword [esp + 0x3c]
call fcn.00468d30
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43f6a0
push edi
mov ecx, esi
call fcn.00466394
mov ecx, esi
call fcn.0043f840
cmp dword [esp + 0x38], 1
jne 0x43f6d5
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.004664cf
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 0x442100
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x442133
push esi
call fcn.00445210
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44212c
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 0x4421b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4421a2
mov eax, dword [esi + 8]
test eax, eax
je 0x442157
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 0x44219e
cmp eax, 2
je 0x4421a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44214a
cmp eax, 3
je 0x44217d
cmp eax, 1
jne 0x44214a
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 0x44214a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44214a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004421e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4421c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004421e0
add esp, 4
pop esi
ret

Function at 0x44ecb0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44ed53
test eax, eax
jbe 0x44ed53
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44ed53
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44ecfe
xor esi, esi
jmp 0x44ed04
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44ed2f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00450880
add esi, eax
push esi
mov ebx, esi
call fcn.00450880
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44ed10
pop ebp
test edi, edi
pop edi
jne 0x44ed53
test ebx, ebx
je 0x44ed53
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00452e70
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44ee95
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44efad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44efad
mov eax, dword [esi + 0x3c]
push eax
call fcn.00463ac0
mov esi, eax
test esi, esi
je 0x44efad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44efad
mov ecx, esi
call fcn.0044ee00
cmp edi, eax
jge 0x44efad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44ef33
mov dword [esp + 0x34], 1
jmp 0x44ef8e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44efad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044d650
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x464463
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46449b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00462517
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004624ef
jmp 0x4644a7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x465b51
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x465b93
call fcn.0046b70f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x465b93
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x465b8a
xor eax, eax
jmp 0x465b9b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00465ba1
pop edi
pop esi
pop ebx
ret 4
Function at 0x46bc3f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46bc6d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46bc8b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046bba5
jmp 0x46bc8b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46bc8b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046bba5
test edi, edi
mov eax, edi
jne 0x46bc75
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x40b2d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x40b1bd
cld
nop
call fcn.0040b496
nop
nop
jmp 0x40b1d3
pushal
jmp 0x40b1e0
mov ebp, esp
nop
xor edx, edx
nop
mov edx, dword fs:[edx + 0x30]
nop
mov edx, dword [edx + 0xc]
nop
mov edx, dword [edx + 0x14]
nop
jmp 0x40b201
movzx ecx, word [edx + 0x26]
jmp 0x40b213
mov esi, dword [edx + 0x28]
jmp 0x40b226
xor edi, edi
xor eax, eax
nop
lodsb al, byte [esi]
cmp al, 0x61
nop
jmp 0x40b23b
jl 0x40b25b
jmp 0x40b24a
sub al, 0x20
nop
jmp 0x40b25b
nop
jmp 0x40b267
ror edi, 0xd
add edi, eax
dec ecx
nop
jne 0x40b228
jmp 0x40b280
push edx
mov edx, dword [edx + 0x10]
nop
jmp 0x40b292
mov eax, dword [edx + 0x3c]
jmp 0x40b2a0
add eax, edx
jmp 0x40b2b2
mov eax, dword [eax + 0x78]
nop
test eax, eax
jmp 0x40b2c9
push edi
nop
je 0x40b453
invalid
nop
nop
add eax, edx
nop
jmp 0x40b2e4
mov ebx, dword [eax + 0x20]
nop
push eax
jmp 0x40b2f5
mov ecx, dword [eax + 0x18]
add ebx, edx
nop
test ecx, ecx
je 0x40b431
nop
jmp 0x40b312
nop
xor edi, edi
jmp 0x40b323
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edx
nop
jmp 0x40b334
xor eax, eax
jmp 0x40b345
lodsb al, byte [esi]
nop
ror edi, 0xd
jmp 0x40b358
add edi, eax
nop
jmp 0x40b369
cmp al, ah
nop
jmp 0x40b37a
jne 0x40b32a
nop
jmp 0x40b38c
add edi, dword [ebp - 8]
cmp edi, dword [ebp + 0x24]
jmp 0x40b3a2
jne 0x40b2fb
pop eax
nop
mov ebx, dword [eax + 0x24]
nop
jmp 0x40b3bf
add ebx, edx
mov cx, word [ebx + ecx*2]
mov ebx, dword [eax + 0x1c]
add ebx, edx
mov eax, dword [ebx + ecx*4]
nop
jmp 0x40b3d8
add eax, edx
jmp 0x40b3e7
mov dword [esp + 0x24], eax
pop ebx
nop
jmp 0x40b400
pop ebx
nop
popal
jmp 0x40b40e
pop ecx
jmp 0x40b41c
pop edx
push ecx
nop
jmp 0x40b42f
jmp eax
jmp 0x40b443
pop eax
jmp 0x40b453
nop
pop edi
nop
pop edx
nop
jmp 0x40b465
mov edx, dword [edx]
nop
jmp 0x40b47c
jmp 0x40b201
cdq
aas
xchg ecx, eax
cmc
std
aaa
cdq
aas
aas
dec eax
cwde
dec eax
aaa
das
xchg ebx, eax
lahf
aas
aaa
salc
salc
cdq
cwde
stc
stc
stc
inc edx
daa
dec ecx
cmc
dec ecx
inc ebx
xchg edx, eax
daa
dec ecx
daa
inc eax
aaa
aas
salc
stc
xchg ebx, eax
cld
aas
aaa
xchg edx, eax
lahf
lahf
salc
dec edx
cdq
wait
inc ecx
cwde
std
inc ecx
wait
nop
cld
dec ebx
cwde
lahf
daa
inc eax
xchg edx, eax
daa
inc ecx
dec ecx
std
dec ebx
salc
wait
jmp 0x40b1af
Function at 0x40279a
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea eax, [esi + 0xf8]
push 0x415114
push eax
mov dword [esi + 0xe0], ebx
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, ebx
pop ecx
jne 0x4027cb
mov dword [esi + 0xd8], ebx
jmp 0x4028f0
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [0x41eb1c]
pop ecx
mov ecx, esi
mov dword [esi + 0xf4], eax
call fcn.004028f5
test eax, eax
jne 0x402800
push ebx
push str.S_Player
push str.Bad_file_format_
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x4028f0
cmp byte [esi + 0xd0], 2
jne 0x402858
mov ecx, dword [0x41ec48]
mov edi, dword [esi + 0xd4]
cmp ecx, ebx
je 0x402858
mov eax, dword [sym.imp.MFC42.DLL_tagSIZEconstCScrollView::sizeDefault]
mov ebp, dword [edi + 4]
mov edx, dword [edi]
push eax
push eax
push ebp
push edx
push 1
call sub.MFC42.DLL_CScrollView::SetScrollSizes
push dword [edi + 4]
mov eax, dword [0x41ec48]
push dword [edi]
lea ecx, [eax + 0x7c]
call sym.S_Player.exe_public:_int___thiscall_CRawBmp::Create_int__int_
test eax, eax
jne 0x402858
push ebx
push ebx
push str.Can_not_alloc_memory_
call sub.MFC42.DLL_AfxMessageBox
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
inc dword [esi + 0xe0]
cmp dword [esi + 0xec], ebx
jne 0x40287c
push 0x3a980
call dword [sym.imp.MSVCRT.dll_malloc]
cmp eax, ebx
pop ecx
mov dword [esi + 0xec], eax
je 0x4028f0
mov edi, dword [esi + 0xf4]
mov dword [esi + 0xc0], ebx
mov ebp, edi
mov ecx, esi
call fcn.004028f5
test eax, eax
je 0x4028ea
mov al, byte [esi + 0xd0]
cmp al, bl
je 0x4028a3
cmp al, 3
jne 0x4028d0
mov ecx, dword [esi + 0xc0]
cmp ecx, 0x7530
jge 0x4028d0
mov edx, dword [esi + 0xec]
mov byte [edx + ecx*8], al
mov eax, dword [esi + 0xc0]
mov ecx, dword [esi + 0xec]
mov dword [ecx + eax*8 + 4], edi
inc dword [esi + 0xc0]
mov eax, dword [esi + 0xcc]
mov edi, dword [esi + 0xf4]
inc dword [esi + 0xe0]
mov dword [esi + 0xe4], eax
jmp 0x40288a
mov dword [esi + 0xf4], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x408a00
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x100
mov ecx, dword [esp + 0x104]
push ebx
push esi
push edi
mov al, byte [ecx]
mov byte [esp + 0xc], al
mov eax, 1
mov dl, byte [eax + ecx]
mov bl, byte [esp + eax + 0xb]
xor dl, bl
mov byte [esp + eax + 0xc], dl
inc eax
cmp eax, 0x10
jl 0x408a1b
lea esi, [ecx + 0x10]
lea ecx, [esp + 0xc]
mov edi, 0xf
xor eax, eax
test eax, eax
jne 0x408a4b
mov dl, byte [esi]
mov bl, byte [ecx]
xor dl, bl
mov byte [ecx + 0x10], dl
jmp 0x408a63
mov dl, byte [ecx + eax - 1]
mov bl, byte [ecx + eax + 0xf]
xor dl, bl
mov bl, byte [ecx + eax]
xor dl, bl
mov bl, byte [esi + eax]
xor dl, bl
mov byte [ecx + eax + 0x10], dl
inc eax
cmp eax, 0x10
jl 0x408a3c
add esi, 0x10
add ecx, 0x10
dec edi
jne 0x408a3a
mov ecx, dword [esp + 0x114]
lea esi, [esp + 0xc]
mov edi, 0x10
xor edx, edx
mov al, byte [esi + edx]
add ecx, 3
not al
mov byte [ecx - 3], al
mov byte [ecx - 2], al
mov byte [ecx - 1], al
inc edx
cmp edx, 0x10
jl 0x408a84
add esi, 0x10
dec edi
jne 0x408a82
pop edi
pop esi
pop ebx
add esp, 0x100
ret 8
Function at 0x100087c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x1016d120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x88], 0
lea ecx, [ebp - 0x88]
lea eax, [eax*2 + 0x1012caa8]
push eax
call fcn.10006a90
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.100d1ad0
add esp, 0xc
lea eax, [ebp - 0x84]
push dword [esi]
push 0x40
push eax
push 0
push dword [ebp - 0x88]
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x10
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.100d6948
mov edx, dword [ebp - 0x88]
add esp, 0xc
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1000885f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1003161c
mov esp, ebp
pop ebp
ret 4

Function at 0x10009080
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 0x100090d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100090d9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100090ca
cmp esi, edx
jae 0x100090d9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x100090b8
cmp esi, edx
jae 0x100090d9
cmp word [esi], 0
je 0x100090d9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1000b2d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011f598
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1016d120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
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 + 0xc], 0
call fcn.1003127b
mov edi, eax
add esp, 4
test edi, edi
je 0x1000b373
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1002d07e
add esp, 4
mov dword [edi + 4], eax
jmp 0x1000b375
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.100065c0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x30]
mov ecx, eax
call edx
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x1000b3d9
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1000b3d9
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x1000b3fa
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.1000a550
cmp byte [ebp + 0xc], 0
je 0x1000b409
push esi
call fcn.1002d437
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1000c5c0
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1016d120]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0x1c], 0
je 0x1000c5f2
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003161c
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100d1ad0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000c645
lea eax, [ebp - 0x20c]
push eax
call ebx
sub esi, 1
jne 0x1000c637
push str.netul.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000c702
mov dword [edi + 0x1c], 1
cmp dword [edi], 0
jne 0x1000c6d8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x1000c702
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x1000c6d8
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x1000c702
cmp dword [edi + 4], 0
je 0x1000c702
cmp dword [edi + 0xc], 0
je 0x1000c702
pop esi
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003161c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.1003161c
mov esp, ebp
pop ebp
ret 4
Function at 0x10010b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1016d120]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10010bbb
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x10010b7d
cmp eax, 2
jne 0x10010b99
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x10010bb5
test ecx, ecx
je 0x10010bb0
test cl, 1
jne 0x10010b99
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x10010bb5
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003161c
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003161c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10014620
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1016d120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.100d1ad0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10014696
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x20c]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100146b2
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10005f30
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1003161c
mov esp, ebp
pop ebp
ret