joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x454140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
xor eax, eax
push edi
mov edi, ecx
mov dword [esp + 0xc], vtable.CMenu.0
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
call fcn.004427cd
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadMenuA]
push eax
lea ecx, [esp + 0x10]
call fcn.0042ba54
mov eax, dword [esp + 0x10]
push 1
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.0042ba21
mov ecx, dword [esp + 0x2c]
mov ebx, eax
mov esi, ecx
call fcn.00429005
test eax, 0x40000000
je 0x4084a8
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esi + 0x1c]
push ecx
call ebp
push eax
call fcn.004263b3
mov esi, eax
mov ecx, esi
call fcn.00429005
test eax, 0x40000000
jne 0x40848b
pop ebp
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push ecx
push edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
push esi
push eax
push ecx
push 0
mov ecx, ebx
call fcn.00426e5c
mov dword [esp + 0xc], vtable.CMenu.0
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 1
call fcn.0042baab
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc

Function at 0x4158dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x471660
cmp edx, dword [eax]
je 0x4158ff
add eax, 8
inc ecx
cmp eax, 0x4716f0
jl 0x4158f0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x471660]
jne 0x415a2d
mov eax, dword [0x4743c8]
cmp eax, 1
je 0x415a07
test eax, eax
jne 0x415930
cmp dword [0x470e3c], 1
je 0x415a07
cmp edx, 0xfc
je 0x415a2d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x415967
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004175a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00416930
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4159aa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00416930
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45f910
push edi
call fcn.00418b00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004175a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004175b0
lea eax, [ebp - 0xa0]
push 0x46f254
push eax
call fcn.004175b0
push dword [esi + 0x471664]
lea eax, [ebp - 0xa0]
push eax
call fcn.004175b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00418c40
add esp, 0x2c
pop edi
jmp 0x415a2d
lea eax, [ebp + 8]
lea esi, [esi + 0x471664]
push 0
push eax
push dword [esi]
call fcn.00416930
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 0x41be70
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call sym.SingleComm.exe_public:_void___thiscall_CSerialPort::Purge_void_
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
je 0x41bebd
mov ecx, dword [eax + 0x28]
push ecx
call ebx
mov edx, dword [esi + 8]
push 0xffffffffffffffff
mov eax, dword [edx + 0x28]
push eax
call edi
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41beb6
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41beea
mov eax, dword [eax + 0x28]
push eax
call ebx
mov ecx, dword [esi + 0xc]
push 0xffffffffffffffff
mov edx, dword [ecx + 0x28]
push edx
call edi
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41bee3
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x41befa
push eax
call edi
mov esi, dword [esi + 0x18]
test esi, esi
je 0x41bf04
push esi
call edi
pop edi
pop esi
pop ebx
ret

Function at 0x41bf10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
xor eax, eax
push esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
push edi
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x14], eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea edi, [esi + 0x38]
mov dword [esp + 0x18], eax
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x10]
lea edx, [esp + 8]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esi + 0x14]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41bfc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41bfb9
mov eax, dword [esi + 4]
lea ecx, [esp + 0x20]
push 1
lea edx, [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41bfc5
push str.GetOverlappedResults___in_WriteFile__
mov ecx, esi
call sym.SingleComm.exe_private:_void___thiscall_CSerialPort::ProcessErrorMessage_char__
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
add esp, 0x14
ret
push str.WriteFile__
mov ecx, esi
call sym.SingleComm.exe_private:_void___thiscall_CSerialPort::ProcessErrorMessage_char__
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
add esp, 0x14
ret
Function at 0x41c010
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor eax, eax
push esi
mov dword [esp + 0xc], eax
push edi
mov dword [esp + 0x14], eax
mov esi, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0
push eax
push eax
push 1
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea edi, [esi + 0x20]
mov dword [esp + 0x1c], eax
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c0a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41c09a
mov edx, dword [esi + 4]
lea eax, [esp + 8]
push 1
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41c0a6
push str.GetOverlappedResults___in_ReadFile__
jmp 0x41c09f
push str.ReadFile__
mov ecx, esi
call sym.SingleComm.exe_private:_void___thiscall_CSerialPort::ProcessErrorMessage_char__
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x18
ret 8
Function at 0x41c6a0
Capabilities:
Enumerate pe sections
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x456850
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
xor ebp, ebp
and edi, 0xffff
push ebp
mov esi, ecx
push edi
call fcn.0041dcc0
add esp, 8
cmp eax, ebp
je 0x41c887
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], 0x460334
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], ebp
call fcn.0042d9c9
call fcn.004427cd
mov ebx, dword [eax + 0xc]
cmp ebx, ebp
je 0x41c86e
push 0xf1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
je 0x41c86e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, ebp
je 0x41c86e
mov edx, dword [esi + 0x9c]
xor ecx, ecx
mov cx, word [ebx + 4]
xor eax, eax
mov ax, word [ebx + 2]
cmp edx, ebp
jne 0x41c848
push 0xa
push ebp
mov dword [esi + 0x9c], eax
lea edi, [eax + 4]
push 1
mov dword [esi + 0xa0], ecx
lea edx, [ecx + 4]
push ecx
mov dword [esi + 0xa4], edi
push eax
lea ecx, [esi + 0x38]
mov dword [esi + 0xa8], edx
call fcn.00423b7c
mov eax, dword [esi + 0x3c]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
push 0xf
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x20]
neg ecx
sbb ecx, ecx
push eax
and ecx, edi
push ecx
mov ecx, dword [esi + 0x3c]
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
cmp word [ebx + 6], bp
mov dword [esp + 0x18], ebp
jbe 0x41c80e
lea edx, [ebx + 8]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
xor edi, edi
mov di, word [eax]
test edi, edi
jbe 0x41c7f0
lea ecx, [esp + 0x1c]
lea ebp, [esi + 0x40]
push ecx
push edi
mov ecx, ebp
call fcn.0042546e
test eax, eax
je 0x41c7de
mov eax, dword [esp + 0x1c]
test eax, eax
jge 0x41c7ec
push edi
mov ecx, ebp
call fcn.00425490
mov edx, dword [esp + 0x10]
mov dword [eax], edx
inc dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
xor ecx, ecx
inc eax
mov cx, word [ebx + 6]
add edi, 2
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
jl 0x41c7b5
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 0x2c]
lea ecx, [esi + 0x24]
push edx
push eax
call fcn.0042493d
lea ecx, [esp + 0x20]
call fcn.0042d9f6
mov dword [esp + 0x20], vtable.CGdiObject.0
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 3
call fcn.0042da20
mov eax, 1
jmp 0x41c889
cmp dword [esi + 0x9c], eax
jne 0x41c85c
cmp dword [esi + 0xa0], ecx
je 0x41c774
mov dword [esp + 0x20], vtable.CGdiObject.0
mov dword [esp + 0x30], 2
jmp 0x41c87e
mov dword [esp + 0x20], vtable.CGdiObject.0
mov dword [esp + 0x30], 1
lea ecx, [esp + 0x20]
call fcn.0042da20
xor eax, eax
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x41e5f0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x456ad8
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
push 2
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov dword [esp + 8], 0xffffffff
lea ecx, [esp + 0x10]
jae 0x41e646
call fcn.00429adc
xor al, al
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 4
call fcn.00429adc
mov ecx, dword [esp]
mov al, 1
mov dword fs:[0], ecx
add esp, 0xc
ret 4
Function at 0x421b50
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.00412200
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x421c1b
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 0x421c1b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x421bce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x421bd9
or bh, 8
and edi, 0x8000000
je 0x421bf4
mov eax, dword [0x475b7c]
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 0x421c1b
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 0x421ff0
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 0x42201b
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 0x42203f
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 0x42205a
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 0x4256bb
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 0x4256dd
cmp dword [edi + 0x3c], 0
jne 0x4256dd
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004427cd
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.0042570a
pop edi
pop esi
pop ebx
ret 8

Function at 0x425a55
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x45417c
call fcn.00411428
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004427cd
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x425a94
call fcn.004427cd
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x425aa2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x425ab0
or eax, 0xffffffff
jmp 0x425b98
mov ecx, esi
call fcn.004259cb
mov dword [ebp - 0x14], eax
call fcn.004268b1
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x425ae7
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x425ae7
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00426865
push dword [ebp - 0x14]
call fcn.004263b3
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00425758
cmp eax, edi
je 0x425b5a
test byte [esi + 0x24], 0x10
je 0x425b28
push 4
mov ecx, esi
pop ebx
call fcn.00429005
test ah, 1
je 0x425b20
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0042898b
cmp dword [esi + 0x1c], edi
je 0x425b5a
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00429191
jmp 0x425b5a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x425b6e
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x425b87
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x425b87
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00425a05
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x426d62
Capabilities:
Get graphical window text

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

Function at 0x428734
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 0x428776
call fcn.004427cd
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 0x428776
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42876d
xor eax, eax
jmp 0x42877e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00428784
pop edi
pop esi
pop ebx
ret 4

Function at 0x4306ba
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x455b54
call fcn.00411428
push ecx
push ecx
push esi
push 0x10
call fcn.00425e50
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x430707
mov ecx, esi
call fcn.0042aa28
mov eax, dword [0x46f63c]
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CArchiveException.0
mov dword [esi + 8], eax
call fcn.00429c65
jmp 0x430709
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x4691e8
push eax
mov dword [ebp - 0x10], esi
call fcn.0041151b
pop esi

Function at 0x442fbe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004427cd
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x442ffb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x442ffb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x442fff
xor eax, eax
jmp 0x44307d
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00425e50
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x443037
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x443021
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0044316e
push ebx
mov edi, eax
call fcn.00425e79
test edi, edi
pop ecx
je 0x443079
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00442f37
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00443082
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x444faf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x44505f
mov ecx, 0x474358
call fcn.004448fd
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x44503d
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x44501b
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 0x44501b
push ebx
push edi
push eax
call fcn.0042be5f
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.00429c65
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 0x4033d0
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x200c
call fcn.0040c3c0
mov eax, dword [0x2b9cbdc]
mov ecx, dword [0x2b9cb50]
shr eax, 3
test eax, eax
jbe 0x403502
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x403420
cmp dword [0x2b9cbdc], 0x959
jne 0x4034e4
push 0
lea eax, [esp + 0x420]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0xc24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x1820]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x1420]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0x402d2c
push 0x402d3c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.00403220
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200c
ret