joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405944
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx + 4], 0xffffffff
je 0x4059bc
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0xaa55
lea esi, [ebx + 0xc]
lea eax, [edi + 6]
mov dword [ebp + 0xc], eax
call sub.WSOCK32.dll_htons
mov word [esi], ax
inc esi
inc esi
push edi
push dword [ebp + 8]
mov word [esi], di
inc esi
inc esi
push esi
call fcn.0041e360
add esp, 0xc
push 0x55aa
call sub.WSOCK32.dll_htons
mov word [esi + edi], ax
mov esi, dword [ebp + 0xc]
xor edi, edi
test esi, esi
jle 0x4059b4
push 0
lea eax, [ebx + 0xc]
push esi
push eax
push dword [ebx + 4]
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x4059b4
test eax, eax
je 0x4059b0
add edi, eax
cmp edi, esi
jl 0x405996
add dword [ebx + 0x2820], esi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x406810
Capabilities:
Connect to http server
Create http request

Disassembly:
mov eax, 0x43d830
call fcn.0041de9c
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
push str.3DOnline
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x406866
mov eax, dword [str._ETE]
mov dword [ebp + 8], eax
push 0x77
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.0043546e
push 0x10
add esi, 0xc
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
jmp 0x4068cb
cmp dword [ebp + 8], 1
lea ebx, [esi + 0xc]
push edi
jne 0x406889
push 0x8000000
lea ecx, [esi + 0x130]
push 1
push ecx
lea ecx, [esi + 0x110]
push ecx
push 0x15
jmp 0x40688f
push edi
push 3
push edi
push edi
push edi
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x4068d4
mov eax, dword [str._ETE]
mov dword [ebp - 0x10], eax
push 0x78
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.0043546e
push 0x10
push dword [ebp - 0x10]
push ebx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00434f91
xor al, al
jmp 0x4068d6
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40b1a5
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xc]
lea eax, [esi + 8]
xor ecx, ecx
push eax
push ecx
push esi
push 0x40b186
push ecx
push ecx
mov dword [esi], 0x440f78
mov dword [esi + 4], ecx
mov dword [eax], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
cmp edi, ecx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 4], eax
mov dword [esi + 0x10], edi
mov eax, esi
pop edi
pop esi
ret 4

Function at 0x40b212
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x40b228
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
and dword [esi + 0x10], 0
pop esi
ret

Function at 0x40bba0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43dfc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
cmp byte [esi + 0xe4], 0xff
je 0x40bbe4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [ebp + 0xc]
xor ebx, ebx
cmp al, bl
mov dword [ebp - 0x14], 1
jne 0x40bca9
cmp dword [esi + 0x60], ebx
jne 0x40bc19
mov ecx, esi
call fcn.0040b8e0
mov ecx, dword [esi + 0x68]
mov edx, dword [eax + 0x14]
cmp ecx, edx
je 0x40bc20
push 0xffffffffffffff9a
mov ecx, esi
call fcn.0040b530
jmp 0x40bc20
mov dword [ebp - 0x14], 0xffffffff
mov ecx, esi
call fcn.0040b8e0
cmp word [eax + 0xe], 8
jne 0x40bc37
lea edx, [esi + 0x28]
push edx
call fcn.00410300
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x40bca9
lea eax, [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call fcn.00430838
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
mov ecx, esi
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x11c], bl
call fcn.0040b8e0
mov ecx, eax
call fcn.0040fe20
mov edx, dword [eax]
lea eax, [ebp - 0x12c]
push eax
push edi
mov dword [ebp - 0x128], edx
call fcn.00436951
mov ecx, esi
call fcn.0040b8e0
mov ecx, dword [eax + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
jne 0x40bca2
mov dword [ebp - 0x14], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xe8]
call fcn.0040ec60
lea ecx, [esi + 0x6c]
mov byte [esi + 0xe4], bl
call fcn.0040e3f0
mov ecx, esi
call fcn.0040d030
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40bfe0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43e0a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.00434fbb
push 0x44e1c8
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
call fcn.00430630
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 8]
push ecx
push edx
call fcn.0040bd00
mov ecx, dword [esp + 0x24]
mov eax, dword [eax]
push ecx
push eax
mov byte [esp + 0x24], 1
call fcn.0041f3c5
add esp, 0x10
or esi, 0xffffffff
test eax, eax
je 0x40c061
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040c100
add esp, 4
cmp eax, esi
sete al
test al, al
jne 0x40c061
xor bl, bl
jmp 0x40c063
mov bl, 1
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.00434f91
test bl, bl
jne 0x40c0dc
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.0040bd00
mov eax, dword [eax]
mov byte [esp + 0x1c], 2
push eax
call fcn.0040bfe0
add esp, 0xc
lea ecx, [esp + 8]
test al, al
sete bl
mov byte [esp + 0x14], 0
call fcn.00434f91
test bl, bl
jne 0x40c0bc
mov edx, dword [esp + 0x1c]
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x40c0dc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], esi
call fcn.00434f91
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], esi
call fcn.00434f91
mov ecx, dword [esp + 0xc]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40c100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43e0c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
call fcn.00415ed9
mov esi, dword [esp + 0x30]
push 0
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.00415f9c
test eax, eax
jne 0x40c186
push esi
call fcn.0040c1d0
add esp, 4
mov dword [esp + 0x28], 0xffffffff
test al, al
lea ecx, [esp + 4]
je 0x40c16f
call fcn.00415f16
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
call fcn.00415f16
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea ecx, [esp + 4]
call fcn.004161bc
mov eax, dword [esp + 4]
push 0x10
lea ecx, [esp + 8]
call dword [eax + 0x38]
neg eax
sbb eax, eax
lea ecx, [esp + 4]
and al, 0xfe
mov dword [esp + 0x28], 0xffffffff
inc eax
mov esi, eax
call fcn.00415f16
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x40cc80
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
push ebx
lea ecx, [esp + 8]
push eax
push ecx
call fcn.0040ccb0
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
cmp eax, 2
lea ecx, [esp + 8]
sete bl
call fcn.00434f91
mov al, bl
pop ebx
ret

Function at 0x40cdb0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
mov ecx, dword [esi + 0x14]
push ecx
mov ecx, esi
call fcn.0040cf10
mov edx, dword [esi + 0x18]
mov dword [esi + 0x14], eax
and eax, 0xff
mov ecx, esi
add eax, edx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 8], al
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 8]
push edx
push eax
call fcn.0040cf10
mov dword [esi + 0x1c], eax
pop esi
ret 4

Function at 0x40db40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43e41e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebx
xor ebx, ebx
push esi
test eax, eax
mov esi, ecx
mov dword [esp + 8], ebx
jne 0x40db86
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, 1
mov dword [esp + 8], ebx
mov eax, dword [eax]
mov dword [esp + 0x28], ebx
push eax
lea ecx, [esp + 0x10]
call fcn.00434fbb
test bl, 1
mov dword [esp + 0x28], 3
je 0x40dbad
and ebx, 0xfffffffe
lea ecx, [esp + 0x18]
mov dword [esp + 8], ebx
call fcn.00434f91
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0040bd00
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x38], 4
call fcn.0040bdd0
add esp, 0x10
mov ecx, dword [str._ETE]
mov dword [esp + 0x38], ecx
mov al, byte [esp + 0x34]
mov byte [esp + 0x28], 6
test al, al
je 0x40dbfa
push 0x44e820
lea ecx, [esp + 0x3c]
call fcn.004350d6
jmp 0x40dc10
mov edx, dword [esi + 0x4c]
lea eax, [esp + 0x38]
push edx
push str._.3d
push eax
call fcn.0043061d
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call fcn.0043517c
push 0x44e194
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x34], 7
call fcn.004351e2
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x38]
push edx
push eax
push esi
mov byte [esp + 0x34], 8
call fcn.0043517c
or ebx, 2
mov dword [esp + 8], ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 7
call fcn.00434f91
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 6
call fcn.00434f91
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 5
call fcn.00434f91
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.00434f91
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.00434f91
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.00434f91
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x40df70
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x43e498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, dword [ecx + 0x1c]
lea edx, [esp + 4]
push ebx
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 8]
push eax
call fcn.0040ccb0
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceA]
test eax, eax
lea ecx, [esp + 4]
sete bl
call fcn.00434f91
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.00434f91
test bl, bl
pop ebx
je 0x40e000
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x18]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x40e710
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43e538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0040e8b0
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
push 0
push eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
call dword [edx + 0x28]
push 0
push 0x16
lea ecx, [esp + 0xc]
call fcn.0040e3b0
mov eax, dword [esi + 0x2c]
push 0x16
mov dword [esp + 0x1c], 0
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [ecx]
call dword [edx + 0x34]
cmp eax, 0x16
je 0x40e776
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0040e9f0
mov eax, dword [esp + 8]
push edi
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x10], edx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x14], ecx
mov di, word [eax + 0x14]
lea ecx, [esp + 8]
call fcn.0040e3f0
mov dx, word [esi + 8]
mov ecx, dword [esi + 0x2c]
push edx
call fcn.0040e020
mov ecx, dword [esi + 0x2c]
call fcn.0040d6f0
test eax, eax
jne 0x40e7ea
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x30]
add eax, edx
cmp ecx, eax
jae 0x40e7ea
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0040e9f0
test di, di
je 0x40e81d
and edi, 0xffff
push 0
push edi
lea ecx, [esi + 0x18]
call fcn.0040e420
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x1c]
push edi
push eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
call dword [edx + 0x34]
cmp eax, edi
je 0x40e81d
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0040e9f0
mov ecx, dword [esi + 0x2c]
call fcn.0040d6f0
test eax, eax
pop edi
je 0x40e82e
xor eax, eax
jmp 0x40e83b
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
sub eax, edx
sub eax, ecx
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x40e84b
cmp word [esi + 0xe], ax
jne 0x40e856
cmp word [esi + 0xe], 0
jne 0x40e85f
test eax, eax
je 0x40e85f
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0040e9f0
mov ecx, dword [esi + 0x2c]
xor eax, eax
mov ax, word [esi + 0xa]
mov byte [esi + 0x3c], 1
push eax
call fcn.0040d710
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40e880
mov ecx, esi
call fcn.0040ea50
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.0040e3e0
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40fc80
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x43e6a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.0040e3b0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.0040d540
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov cx, word [eax + 0x20]
mov dx, word [eax + 0x22]
mov bx, word [eax + 0x1c]
mov bp, word [eax + 0x1e]
mov word [esp + 0x30], cx
mov word [esi + 0x20], dx
mov cx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.0040e3f0
mov edx, dword [esi + 4]
mov ecx, 0x44e850
cmp edx, dword [ecx]
je 0x40fd6c
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040e3e0
xor al, al
jmp 0x40fe04
mov ecx, edi
call fcn.0040d910
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.0040e420
mov ecx, dword [edi + 0x1c]
mov eax, dword [esi + 0x3c]
push ebx
push eax
mov edx, dword [ecx]
call dword [edx + 0x34]
test bp, bp
je 0x40fdba
mov ebx, ebp
push 0
and ebx, 0xffff
lea ecx, [esi + 0x2c]
push ebx
call fcn.0040e420
mov ecx, dword [edi + 0x1c]
mov eax, dword [esi + 0x30]
push ebx
push eax
mov edx, dword [ecx]
call dword [edx + 0x34]
mov ebx, dword [esp + 0x30]
test bx, bx
je 0x40fde1
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.0040e420
mov ecx, dword [edi + 0x1c]
mov esi, dword [esi + 0x48]
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, edi
call fcn.0040d910
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
cmp eax, ecx
lea ecx, [esp + 0x14]
sete bl
call fcn.0040e3e0
mov al, bl
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x410930
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x41093f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x44e8c8]
test eax, eax
je 0x41094d
call fcn.004108d0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x410a4f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x45450c]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x45450c]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x45450c]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x45450c]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x45450c]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x45450c]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x45450c]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x45450c]
xor eax, ecx
inc esi
dec edi
jne 0x410967
pop edi
test edx, edx
je 0x410a71
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x45450c]
xor eax, ecx
inc esi
dec edx
jne 0x410a53
pop ebx
pop esi
not eax
ret 0xc
Function at 0x42f9a0
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.0041efe0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42fa6b
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 0x42fa6b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42fa1e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42fa29
or bh, 8
and edi, 0x8000000
je 0x42fa44
mov eax, dword [0x4585fc]
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 0x42fa6b
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 0x42fe40
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 0x42fe6b
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 0x42fe8f
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 0x42feaa
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