joyce8/EMBER2024-capa huggingface dataset:
Function at 0x579364
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5794e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
xor eax, eax
push ebp
push 0x57947d
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, 1
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0057b054
test al, al
jne 0x5793c1
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5794c0
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x10
call fcn.004048c8
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x44
call fcn.004048c8
mov dword [ebp - 0x60], 0x44
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00406ddc
lea edx, [ebp - 0x64]
mov eax, esi
call fcn.00413724
cmp dword [ebp - 0x64], 0
je 0x57942d
push 0x579500
push dword [ebp - 0xc]
push 0x579500
push 0x579510
lea edx, [ebp - 0x68]
mov eax, esi
call fcn.00413724
push dword [ebp - 0x68]
lea eax, [ebp - 4]
mov edx, 5
call fcn.00407340
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406e14
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x579471
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x579473
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5794c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5794ea
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.00406d80
lea eax, [ebp - 4]
call fcn.00406d78
ret
Function at 0x5795a8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x57972e
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x5796d3
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x3c
call fcn.004048c8
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], 0x40
mov eax, 0x579744
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 8]
call fcn.00406e14
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
call fcn.00406e14
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 1
lea eax, [ebp - 0x50]
push eax
call sub.shell32.dll_ShellExecuteExW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x57968b
cmp byte [ebp + 8], 0
je 0x5796c9
mov eax, dword [0x5a4f54]
mov eax, dword [eax]
call fcn.004fa200
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 0x14], 0x103
jne 0x579673
mov eax, dword [0x5a4f54]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
je 0x579641
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
jmp 0x5796c9
mov byte [ebp - 9], 0
xor edx, edx
push ebp
push 0x5796ac
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.0041bdd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5796c9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x579718
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x579735
lea eax, [ebp - 0x54]
call fcn.00406d78
ret
Function at 0x57cd84
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x268], edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x57cf5b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
mov ecx, 0x57cf78
mov edx, dword [ebp - 4]
call fcn.0040725c
mov eax, dword [ebp - 0x25c]
call fcn.00406e14
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x57cf3d
xor eax, eax
push ebp
push 0x57cf36
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x57ceb4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5a4f54]
mov eax, dword [eax]
call fcn.004fa200
test dword [ebp - 0x258], 0x10
jbe 0x57ce77
cmp word [ebp - 0x22c], 0x2e
je 0x57ce77
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.00406f88
push dword [ebp - 0x264]
push 0x57cf88
lea eax, [ebp - 0x260]
mov edx, 3
call fcn.00407340
mov eax, dword [ebp - 0x260]
call fcn.0057cd84
pop ecx
jmp 0x57ce92
mov eax, dword [ebp - 0x23c]
mov edx, eax
neg eax
add eax, dword [ebp - 0x238]
xor edx, edx
mov ecx, dword [ebp + 8]
add dword [ecx - 8], eax
adc dword [ecx - 4], edx
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x57ce0f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57cf19
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57cf3d
cmp dword [ebp - 8], 0xffffffff
je 0x57cf35
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57cf62
lea eax, [ebp - 0x268]
mov edx, 4
call fcn.00406d80
ret

Function at 0x57e9a4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x57eac8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x57ea5c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x26]
xor ecx, ecx
mov edx, 0x1e
call fcn.004048c8
lea eax, [ebp - 0x226]
xor ecx, ecx
mov edx, 0x200
call fcn.004048c8
lea eax, [ebp - 0x226]
mov edx, dword [ebp - 8]
call fcn.004156e4
xor eax, eax
mov dword [ebp - 0x26], eax
lea eax, [ebp - 0x226]
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x22], 3
mov word [ebp - 0x16], 0x10
or word [ebp - 0x16], 4
lea eax, [ebp - 0x26]
push eax
call sub.shell32.dll_SHFileOperationW
test eax, eax
sete bl
test bl, bl
je 0x57ea4a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0057c46c
test al, al
jne 0x57ea4e
xor eax, eax
jmp 0x57ea50
mov al, 1
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57eaaf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57eacf
lea eax, [ebp - 0x22c]
call fcn.00406d78
ret
Function at 0x58aaf0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push 0
mov eax, dword [0x5a4f54]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x5a4f54]
mov eax, dword [eax]
mov ebx, dword [eax + 0x170]
push ebx
call sub.user32.dll_GetWindowLongW
and eax, 0xfffbffff
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x5a4f54]
push ebx
call sub.user32.dll_SetWindowLongW
push 5
mov eax, dword [0x5a4f54]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x401040
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [0x40337c], eax
test eax, eax
jne 0x40107e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_OpenSCManagerA__d_n
call fcn.00401010
add esp, 8
jmp 0x40110c
push esi
push 0xf01ff
push str.PacketEditorKernel
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [0x403378], eax
test eax, eax
jne 0x4010c9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
je 0x4010ba
call esi
push eax
push str.Failed_to_OpenService__d_n
call fcn.00401010
add esp, 8
jmp 0x40110b
push str.Service_does_not_exist._n
call fcn.00401010
add esp, 4
jmp 0x4010fe
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
push dword [0x403378]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push dword [0x403378]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [0x40337c]
call esi
cmp byte [ebp - 0x21], 0
je 0x40110b
push str.Driver_unloaded_n
call fcn.00401010
add esp, 4
pop esi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00401128
mov esp, ebp
pop ebp
ret
Function at 0x401120
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create process on windows
Log keystrokes via polling
Read .ini file
Terminate process

Disassembly:
sub esp, 0x108
push ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x82
push 0x403518
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov al, byte [0x403518]
mov edx, dword [0x40361c]
test al, al
je 0x40116d
mov ecx, 0x403518
cmp al, 0x5c
jne 0x40115f
lea edx, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x401158
mov dword [0x40361c], edx
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4012f3
mov eax, dword [0x40361c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..cfg_setting.cfg
push 0x400
push 0x403118
push 0x40208d
push str.File
push eax
call esi
mov ecx, dword [0x40361c]
push str..cfg_setting.cfg
push 0x400
push 0x403620
push 0x40208d
push 0x4020a0
push ecx
call esi
push str..cfg_setting.cfg
push 4
lea edx, [esp + 0x14]
push edx
push 0x40208d
push str.edit_permission
push 0x4020bc
call esi
push 0x4020c0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
je 0x401233
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x401233
push 0
push section..text
push 0
push 0x403008
push edi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
jmp 0x4012f2
mov al, byte [0x403118]
mov dl, byte [0x403620]
test al, al
jne 0x40127e
test dl, dl
jne 0x40127e
test esi, esi
je 0x40127e
mov ecx, dword [0x40361c]
push ecx
lea edx, [esp + 0x14]
push str.Launch_application_is_not_set._r_nSetting:_Shift_key___s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x40361c]
add esp, 0xc
push 0x1010
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4012f2
xor ecx, ecx
test al, al
je 0x401294
test dl, dl
je 0x40128d
mov ecx, 0x403620
mov eax, 0x403118
jmp 0x401299
mov eax, 0x403620
push 5
push 0
push ecx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x4012e7
push 0x403620
push 0x403118
push eax
lea edx, [esp + 0x1c]
push str.Failed_to_run_Error_code:_d_._n_nAutoRunFile:_s_nParameter:_s_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x40361c]
add esp, 0x14
push 0x1010
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
test ebx, ebx
je 0x4012fe
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402559
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
xor eax, eax
mov edx, ecx
dec ecx
test edx, edx
je 0x402591
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
movzx edx, ax
shr edx, 8
xor edx, edi
xor ebx, ebx
mov bh, al
mov ax, word [edx*2 + 0x4422dc]
xor ax, bx
inc ecx
dec esi
jne 0x402570
pop edi
pop esi
pop ebx
ret

Function at 0x4049d6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0x3c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [eax + ebx + 0x78]
xor eax, eax
push eax
push eax
push 0x28e
push eax
add esi, ebx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x404a1b
call dword [sym.imp.USER32.dll_InSendMessage]
test eax, eax
je 0x404a45
xor eax, eax
push eax
push eax
push 0x41
push eax
call edi
jmp 0x404a45
xor eax, eax
push eax
push eax
push eax
push eax
push 0xf
push 0x311
push 0x36c
push 0x43
push 0x800000
push str.t6786tgdgfdfgdhgfhgd
push str.csfdghsfghdqf
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov eax, dword [esi + 0x20]
mov edi, dword [esi + 0x1c]
and dword [ebp - 4], 0
add eax, ebx
add edi, ebx
mov ebx, dword [esi + 0x24]
add ebx, dword [ebp + 8]
cmp dword [esi + 0x18], 0
jbe 0x404a8c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push dword [0x442564]
mov eax, dword [eax]
add eax, dword [ebp + 8]
push eax
call fcn.004049bc
cmp eax, dword [ebp + 0xc]
pop ecx
pop ecx
je 0x404a93
inc dword [ebp - 4]
add dword [ebp - 8], 4
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x404a62
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
movzx eax, word [ebx + eax*2]
mov eax, dword [edi + eax*4]
add eax, dword [ebp + 8]
jmp 0x404a8e
Function at 0x404aa2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
xor ecx, ecx
mov esi, 0x100
mov eax, ecx
mov byte [ebp + ecx - 0x104], cl
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
inc ecx
cmp ecx, esi
mov al, byte [edx + eax]
mov byte [ebp + ecx - 0x205], al
jl 0x404aba
movzx edx, byte [ebp + edi - 0x204]
movzx eax, byte [ebp + edi - 0x104]
mov ebx, dword [ebp - 4]
lea ecx, [ebp + edi - 0x104]
add ebx, edx
add eax, ebx
mov ebx, esi
cdq
idiv ebx
mov bl, byte [ecx]
inc edi
cmp edi, esi
mov dword [ebp - 4], edx
lea eax, [ebp + edx - 0x104]
mov dl, byte [ebp + edx - 0x104]
mov byte [eax], bl
mov byte [ecx], dl
jl 0x404ad9
mov edx, dword [ebp + 0xc]
and dword [ebp - 4], 0
test edx, edx
jle 0x404bfd
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
sub eax, ecx
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
lea eax, [edi + 1]
mov ecx, esi
cdq
idiv ecx
mov ebx, esi
mov edi, edx
movzx eax, byte [ebp + edi - 0x104]
add eax, dword [ebp - 4]
lea ecx, [ebp + edi - 0x104]
cdq
idiv ebx
mov bl, byte [ecx]
mov dword [ebp - 4], edx
lea eax, [ebp + edx - 0x104]
mov dl, byte [ebp + edx - 0x104]
mov byte [eax], bl
mov byte [ecx], dl
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
movzx eax, byte [eax]
movzx ecx, dl
add eax, ecx
mov ecx, esi
cdq
idiv ecx
xor eax, eax
push eax
push eax
push 0x28e
push eax
mov dword [ebp + 0x18], edx
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x404bb1
call dword [sym.imp.USER32.dll_InSendMessage]
test eax, eax
je 0x404bdb
xor eax, eax
push eax
push eax
push 0x41
push eax
call ebx
jmp 0x404bdb
xor eax, eax
push eax
push eax
push eax
push eax
push 0xf
push 0x311
push 0x36c
push 0x43
push 0x800000
push str.t6786tgdgfdfgdhgfhgd
push str.csfdghsfghdqf
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov cl, byte [ecx + eax]
xor cl, byte [ebp + edx - 0x104]
mov byte [eax], cl
inc eax
dec dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
jne 0x404b38
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419805
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x444fa8
cmp edx, dword [eax]
je 0x419827
add eax, 8
inc ecx
cmp eax, 0x445038
jl 0x419818
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x444fa8]
jne 0x419955
mov eax, dword [0x447a40]
cmp eax, 1
je 0x41992f
test eax, eax
jne 0x419858
cmp dword [0x4443e4], 1
je 0x41992f
cmp edx, 0xfc
je 0x419955
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41988f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00419960
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00413850
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4198d2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00413850
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x438f74
push edi
call fcn.0041b7b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00419960
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00419970
lea eax, [ebp - 0xa0]
push 0x438f54
push eax
call fcn.00419970
push dword [esi + 0x444fac]
lea eax, [ebp - 0xa0]
push eax
call fcn.00419970
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041b8f0
add esp, 0x2c
pop edi
jmp 0x419955
lea eax, [ebp + 8]
lea esi, [esi + 0x444fac]
push 0
push eax
push dword [esi]
call fcn.00413850
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 0x423200
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.00412c90
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4232cb
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 0x4232cb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42327e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x423289
or bh, 8
and edi, 0x8000000
je 0x4232a4
mov eax, dword [0x44965c]
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 0x4232cb
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 0x4236a0
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 0x4236cb
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 0x4236ef
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 0x42370a
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 0x429601
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 0x429643
call fcn.0042ed5e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x429643
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42963a
xor eax, eax
jmp 0x42964b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00429651
pop edi
pop esi
pop ebx
ret 4

Function at 0x42f740
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 0x42f76e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42f78c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042f6a6
jmp 0x42f78c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42f78c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042f6a6
test edi, edi
mov eax, edi
jne 0x42f776
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8