joyce8/EMBER2024-capa huggingface dataset:
Function at 0x512e80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.00512e20
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [eax + 4], 0
je 0x512ef6
mov eax, dword [esi + 8]
mov edi, dword [esi + 4]
mov dword [ebp - 8], eax
call fcn.00512e20
mov esi, eax
mov eax, dword [ebp - 8]
cmp edi, eax
je 0x512edc
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x512ed2
push 0x5ca1cc
push dword [esi]
call ebx
mov dword [esi + 0x24], eax
mov ecx, eax
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push eax
push edi
call ecx
jmp 0x512ef6
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x512eef
push 0x5ca1e0
push dword [esi]
call ebx
mov dword [esi + 0x28], eax
lea ecx, [ebp - 4]
push ecx
push edi
call eax
mov edi, dword [ebp - 4]
test edi, edi
jne 0x512f06
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00512e20
mov esi, eax
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x512f20
push 0x5ca18c
push dword [esi]
call ebx
mov dword [esi + 0x18], eax
push 2
push edi
call eax
mov edi, dword [ebp - 4]
call fcn.00512e20
mov esi, eax
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x512f42
push 0x5ca19c
push dword [esi]
call ebx
mov dword [esi + 0x1c], eax
push 2
push edi
call eax
mov edi, dword [ebp - 4]
call fcn.00512e20
mov esi, eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x512f64
push 0x5ca174
push dword [esi]
call ebx
mov dword [esi + 0x14], eax
push 4
push edi
call eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x513280
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0x54]
mov edi, eax
test edi, edi
jne 0x5132b0
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00513160
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov ebx, dword [ebx]
test ebx, ebx
cmovle ebx, eax
call fcn.00512e20
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x5132e1
push 0x5ca19c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], eax
mov ecx, eax
push 2
push edi
call ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp + 8]
push eax
call fcn.00512fa0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x51339d
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, esi
call fcn.00510700
mov dword [ebp + 0x14], eax
test eax, eax
je 0x51339d
call fcn.00512e20
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x51333d
push 0x5ca174
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov ecx, eax
push 4
push edi
call ecx
call fcn.00512e20
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x68]
test ecx, ecx
jne 0x513366
push 0x5ca2f4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x68], eax
mov ecx, eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push edi
call ecx
call fcn.00512e20
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x44]
test ecx, ecx
jne 0x513398
push 0x5ca260
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x44], eax
mov ecx, eax
push dword [ebp + 0x14]
call ecx
test ebx, ebx
jle 0x513437
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push dword [ebp + 0x10]
call fcn.00510ae0
mov dword [ebp + 0x10], eax
test eax, eax
je 0x513437
call fcn.00512e20
mov dword [ebp + 0x14], eax
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x5133de
push 0x5ca174
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x14], eax
mov ecx, eax
not ebx
and ebx, 1
shl ebx, 2
push ebx
push edi
call ecx
call fcn.00512e20
mov ebx, eax
mov eax, dword [ebx + 0x58]
test eax, eax
jne 0x513408
push 0x5ca2b0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x58], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
push edi
call eax
call fcn.00512e20
mov ebx, eax
mov eax, dword [ebx + 0x48]
test eax, eax
jne 0x513432
push 0x5ca270
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x48], eax
push dword [ebp + 0x10]
call eax
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x58]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5180d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c0f2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x60b4e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00526194
mov dword [ebp - 4], 0
mov dword [esi], vtable.CXTPResourceImages.0
call fcn.00526109
mov ecx, eax
test ecx, ecx
je 0x518243
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 1
call fcn.00526109
mov ecx, eax
test ecx, ecx
je 0x51824d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x24], eax
lea ebx, [esi + 0x54]
mov byte [ebp - 4], 2
mov ecx, ebx
mov dword [ebp - 0x14], ebx
call fcn.00532434
mov dword [ebx], vtable.CXTPResourceImages::CBitmapDC.0
mov dword [ebx + 0x10], 0
push 0xa
lea ecx, [esi + 0x74]
call fcn.00518020
push 0xa
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 4
call fcn.00549753
push 0
push 0xc7
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 5
call fcn.00547595
push 0
push 0x65
lea ecx, [esi + 0x74]
call fcn.00476e80
mov edi, esi
mov dword [edi + 0x34], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x50], 0
call fcn.005322aa
push 0
push 0
mov ecx, edi
mov eax, dword [eax + 8]
push eax
call fcn.0051a730
lea eax, [edi + 0x6c]
mov dword [eax], 0
push eax
push 0x200
push 0x200
push 0
call fcn.0047b350
add esp, 0x10
mov dword [edi + 0x68], eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, ebx
call fcn.00532c91
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [edi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
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
push 0x80004005
call fcn.00404c28
push 0x80004005
call fcn.00404c28
int3
Function at 0x51a000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.0051a3c0
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
push 0x5caa6c
cmp dword [ecx - 0xc], 0
je 0x51a027
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
jmp 0x51a048
push 0x5caa80
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x51a04c
push 0x12
push 0x5caa80
lea ecx, [esi + 0x24]
call fcn.004052ca
test edi, edi
jne 0x51a061
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], 0
jne 0x51a061
push dword [esi + 0x28]
mov ecx, esi
call fcn.00519560
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x51a094
push edi
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x51a094
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push dword [esi + 0x28]
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, dword [esi + 0x2c]
mov ebx, 1
mov dword [esi + 0x30], eax
mov ecx, esi
call fcn.00519bc0
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x51a0b2
push 0
push 0
push 0
push 0x294f
call fcn.0051d970
push 0
push 0x5caaa8
push 0x5caacc
mov ecx, esi
call fcn.005196a0
pop edi
mov dword [esi + 0x50], eax
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x51c5e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x51c736
cmp dword [esi + 0x20], eax
je 0x51c736
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetCapture]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], 0
call edi
mov ebx, eax
lea eax, [esi + 0x10]
nop
cmp dword [esi + 0x20], 0
je 0x51c63f
call edi
sub eax, ebx
cmp eax, 0x14
jbe 0x51c63c
call edi
mov ebx, eax
mov ecx, esi
mov eax, dword [esi]
push 1
call dword [eax + 0x18]
lea eax, [esi + 0x10]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
cmp eax, dword [esi + 0x24]
je 0x51c662
mov ecx, dword [esi + 0xc]
lea edx, [esi + 0x10]
mov dword [esi + 0x24], eax
push 1
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
lea eax, [esi + 0x10]
je 0x51c620
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp + 8]
jne 0x51c6f1
mov eax, dword [ebp - 0x1c]
cmp eax, 0x200
ja 0x51c6ce
je 0x51c6b9
cmp eax, 0x1f
je 0x51c6fb
cmp eax, 0x100
jne 0x51c6da
cmp dword [ebp - 0x18], 0x1b
je 0x51c6fb
jmp 0x51c61c
mov eax, dword [ebp - 0x14]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], eax
jmp 0x51c61c
sub eax, 0x202
je 0x51c6e9
sub eax, 2
je 0x51c6fb
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x51c61c
mov eax, dword [esi + 0x24]
mov dword [ebp - 4], eax
jmp 0x51c6fb
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
call dword [sym.imp.USER32.dll_ReleaseCapture]
push dword [ebp + 0x10]
mov ecx, dword [esi + 0xc]
push dword [ebp + 0xc]
mov dword [esi + 0x24], 0
push dword [ebp + 8]
call fcn.0051c850
mov ecx, dword [esi + 0xc]
push 0
push 0
mov eax, dword [ecx]
call dword [eax + 0x38]
cmp dword [ebp - 4], 0
pop edi
pop ebx
je 0x51c736
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x18]
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x524330
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cf50
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x60b4e0]
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 esi, ecx
push 0x1b
xor eax, eax
mov dword [ebp - 0x30], 0
push 0x5cbf68
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00404870
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov ebx, dword [esi + 0x1a8]
cmovae eax, dword [ebp - 0x40]
push ebx
push eax
push 0
push 0
mov dword [ebp - 4], 0
call fcn.00405471
xor ecx, ecx
mov edx, 2
lea edi, [eax + 1]
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00525ad5
mov esi, eax
mov dword [ebp - 0x44], esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ebx
cmovae eax, dword [ebp - 0x40]
push eax
push edi
push esi
mov byte [ebp - 4], 1
call fcn.00405471
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
add esp, 0x24
lea eax, [edi - 1]
mov dword [ebp - 0x14], 7
lea eax, [esi + eax*2]
cmp esi, eax
je 0x52440a
sub eax, esi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push esi
call fcn.00404870
test esi, esi
je 0x524417
push esi
call fcn.00525ad0
add esp, 4
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x524451
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x524447
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5244cd
push edx
push ecx
call fcn.0055a64a
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0x5a13b8
push 0x5a13b8
push eax
push 0x5a3cc4
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x5244b1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5244a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5244d2
push edx
push ecx
call fcn.0055a64a
add esp, 8
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.0055a658
mov esp, ebp
pop ebp
ret
call fcn.005617aa
call fcn.005617aa
int3
Function at 0x524800
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d010
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x60b4e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebx + 0x1c]
mov eax, dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [esi + 4]
push eax
call fcn.00446790
lea eax, [esi + 8]
push eax
lea ecx, [ebx + 0x20]
call fcn.00446790
lea eax, [esi + 0xc]
push eax
lea ecx, [ebx + 0x24]
call fcn.00446790
lea eax, [esi + 0x10]
push eax
lea ecx, [ebx + 0x28]
call fcn.00446790
lea eax, [esi + 0x14]
push eax
lea ecx, [ebx + 0x2c]
call fcn.00446790
lea eax, [esi + 0x18]
push eax
lea ecx, [ebx + 0x30]
call fcn.00446790
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebx + 0x34]
call fcn.00446790
lea eax, [esi + 0x20]
push eax
lea ecx, [ebx + 0x38]
call fcn.00446790
lea eax, [esi + 0x24]
push eax
lea ecx, [ebx + 0x3c]
call fcn.00446790
lea eax, [esi + 0x28]
push eax
lea ecx, [ebx + 0x40]
call fcn.00446790
lea eax, [esi + 0x2c]
push eax
lea ecx, [ebx + 0x44]
call fcn.00446790
lea eax, [esi + 0x30]
push eax
lea ecx, [ebx + 0x48]
call fcn.00446790
lea eax, [esi + 0x34]
push eax
lea ecx, [ebx + 0x4c]
call fcn.00446790
mov eax, dword [esi + 0x38]
lea ecx, [ebx + 0x64]
mov dword [ebx + 0x50], eax
mov eax, dword [esi + 0x3c]
mov dword [ebx + 0x54], eax
mov eax, dword [esi + 0x40]
mov dword [ebx + 0x58], eax
mov eax, dword [esi + 0x44]
mov dword [ebx + 0x5c], eax
mov eax, dword [esi + 0x48]
mov dword [ebx + 0x60], eax
lea eax, [esi + 0x4c]
push eax
call fcn.00446790
mov al, byte [esi + 0x50]
lea ecx, [ebx + 0x18]
mov byte [ebx + 0x68], al
mov eax, dword [esi + 0x54]
mov dword [ebx + 0x6c], eax
mov eax, dword [esi + 0x58]
mov dword [ebx + 0x70], eax
mov eax, dword [esi + 0x5c]
mov dword [ebx + 0x74], eax
lea eax, [ebp + 8]
push eax
call fcn.00426951
push eax
lea ecx, [ebx + 0xd8]
mov dword [ebp - 4], 0
call fcn.00446790
mov edx, dword [ebp + 8]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x524953
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x18]
call fcn.00426acc
push eax
lea ecx, [ebx + 0xdc]
mov dword [ebp - 4], 1
call fcn.00446790
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x524991
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x18]
call fcn.0042690c
push eax
mov ecx, ebx
call fcn.00425835
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5251f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x60b4e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ebx, dword [ebp - 0x18]
test bl, 3
je 0x525226
add ebx, 4
and ebx, 0xfffffffc
imul ebx, dword [ebp - 0x1c]
push ebx
mov dword [ebp - 0x2c], ebx
call fcn.0056181a
add esp, 4
mov dword [ebp - 0x28], eax
push eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_GetBitmapBits]
mov esi, dword [ebp - 0x1c]
sub esi, 1
js 0x525298
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
push ecx
imul ecx, esi
add ecx, dword [ebp - 0x28]
push ecx
push ebx
call edi
mov ecx, dword [ebp - 0x18]
test cl, 3
je 0x52528f
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
mov eax, 4
sub eax, ecx
push eax
lea eax, [ebp - 8]
push eax
push ebx
call edi
mov ecx, dword [ebp - 0x18]
sub esi, 1
jns 0x525257
mov ebx, dword [ebp - 0x2c]
pop edi
push dword [ebp - 0x28]
call fcn.00561815
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop esi
pop ebx
call fcn.0055a658
mov esp, ebp
pop ebp
ret

Function at 0x52895c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x5289a1
call fcn.005322aa
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5289a1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x5289bd
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00525549
mov ebx, eax
test edi, edi
je 0x5289bb
test esi, esi
je 0x5289bb
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x529237
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x5292f5
cmp dword [esi + 0x20], 0
je 0x5292f5
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5292f5
cmp dword [ebp + 8], 0
je 0x5292f5
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.005322aa
push 0x5cd098
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x5292c6
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5292f5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0054b8ba
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x5292e6
test edi, edi
je 0x5292e6
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x5292f1
mov ecx, esi
call fcn.00528fd9
mov eax, ebx
jmp 0x5292f7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x52db04
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x58c328
call fcn.0055a6a0
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x52db2a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x52db8a
call fcn.00526109
push eax
lea ecx, [ebp - 0x10]
call fcn.004049e5
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5a0a78]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0057490b
push eax
call fcn.00404b42
add esp, 0x14
test esi, esi
je 0x52db7d
push esi
call fcn.005617fa
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040525e
mov eax, ebx
call fcn.0055a669
ret 8

Function at 0x52e3af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x52e3da
cmp dword [ebx + 0x80], 0
jne 0x52e3da
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.005322aa
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.0052e61a
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x530fbc
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 0x53100f
push esi
push dword [ebp + 8]
call fcn.005311a5
mov edi, eax
test edi, edi
je 0x53100a
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 0x53100a
mov eax, dword [ebp - 8]
jmp 0x531021
mov eax, dword [ebp + 0x10]
jmp 0x531021
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

Function at 0x53ab1e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x53ab68
call fcn.005322aa
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x53ab65
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x53abb8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x53ab95
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5a0a78]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x53ab95
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x53abb6
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call dword [0x5a0a78]
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x53c56a
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x53c593
call fcn.005322aa
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x53c5c0
push esi
push eax
mov ecx, 0x615d14
call fcn.0053d3ea
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.0053c9c9
int3