joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409500
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push edi
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
jne 0x409535
xor eax, eax
add esp, 0x9c
ret
mov eax, dword [esp + 0x10]
sub eax, 0
je 0x4095cd
dec eax
je 0x4095a7
dec eax
jne 0x40952c
mov ecx, dword [esp + 4]
mov eax, ecx
sub eax, 3
je 0x40959b
dec eax
je 0x40958f
dec eax
jne 0x40957e
mov eax, dword [esp + 8]
test eax, eax
jne 0x40956d
mov eax, 6
add esp, 0x9c
ret
cmp eax, 1
jne 0x409583
mov eax, 0xa
add esp, 0x9c
ret
cmp ecx, 5
jb 0x40952c
mov eax, 0xa
add esp, 0x9c
ret
mov eax, 5
add esp, 0x9c
ret
mov eax, 4
add esp, 0x9c
ret
mov eax, dword [esp + 8]
test eax, eax
jne 0x4095bb
mov eax, 2
add esp, 0x9c
ret
cmp eax, 0xb
sbb eax, eax
and eax, 0xfffffffa
add eax, 9
add esp, 0x9c
ret
mov eax, 1
add esp, 0x9c
ret
Function at 0x40c900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], ecx
je 0x40cb16
mov ax, word [esi]
cmp ax, 0xffff
je 0x40cb16
mov ebx, dword [0x4167f0]
cmp ebx, 0xf9183183
je 0x40cb16
cmp ebx, 0x40c630
je 0x40cb16
cmp word [esi], 0xffff
mov dword [ebp - 0x10], esi
mov eax, esi
je 0x40c9a5
mov edi, ebx
sub edi, 0x40c630
cmp word [esi], 0xffff
mov edx, ecx
je 0x40c9a2
xor ebx, ebx
cmp word [eax], 0xfffe
jne 0x40c975
add eax, 2
mov ebx, 1
mov cx, word [eax]
cmp cx, 0xffff
jne 0x40c984
or edx, 0xffffffff
jmp 0x40c98c
movzx ecx, cx
add edx, ecx
add eax, 2
test ebx, ebx
jne 0x40c992
add dword [edx], edi
cmp word [eax], 0xffff
jne 0x40c964
mov ebx, dword [0x4167f0]
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
cmp word [esi], 0xfffe
mov dword [ebp - 4], 0
jne 0x40c9c0
add esi, 2
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], 1
mov ax, word [esi]
cmp ax, 0xffff
jne 0x40c9ce
or edx, 0xffffffff
jmp 0x40c9db
xor edx, edx
mov dx, ax
add edx, ecx
add esi, 2
mov dword [ebp + 0xc], esi
cmp ecx, edi
mov esi, dword [ebp + 8]
mov eax, ecx
jae 0x40cab6
or ebx, 0xffffffff
cmp eax, edx
jb 0x40ca49
mov ecx, dword [ebp - 4]
mov edi, eax
sub edi, edx
shl edi, 3
test ecx, ecx
je 0x40ca11
test edi, edi
jne 0x40ca05
xor ebx, ebx
jmp 0x40ca11
mov ecx, 0x20
sub ecx, edi
or ebx, 0xffffffff
shl ebx, cl
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0xfffe
mov dword [ebp - 4], 0
jne 0x40ca2f
add ecx, 2
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], 1
mov di, word [ecx]
cmp di, 0xffff
jne 0x40ca3e
or edx, 0xffffffff
jmp 0x40ca49
movzx edi, di
add edx, edi
add ecx, 2
mov dword [ebp + 0xc], ecx
lea ecx, [edx - 3]
cmp eax, ecx
jb 0x40ca68
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40ca68
mov ecx, edx
sub ecx, eax
shl ecx, 3
mov edi, 1
shl edi, cl
dec edi
and ebx, edi
mov edi, dword [eax]
mov ecx, ebx
and ecx, esi
xor edi, ecx
mov ecx, edi
and ecx, ebx
add esi, ecx
mov dword [eax], edi
mov ecx, esi
shr ecx, 6
and ecx, 0x7f800
mov edi, esi
and edi, 0x7f800
xor ecx, edi
mov edi, esi
shr ecx, 0xb
and edi, 0xff
xor ecx, edi
shl esi, 8
or esi, ecx
mov ecx, dword [ebp - 8]
add eax, 4
cmp eax, ecx
jb 0x40c9e8
mov ebx, dword [0x4167f0]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40cb58
cmp word [eax], 0xffff
je 0x40cb58
sub ebx, 0x40c630
mov esi, ecx
mov ecx, ebx
neg ecx
xor edi, edi
cmp word [eax], 0xfffe
jne 0x40cae9
add eax, 2
mov edi, 1
mov dx, word [eax]
cmp dx, 0xffff
jne 0x40caf8
or esi, 0xffffffff
jmp 0x40cb00
movzx edx, dx
add esi, edx
add eax, 2
test edi, edi
jne 0x40cb06
add dword [esi], ecx
cmp word [eax], 0xffff
jne 0x40cad8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp ecx, edi
mov eax, dword [ebp + 8]
jae 0x40cb58
lea ecx, [ecx]
mov esi, dword [ecx]
xor esi, eax
mov edx, esi
add eax, edx
mov dword [ecx], esi
mov edx, eax
shr edx, 6
mov esi, eax
and edx, 0x7f800
and esi, 0x7f800
xor edx, esi
mov esi, eax
shr edx, 0xb
and esi, 0xff
xor edx, esi
shl eax, 8
add ecx, 4
or eax, edx
cmp ecx, edi
jb 0x40cb20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40cd30
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x41bc20]
sub esp, 0x94
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x40cd5b
mov ecx, dword [0x41bc14]
pop edi
xor eax, eax
cmp ecx, ebx
pop esi
setne al
pop ebx
add esp, 0x94
ret
xor eax, eax
mov ecx, 0x24
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 0x1c]
xor ecx, ecx
cmp edx, 2
sete cl
push str.USER32
mov dword [0x41bc24], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp esi, ebx
je 0x40ce33
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSystemMetrics
push esi
call edi
cmp eax, ebx
mov dword [0x41bc04], eax
je 0x40ce33
push str.MonitorFromWindow
push esi
call edi
cmp eax, ebx
mov dword [0x41bc08], eax
je 0x40ce33
push str.MonitorFromRect
push esi
call edi
cmp eax, ebx
mov dword [0x41bc0c], eax
je 0x40ce33
push str.MonitorFromPoint
push esi
call edi
cmp eax, ebx
mov dword [0x41bc10], eax
je 0x40ce33
push str.EnumDisplayMonitors
push esi
call edi
cmp eax, ebx
mov dword [0x41bc18], eax
je 0x40ce33
push str.GetMonitorInfoA
push esi
call edi
cmp eax, ebx
mov dword [0x41bc14], eax
je 0x40ce33
push str.EnumDisplayDevicesA
push esi
call edi
cmp eax, ebx
mov dword [0x41bc1c], eax
je 0x40ce33
pop edi
mov eax, 1
pop esi
mov dword [0x41bc20], eax
pop ebx
add esp, 0x94
ret
pop edi
pop esi
mov dword [0x41bc04], ebx
mov dword [0x41bc08], ebx
mov dword [0x41bc0c], ebx
mov dword [0x41bc10], ebx
mov dword [0x41bc14], ebx
mov dword [0x41bc18], ebx
mov dword [0x41bc1c], ebx
mov dword [0x41bc20], 1
xor eax, eax
pop ebx
add esp, 0x94
ret
Function at 0x40d280
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x417114]
sub esp, 0x25c
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
je 0x40d29e
pop esi
xor eax, eax
pop ebx
add esp, 0x25c
ret
mov eax, dword [str.___ENUMDEVSYNCH___]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x10], esi
jne 0x40d2c2
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x25c
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x417114], ebx
jne 0x40d46e
push ebp
push edi
xor eax, eax
mov ecx, 0xab4
mov edi, 0x418138
rep stosd dword es:[edi], eax
mov ecx, 0x2a
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, 0x6a
lea edi, [esp + 0xc4]
rep stosd dword es:[edi], eax
push str.ddraw.dll
mov dword [0x417108], ebx
mov dword [0x41bc34], ebx
mov dword [esp + 0x20], 0xa8
mov dword [esp + 0xc8], 0x1a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x40d35b
push str.DirectDrawEnumerateExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40d354
push 1
push ebx
push 0x40d090
call eax
mov dword [0x417114], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
lea esp, [esp]
call fcn.0040cd30
test eax, eax
je 0x40d401
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0
call dword [0x41bc1c]
test eax, eax
je 0x40d44b
test byte [esp + 0xc0], 1
je 0x40d445
xor edi, edi
xor esi, esi
call fcn.0040cd30
test eax, eax
je 0x40d437
push 0
lea ecx, [esp + 0xc8]
push ecx
push esi
lea edx, [esp + 0x2c]
push edx
call dword [0x41bc1c]
test eax, eax
je 0x40d437
test byte [esp + 0x168], 1
je 0x40d3fe
mov eax, dword [str.GWY108A]
push eax
lea ecx, [esp + 0x170]
push ecx
inc edi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x40d3fe
mov dword [0x41bc34], 1
inc esi
jmp 0x40d3a7
test ebx, ebx
jne 0x40d44b
cmp dword [esp + 0x1c], 0xa8
jb 0x40d44b
push 0x416980
lea edx, [esp + 0x24]
push edx
call ebp
push 0x416988
lea eax, [esp + 0x44]
push eax
call ebp
mov dword [esp + 0xc0], 5
jmp 0x40d395
cmp dword [esp + 0x14], edi
jge 0x40d441
mov dword [esp + 0x14], edi
inc dword [esp + 0x10]
inc ebx
jmp 0x40d370
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, eax
pop edi
pop ebp
jne 0x40d465
cmp dword [esp + 0xc], eax
jle 0x40d465
mov dword [0x417108], eax
mov esi, dword [esp + 0x10]
mov dword [0x417114], eax
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x417114]
neg eax
sbb eax, eax
neg eax
pop esi
dec eax
pop ebx
add esp, 0x25c
ret
Function at 0x40b150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4640b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esp + 0x14], 1
call fcn.0040b1c0
lea edi, [esi + 0x48]
mov byte [esp + 0x14], 0
mov ecx, edi
call fcn.0041b226
mov ecx, edi
call fcn.0041bd21
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], 0xffffffff
call fcn.0043a63f
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40b200
Capabilities:
Terminate process

Disassembly:
mov edx, dword [ecx + 0x98]
push ebx
push ebp
xor eax, eax
push esi
push edi
test edx, edx
jle 0x40b231
mov edx, dword [ecx + 0xd8]
mov esi, dword [edx + 4]
mov edi, dword [edx]
mov edx, dword [ecx + 0xd4]
or esi, edi
mov dword [edx + eax*4], esi
mov edx, dword [ecx + 0x98]
inc eax
cmp eax, edx
jl 0x40b210
mov eax, dword [ecx + 0xfc]
xor edi, edi
mov dword [ecx + 0x100], eax
mov eax, dword [ecx + 0x9c]
test eax, eax
jle 0x40b2e0
mov eax, dword [ecx + 0x100]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
cmp esi, 0xffffffff
je 0x40b293
test esi, esi
je 0x40b269
cmp esi, 1
jne 0x40b2e5
jmp 0x40b2bf
mov ebx, dword [ecx + 0x10c]
mov ebp, dword [eax + 0x30]
mov esi, edx
shl esi, 4
add esi, edx
mov dword [ebx + esi*8 + 0x38], ebp
mov eax, dword [eax + 0x34]
mov dword [ebx + esi*8 + 0x3c], eax
mov eax, dword [ecx + 0xd4]
mov dword [eax + edx*4], 0
jmp 0x40b2bf
mov ebx, dword [ecx + 0x10c]
mov ebp, dword [eax + 0x30]
mov esi, edx
shl esi, 4
add esi, edx
mov dword [ebx + esi*8 + 0x38], ebp
mov eax, dword [eax + 0x34]
mov dword [ebx + esi*8 + 0x3c], eax
mov eax, dword [ecx + 0xd8]
mov esi, dword [ecx + 0xd4]
mov eax, dword [eax]
mov dword [esi + edx*4], eax
mov edx, dword [ecx + 0x100]
mov eax, dword [ecx + 0x9c]
inc edi
add edx, 0x2e0
cmp edi, eax
mov dword [ecx + 0x100], edx
jl 0x40b24d
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push 0
push 0x47d4ec
call fcn.00442eda
push 1
call fcn.004246ad
nop
nop
nop
nop
nop
nop
Function at 0x40b820
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 8
push esi
push edi
mov esi, ecx
call fcn.00450a42
mov ecx, dword [eax + 4]
call fcn.0043a051
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push esi
call edi
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.0040b200
mov eax, dword [esi + 0xf8]
mov dword [esi + 0xe8], 0
test eax, eax
jle 0x40b8af
mov ecx, esi
call fcn.0040b360
mov ecx, esi
call fcn.0040b700
fst qword [esi + 0xe0]
fcomp qword [esi + 0xf0]
fnstsw ax
test ah, 1
jne 0x40b8af
mov ecx, dword [esi + 0x138]
call fcn.00401cc0
mov ecx, esi
call fcn.0040b780
mov edx, dword [esi + 0xe8]
mov ecx, dword [esi + 0xf8]
inc edx
mov eax, edx
mov dword [esi + 0xe8], edx
cmp eax, ecx
jl 0x40b863
call fcn.00450a42
mov ecx, dword [eax + 4]
call fcn.0043a066
push esi
call edi
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esi + 0x10], edx
mov edx, dword [esi + 8]
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 0x10]
sub ecx, edx
mov edx, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 8], ecx
sbb edx, eax
mov ecx, esi
mov dword [esp + 0xc], edx
fild qword [esp + 8]
fst qword [esi + 0x18]
fdiv qword [esi + 0x20]
fstp qword [esi + 0x28]
call fcn.0040bb10
pop edi
pop esi
add esp, 8
ret
Function at 0x412440
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 8
push esi
mov esi, ecx
call fcn.00450a42
mov ecx, dword [eax + 4]
call fcn.0043a051
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x1a4]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x190]
mov dword [esi + 0xc], ecx
test eax, eax
mov dword [esi + 0x1a8], edx
mov dword [esi + 0x174], 0
jle 0x412693
push ebx
push ebp
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0x174]
mov eax, dword [esi + eax*4 + 0x1ac]
mov dword [esi + 0x194], eax
lea ebx, [eax + eax + 3]
lea ebp, [ebx*8]
push ebp
call fcn.00436762
lea ecx, [ebx*4]
mov dword [esi + 0x33c], eax
push ecx
call fcn.00436762
push ebp
mov dword [esi + 0x344], eax
call fcn.00436762
mov edx, dword [esi + 0x378]
mov ecx, dword [esi + 0x388]
mov dword [esi + 0x340], eax
mov eax, dword [esi + 0x380]
mov dword [esi + 0x37c], edx
mov edx, dword [esi + 0x390]
mov dword [esi + 0x38c], ecx
add esp, 0xc
mov ecx, esi
mov dword [esi + 0x384], eax
mov dword [esi + 0x394], edx
call fcn.00410210
mov ecx, esi
call fcn.00410a50
mov ecx, esi
call fcn.004126a0
mov eax, dword [esi + 0x198]
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 0x178], ebx
jle 0x412602
mov ecx, esi
call fcn.00410d80
mov eax, dword [esi + 0x178]
mov ecx, dword [esi + 0x344]
mov ebp, dword [ecx + eax*4]
mov dword [esi + 0x17c], ebx
cmp ebp, ebx
jle 0x4125e1
mov ecx, esi
call fcn.00410070
mov ecx, esi
call fcn.0040ff50
mov dword [esi + 0x180], ebx
mov ecx, esi
mov edi, 1
call fcn.0040ffe0
mov ecx, esi
call fcn.00410900
fmul qword [esi + 0x168]
fst qword [esi + 0x140]
fcomp qword [0x467a20]
fnstsw ax
test ah, 1
jne 0x4125bf
mov ecx, esi
call fcn.004108b0
mov ecx, esi
call fcn.00410990
mov ecx, dword [esi + 0x180]
xor edi, edi
inc ecx
mov eax, ecx
mov dword [esi + 0x180], ecx
cmp eax, 0x14
jl 0x41256f
mov ecx, esi
call fcn.00410320
cmp edi, ebx
je 0x412602
mov ecx, dword [esi + 0x17c]
inc ecx
mov eax, ecx
mov dword [esi + 0x17c], ecx
cmp eax, ebp
jl 0x41255b
cmp edi, ebx
je 0x412602
mov edx, dword [esi + 0x178]
mov ecx, dword [esi + 0x198]
inc edx
mov eax, edx
mov dword [esi + 0x178], edx
cmp eax, ecx
jl 0x412537
call fcn.00450a42
mov ecx, dword [eax + 4]
call fcn.0043a066
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esi + 0x10], edx
mov edx, dword [esi + 8]
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 0x10]
sub ecx, edx
mov edx, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], ecx
sbb edx, eax
mov ecx, esi
mov dword [esp + 0x14], edx
fild qword [esp + 0x10]
fst qword [esi + 0x18]
fdiv qword [esi + 0x20]
fstp qword [esi + 0x28]
call fcn.004112b0
mov eax, dword [esi + 0x33c]
push eax
call fcn.0043678b
mov ecx, dword [esi + 0x344]
push ecx
call fcn.0043678b
mov edx, dword [esi + 0x340]
push edx
call fcn.0043678b
mov edx, dword [esi + 0x174]
mov ecx, dword [esi + 0x190]
add esp, 0xc
inc edx
mov eax, edx
mov dword [esi + 0x174], edx
cmp eax, ecx
jl 0x412490
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x419bd0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4647b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov eax, dword [0x47e1c0]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x90], 0
mov dword [esp + 0xc], eax
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x94], 1
call fcn.0041b190
mov eax, dword [esi + 0x30]
mov ebx, 2
shl eax, 2
push eax
mov byte [esp + 0x94], bl
call fcn.00436762
add esp, 4
mov ecx, esi
mov dword [esi + 0x184], eax
call fcn.00416b20
call fcn.00450a42
mov eax, dword [eax + 4]
lea ecx, [esp + 0xc]
add eax, 0xc0
push eax
call fcn.0043a778
push 0x2e
lea ecx, [esp + 0x10]
call fcn.0043ab06
cmp eax, 0xffffffff
jne 0x419ca2
lea ecx, [esp + 0xc]
push str..Nod
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0043a8d4
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x94], 4
call fcn.0043a778
mov byte [esp + 0x90], bl
lea ecx, [esp + 0x10]
jmp 0x419cf7
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
call fcn.00433d14
push str..Nod
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x9c], 5
call fcn.0043a8d4
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x94], 6
call fcn.0043a778
lea ecx, [esp + 0x10]
mov byte [esp + 0x90], 5
call fcn.0043a63f
mov byte [esp + 0x90], bl
lea ecx, [esp + 0x14]
call fcn.0043a63f
mov eax, dword [esi + 0x164]
test eax, eax
je 0x419d19
push eax
call fcn.0043678b
add esp, 4
mov dword [esi + 0x164], 0
mov edx, dword [0x468380]
mov eax, dword [esp + 0xc]
push edx
push 0x12
push eax
lea ecx, [esp + 0x30]
call fcn.0041b267
sub esp, 0x64
lea ecx, [esp + 0x88]
mov edi, esp
mov dword [esp + 0x7c], esp
test ecx, ecx
mov dword [esp + 0x84], edi
mov dword [edi], 0x468360
mov dword [edi + 0xc], 0x468358
jne 0x419d5c
xor eax, eax
jmp 0x419d6d
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 4]
lea eax, [esp + eax + 0x88]
push eax
lea ecx, [edi + 0x14]
call fcn.0041bcd9
mov dword [esp + 0x7c], ebx
lea ecx, [esp + 0x88]
push 0
push ecx
mov ecx, edi
mov byte [esp + 0xfc], 8
call fcn.0041bf97
mov edx, dword [edi]
mov ecx, esi
mov dword [esp + 0xf4], ebx
mov eax, dword [edx + 4]
mov dword [eax + edi], vtable.fstream.0
call fcn.00419e70
lea ecx, [esp + 0x24]
call fcn.0041b2ba
call fcn.00450a42
mov eax, dword [eax + 4]
mov byte [eax + 0xc8], 1
call fcn.00450a42
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x7c]
lea ecx, [esp + 0x38]
mov byte [esp + 0x90], 1
call fcn.0041b226
lea ecx, [esp + 0x38]
call fcn.0041bd21
lea ecx, [esp + 0xc]
mov byte [esp + 0x90], 0
call fcn.0043a63f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x90], 0xffffffff
call fcn.0043a63f
mov ecx, dword [esp + 0x88]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
add esp, 0x88
ret
Function at 0x42ba25
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4800a0
cmp edx, dword [eax]
je 0x42ba47
add eax, 8
inc ecx
cmp eax, 0x480130
jl 0x42ba38
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4800a0]
jne 0x42bb75
mov eax, dword [0x482848]
cmp eax, 1
je 0x42bb4f
test eax, eax
jne 0x42ba78
cmp dword [0x47f500], 1
je 0x42bb4f
cmp edx, 0xfc
je 0x42bb75
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42baaf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042cfa0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004257c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42baf2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004257c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x46ef4c
push edi
call fcn.00424dd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042cfa0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042cfb0
lea eax, [ebp - 0xa0]
push 0x46ef2c
push eax
call fcn.0042cfb0
push dword [esi + 0x4800a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042cfb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042f08f
add esp, 0x2c
pop edi
jmp 0x42bb75
lea eax, [ebp + 8]
lea esi, [esi + 0x4800a4]
push 0
push eax
push dword [esi]
call fcn.004257c0
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 0x433560
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.00425080
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x43362b
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 0x43362b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4335de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4335e9
or bh, 8
and edi, 0x8000000
je 0x433604
mov eax, dword [0x483fbc]
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 0x43362b
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 0x433a00
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 0x433a2b
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 0x433a4f
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 0x433a6a
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 0x437674
Capabilities:
Get graphical window text

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