joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013d0
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebx, eax
mov eax, dword [0x5b2ab4]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
je 0x4013ef
mov esi, dword [eax + 4]
cmp esi, edi
jne 0x4013fb
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, edi
je 0x401420
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x401420
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x401420
push edi
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x14], 1
push esi
mov ecx, ebx
mov dword [ebx + 0x438], edi
call fcn.00401580
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x401449
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [0x5b2ab4]
cmp ecx, edi
mov dword [esp + 0x18], edi
je 0x401461
mov edx, dword [ecx + 4]
mov dword [esp + 0x18], edx
mov dword [ecx + 4], eax
mov eax, esi
call fcn.00401770
cmp dword [ebx + 0x428], edi
je 0x40150c
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
push 0
push 0x2001
mov ebp, eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp edi, ebp
je 0x4014ab
push 1
push edi
push ebp
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebx + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x10]
push 0x43
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, ebp
je 0x4014e7
push 0
push edi
push ebp
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebx + 4]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x40150a
mov ecx, dword [ebx + 4]
push 0
push 0
push 0xf
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
mov edx, dword [ebx]
mov eax, dword [edx + 0x2c]
mov ecx, ebx
call eax
mov ecx, dword [ebx + 4]
push 0x97
push edi
push edi
push edi
push edi
push edi
push ecx
mov dword [ebx + 0x438], edi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x14], edi
je 0x401554
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, edi
je 0x401554
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x401554
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x5b2ab4]
cmp eax, edi
je 0x401564
mov edx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x402be0
Capabilities:
Read .ini file

Disassembly:
push ecx
cmp dword [esi + 4], 0xffffffff
jne 0x402c27
lea eax, [esp]
push eax
call fcn.00402c30
mov eax, dword [eax]
push eax
push 0
push str.debug
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 4], eax
mov eax, dword [esp]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 4]
pop ecx
ret

Function at 0x402c30
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x548f40
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
lea edi, [esp + 0x10]
mov dword [esp + 0x24], 0
call fcn.00402d50
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jne 0x402c8b
push ebp
mov ecx, 0x58b5ec
call fcn.00413730
jmp 0x402d0b
add eax, 0xfffffff0
call fcn.00412ca0
add eax, 0x10
mov dword [esp + 0x24], eax
push 0x13
push str.datadpiconfig.ini
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x28], 1
call fcn.00412aa0
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402cd9
lea eax, [esp + 0x10]
lea edi, [esp + 0x24]
call fcn.00412ba0
mov eax, edi
push eax
mov edx, str._ressrcchsdpisetting.ini
call fcn.00412a60
mov esi, dword [esp + 0x24]
add esi, 0xfffffff0
mov eax, esi
call fcn.00412ca0
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x1c], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d0b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4

Function at 0x402ed0
Capabilities:
Read .ini file

Disassembly:
push ecx
mov ecx, esi
call fcn.00402f30
test eax, eax
jne 0x402ee3
mov eax, 0x60
pop ecx
ret
cmp dword [esi + 8], 0xffffffff
jne 0x402f29
lea eax, [esp]
push eax
call fcn.00402c30
mov eax, dword [eax]
push eax
push 0x60
push str.debugdpi
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 8], eax
mov eax, dword [esp]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 8]
pop ecx
ret
Function at 0x403040
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x549d48
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x20]
mov esi, ecx
add esi, 0x14
mov dword [esp + 0x20], 0
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x403131
lea ecx, [esp + 0x20]
push ecx
call fcn.00402c30
mov dword [esp + 0x18], 0
mov edi, dword [eax]
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x4030ba
mov ecx, 0x104
mov eax, esi
call fcn.004088f0
mov eax, dword [esi]
push edi
push 0x104
push eax
push str.kxetray
push str.supportprocess
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403100
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
test edx, edx
jne 0x40310a
xor eax, eax
jmp 0x403121
mov eax, edx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403110
sub eax, edi
sar eax, 1
js 0x403158
cmp eax, dword [edx - 8]
jg 0x403158
mov dword [edx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
mov eax, dword [esi]
sub eax, 0x10
call fcn.00412ca0
add eax, 0x10
mov dword [ebp], eax
mov eax, ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
push 0x80070057
call fcn.00408b10
int3

Function at 0x4035a0
Capabilities:
Read .ini file

Disassembly:
push ecx
cmp dword [esi + 0x18], 0
jne 0x4035e7
lea eax, [esp]
push eax
call fcn.00402c30
mov eax, dword [eax]
push eax
push 2
push 0x58b6d8
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x18], eax
mov eax, dword [esp]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4035e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x18]
pop ecx
ret
Function at 0x4035f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x549d19
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], ebx
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x24], ebx
lea esi, [esp + 0x18]
mov dword [esp + 0x10], 1
call fcn.00403410
mov dword [esp + 0x24], 1
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00403170
mov byte [esp + 0x24], 2
mov edx, dword [eax]
push str.hiddenDpiAwarenessWindow
push edx
push str._s__s
call fcn.00412d70
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4036a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4036c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
Function at 0x403bb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403bc7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403bf8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403bf4
cmp esi, eax
jae 0x403bf8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403be4
cmp esi, eax
jb 0x403bfe
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x405280
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
call fcn.00402c30
mov eax, dword [eax]
push eax
push 0
push 0x58b6c8
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4052c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ecx
ret

Function at 0x4059a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x5a5084]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push edi
push 0x11c
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00472a32
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x11c
call edi
test eax, eax
jne 0x4059fb
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x114
call edi
test eax, eax
je 0x405aac
mov eax, dword [esp + 0x18]
mov ecx, 1
sub eax, ecx
je 0x405a99
sub eax, ecx
je 0x405a17
xor esi, esi
jmp 0x405aac
mov eax, dword [esp + 0xc]
cmp eax, 6
jne 0x405a53
mov eax, dword [esp + 0x10]
cmp eax, ecx
jne 0x405a3b
xor eax, eax
cmp byte [esp + 0x122], cl
setne al
add eax, 8
mov esi, eax
jmp 0x405aac
test eax, eax
jne 0x405a86
xor edx, edx
cmp byte [esp + 0x122], cl
setne dl
lea edx, [edx + edx + 7]
mov esi, edx
jmp 0x405aac
cmp eax, 5
jne 0x405a7a
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x405a66
lea esi, [eax + 3]
jmp 0x405aac
cmp eax, ecx
jne 0x405a71
mov esi, 6
jmp 0x405aac
test eax, eax
jne 0x405aac
lea esi, [eax + 3]
jmp 0x405aac
cmp eax, 4
ja 0x405aac
mov esi, 4
jmp 0x405aac
cmp eax, 2
jne 0x405aac
cmp byte [esp + 0x122], cl
jne 0x405aac
lea esi, [eax + 8]
jmp 0x405aac
mov eax, dword [esp + 0x14]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb esi, esi
add esi, 2
mov ecx, dword [esp + 0x124]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004726a1
add esp, 0x120
ret
Function at 0x4078c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
push eax
push edx
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40792e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x4078ff
cmp eax, 2
jne 0x40791a
test esi, esi
mov eax, dword [esp]
je 0x407928
test eax, eax
je 0x407923
test al, 1
jne 0x40791a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x407928
mov eax, 0xd
pop ecx
ret 8
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x4080d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x548d08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
push 0x58b5fe
xor edi, edi
mov eax, esi
mov dword [esp + 0x20], ebx
call fcn.00404e00
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
push str._d._s
lea edi, [esp + 0x24]
mov dword [esp + 0x34], ebx
call fcn.00412d70
add esp, 0xc
test byte [0x5b2a28], 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
jne 0x408170
or dword [0x5b2a28], 1
push 0x54cb10
mov dword [0x5b2a34], ebx
mov dword [0x5b2a38], ebx
call fcn.00472556
add esp, 4
mov ecx, dword [0x5b2a38]
cmp ecx, ebx
mov ebp, dword [esp + 0x18]
je 0x408226
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call edx
cmp eax, ebx
je 0x408226
cmp dword [esp + 0x14], ebx
je 0x408226
mov edi, dword [esp + 0x10]
cmp edi, ebx
je 0x408226
mov eax, dword [esi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [edi + 1]
sub eax, ecx
or eax, edx
jge 0x4081d2
mov eax, esi
call fcn.00408a10
mov edi, dword [esp + 0x10]
mov eax, dword [esi]
cmp eax, ebx
je 0x408226
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x1c]
add eax, 1
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40820b
mov eax, dword [esi]
cmp eax, ebx
jne 0x4081fd
xor eax, eax
jmp 0x40820f
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408200
sub eax, edx
cmp eax, ebx
jl 0x408263
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x408263
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
mov byte [eax + edx], bl
mov dword [esp + 0x1c], 1
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40824a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 8
push 0x80070057
call fcn.00408b10
int3
Function at 0x408270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, eax
push edi
push ebp
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x408293
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x40828b
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x10], ecx
je 0x40828b
mov eax, dword [esi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea edi, [ebx + 1]
sub eax, edi
or edx, eax
jge 0x4082d8
mov ecx, edi
mov eax, esi
call fcn.00408a10
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
test eax, eax
je 0x4082e9
push ebx
push ecx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, edi
call fcn.00407fb0
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x408310
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5484b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x5b06b0
mov dword [esp + 0x18], ebx
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x34], ebx
lea eax, [edi + 0xc]
jne 0x408366
mov eax, edi
lea edi, [esp + 0x14]
call fcn.00412ba0
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x408490
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
call edx
add eax, 0x10
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x30]
push eax
push ecx
push ebp
push str._s_d._s
lea edi, [esp + 0x44]
call fcn.00412d70
mov edx, dword [esp + 0x44]
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40846c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, ebx
je 0x408461
mov eax, dword [esi]
sub eax, 0x10
mov dword [esp + 0x30], ebx
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [ebp + 0xa]
sub eax, ecx
or eax, edx
jge 0x40840d
mov eax, esi
call fcn.00408a10
mov eax, dword [esi]
push ebx
lea ecx, [esp + 0x34]
push ecx
push ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x408453
cmp dword [esp + 0x30], ebp
jne 0x408453
mov eax, ebp
call fcn.00407fb0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x34]
call fcn.0044dd60
lea eax, [esp + 0x14]
call fcn.0044dd60
mov eax, 1
jmp 0x4084b8
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jl 0x4084ce
mov dword [eax - 0xc], ebx
mov edx, dword [esi]
mov byte [edx], bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408490
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
push 0x80070057
call fcn.00408b10
int3
Function at 0x4093c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x5a5084]
xor eax, esp
mov dword [esp + 0x214], eax
xor eax, eax
push 0x20e
push eax
mov dword [esp + 8], eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call fcn.00472a32
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push esi
lea ecx, [esp + 8]
call fcn.00413730
mov ecx, dword [esp + 0x214]
xor ecx, esp
mov eax, esi
call fcn.004726a1
add esp, 0x218
ret

Function at 0x40cbc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x548bfe
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esp + 0x14], edi
fld1
fstp qword [esi + 0x10]
mov dword [esi], vtable.CBkPngSkin.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
mov eax, vtable.CBkBitmap.0
mov dword [esi + 0x44], eax
mov dword [esi + 0x54], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], eax
mov dword [esi + 0x6c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov byte [esp + 0x14], 2
mov dword [esi + 0x70], edi
call fcn.0040fd50
mov dword [esi + 0x78], eax
mov byte [eax + 0x15], 1
mov eax, dword [esi + 0x78]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x78]
mov dword [eax], eax
mov eax, dword [esi + 0x78]
mov dword [eax + 8], eax
mov dword [esi + 0x7c], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x4123f0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x54aa8e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
fld dword [0x595afc]
lea ecx, [ebp + 8]
mov dword [ebp], vtable.BkSkinPool.0
fstp dword [ecx + 0xc]
fld dword [0x595b00]
xor esi, esi
fstp dword [ecx + 0x10]
mov dword [ecx], esi
fld dword [0x595b04]
mov dword [ecx + 4], esi
fstp dword [ecx + 0x14]
mov dword [ecx + 8], 0x11
mov dword [ecx + 0x18], 0xffffffff
mov dword [ecx + 0x1c], esi
mov dword [ecx + 0x20], esi
mov dword [ecx + 0x24], 0xa
mov dword [ecx + 0x28], esi
mov dword [ecx + 0x2c], esi
call fcn.00402370
mov dword [esp + 0x34], esi
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
call edx
add eax, 0x10
mov dword [ebp + 0x38], eax
mov eax, 1
mov byte [esp + 0x34], al
mov dword [esp + 0x18], eax
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebp + 4]
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call sub.gdiplus.dll_GdiplusStartup
mov edi, 0x400000
lea ebx, [esp + 0x14]
call fcn.00438230
lea edi, [ebp + 0x38]
mov byte [esp + 0x34], 2
call fcn.00412ba0
mov byte [esp + 0x34], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4124ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x4141d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x548b71
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
call edx
add eax, 0x10
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4