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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10065148
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x1002e7b9
inc eax
mov dword [esi + 0x10], eax
jmp 0x1002e8cc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x1002e7cd
mov eax, 0xffffffc7
jmp 0x1002e8ce
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x1002e7de
cmp dword [esi + 8], eax
jne 0x1002e7cd
cmp dword [esi + 8], eax
jne 0x1002e7f7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x1002e7f7
mov eax, 0xffffffc7
jmp 0x1002e8ce
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x1002e80b
push eax
mov ecx, ebx
call fcn.1002dfb0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.10003140
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x1002e83c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.10003160
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.1002d720
test eax, eax
mov dword [esp + 0x38], eax
je 0x1002e86f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x1013fa30
call fcn.10003340
mov eax, dword [esp + 0x38]
jmp 0x1002e8ce
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.1002e5e0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x1002e8b3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.1002e600
mov esi, eax
test esi, esi
jne 0x1002e8e3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.1002e5e0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x1002e885
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x1013fa30
call fcn.10003340
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x1013fa30
call fcn.10003340
mov eax, esi
jmp 0x1002e8ce

Function at 0x100319b0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x10031a10
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x10031a10
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x10031a10
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x10031a10
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x10031a50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x10037b40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10065778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.1005ea1c
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.100374e0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.1005e94a
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.1005b1f4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.1005b1f4
push 1
push 0
push 0
mov ecx, esi
call fcn.1005b19c
push 1
push 0
push 1
mov ecx, esi
call fcn.1005b19c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.1005ea8e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x10037cc0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10065798
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.1005ea1c
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.100374e0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.1005e94a
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x10037d84
cmp dword [esp + 0x40], 1
jne 0x10037d82
cmp ecx, eax
jge 0x10037d84
mov eax, ecx
cmp eax, 0xc8
jge 0x10037d90
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.10037b40
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.1005ea8e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x10038500
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10065803
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.10059614
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.1005ecc4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.100601e0
test eax, eax
je 0x1003861c
mov ecx, dword [esp + 0x3c]
call fcn.1005ecf1
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x100385e0
push edi
mov ecx, esi
call fcn.1005c33e
mov ecx, esi
call fcn.10038780
cmp dword [esp + 0x38], 1
jne 0x10038615
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.1005c479
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x1003b040
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x1003b073
push esi
call fcn.1003e150
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1003b06c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x1003b0f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1003b0e2
mov eax, dword [esi + 8]
test eax, eax
je 0x1003b097
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x1003b0de
cmp eax, 2
je 0x1003b0e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1003b08a
cmp eax, 3
je 0x1003b0bd
cmp eax, 1
jne 0x1003b08a
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 0x1003b08a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1003b08a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.1003b120
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x1003b108
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.1003b120
add esp, 4
pop esi
ret

Function at 0x1005a40a
Capabilities:
Get graphical window text

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

Function at 0x1005baf8
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 0x1005bb3a
call fcn.100615cb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1005bb3a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1005bb31
xor eax, eax
jmp 0x1005bb42
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1005bb48
pop edi
pop esi
pop ebx
ret 4
Function at 0x8d2001
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
cmp dword [0xcc], 0x5b8d80
jl 0x8d202b
mov dword [0xcc], 0
push 0x2c
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.008c3cd8
add esp, 8
cmp eax, 0
je 0x8d2088
mov dword [0xcc], 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x8d206e
push eax
mov ebx, eax
call fcn.008c3d75
inc eax
push eax
call fcn.008e5a46
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0xd0]
test ebx, ebx
je 0x8d2082
push ebx
call fcn.008e5a34
add esp, 4
pop eax
mov dword [0xd0], eax
push 0x2c
push dword [0xd0]
call fcn.008c3cd8
add esp, 8
cmp eax, 0
jne 0x8d20ae
mov eax, 0xffffffff
jmp 0x8d220a
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.008e5a3a
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x8d20e3
push ebx
call fcn.008e5a34
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [0xcc], 0x5b8d80
jge 0x8d2200
inc dword [0xcc]
mov dword [ebp - 8], esp
push dword [0xcc]
mov eax, 0x3c
call fcn.008e5a5e
cmp dword [ebp - 8], esp
je 0x8d2122
push 6
call fcn.008e5a58
add esp, 4
test eax, eax
je 0x8d21e9
mov dword [ebp - 8], esp
push 0xff
push dword [ebp - 4]
push dword [0xcc]
mov eax, 0xa
call fcn.008e5a5e
cmp dword [ebp - 8], esp
je 0x8d2157
push 6
call fcn.008e5a58
add esp, 4
push 0x12d9
push dword [ebp - 4]
push 0x12d9
mov ecx, 3
call fcn.008c52cd
add esp, 0xc
mov dword [ebp - 8], eax
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
mov eax, dword [0xd0]
test eax, eax
jne 0x8d219b
mov eax, 0x2c
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x8d21af
mov eax, 0x2c
push eax
push 4
mov ebx, 0x148
call fcn.008e5a3a
add esp, 0x34
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x8d21d5
push ebx
call fcn.008e5a34
add esp, 4
cmp dword [ebp - 0xc], 0xffffffff
je 0x8d21e9
mov eax, dword [0xcc]
jmp 0x8d220a
push 0
mov ebx, 0x350
call fcn.008e5a3a
add esp, 4
jmp 0x8d20e7
mov eax, 0xffffffff
jmp 0x8d220a
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x8d221b
push ebx
call fcn.008e5a34
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x41067b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x41068a
pop dword [ebp - 0x3c]
mov eax, 0x41068a
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x5ec2e2ac
sub dword [ebp - 0x4c], 0x10709d61
mov dword [ebp - 0x48], 0x1c585d52
sub dword [ebp - 0x48], 0xea25110d
mov dword [ebp - 0x44], 0x109d442b
add dword [ebp - 0x44], 0x3baf0003
mov dword [ebp - 0x40], 0x6512730
add dword [ebp - 0x40], 0xf9aed8d0
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x5b9eaedd
sub dword [ebp - 0x4c], 0xe72c4587
mov dword [ebp - 0x48], 0xd8c3d9d1
sub dword [ebp - 0x48], 0x9757785c
mov dword [ebp - 0x44], 0x83b5ede6
sub dword [ebp - 0x44], 0x2046817a
mov dword [ebp - 0x40], 0xd28cdb28
add dword [ebp - 0x40], 0x2d7324d8
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3c3a3
push 0
call eax
mov ecx, 0x41fd
xor ebx, ebx
add ebx, eax
mov esi, 0x8ca389c8
sub esi, 0x8c6045c8
add esi, dword [ebp - 0x3c]
mov edx, 0x817f1d69
mov dword [ebp - 0x18], 0x44f08c5b
mov edi, dword [esi]
xor dword [ebp - 0x30], 0x3bc53c6
xor edi, edx
xor dword [ebp - 0x18], 0xa886ec63
mov dword [ebx], edi
mov dword [ebp - 0x20], 0xcf3c07de
add ebx, 0xd9f5b2db
add ebx, 0x260a4d29
add esi, 0xfa15004c
sub esi, 0xfa150048
loop 0x410793
add eax, 0xfac7
mov ebx, eax
add eax, 0xdf80f16a
add eax, 0x207f0e9b
mov ecx, 0xf63d799d
sub ecx, 0xf5fd799d
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x401af0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x114]
push esi
xor edx, edx
mov esi, 0x3e8
div esi
mov ecx, dword [esp + 0x114]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
lea eax, [edx + edx*4]
lea edx, [esp + 4]
push edx
push 0
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
inc ecx
push 0
push ecx
call dword [sym.imp.WS2_32.dll_select]
pop esi
add esp, 0x10c
ret

Function at 0x401b50
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x114]
push esi
xor edx, edx
mov esi, 0x3e8
div esi
mov ecx, dword [esp + 0x114]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
lea eax, [edx + edx*4]
lea edx, [esp + 4]
push edx
push 0
lea eax, [eax + eax*4]
push 0
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
inc ecx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
pop esi
add esp, 0x10c
ret

Function at 0x40e83b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42f648
cmp edx, dword [eax]
je 0x40e85d
add eax, 8
inc ecx
cmp eax, 0x42f6d8
jl 0x40e84e
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42f648]
jne 0x40e98b
mov eax, dword [0x434454]
cmp eax, 1
je 0x40e965
test eax, eax
jne 0x40e88e
cmp dword [0x42f004], 1
je 0x40e965
cmp edx, 0xfc
je 0x40e98b
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e8c5
lea eax, [ebp - 0x1a4]
push 0x428098
push eax
call fcn.0040eac0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040be80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40e908
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040be80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x428094
push edi
call fcn.00411b90
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x428078
push eax
call fcn.0040eac0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040ead0
lea eax, [ebp - 0xa0]
push 0x428074
push eax
call fcn.0040ead0
push dword [esi + 0x42f64c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040ead0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x42804c
push eax
call fcn.00411af9
add esp, 0x2c
pop edi
jmp 0x40e98b
lea eax, [ebp + 8]
lea esi, [esi + 0x42f64c]
push 0
push eax
push dword [esi]
call fcn.0040be80
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 0x4174c0
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.0040a910
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41758b
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 0x41758b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41753e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x417549
or bh, 8
and edi, 0x8000000
je 0x417564
mov eax, dword [0x435bfc]
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 0x41758b
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 0x417960
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 0x41798b
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 0x4179af
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 0x4179ca
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 0x4197ea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x424068
call fcn.0040ae98
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00420f3a
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x419829
call fcn.00420f3a
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x419837
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x419845
or eax, 0xffffffff
jmp 0x41992d
mov ecx, esi
call fcn.00419760
mov dword [ebp - 0x14], eax
call fcn.0041abb0
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41987c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41987c
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041ab64
push dword [ebp - 0x14]
call fcn.0041a6b2
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004194f8
cmp eax, edi
je 0x4198ef
test byte [esi + 0x24], 0x10
je 0x4198bd
push 4
mov ecx, esi
pop ebx
call fcn.0041cd28
test ah, 1
je 0x4198b5
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041c6ec
cmp dword [esi + 0x1c], edi
je 0x4198ef
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041ce0e
jmp 0x4198ef
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x419903
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41991c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41991c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041979a
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41c59a
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 0x41c5dc
call fcn.00420f3a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41c5dc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41c5d3
xor eax, eax
jmp 0x41c5e4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041c5ea
pop edi
pop esi
pop ebx
ret 4