joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a900
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4e1131
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x38]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x38]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x10], esi
call fcn.0042e040
lea edi, [esi + 0x10]
push 0xa
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.004b6207
mov dword [edi], method.CObList.virtual_0
lea edi, [esi + 0x2c]
push 0xa
mov ecx, edi
mov byte [esp + 0x34], 1
call fcn.004b6207
mov dword [edi], method.CObList.virtual_0
lea ecx, [esi + 0x54]
mov byte [esp + 0x30], 2
call fcn.004b66cc
push 0xa
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 3
mov dword [esi], 0x4ef00c
call fcn.004b6207
mov dword [esp + 0xc], 0x4ece58
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push edx
mov byte [esp + 0x34], 4
call fcn.004b6311
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
push eax
push ecx
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, esi
call fcn.0043aab0
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 3
call fcn.004b6266
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x18

Function at 0x43aa00
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4e1169
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x1c]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x10], esi
call fcn.0042e040
lea edi, [esi + 0x10]
push 0xa
mov ecx, edi
mov dword [esp + 0x18], 0
call fcn.004b6207
mov dword [edi], method.CObList.virtual_0
lea edi, [esi + 0x2c]
push 0xa
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.004b6207
mov dword [edi], method.CObList.virtual_0
lea ecx, [esi + 0x54]
mov byte [esp + 0x14], 2
call fcn.004b66cc
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x24], 3
mov dword [esi], 0x4ef00c
call fcn.0043aab0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18

Function at 0x43c0c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
mov edi, ecx
push 0x10
call esi
xor ebx, ebx
push 0x11
test ax, ax
setl bl
call esi
xor ecx, ecx
push 0x12
test ax, ax
setl cl
mov ebp, ecx
call esi
mov ecx, dword [edi + 0x74]
xor edx, edx
test ax, ax
setl dl
test ecx, ecx
mov eax, edx
je 0x43c130
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x28]
push ebp
mov esi, dword [edx]
push ebx
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x2c]
push eax
push esi
mov edi, dword [esi]
push edx
lea edx, [esp + 0x28]
mov dword [esp + 0x2c], edi
push edx
call fcn.0045dca0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
Function at 0x43c750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e1310
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
call fcn.004d3817
mov esi, dword [eax + 4]
mov eax, dword [0x510fe4]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
lea eax, [esp + 0xc]
push 0x50b880
push eax
mov dword [esp + 0x2c], 0
call fcn.004b4789
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
add esp, 0x10
push ecx
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.004d4956
mov eax, dword [esp + 8]
pop esi
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x43c7f9
lea ecx, [esp + 4]
mov byte [esp + 0x18], 0
call fcn.004bb422
lea ecx, [esp]
mov dword [esp + 0x18], 0xffffffff
call fcn.004bb422
fld qword [0x4e7b30]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea edx, [esp + 8]
push edx
push 0x5093b4
push eax
call fcn.004a3669
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
add esp, 0xc
lea ecx, [esp + 4]
mov dword [esp + 0x28], eax
mov byte [esp + 0x18], 0
call fcn.004bb422
lea ecx, [esp]
mov dword [esp + 0x18], 0xffffffff
call fcn.004bb422
mov ecx, dword [esp + 0x10]
fld qword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x457a90
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x4e28b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push esi
mov esi, ecx
push 0
call fcn.0045bfe0
push 0x1000
push 0x2002
lea ecx, [esp + 0xc]
call fcn.004d2ae6
push 0
push 0x1000
lea eax, [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x94], 0
call fcn.004c08f7
mov ecx, dword [esi + 0x1f0]
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x88], 1
mov edx, dword [ecx]
call dword [edx + 8]
lea ecx, [esp + 0x38]
call fcn.004c0a5b
mov ecx, esi
call fcn.00457720
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop esi
jne 0x457b2e
push 0xffffffffffffffff
push 0x30
push 0x11e
call fcn.004c876d
jmp 0x457b7b
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x457b46
push 0xffffffffffffffff
push 0x30
push 0x11f
call fcn.004c876d
lea ecx, [esp]
call fcn.004d2c0b
mov edx, dword [0x5146b0]
push eax
and edx, 0xffff
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x457b75
push 0xffffffffffffffff
push 0x30
push 0x120
call fcn.004c876d
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 0
call fcn.004c09d3
lea ecx, [esp]
mov dword [esp + 0x80], 0xffffffff
call fcn.004d2b2c
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
add esp, 0x84
ret
Function at 0x462960
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push eax
call fcn.004c5385
cmp eax, 0xffffffff
jne 0x462982
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x10
ret 4
mov eax, dword [esi + 0x84]
xor ebx, ebx
cmp eax, ebx
je 0x462a8f
push 0x3e8
lea ecx, [esp + 0x10]
push esi
lea ebp, [esi + 0xdc]
push ecx
push 0x5001404b
push ebx
mov ecx, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.004cd273
test eax, eax
jne 0x4629d0
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret 4
push 0x3e9
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esi + 0x148]
push 0x5001404b
push ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ecx
call fcn.004cd273
test eax, eax
jne 0x462a10
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret 4
mov byte [esi + 0x145], bl
mov byte [esi + 0x1b1], bl
mov eax, dword [esi + 0x1b4]
push edi
push ebx
mov edi, 0xd
mov eax, dword [eax + 4]
push ebx
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov edx, dword [ebp]
mov ecx, edi
push ecx
push edi
push eax
mov ecx, ebp
call dword [edx + 0xbc]
lea edi, [esi + 0x1b8]
push ebx
push esi
mov ecx, edi
call fcn.004b59a4
mov edx, dword [esi + 0x1d4]
push ebx
push 1
push 0x401
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push str.Hide_Docked_Window
push ebp
mov ecx, edi
call fcn.004b5b6f
mov eax, dword [esp + 0x24]
push ebx
push ebx
push str.Minimize_Docked_Window
push eax
mov ecx, edi
call fcn.004b5b6f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4

Function at 0x463280
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4e3708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x46332a
mov eax, dword [0x510fe4]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004bb852
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004bb8a1
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004bb7fe
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x463311
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x463311
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x64], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004bb422
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x463340
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 0x4633a2
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

Function at 0x4635b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4636a2
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocStringLen
mov ecx, edi
call fcn.00463340
test eax, eax
jne 0x4636a2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push SysReAllocStringLen
mov ecx, edi
call fcn.00463340
test eax, eax
jne 0x4636a2
lea edx, [esp + 0x10]
push 0x50d1bc
push edx
call fcn.004a5350
mov esi, eax
add esp, 8
test esi, esi
jne 0x463673
lea eax, [esp + 0x10]
push 0x50d1b8
push eax
call fcn.004a5350
mov esi, eax
add esp, 8
test esi, esi
jne 0x463673
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x463676
mov byte [esi], 0
push 0x509408
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x464a30
Capabilities:
Enumerate pe sections
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e3980
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.004661e0
add esp, 8
cmp eax, ebp
je 0x464c17
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], 0x4e78f4
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], ebp
call fcn.004bff8a
call fcn.004d3817
mov ebx, dword [eax + 0xc]
cmp ebx, ebp
je 0x464bfe
push 0xf1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
je 0x464bfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, ebp
je 0x464bfe
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 0x464bd8
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.004b58c2
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 0x464b9e
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 0x464b80
lea ecx, [esp + 0x1c]
lea ebp, [esi + 0x40]
push ecx
push edi
mov ecx, ebp
call fcn.004b7294
test eax, eax
je 0x464b6e
mov eax, dword [esp + 0x1c]
test eax, eax
jge 0x464b7c
push edi
mov ecx, ebp
call fcn.004b72b6
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 0x464b45
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 0x2c]
lea ecx, [esi + 0x24]
push edx
push eax
call fcn.004b672c
lea ecx, [esp + 0x20]
call fcn.004bffb7
mov dword [esp + 0x20], vtable.CGdiObject.0
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 3
call fcn.004bffe1
mov eax, 1
jmp 0x464c19
cmp dword [esi + 0x9c], eax
jne 0x464bec
cmp dword [esi + 0xa0], ecx
je 0x464b04
mov dword [esp + 0x20], vtable.CGdiObject.0
mov dword [esp + 0x30], 2
jmp 0x464c0e
mov dword [esp + 0x20], vtable.CGdiObject.0
mov dword [esp + 0x30], 1
lea ecx, [esp + 0x20]
call fcn.004bffe1
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 0x465e50
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e3a98
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x60]
mov esi, ecx
push 9
mov ecx, edi
call fcn.004bb8e9
xor ebx, ebx
cmp eax, ebx
jle 0x465eab
push eax
lea eax, [esp + 0x64]
push eax
mov ecx, edi
call fcn.004b4369
push eax
mov ecx, edi
mov dword [esp + 0x5c], ebx
call fcn.004bb55b
lea ecx, [esp + 0x60]
mov dword [esp + 0x58], 0xffffffff
call fcn.004bb422
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x60]
push ecx
push edx
lea ecx, [esi + 0x5c]
call fcn.004b7294
mov esi, eax
mov eax, dword [esp + 0x60]
neg esi
sbb esi, esi
and esi, eax
je 0x465f81
mov ebp, dword [sym.imp.USER32.dll_MapVirtualKeyA]
test ebx, ebx
mov eax, 0x50d278
jne 0x465ee3
mov eax, 0x50d274
push eax
mov ecx, edi
call fcn.004bb7fe
test byte [esi], 0x10
je 0x465efc
push str.Alt
mov ecx, edi
call fcn.004bb7fe
test byte [esi], 8
je 0x465f0d
push str.Ctrl
mov ecx, edi
call fcn.004bb7fe
test byte [esi], 4
je 0x465f1e
push str.Shift
mov ecx, edi
call fcn.004bb7fe
test byte [esi], 1
je 0x465f4d
xor eax, eax
push 0
mov ax, word [esi + 2]
push eax
call ebp
lea ecx, [esp + 0x10]
push 0x40
shl eax, 0x10
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea edx, [esp + 0x10]
mov ecx, edi
push edx
call fcn.004bb7fe
jmp 0x465f58
mov al, byte [esi + 2]
mov ecx, edi
push eax
call fcn.004bb825
mov ax, word [esi + 4]
mov ebx, 1
test ax, ax
je 0x465f81
and eax, 0xffff
lea ecx, [eax*4]
sub ecx, eax
neg ecx
lea esi, [esi + ecx*2]
test esi, esi
jne 0x465ed5
mov ecx, dword [esp + 0x50]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 8

Function at 0x47c2b0
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x200
lea eax, [esp + 0x208]
lea edx, [esp]
push eax
push ecx
push edx
call fcn.004a519f
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x200
ret
Function at 0x4b0831
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x512988
cmp edx, dword [eax]
je 0x4b0853
add eax, 8
inc ecx
cmp eax, 0x512a18
jl 0x4b0844
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x512988]
jne 0x4b0981
mov eax, dword [0x51a9c8]
cmp eax, 1
je 0x4b095b
test eax, eax
jne 0x4b0884
cmp dword [0x511c4c], 1
je 0x4b095b
cmp edx, 0xfc
je 0x4b0981
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b08bb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004ae930
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004a5fc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4b08fe
lea eax, [ebp - 0x1a4]
push eax
call fcn.004a5fc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5095ec
push edi
call fcn.004a53d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004ae930
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004ae940
lea eax, [ebp - 0xa0]
push 0x4f7ec8
push eax
call fcn.004ae940
push dword [esi + 0x51298c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004ae940
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004b2298
add esp, 0x2c
pop edi
jmp 0x4b0981
lea eax, [ebp + 8]
lea esi, [esi + 0x51298c]
push 0
push eax
push dword [esi]
call fcn.004a5fc0
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 0x4b846d
Capabilities:
Get graphical window text

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

Function at 0x4ba0df
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 0x4ba121
call fcn.004d3817
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ba121
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ba118
xor eax, eax
jmp 0x4ba129
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ba12f
pop edi
pop esi
pop ebx
ret 4
Function at 0x4bbb9b
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 0x4bbbbd
cmp dword [edi + 0x3c], 0
jne 0x4bbbbd
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004d3817
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.004bbbea
pop edi
pop esi
pop ebx
ret 8

Function at 0x4bbc38
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004d3817
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4bbc69
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004bbc7c
pop edi
pop esi
pop ebx
ret 8
Function at 0x4c3da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebp
push esi
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4c3dbd
pop edi
pop esi
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jne 0x4c3dd4
pop edi
pop esi
pop ebp
ret 8
mov edi, dword [esi]
add edi, 0x40
push edi
call fcn.004a48d7
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4c3dee
pop edi
pop esi
pop ebp
ret 8
mov ecx, edi
mov edi, ebp
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x18], 0x10
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov edi, ebp
add edi, eax
mov ecx, dword [edi]
xor esi, esi
mov eax, 0x4efd38
cmp ecx, dword [eax]
je 0x4c3e2a
add eax, 8
inc esi
cmp eax, 0x4efd58
jl 0x4c3e19
jmp 0x4c3e69
mov eax, dword [esi*8 + 0x4efd3c]
push eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esi*8 + 0x4efd3c]
xor ebx, ebx
push ecx
mov bl, ah
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esi*8 + 0x4efd3c]
mov bh, al
push edx
shl ebx, 8
call dword [sym.imp.USER32.dll_GetSysColor]
shr eax, 0x10
and eax, 0xff
or ebx, eax
mov dword [edi], ebx
mov eax, dword [esp + 0x18]
add edi, 4
dec eax
mov dword [esp + 0x18], eax
jne 0x4c3e10
mov esi, dword [ebp + 4]
mov edi, dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_GetDC]
push edi
push esi
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
mov eax, dword [esp + 0x18]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
je 0x4c3efd
mov ecx, dword [0x51456c]
push ebx
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov cl, byte [ebp + 0xe]
mov edx, 1
shl edx, cl
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
push 0xcc0020
push 0
push ebp
lea ecx, [eax + edx*4 + 0x28]
mov edx, dword [0x51456c]
push ecx
push edi
push esi
push 0
push 0
push edi
push esi
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov ecx, dword [0x51456c]
mov eax, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call fcn.004a3dce
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x4d5a62
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 0x4d5a90
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d5aae
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d59c8
jmp 0x4d5aae
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d5aae
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d59c8
test edi, edi
mov eax, edi
jne 0x4d5a98
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4d6a54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x4d6b04
mov ecx, 0x51a994
call fcn.004d5b4f
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x4d6ae2
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4d6ac0
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 0x4d6ac0
push ebx
push edi
push eax
call fcn.004be5da
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.004bb5ab
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