joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1023f160
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x30
mov dword [ebp - 8], 0
mov dword [0x1025a114], 0x114c
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [0x1025a118], 0x255
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x1023f1ca
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0xe], 0x6c
sete dl
mov byte [ebp - 0x19], dl
xor eax, eax
mov cl, byte [ebp - 0x19]
test cl, 1
mov dword [ebp - 0x20], eax
jne 0x1023f2d8
jmp 0x1023f2ea
mov eax, dword [ebp - 0x14]
mov ecx, 0x17ef
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], ecx
je 0x1023f209
mov eax, 0x1b2b
mov ecx, dword [ebp - 0x24]
add ecx, 1
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x2c], eax
jl 0x1023f1ca
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov dword [0x1025a114], eax
mov dword [0x1025a118], 0x1c19
mov esi, dword [ebp - 0x10]
cmp word [esi + ecx*2 - 0x1a], 0x6c
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], edx
jne 0x1023f2ea
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x20], eax
jne 0x1023f2ea
xor eax, eax
mov dword [0x1025a118], 0xb65
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x20], eax
jne 0x1023f2ea
xor eax, eax
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffdd9
mov dword [0x1025a114], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x20], eax
jne 0x1023f2ea
mov eax, dword [ebp - 0x30]
add eax, 0x1fb
mov dword [0x1025a114], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dx, word [eax + ecx*2 - 0x12]
mov word [ebp - 0x32], dx
xor eax, eax
mov cx, word [ebp - 0x32]
cmp cx, 0x64
mov dword [ebp - 0x20], eax
jne 0x1023f2ea
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x20], eax
je 0x1023f1a1
jmp 0x1023f2ea
mov eax, 1
mov dword [0x1025a114], 0xff8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add esp, 0x30
pop esi
pop ebp
ret
Function at 0x1023f300
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x28]
mov edx, dword [0x1025a118]
add edx, 0xfffff095
mov dword [0x1025a114], edx
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.1023ece0
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], eax
lea eax, [0x1023f660]
mov dword [esp + 0x40], 0x136600
mov ecx, dword [0x1025a100]
mov dword [esp + 0x60], ecx
mov ecx, dword [0x1025a104]
mov dword [esp + 0x34], ecx
mov ecx, dword [0x1025a108]
mov dword [esp + 0x74], ecx
mov ecx, dword [0x1025a10c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [0x1025a110]
mov dword [esp + 0x48], ecx
mov dword [0x1025a118], 0x207b
mov dword [0x1025a114], 0x202a
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
jne 0x1023f3c3
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x1023f3e1
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x1025a118], 0x1067
mov dword [esp + 0x1c], eax
jmp 0x1023f39c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov dword [0x1025a118], 0x336
mov dword [0x1025a114], 0xa55
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x38], eax
call fcn.1023f160
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x1023f452
lea eax, [esp + 0x28]
mov dword [0x1025a114], 0x1bcd
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1023f9f0
mov ecx, esp
lea edx, [esp + 0x28]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x1023f4f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x1025a11c], 0
mov dword [0x1025a120], 0
mov dword [0x1025a12c], 0
mov edi, dword [0x1025a118]
add edi, 0xfffff42c
mov dword [0x1025a114], edi
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x1023f654
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x1023f55d
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1025a11c], edx
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1025a120], edx
mov dword [0x1025a118], 0xc7e
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1025a124], cl
mov dword [0x1025a114], 0xffffeec8
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x1025a124]
mov edx, dword [0x1025a120]
mov byte [edi + edx], cl
mov dword [0x1025a114], 0x13fb
mov edx, dword [0x1025a11c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x1025a120]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x1025a12c], ebx
mov dword [0x1025a114], 0xffffe559
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
xor cl, byte [edx + ebx]
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], cl
mov dword [0x1025a118], 0xd2
add ebx, 1
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
mov dword [ebp - 0x38], ebx
je 0x1023f652
mov eax, dword [0x1025a11c]
mov ecx, dword [0x1025a120]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
jmp 0x1023f55d
jmp 0x1023f654
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1023f7e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 8]
mov dword [0x1025a114], 0x2410
mov dword [ebp - 0x10], eax
call fcn.1023e590
mov ecx, eax
mov edx, dword [eax + 0x3c]
mov dword [0x1025a118], 0x336
mov dword [0x1025a114], 0xa55
mov edx, dword [eax + edx + 0x78]
mov dword [0x1025a114], 0x1f57
mov esi, ecx
add esi, dword [eax + edx + 0x20]
mov dword [0x1025a118], 0x1824
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, dword [ecx + edx + 0x18]
cmp esi, 0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], eax
je 0x1023f96f
jmp 0x1023f8be
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x1023f96f
mov eax, dword [ebp - 0x28]
mov ecx, eax
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov bl, cl
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x31], bh
mov byte [ebp - 0x32], cl
mov byte [ebp - 0x33], bl
je 0x1023f90e
jmp 0x1023f8dc
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov esi, dword [ebp - 0x1c]
mov edi, dword [esi + ecx*4]
mov dword [0x1025a114], 0x2410
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edx
jmp 0x1023f868
mov eax, dword [ebp - 0x14]
add eax, 0x24
mov dword [ebp - 0x48], eax
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x48]
add ecx, dword [ecx + edx]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
jmp 0x1023f898
mov eax, dword [ebp - 0x30]
add eax, 1
mov cl, byte [ebp - 0x31]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x32]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dl, byte [ebp - 0x32]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x33], dl
jne 0x1023f868
mov al, byte [ebp - 0x33]
test al, 1
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x4c], ecx
jne 0x1023f942
mov eax, dword [ebp - 0x40]
add eax, 2
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov edx, dword [ebp - 0x20]
cmp ecx, edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
jb 0x1023f898
jmp 0x1023f85e
mov eax, dword [ebp - 0x4c]
movzx eax, word [eax]
mov dword [0x1025a114], 0x1488
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add ecx, dword [ecx + edx + 0x1c]
mov dword [0x1025a118], 0x1415
mov esi, dword [ebp - 0x18]
add esi, dword [ecx + eax*4]
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10012c0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov dword [esp + 4], ecx
jmp fcn.010cb460
Function at 0x10121e0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0
jne 0x1012203
push 0x158
push 0x10e6858
call fcn.0100a6d0
test eax, eax
je 0x1012203
int3
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
jmp 0x101221c
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 8]
jge 0x10122a1
cmp dword [ebp + 0xc], 0
je 0x101223f
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*8 + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x1012286
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x101226d
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x20], eax
jmp 0x1012274
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
mov dword [edx + eax*4], 0
jmp 0x101229c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
cmp dword [edx + eax*4], 0
je 0x101229c
mov dword [ebp - 4], 0
jmp 0x1012213
cmp dword [ebp - 4], 0
je 0x1012317
mov ecx, dword [ebp - 0x1c]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.0105b9d0
mov eax, dword [ebp - 0x1c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x1012302
push 1
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x24], eax
jmp 0x1012309
mov dword [ebp - 0x24], 0
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret 8
Function at 0x1012320
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0x1012363
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1012361
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.010121e0
jmp 0x1012398
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.01012910
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1012398
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.010121e0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x1012371
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret 8
Function at 0x102bf10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x60]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x5c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x58], 0
je 0x102bf63
call fcn.01014200
mov dword [ebp - 0x10], eax
push 5
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x58]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x102bf76
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 8], 0
je 0x102c002
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 2]
cmp edx, 0xffff
jne 0x102bfbb
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx + 0x12]
mov word [ebp - 0x1c], ax
mov ecx, dword [ebp - 8]
mov dx, word [ecx + 0x14]
mov word [ebp - 0x18], dx
jmp 0x102bfd1
mov eax, dword [ebp - 8]
mov cx, word [eax + 0xa]
mov word [ebp - 0x1c], cx
mov edx, dword [ebp - 8]
mov ax, word [edx + 0xc]
mov word [ebp - 0x18], ax
mov ecx, dword [ebp - 0x20]
and ecx, 0x1801
jne 0x102bff5
movsx edx, word [ebp - 0x1c]
test edx, edx
jne 0x102bff5
movsx eax, word [ebp - 0x18]
test eax, eax
jne 0x102bff5
mov dword [ebp - 0x28], 1
jmp 0x102bffc
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x58], 0
jne 0x102c014
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x5c], 0
je 0x102c01d
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0102c490
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x58], 0
je 0x102c030
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x102eb50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x102eb7e
push 0x44f
push 0x10fd7e0
call fcn.0100a6d0
test eax, eax
je 0x102eb7e
int3
mov eax, dword [ebp - 8]
cmp dword [eax + 0x50], 0
jne 0x102ebc4
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.01011650
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.01011680
jmp 0x102ebde
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x50]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x50]
mov edx, dword [eax]
mov eax, dword [edx + 0x94]
call eax
mov esp, ebp
pop ebp
ret 4

Function at 0x1034d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x1034de3
call fcn.01014200
mov dword [ebp - 0x10], eax
push 0xf0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1034de3
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1034dbc
xor eax, eax
jmp 0x1034e14
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1034de3
push 0x1007
push 0x10fef80
call fcn.0100a6d0
test eax, eax
je 0x1034de3
int3
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.01034e20
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x1034e11
cmp dword [ebp - 0xc], 0
je 0x1034e11
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0102c490
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x1040a40
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2c], 0
jne 0x1040a64
push 0x407
push 0x1105ac8
call fcn.0100a6d0
test eax, eax
je 0x1040a64
int3
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret
Function at 0x1041a70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10d8998
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x115e76c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1041ac6
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x50], 0
jne 0x1041ac6
push 0x100
push 0x1106fb4
call fcn.0100a6d0
test eax, eax
je 0x1041ac6
int3
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x50], 0
jne 0x1041ae8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x1041b4b
lea ecx, [ebp - 0x10]
call fcn.0100f000
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x50]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x50]
mov edx, dword [edx]
mov eax, dword [edx + 0x94]
call eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0101b260
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.01006400
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01009720
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x1045d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 1
je 0x1045d9f
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 8], eax
jmp 0x1045dfa
push 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1045dc3
call fcn.0104cc10
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1045de2
call fcn.0104cc10
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1045dfa
call fcn.0104cc10
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 2]
cmp ecx, 0xffff
jne 0x1045eb6
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
and edx, 0x80000000
je 0x1045e85
call fcn.010104b0
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.01019c70
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1045e4d
push 0x12b
push 0x1108b2c
call fcn.0100a6d0
test eax, eax
je 0x1045e4d
int3
cmp dword [ebp - 0x18], 0
je 0x1045e83
push 0x1108b64
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1045e83
xor eax, eax
jne 0x1045e83
push 0x130
push 0x1108b74
call fcn.0100a6d0
test eax, eax
je 0x1045e83
int3
jmp 0x1045eb6
mov edx, dword [ebp - 0x14]
and edx, 0xffff
movzx eax, dx
and eax, 0xff
movzx ecx, al
cmp ecx, 3
jne 0x1045eb6
xor edx, edx
jne 0x1045eb6
push 0x136
push 0x1108bac
call fcn.0100a6d0
test eax, eax
je 0x1045eb6
int3
call fcn.010104b0
cmp dword [eax + 0x3c], 0
je 0x1045ed0
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.01045d30
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.01045be0
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x5c], 0
je 0x1045f00
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x5c], 0
cmp dword [ebp - 4], 0
je 0x1045f15
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x5c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
or edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov esp, ebp
pop ebp
ret 8