joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444160
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x304
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x134]
push 0
push 0
push 0x1009
push eax
call esi
mov ecx, dword [ebx + 0x170]
push 0
push 0
push 0x147
push ecx
call esi
mov edx, eax
push 0x8002
shl edx, 6
add edx, eax
lea eax, [ebx + edx*4 + 0x238]
push eax
call fcn.0045f57a
lea ecx, [ebx + 0x19c]
push 0x94
push ecx
push eax
mov dword [ebx + 0x230], eax
call fcn.0045cd99
add esp, 0x14
cmp eax, 0x94
je 0x4441ee
mov edx, dword [ebx + 0x230]
push edx
call fcn.0045b52c
add esp, 4
mov ecx, ebx
call fcn.00444420
pop esi
pop ebx
add esp, 0x304
ret
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [ebx + 0x22c0]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x1ec]
test eax, eax
jle 0x44434c
mov eax, 0xfffffe10
push ebp
sub eax, ebx
lea ebp, [ebx + 0x1f0]
mov dword [esp + 0x10], eax
cmp byte [ebp], 0
je 0x444339
lea esi, [ebx + 0x1a0]
push str.INTEL
push esi
call fcn.00453280
add esp, 8
test eax, eax
je 0x444263
push 0x4b17c0
push esi
call fcn.00453280
add esp, 8
test eax, eax
je 0x444263
cmp byte [ebp], 0xe1
jne 0x444263
lea edx, [esp + 0x14]
mov edi, str.Host_Writes
jmp 0x4442a2
push 0x4b2830
push esi
call fcn.00453280
add esp, 8
test eax, eax
je 0x444286
cmp byte [ebp], 0xe7
jne 0x444286
lea edx, [esp + 0x14]
mov edi, str.SSD_Life_Left
jmp 0x4442a2
xor edx, edx
lea ecx, [esp + 0x214]
mov dl, byte [ebp]
push ecx
push edx
call fcn.00419220
add esp, 8
lea edx, [esp + 0x14]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov al, byte [ebp]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
lea esi, [ecx + ebp]
lea ecx, [esp + 0x14]
push ecx
mov dl, byte [esi + ebx + 0x210]
mov dword [ebx + eax*4 + 0x22c0], edx
xor edx, edx
mov dl, byte [ebp]
lea eax, [esp + 0x118]
push edx
push str.__02X___s
push eax
call fcn.00452382
add esp, 0x10
lea ecx, [esp + 0x114]
lea edi, [ebx + 0x118]
push 0
push 0
push 0
push 0
push ecx
push esi
push 3
mov ecx, edi
call fcn.00473832
xor edx, edx
mov ecx, edi
mov dl, byte [ebp]
push edx
push 0
push 0
push 0
push 0
push 4
push 0
push esi
call fcn.004738b4
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 0x1ec]
inc ebp
lea ecx, [eax + ebp]
cmp ecx, edx
jl 0x44421e
pop ebp
mov edx, dword [ebx + 0x230]
push edx
call fcn.00472985
mov ecx, eax
mov eax, 0x51eb851f
sub ecx, 0x94
add esp, 4
mul ecx
shr edx, 7
mov dword [ebx + 0x22b8], edx
pop edi
lea eax, [edx + edx*4]
lea esi, [eax + eax*4]
mov eax, dword [ebx + 0x22bc]
shl esi, 4
test eax, eax
je 0x444390
push eax
call fcn.004797e6
add esp, 4
mov eax, dword [ebx + 0x22b8]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 4
push edx
call fcn.004797bd
add esp, 4
mov dword [ebx + 0x22bc], eax
test eax, eax
je 0x4443c3
push esi
push eax
mov eax, dword [ebx + 0x230]
push eax
call fcn.0045cd99
add esp, 0xc
mov ecx, ebx
call fcn.00444420
pop esi
pop ebx
add esp, 0x304
ret
Function at 0x447dd0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x1c]
push 0
push 0x476
push eax
call ebx
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x447e48
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x447e48
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x14], 0xffffff37
mov dword [esp + 0xc], ecx
mov ecx, esi
call fcn.00479072
lea edx, [esp + 0xc]
mov dword [esp + 0x10], eax
push edx
push eax
push 0x4e
push edi
mov dword [esp + 0x28], 0
call ebx
test eax, eax
je 0x447e3f
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret

Function at 0x45bf81
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4b48d8
cmp edx, dword [eax]
je 0x45bfa3
add eax, 8
inc ecx
cmp eax, 0x4b4968
jl 0x45bf94
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4b48d8]
jne 0x45c0d1
mov eax, dword [0x4b82c0]
cmp eax, 1
je 0x45c0ab
test eax, eax
jne 0x45bfd4
cmp dword [0x4b4024], 1
je 0x45c0ab
cmp edx, 0xfc
je 0x45c0d1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x45c00b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0045ca00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0045a920
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x45c04e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0045a920
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x49ea24
push edi
call fcn.00453180
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0045ca00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0045ca10
lea eax, [ebp - 0xa0]
push 0x4b03f4
push eax
call fcn.0045ca10
push dword [esi + 0x4b48dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0045ca10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0045f8a2
add esp, 0x2c
pop edi
jmp 0x45c0d1
lea eax, [ebp + 8]
lea esi, [esi + 0x4b48dc]
push 0
push eax
push dword [esi]
call fcn.0045a920
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret
Function at 0x468cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4938a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0x10], esi
mov dword [esi + 8], edi
mov dword [esi + 4], vtable.CFont.0
mov dword [esp + 0x1c], edi
mov dword [esi + 0x5c], 0x49f5d0
mov dword [esi + 0x60], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x64], edi
mov ebx, 1
lea ecx, [esi + 0x70]
mov byte [esp + 0x1c], bl
call fcn.00474be6
lea ebp, [esi + 0x14]
mov dword [esi + 0x84], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov ecx, 0xa
xor eax, eax
mov edi, ebp
mov dword [esi], 0x49f5cc
mov dword [esi + 0x40], ebx
mov ebx, dword [esp + 0x24]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov byte [esp + 0x1c], 2
cmp ebx, ecx
jne 0x468d68
mov dword [esi + 0x24], ecx
jmp 0x468d8b
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
inc edi
push edi
call fcn.004797bd
push ebx
push edi
push eax
mov dword [esi + 0x24], eax
call fcn.0046bdd0
add esp, 0x10
or ecx, 0xffffffff
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 8
mov dword [ebp], 0x11
mov dword [esi + 0x18], esi
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x3c], 0x8000
call edi
push 5
mov dword [esi + 0xc], eax
call edi
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x46b3a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x493ac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x4b3040]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
push ecx
lea ecx, [esi + 0x3c]
call fcn.00476e03
mov edx, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push edx
call edi
push eax
call fcn.0047640e
mov eax, dword [eax + 0x1c]
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.00479072
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
test eax, eax
mov dword [esp + 0x18], 0xffffff96
mov dword [esp + 0x1c], 1
je 0x46b423
mov ecx, dword [esi + 0x250]
mov dword [esp + 0x20], ecx
jmp 0x46b42b
mov dword [esp + 0x20], 0xffffffff
mov edx, dword [esi + 0x24c]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], eax
mov eax, dword [eax - 8]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x1c]
push eax
call edi
push eax
call fcn.0047640e
mov ecx, dword [esi + 0x1c]
mov ebx, eax
push ecx
call edi
push eax
call fcn.0047640e
mov edx, dword [eax + 0x1c]
push edx
call edi
push eax
call fcn.0047640e
mov ecx, ebx
mov edi, eax
call fcn.00479072
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x4e
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0047a59e
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 4

Function at 0x46c2c0
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x493b38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
push 0
push 0
push 0x100c
push 0x800
call esi
mov ecx, dword [0x4b3040]
mov dword [esp + 4], ecx
push eax
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.0047a9d1
push eax
push 0x100c
push 0x800
call esi
mov edx, dword [esp + 4]
lea ecx, [esp + 4]
mov eax, dword [edx - 8]
push eax
call fcn.0047a95a
push eax
call fcn.0045277d
add esp, 4
lea ecx, [esp + 4]
mov esi, eax
push 0xffffffffffffffff
call fcn.0047a9a9
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.0047a59e
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x46c370
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x493b8a
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.00475fed
lea edi, [esi + 0x3c]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x18], ebp
call fcn.00475fed
mov dword [edi], vtable.CEdit.0
mov dword [esi + 0x7c], ebp
mov dword [esi + 0x78], vtable.CFont.0
push ebp
push ebp
push ebp
push 0x1f
push 0xc
mov dword [esi + 0x80], ebp
lea ecx, [esi + 0x8c]
push 0x270f
mov byte [esp + 0x30], 2
mov dword [esi + 0x84], ebp
mov dword [esi + 0x88], ebp
call fcn.00451c67
push ebp
push ebp
push ebp
push 1
push 1
lea ecx, [esi + 0x98]
push 0x64
call fcn.00451c67
lea ecx, [esi + 0xa8]
call fcn.0046ce30
push 0x4b5218
lea ecx, [esi + 0x248]
mov byte [esp + 0x1c], 3
mov dword [esi + 0x240], ebp
call fcn.0047a60c
mov dword [esi], method.CWnd.virtual_0
mov byte [esp + 0x18], 4
mov dword [esi + 0x88], 2
call fcn.0046c2c0
mov dword [esi + 0xa4], eax
mov eax, dword [0x4b87e8]
cmp eax, ebp
je 0x46c44d
cmp dword [0x4b87d0], ebp
jne 0x46c452
call fcn.0046c160
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x471eb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00452850
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x471f7b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x471f7b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x471f2e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x471f39
or bh, 8
and edi, 0x8000000
je 0x471f54
mov eax, dword [0x4b9c3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x471f7b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test edi, edi
jne 0x47237b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
jne 0x47239f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4723ba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x476e03
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x476e3b
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.0047a9d1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047a9a9
jmp 0x476e47
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4787ac
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 0x4787ee
call fcn.0048947a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x4787ee
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x4787e5
xor eax, eax
jmp 0x4787f6
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004787fc
pop edi
pop esi
pop ebx
ret 4

Function at 0x4799cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4799ed
cmp dword [edi + 0x3c], 0
jne 0x4799ed
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0048947a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00479a1a
pop edi
pop esi
pop ebx
ret 8

Function at 0x48a813
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48a8c3
mov ecx, 0x4b8240
call fcn.0048a3f4
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x48a8a1
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x48a87f
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x48a87f
push ebx
push edi
push eax
call fcn.0047b8a1
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.0047a727
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x421f88
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00422138
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x422086
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x422029
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x42206c
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x422040
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x42205b
test al, 0x40
je 0x422052
mov ecx, dword [edi + 0x20]
jmp 0x422059
test al, 0x80
je 0x42206c
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x42206c
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x421ff8
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x402451
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4024b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x4024a8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4024a8
mov eax, dword [ebp - 4]
jmp 0x4024c4
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x402485
mov eax, 0
leave
ret
Function at 0x291c43
Capabilities:
Enumerate pe sections

Disassembly:
movzx edx, word [eax + 6]
movzx ecx, word [eax + 0x14]
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test edx, edx
jbe 0x291c74
mov esi, dword [ecx + 0xc]
cmp dword [esp + 0x10], esi
jb 0x291c6c
mov ebx, dword [ecx + 8]
add ebx, esi
cmp dword [esp + 0x10], ebx
jb 0x291c76
add ecx, 0x28
inc edi
cmp edi, edx
jb 0x291c58
xor ecx, ecx
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x291c8f
mov eax, dword [eax + 0x3c]
dec eax
not eax
and eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
add eax, dword [esp + 4]
jmp 0x291c93
mov eax, dword [esp + 4]
ret 4

Function at 0x291d53
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
push edi
mov esi, 0x100
push esi
xor edi, edi
lea eax, [ebp - 0x100]
push edi
push eax
call fcn.002924b8
push esi
lea eax, [ebp - 0x200]
push edi
push eax
call fcn.002924b8
add esp, 0x18
xor ecx, ecx
xor eax, eax
mov byte [ebp + eax - 0x100], al
inc eax
cmp eax, esi
jb 0x291d89
cmp dword [ebp + 0x14], edi
je 0x291db6
xor eax, eax
cmp ecx, dword [ebp + 0x14]
jne 0x291da3
xor ecx, ecx
mov edx, dword [ebp + 0x10]
mov dl, byte [ecx + edx]
inc ecx
mov byte [ebp + eax - 0x200], dl
inc eax
cmp eax, esi
jb 0x291d9c
mov dword [ebp + 0x10], edi
xor edx, edx
mov eax, 0xff
movzx edi, byte [ebp + edx - 0x200]
add edi, dword [ebp + 0x10]
lea ecx, [ebp + edx - 0x100]
mov bl, byte [ecx]
mov byte [ebp + 0x17], bl
movzx ebx, bl
add ebx, edi
and ebx, eax
mov edi, ebx
mov dword [ebp + 0x10], edi
lea edi, [ebp + edi - 0x100]
mov bl, byte [edi]
mov byte [ecx], bl
mov cl, byte [ebp + 0x17]
inc edx
mov byte [edi], cl
cmp edx, esi
jb 0x291dc0
xor edi, edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
cmp dword [ebp + 0xc], edi
jbe 0x291e4d
inc edi
and edi, eax
lea ecx, [ebp + edi - 0x100]
mov bl, byte [ecx]
movzx edx, bl
add edx, dword [ebp + 0x10]
and edx, eax
lea esi, [ebp + edx - 0x100]
mov dword [ebp + 0x10], edx
mov dl, byte [esi]
mov byte [ecx], dl
mov edx, dword [ebp + 8]
mov byte [esi], bl
movzx ecx, byte [ecx]
mov esi, dword [ebp + 0x14]
movzx ebx, bl
add ecx, ebx
and ecx, eax
mov cl, byte [ebp + ecx - 0x100]
add edx, esi
xor byte [edx], cl
inc esi
mov dword [ebp + 0x14], esi
cmp esi, dword [ebp + 0xc]
jb 0x291e05
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x291e85
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
push ebp
call dword [0x4030e4]
movzx ecx, word [eax + 0x14]
lea esi, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
mov edx, 0x405000
sub edx, ebp
xor ecx, ecx
test eax, eax
jbe 0x291ebb
lea edi, [esi + 0xc]
cmp dword [edi], edx
je 0x291ec3
inc ecx
add edi, 0x28
cmp ecx, eax
jb 0x291eaf
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
imul ecx, ecx, 0x28
push ebx
push 0x40
add esi, ecx
mov edi, dword [esi + 8]
push 0x3000
push edi
push 0
call dword [0x403034]
mov ebx, eax
mov eax, dword [esi + 0xc]
push edi
add eax, ebp
push eax
push ebx
call fcn.002924be
add esp, 0xc
push 6
inc esi
push esi
push edi
push ebx
call fcn.00291d53
mov dword [0x404050], edi
mov eax, ebx
pop ebx
jmp 0x291ebd