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

Disassembly:
push 0xffffffffffffffff
push 0x4cd0b3
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.004c00e3
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.004c577b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004c6cda
test eax, eax
je 0x4573ac
mov ecx, dword [esp + 0x3c]
call fcn.004c57a8
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 0x457370
push edi
mov ecx, esi
call fcn.004c2e0d
mov ecx, esi
call fcn.00457510
cmp dword [esp + 0x38], 1
jne 0x4573a5
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.004c2f48
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 0x459dc0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x459df3
push esi
call fcn.0045cec0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x459dec
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 0x459e79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x459e62
mov eax, dword [esi + 8]
test eax, eax
je 0x459e17
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 0x459e5e
cmp eax, 2
je 0x459e62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x459e0a
cmp eax, 3
je 0x459e3d
cmp eax, 1
jne 0x459e0a
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 0x459e0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x459e0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00459ea0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x459e88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00459ea0
add esp, 4
pop esi
ret

Function at 0x466c90
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 0x466d33
test eax, eax
jbe 0x466d33
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x466d33
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 0x466cde
xor esi, esi
jmp 0x466ce4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x466d0f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0046a970
add esi, eax
push esi
mov ebx, esi
call fcn.0046a970
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x466cf0
pop ebp
test edi, edi
pop edi
jne 0x466d33
test ebx, ebx
je 0x466d33
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004ae230
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x466e75
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 0x466f8d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x466f8d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004c0535
mov esi, eax
test esi, esi
je 0x466f8d
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 0x466f8d
mov ecx, esi
call fcn.00466de0
cmp edi, eax
jge 0x466f8d
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 0x466f13
mov dword [esp + 0x34], 1
jmp 0x466f6e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x466f8d
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.00465630
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 0x46b140
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4cd8b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.004ac20a
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x38], 0
call fcn.004beb78
lea ecx, [esp + 0x3c]
push 1
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.004bbf0d
mov eax, dword [eax]
push 0x5d4318
push eax
call fcn.004ad874
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
setne bl
call fcn.004beb0a
test bl, bl
je 0x46b1c0
push 0x5d4318
lea ecx, [esp + 0xc]
call fcn.004bee9a
push 0x5d4314
lea ecx, [esp + 0xc]
call fcn.004bee9a
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.004ac2cd
test eax, eax
je 0x46b284
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov bl, 2
lea ecx, [esp + 0x18]
call fcn.004ac4ed
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
test eax, eax
je 0x46b240
lea ecx, [esp + 0x18]
call fcn.004ac4b4
test eax, eax
jne 0x46b240
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004ac5bc
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x40], bl
call fcn.0046b140
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x44]
jmp 0x46b275
lea ecx, [esp + 0x18]
call fcn.004ac4b4
test eax, eax
jne 0x46b27a
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
jne 0x46b27a
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.004ac5bc
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call fcn.004beb0a
test edi, edi
jne 0x46b1f0
pop edi
pop ebp
lea ecx, [esp + 0x10]
call fcn.004ac283
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call fcn.004beb0a
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.004ac247
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x46b380
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4cd8e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x5d88e0]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.004bec47
push str..
lea ecx, [esp + 0x10]
call fcn.004bee9a
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x46b423
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.004beb0a
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.004beb0a
xor eax, eax
jmp 0x46b568
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x5d4338
push edx
call fcn.004ad874
add esp, 8
test eax, eax
je 0x46b519
lea eax, [esp + 0x48]
push 0x5d4334
push eax
call fcn.004ad874
add esp, 8
test eax, eax
je 0x46b519
test ebp, ebp
jne 0x46b485
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.004ad923
add esp, 8
test eax, eax
je 0x46b519
push esi
lea ecx, [esp + 0x14]
call fcn.004bec47
push 0x5c
lea ecx, [esp + 0x14]
call fcn.004beec1
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.004bee9a
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x46b4c5
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x46b4e7
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.0046b380
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x46b519
test edi, edi
je 0x46b50e
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.004ad923
add esp, 8
test eax, eax
jne 0x46b50e
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.0046b590
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x46b433
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.004beb0a
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.004beb0a
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x46b590
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cd8fb
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.004ae110
mov eax, dword [0x5d88e0]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.004bec47
push 0x5c
lea ecx, [esp + 8]
call fcn.004beec1
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.004bee9a
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46b636
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.004beb0a
xor eax, eax
jmp 0x46b6b3
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x46b691
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x46b683
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x46b65d
jmp 0x46b691
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.004beb0a
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8
Function at 0x46c610
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2820
call fcn.004ae110
mov eax, dword [esp + 0x2824]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x20]
push str..PhysicalDrive_d
push ecx
call fcn.004af2e8
add esp, 0xc
lea edx, [esp + 0x1c]
push 0
push 0
push 3
push 0
push 3
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x46c7bd
xor eax, eax
mov ecx, 0x9c4
mov dword [esp + 0x10], eax
lea edi, [esp + 0x11c]
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x2710
push edx
lea eax, [esp + 0x20]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x46c7bd
mov ecx, dword [esp + 0x283c]
mov edx, dword [esp + 0x128]
push ecx
push 0
lea eax, [esp + 0x124]
push edx
push eax
call fcn.0046c7d0
mov ecx, dword [esp + 0x2848]
mov edx, dword [esp + 0x13c]
push ecx
push 0
lea eax, [esp + 0x134]
push edx
push eax
call fcn.0046c7d0
mov ecx, dword [esp + 0x2860]
mov edx, dword [esp + 0x150]
push ecx
push 0
lea eax, [esp + 0x144]
push edx
push eax
call fcn.0046c7d0
mov ecx, dword [esp + 0x2864]
mov edx, dword [esp + 0x164]
push ecx
push 1
lea eax, [esp + 0x154]
push edx
push eax
call fcn.0046c7d0
mov ecx, dword [esp + 0x2884]
add esp, 0x40
xor eax, eax
lea edi, [esp + 0x11c]
mov dword [ecx], 1
mov ecx, 0x9c4
lea edx, [esp + 0xc]
push eax
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x124]
push 0x2710
push eax
push 0
push 0
push 0x700a0
push esi
call ebx
test eax, eax
je 0x46c7bd
mov edi, dword [esp + 0x124]
mov edx, dword [esp + 0x2848]
mov eax, dword [esp + 0x284c]
xor ecx, ecx
cmp edi, 0xc
push esi
setne cl
inc ecx
mov dword [edx], ecx
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2820
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2820
ret

Function at 0x46d0e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x110]
call fcn.0046cee0
pop edi
add esp, 0x104
ret 4
Function at 0x479530
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x479563
push esi
call fcn.0047e160
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47955c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4795e9
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4795d2
mov eax, dword [esi + 8]
test eax, eax
je 0x479587
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4795ce
cmp eax, 2
je 0x4795d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47957a
cmp eax, 3
je 0x4795ad
cmp eax, 1
jne 0x47957a
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 0x47957a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47957a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00479620
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x479609
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00479620
add esp, 4
pop esi
ret

Function at 0x4c0ed8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c0f10
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.004bef65
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004bef3d
jmp 0x4c0f1c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c25ca
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 0x4c260c
call fcn.004c80c0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c260c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c2603
xor eax, eax
jmp 0x4c2614
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c261a
pop edi
pop esi
pop ebx
ret 4
Function at 0x4c85f0
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 0x4c861e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c863c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c8556
jmp 0x4c863c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c863c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c8556
test edi, edi
mov eax, edi
jne 0x4c8626
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x54e5d0
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x54e5ed
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x54e5de
add dl, dl
jne 0x54e5f8
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x54e644
xor eax, eax
add dl, dl
jne 0x54e605
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x54e6e1
add dl, dl
jne 0x54e614
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x54e61f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x54e62a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x54e635
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x54e63f
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x54e5e4
mov eax, 1
add dl, dl
jne 0x54e652
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x54e65d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x54e649
sub eax, 2
jne 0x54e68c
mov ecx, 1
add dl, dl
jne 0x54e672
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x54e67d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x54e669
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x54e5e4
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x54e6a3
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x54e6ae
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x54e69a
cmp eax, 0x7d00
jae 0x54e6d1
cmp eax, 0x500
jb 0x54e6cc
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x54e5e4
cmp eax, 0x7f
ja 0x54e6d4
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x54e5e4
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x54e6fd
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x54e5e4
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x402a20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f9c6
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x417004]
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
mov edi, dword [ebp + 0x38]
push 0x410
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.00404ac0
add esp, 0xc
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x402a7a
mov edx, dword [esi]
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
push edx
cmovae ecx, dword [ebp + 0x20]
lea edx, [ebp - 0x420]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0x208
cmovae eax, dword [ebp + 8]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x402b77
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x424], esp
push eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
push 0x414c40
mov word [ecx], ax
call fcn.00401cf0
mov byte [ebp - 4], 2
lea edx, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
cmovae edx, dword [ebp + 0x20]
sub esp, 0x18
mov edi, esp
mov dword [ebp - 0x428], esp
mov ecx, edx
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
lea ebx, [ecx + 2]
mov word [edi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402b04
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00401cf0
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae ecx, dword [ebp + 8]
sub esp, 0x18
mov edi, esp
mov edx, ecx
xor eax, eax
mov dword [edi + 0x10], 0
lea ebx, [edx + 2]
mov dword [edi + 0x14], 7
mov word [edi], ax
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402b50
sub edx, ebx
sar edx, 1
push edx
push ecx
mov ecx, edi
call fcn.00401cf0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00402c50
xor bl, bl
jmp 0x402ba0
lea edx, [ebp - 0x420]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402b80
sub edx, esi
lea eax, [ebp - 0x420]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00401cf0
mov bl, 1
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x402bd6
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402bcc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c40
push edx
push ecx
call fcn.004036b9
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x402c20
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402c16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c45
push edx
push ecx
call fcn.004036b9
add esp, 8
mov al, bl
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.00403678
mov esp, ebp
pop ebp
ret 0x34
call fcn.00406dc7
call fcn.00406dc7
int3
Function at 0x402ec0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
test eax, eax
je 0x402ee1
cmp byte [esi + 0x48], 0
je 0x402eda
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x402f04
cmp byte [esi + 0x48], 0
jne 0x402efd
push 0xdead
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x3c]
cmp ecx, 8
jb 0x402f3a
mov eax, dword [esi + 0x28]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x402f30
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f9a
mov eax, edx
push ecx
push eax
call fcn.004036b9
add esp, 8
xor eax, eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 7
mov word [esi + 0x28], ax
mov ecx, dword [esi + 0x24]
cmp ecx, 8
jb 0x402f84
mov eax, dword [esi + 0x10]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x402f7a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f9a
mov eax, edx
push ecx
push eax
call fcn.004036b9
add esp, 8
mov dword [esi + 0x20], 0
xor eax, eax
mov dword [esi + 0x24], 7
mov word [esi + 0x10], ax
pop esi
ret
call fcn.00406dc7
int3