joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4540f1
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
mov dword [eax + 0x1bf4], 0
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx + 0x1910]
test eax, eax
je 0x454113
call fcn.0040fa20
mov ecx, dword [esi + 0x28]
mov ecx, dword [ecx + 0x18b4]
call fcn.0042a920
mov eax, dword [esi + 0x98]
test eax, eax
je 0x454171
mov eax, dword [eax + 0x28]
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x45415d
cmp dword [esp + 4], 0x103
jne 0x45415d
mov ecx, dword [esi + 0x98]
push 0x103
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x98]
test eax, eax
je 0x454171
mov dword [esi + 0x98], 0
pop esi
pop ecx
ret

Function at 0x454180
Capabilities:
Resume thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48f768
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
lea eax, [esp + 0x14]
lea ecx, [esi + 0x94]
push eax
mov dword [esp + 0x10], 0
call fcn.0047c22c
push 0
push 4
push 0
push 0
push esi
push 0x454220
mov dword [esi + 0x88], 0
call fcn.0047d2e8
test eax, eax
mov dword [esi + 0x98], eax
je 0x4541ee
mov dword [eax + 0x24], 0
mov esi, dword [esi + 0x98]
mov ecx, dword [esi + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.0047c0f3
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret 4
Function at 0x454bc0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48f898
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x28], ebx
call fcn.004834fa
mov edi, dword [eax + 4]
mov ecx, esi
call fcn.00454560
mov ecx, 1
cmp eax, ecx
jne 0x454d5e
mov eax, dword [esi + 0x28]
mov dword [esi + 0x6c], ecx
lea edx, [esp + 0x30]
mov dword [eax + 0x1bf4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x60], ecx
push edx
lea ecx, [esi + 0x64]
call fcn.0047c22c
mov eax, dword [esi + 0x28]
mov dword [esi + 0x24], 0xa
cmp dword [eax + 0x1c00], ebx
jne 0x454c93
mov ecx, dword [eax + 0x18d4]
push ebx
add ecx, 0x994
call fcn.00457780
cmp dword [edi + 0xf0], ebx
jne 0x454c6f
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 0x18d4]
mov dword [ecx + 0xf60], 0x4e20
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx + 0x18d4]
mov dword [edx + 0xf5c], ebx
jmp 0x454cbd
mov edx, dword [esi + 0x28]
mov eax, dword [edx + 0x18d4]
mov dword [eax + 0xf60], 0xc350
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx + 0x18d4]
mov dword [edx + 0xf5c], ebx
jmp 0x454cbd
cmp dword [edi + 0xf0], ebx
jne 0x454cad
mov eax, dword [eax + 0x18ec]
mov dword [eax + 0x2028], 0x4e20
jmp 0x454cbd
mov ecx, dword [eax + 0x18ec]
mov dword [ecx + 0x2028], 0xc350
mov edx, dword [esi + 0x18]
push str.Func_007
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov eax, dword [0x4b20c8]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
push ecx
call fcn.0045d2e8
lea ecx, [esp + 0x14]
call fcn.0045d43e
push eax
lea ecx, [esp + 0x18]
call fcn.0045d414
push eax
lea ecx, [esp + 0x1c]
call fcn.0045d3ea
push eax
lea ecx, [esp + 0x20]
call fcn.0045d3c0
push eax
lea ecx, [esp + 0x24]
call fcn.0045d396
push eax
lea ecx, [esp + 0x28]
call fcn.0045d339
push eax
lea edx, [esp + 0x24]
push str._d__02d__02d__02d:_02d:_02d
push edx
call fcn.0047617b
add esp, 0x20
lea eax, [esp + 0xc]
push ebx
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.0047be68
mov ecx, dword [esi + 0x28]
call fcn.0040ae30
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], bl
call fcn.0047c0f3
jmp 0x454d98
cmp eax, 7
je 0x454d98
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x4b61a0
call fcn.0047c161
push ecx
mov byte [esp + 0x30], 2
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4b1ac8
call fcn.0047c161
mov ecx, dword [esi + 0x28]
push 2
mov byte [esp + 0x34], bl
call fcn.00411d00
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.0047c0f3
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 8
Function at 0x454dc0
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
mov dword [eax + 0x1bf4], 0
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x454dee
mov ecx, dword [esi + 0x18]
push str.Func_008
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
pop esi
pop ecx
ret 4
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 0x1c00]
test ecx, ecx
je 0x454e45
mov eax, dword [eax + 0x18ec]
push 0
add eax, 0x120
push 0
push 0x1004
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x454e35
mov eax, dword [esi + 0x28]
push 1
push 0
mov ecx, dword [eax + 0x18ec]
add ecx, 0x1ebc
call fcn.00401120
mov ecx, dword [esi + 0x28]
mov ecx, dword [ecx + 0x18ec]
call fcn.00436a40
jmp 0x454eb2
mov ecx, dword [eax + 0x18d4]
push 0x64
add ecx, 0x994
call fcn.00457780
mov edx, dword [esi + 0x28]
push 0
push 0
push 0x1004
mov eax, dword [edx + 0x18d4]
add eax, 0xa2c
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x454ea2
mov ecx, dword [esi + 0x28]
push 1
push 0
mov ecx, dword [ecx + 0x18d4]
add ecx, 0xf10
call fcn.00401120
mov edx, dword [esi + 0x28]
push 2
mov ecx, dword [edx + 0x18d4]
jmp 0x454ead
mov eax, dword [esi + 0x28]
push 2
mov ecx, dword [eax + 0x18d4]
call fcn.004460f0
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx + 0x1bf4]
test eax, eax
jne 0x454f0a
mov eax, dword [esi + 0x68]
test eax, eax
je 0x454f0a
mov eax, dword [eax + 0x28]
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x454ef5
cmp dword [esp + 4], 0x103
jne 0x454ef5
mov ecx, dword [esi + 0x68]
push 0x103
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x454f0a
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x68], 0
pop esi
pop ecx
ret 4
Function at 0x45a5b0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
mov eax, dword [esi + 0x74]
test eax, eax
je 0x45a5f0
call fcn.0045b1c0
test eax, eax
je 0x45a5f7
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x45ab00
push 0
push 0
call fcn.004654f3
add esp, 0x18
mov dword [esi + 0x90], eax
test eax, eax
je 0x45a5f0
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
add esp, 0x18
ret
mov eax, dword [esi + 0x98]
test eax, eax
je 0x45a5f0
mov ecx, dword [eax]
lea edx, [esp + 8]
push edi
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x98]
lea edx, [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 8]
push 0
mov edi, ecx
mov eax, dword [esi + 0x98]
neg edi
push edi
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0x50]
mov edx, dword [eax]
push 0
push ecx
mov ecx, dword [esi + 0x4c]
push ecx
mov ecx, dword [esi + 0x78]
push 0
push 0
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
pop edi
jne 0x45a5f0
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x1c]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
add esp, 0x18
ret

Function at 0x45a680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
call fcn.004834fa
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x45a73f
call fcn.004834fa
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x45a73f
call fcn.004834fa
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
push ebp
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x45a73f
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x45a738
test edi, edi
je 0x45a738
mov ecx, ebp
mov esi, eax
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
push ebp
push ebx
call fcn.00459f10
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x46d1e2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4b5790
cmp edx, dword [eax]
je 0x46d204
add eax, 8
inc ecx
cmp eax, 0x4b5820
jl 0x46d1f5
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4b5790]
jne 0x46d332
mov eax, dword [0x4b8518]
cmp eax, 1
je 0x46d30c
test eax, eax
jne 0x46d235
cmp dword [0x4b2f64], 1
je 0x46d30c
cmp edx, 0xfc
je 0x46d332
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46d26c
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0046c1d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00466010
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x46d2af
lea eax, [ebp - 0x1a4]
push eax
call fcn.00466010
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x49b310
push edi
call fcn.0046f070
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0046c1d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0046c1e0
lea eax, [ebp - 0xa0]
push 0x49b2f0
push eax
call fcn.0046c1e0
push dword [esi + 0x4b5794]
lea eax, [ebp - 0xa0]
push eax
call fcn.0046c1e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0046f8f5
add esp, 0x2c
pop edi
jmp 0x46d332
lea eax, [ebp + 8]
lea esi, [esi + 0x4b5794]
push 0
push eax
push dword [esi]
call fcn.00466010
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 0x475390
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.004647d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x47545b
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 0x47545b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x47540e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x475419
or bh, 8
and edi, 0x8000000
je 0x475434
mov eax, dword [0x4b9cdc]
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 0x47545b
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 0x475830
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 0x47585b
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 0x47587f
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 0x47589a
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 0x47972b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x479763
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.0047c59a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047c572
jmp 0x47976f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x479773
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x4b7e40
mov ecx, edi
call fcn.0047c27c
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x4797c6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4797d9
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0047c59a
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0047c572
jmp 0x4797d9
mov ecx, esi
call fcn.0047b58f
test eax, eax
je 0x4797d9
push edi
mov ecx, eax
call fcn.0047972b
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x47ae68
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 0x47aeaa
call fcn.004834fa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47aeaa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47aea1
xor eax, eax
jmp 0x47aeb2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047aeb8
pop edi
pop esi
pop ebx
ret 4

Function at 0x47c95f
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 0x47c981
cmp dword [edi + 0x3c], 0
jne 0x47c981
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004834fa
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.0047c9ae
pop edi
pop esi
pop ebx
ret 8

Function at 0x481c50
Capabilities:
Create http request

Disassembly:
mov eax, 0x490550
call fcn.004657d8
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x481c88
call fcn.004834fa
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_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x481cad
push eax
push dword [esi + 4]
call fcn.00482cb8
jmp 0x481cb9
push esi
push eax
mov ecx, 0x4b7fd8
call fcn.00481cca
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x481fc3
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x4905c3
call fcn.004657d8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0047de67
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x4b20c8]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.0047c27c
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.0047c27c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

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

Disassembly:
mov eax, 0x4905eb
call fcn.004657d8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0047de67
mov eax, dword [0x4b20c8]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x4b7fd8
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.00481cca
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.0047c27c
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.0045cbff
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0047c22c
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.0047c0f3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x408c80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46879b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045d060
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408d02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045ae0d
mov eax, dword [eax]
push 0x4961d0
push eax
call fcn.0044d294
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045d2eb
test bl, bl
je 0x408d02
push 0x4961d0
lea ecx, [esp + 0xc]
call fcn.0045d67b
push 0x499d44
lea ecx, [esp + 0xc]
call fcn.0045d67b
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x408d3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045d2eb
jmp 0x408e09
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x408dc2
lea edx, [esp + 0x7c]
push 0x499d40
push edx
call fcn.0044d294
add esp, 8
test eax, eax
je 0x408dc2
lea eax, [esp + 0x7c]
push 0x499d3c
push eax
call fcn.0044d294
add esp, 8
test eax, eax
je 0x408dc2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408d52
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045d2eb
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x409600
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409662
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc