joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fa8
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x4376f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004309d6
mov dword [esi], vtable.CStatic.0
lea edi, [esi + 0x68]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [edi + 4], ebx
mov dword [edi], vtable.CBrush.0
push fcn.00409630
push 0x4022e0
lea ebp, [esi + 0x70]
push 2
push 8
push ebp
mov byte [esp + 0x30], 1
call fcn.0041e1a6
mov dword [esi + 0x80], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x3c], ebx
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 0x12
mov byte [esp + 0x20], 2
mov dword [esi], method.CStatic.virtual_0
mov dword [esi + 0x84], 0x400
call ebx
push 0xf
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
call ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
call ebx
push eax
mov ecx, edi
call fcn.004348b6
mov eax, dword [esi + 0x54]
push eax
call ebx
push eax
mov ecx, ebp
call fcn.004348b6
mov eax, dword [esi + 0x54]
push eax
call ebx
push eax
lea ecx, [esi + 0x78]
call fcn.004348b6
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402640
Capabilities:
Resume thread

Disassembly:
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x40264c
jmp fcn.0040c5c0
ret

Function at 0x402ed0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x437888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x6c]
test eax, eax
jne 0x402f7a
mov eax, dword [0x444aa0]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0042ef00
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0042ef4f
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0042eed9
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x402f61
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x402f61
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x6c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0042eb8a
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402f90
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 0x402ff2
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

Function at 0x403200
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebx
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4032e9
lea eax, [esp + 0x10]
push eax
push str..htm
push 0x80000000
call fcn.00402f90
add esp, 0xc
test eax, eax
jne 0x4032e9
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push 0x80000000
call fcn.00402f90
add esp, 0xc
test eax, eax
jne 0x4032e9
lea ecx, [esp + 0x10]
push str.__1_
push ecx
call fcn.0041e228
mov esi, eax
add esp, 8
test esi, esi
jne 0x4032c3
lea edx, [esp + 0x10]
push 0x4434f4
push edx
call fcn.0041e228
mov esi, eax
add esp, 8
test esi, esi
jne 0x4032c3
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4032c6
mov byte [esi], 0
push 0x4434f0
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x403de0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push edi
push eax
push 1
mov edi, ecx
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionScreen_Savers
push 0x80000001
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 3
mov dword [edi + 0x7c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403ebf
lea ecx, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Password_Delay
push ecx
mov dword [esp + 0x20], 4
call esi
test eax, eax
jne 0x403e53
mov edx, dword [esp + 0xc]
mov dword [edi + 0x74], edx
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.Mouse_Threshold
push eax
mov dword [esp + 0x20], 4
call esi
test eax, eax
jne 0x403e83
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x78], ecx
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.Mute_Sound
push edx
mov dword [esp + 0x20], 4
call esi
test eax, eax
pop esi
jne 0x403eb4
mov eax, dword [esp + 8]
mov dword [edi + 0x7c], eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x10
ret

Function at 0x404211
Capabilities:
Resume thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
test eax, eax
je 0x404261
mov dword [esp + 4], 0xffffffff
mov eax, dword [eax + 0x28]
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 4], 0x103
jne 0x40424c
mov edx, dword [esi + 0x44]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x40425a
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x4c]
push 0
push 4
push 0
push 0xfffffffffffffff1
push eax
push 0x4041e0
call fcn.0042f315
mov dword [esi + 0x44], eax
mov dword [eax + 0x24], 0
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ecx
ret

Function at 0x4042e0
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
test eax, eax
je 0x404333
mov dword [esp + 4], 0xffffffff
mov eax, dword [eax + 0x28]
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 4], 0x103
jne 0x40431e
mov edx, dword [esi + 0x44]
push 0x103
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x40432c
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x44], 0
pop esi
pop ecx
ret
Function at 0x405c80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x437c13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.004346c2
xor ebp, ebp
push 0x190
mov dword [esp + 0x30], ebp
call fcn.0042efb1
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebp
mov byte [esp + 0x2c], 1
je 0x405cd6
push ebp
mov ecx, eax
call fcn.0040e920
mov esi, eax
jmp 0x405cd8
xor esi, esi
mov ecx, dword [ebx + 4]
push esi
mov byte [esp + 0x30], 0
call fcn.0040c7f0
test eax, eax
jne 0x405d19
cmp esi, ebp
je 0x405cf6
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00434734
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
push esi
call fcn.004054a0
cmp esi, ebp
je 0x405d32
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
push edi
call fcn.0041de5f
cdq
mov ecx, 3
idiv ecx
inc edx
lea edi, [edx + edx*4]
add edi, edi
xor esi, esi
mov ecx, ebx
call fcn.00404e50
test eax, eax
jne 0x405da7
lea eax, [ebx + 0x54]
test eax, eax
je 0x405d5d
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x18]
push 0xcc0020
push esi
push ebp
push eax
push edi
push 1
push esi
push ebp
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebx + 0x30]
lea ecx, [ebx + 0x54]
add esi, edi
sub eax, ebp
test ecx, ecx
je 0x405d86
mov ecx, dword [ecx + 4]
push 0xcc0020
push esi
push eax
push ecx
push edi
push 1
push esi
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebx + 0x34]
add esi, edi
cmp esi, eax
jbe 0x405d48
mov ecx, dword [ebx + 0x30]
inc ebp
inc ecx
push ecx
push ebp
mov ecx, ebx
call fcn.004056b0
cmp ebp, dword [ebx + 0x30]
jbe 0x405d46
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00434734
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x405de0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x437c33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.004346c2
xor ebp, ebp
push 0x190
mov dword [esp + 0x30], ebp
call fcn.0042efb1
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebp
mov byte [esp + 0x2c], 1
je 0x405e36
push ebp
mov ecx, eax
call fcn.0040e920
mov esi, eax
jmp 0x405e38
xor esi, esi
mov ecx, dword [ebx + 4]
push esi
mov byte [esp + 0x30], 0
call fcn.0040c7f0
test eax, eax
jne 0x405e79
cmp esi, ebp
je 0x405e56
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00434734
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
push esi
call fcn.004054a0
cmp esi, ebp
je 0x405e92
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
push edi
call fcn.0041de5f
cdq
mov ecx, 3
idiv ecx
inc edx
lea edi, [edx + edx*4]
add edi, edi
xor esi, esi
mov ecx, ebx
call fcn.00404e50
test eax, eax
jne 0x405f07
lea eax, [ebx + 0x54]
test eax, eax
je 0x405ebd
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x18]
push 0xcc0020
push ebp
push esi
push eax
push 1
push edi
push ebp
push esi
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebx + 0x34]
lea ecx, [ebx + 0x54]
add esi, edi
sub eax, ebp
test ecx, ecx
je 0x405ee6
mov ecx, dword [ecx + 4]
push 0xcc0020
push eax
push esi
push ecx
push 1
push edi
push eax
mov eax, dword [esp + 0x34]
push esi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebx + 0x30]
add esi, edi
cmp esi, eax
jbe 0x405ea8
mov ecx, dword [ebx + 0x34]
inc ebp
inc ecx
push ecx
push ebp
mov ecx, ebx
call fcn.004056b0
cmp ebp, dword [ebx + 0x34]
jbe 0x405ea6
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00434734
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x40c7f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x88
push ebx
mov ebx, ecx
push ebp
push esi
lea ebp, [ebx + 0x28]
push 0x4486b8
mov ecx, ebp
call fcn.0042ecc7
mov eax, dword [ebx + 0xd8]
test eax, eax
jne 0x40c820
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 4
cmp eax, 1
jne 0x40c867
mov eax, dword [ebx + 0x84]
inc eax
mov dword [ebx + 0x84], eax
je 0x40c8bf
mov ecx, dword [esp + 0x98]
push 0
push 0x18
push 0
push 0
call fcn.0040eb40
pop esi
mov dword [ebx + 0x84], 0xffffffff
pop ebp
mov eax, 1
pop ebx
add esp, 0x88
ret 4
cmp eax, 2
jne 0x40c87b
mov ecx, dword [ebx + 0x84]
xor eax, eax
test ecx, ecx
sete al
jmp 0x40c8b9
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x40c89e
call fcn.0041de5f
cdq
idiv dword [ebx + 0xd8]
cmp edx, dword [ebx + 0x84]
je 0x40c882
mov dword [ebx + 0x84], edx
jmp 0x40c8bf
mov ecx, dword [ebx + 0x84]
inc ecx
mov dword [ebx + 0x84], ecx
mov esi, ecx
xor ecx, ecx
cmp esi, eax
setge cl
dec ecx
and ecx, esi
mov eax, ecx
mov dword [ebx + 0x84], eax
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
xor edx, edx
mov dx, word [ebx + 0x84]
push 0x1388
push edx
push 0
call esi
test eax, eax
jne 0x40c8e8
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 4
mov ecx, dword [esp + 0x98]
push 0
push 0
push eax
call fcn.0040edf0
test al, al
jne 0x40c90b
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret 4
xor eax, eax
push edi
mov ax, word [ebx + 0x84]
push 0x1450
push eax
push 0
call esi
mov esi, eax
test esi, esi
je 0x40c983
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40c983
cmp esi, 0x88
jne 0x40c983
mov ecx, 0x22
mov esi, eax
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebp
call fcn.0042ecc7
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
lea edi, [ebx + 0x2c]
mov ecx, 0xf
lea esi, [esp + 0x10]
mov dword [ebx + 0x68], edx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x6c], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x88
ret 4

Function at 0x40cf50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push esi
push eax
push 0x104
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [esp + 0x110]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0042ebf8
mov eax, esi
pop esi
add esp, 0x108
ret

Function at 0x40cf90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push esi
lea eax, [esp + 8]
push 0x104
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [esp + 0x110]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0042ebf8
mov eax, esi
pop esi
add esp, 0x108
ret
Function at 0x40edf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4384f8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
push ebx
mov edi, ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x40ee90
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x40eeb5
mov ebp, 0x43ae28
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov byte [esp + 0x1c], bl
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x38], ebx
call fcn.0040efa0
mov byte [esp + 0x38], al
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], ebp
je 0x40ee8a
cmp byte [esp + 0x1c], bl
je 0x40ee8a
push eax
call fcn.0041eaf0
add esp, 4
mov al, byte [esp + 0x38]
jmp 0x40eeb7
lea edx, [edi + 0x40]
mov edi, str.Unable_to_load_resource_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor al, al
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc

Function at 0x411b00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x411b30
push esi
call fcn.00414ee0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x411b29
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x411bb3
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x411b9f
mov eax, dword [esi + 8]
test eax, eax
je 0x411b54
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x411b9b
cmp eax, 2
je 0x411b9f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x411b47
cmp eax, 3
je 0x411b7a
cmp eax, 1
jne 0x411b47
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x411b47
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x411b47
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00411be0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x411bd3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00411be0
add esp, 4
pop esi
ret
Function at 0x422fc9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x445b08
cmp edx, dword [eax]
je 0x422feb
add eax, 8
inc ecx
cmp eax, 0x445b98
jl 0x422fdc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x445b08]
jne 0x423119
mov eax, dword [0x44a6f8]
cmp eax, 1
je 0x4230f3
test eax, eax
jne 0x42301c
cmp dword [0x445178], 1
je 0x4230f3
cmp edx, 0xfc
je 0x423119
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x423053
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004270b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004201e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x423096
lea eax, [ebp - 0x1a4]
push eax
call fcn.004201e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43d81c
push edi
call fcn.0041f2b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004270b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004270c0
lea eax, [ebp - 0xa0]
push 0x43d7fc
push eax
call fcn.004270c0
push dword [esi + 0x445b0c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004270c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042883b
add esp, 0x2c
pop edi
jmp 0x423119
lea eax, [ebp + 8]
lea esi, [esi + 0x445b0c]
push 0
push eax
push dword [esi]
call fcn.004201e0
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 0x42cd80
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.0041eed0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42ce4b
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 0x42ce4b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42cdfe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42ce09
or bh, 8
and edi, 0x8000000
je 0x42ce24
mov eax, dword [0x44be9c]
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 0x42ce4b
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 0x42d220
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 0x42d24b
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 0x42d26f
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 0x42d28a
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