joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4070a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x462014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call 0x33e0830
nop
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x407289
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x407289
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.004340f0
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call 0x33e09a0
nop
test eax, eax
je 0x407289
push 4
push 0x1000
push 4
push 0
call 0x33e0150
nop
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call 0x33800d9
nop
test eax, eax
je 0x407289
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0x458df8
push dword [esp + 0x30]
call 0x3380527
nop
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0x4071ac
push 0x458dfc
push 0x458e14
call 0x33d0ba7
nop
push eax
call 0x3380336
nop
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call 0x33803b0
nop
mov dword [esp + 0x14], eax
test eax, eax
je 0x407289
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call 0x33e073b
nop
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0x407243
mov dword [esp + 0xc], eax
call fcn.00406ef0
push eax
call 0x33c06f8
nop
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call 0x33e073b
nop
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x4071f2
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call 0x33e073b
nop
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call 0x3380738
nop
push dword [esp + 0x24]
call 0x33d0cbd
nop
push 0x8000
push 0
push esi
call 0x33e0688
nop
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0041cff1
mov esp, ebp
pop ebp
ret
Function at 0x41dcc7
Capabilities:
Parse pe header

Disassembly:
push 0
call 0x34302e1
nop
test eax, eax
je 0x41dd07
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41dd07
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41dd07
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41dd07
cmp dword [ecx + 0x74], 0xe
jbe 0x41dd07
cmp dword [ecx + 0xe8], 0
je 0x41dd07
mov al, 1
ret
xor al, al
ret
Function at 0x4012f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1118
call fcn.00501520
mov eax, dword [0x56dbc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1114]
push ecx
push 0x1000
lea edx, [ebp - 0x1108]
push edx
mov dword [ebp - 0x110c], eax
call dword [0x56f194]
test eax, eax
jne 0x40133b
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501491
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x1114]
push edi
shr ebx, 2
xor edi, edi
test ebx, ebx
je 0x401411
push esi
jmp 0x401360
mov eax, dword [str.unknown]
mov ecx, dword [0x526e2c]
push 0xfc
lea edx, [ebp - 0x100]
push 0
push edx
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], ecx
call fcn.005014a0
mov eax, dword [ebp + edi*4 - 0x1108]
add esp, 0xc
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401400
lea ecx, [ebp - 0x1118]
push ecx
push 4
lea edx, [ebp - 0x1110]
push edx
push esi
call dword [0x56f190]
test eax, eax
je 0x401400
mov ecx, dword [ebp - 0x1110]
push 0x104
lea eax, [ebp - 0x108]
push eax
push ecx
push esi
call dword [0x56f188]
mov edx, dword [ebp - 0x110c]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00401070
add esp, 8
test eax, eax
je 0x401400
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, ebx
jb 0x401360
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00501491
mov esp, ebp
pop ebp
ret

Function at 0x4014e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4014fb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401532
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40152e
jmp 0x401520
cmp esi, eax
jae 0x401532
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401520
cmp esi, eax
jb 0x401539
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518301
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x56dbc8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str.c:csb.log
lea ecx, [ebp - 0x128]
call fcn.00402550
push 0x104
lea eax, [ebp - 0x124]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x128]
push 0x526fc8
push edx
call fcn.00402100
mov eax, dword [ebp - 0x128]
add esp, 0xc
cmp dword [eax - 0xc], ebx
jge 0x4028e3
or eax, 0xffffffff
jmp 0x402900
push 0x526fc4
push eax
call fcn.005016c6
add esp, 8
cmp eax, ebx
jne 0x4028fa
or eax, 0xffffffff
jmp 0x402900
sub eax, dword [ebp - 0x128]
inc eax
push eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x128]
call fcn.00401d90
push eax
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 1
call fcn.00402050
mov eax, dword [ebp - 0x12c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402949
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 7
push str.csb.log
lea ecx, [ebp - 0x128]
call fcn.00401e90
mov ecx, dword [str.finish___]
mov edx, dword [0x526fb4]
mov ax, word [0x526fb8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x128]
push 0x3011
push ecx
mov bl, 2
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x1c], edx
mov word [ebp - 0x18], ax
mov byte [ebp - 4], bl
call fcn.004086d1
push 0xa
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 3
call fcn.00407c88
lea ecx, [ebp - 0x144]
call fcn.00407eec
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], bl
call fcn.004080bf
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4029ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00501491
mov esp, ebp
pop ebp
ret
Function at 0x40323d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x56dbc8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x403285
push 0x5272c8
push 4
push eax
call fcn.005023c0
push eax
call fcn.00402bcb
add esp, 0x10
jmp 0x40329b
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40331e
push edi
call fcn.00502b1c
mov edi, dword [eax]
call fcn.00502b1c
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00502ab9
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.00502b1c
cmp dword [eax], 0
je 0x4032f2
call fcn.00502b1c
push dword [eax]
call fcn.00402bf7
pop ecx
jmp 0x4032f9
call fcn.00502b1c
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x40331e
cmp dword [ebp - 0x11c], esi
jae 0x40331e
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x403320
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00501491
leave
ret
Function at 0x40332d
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x56dbc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push 0x526d7c
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00403115
pop ecx
cmp eax, esi
je 0x403417
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x403417
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.005014a0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x403417
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x403417
cmp esi, 0x14
jge 0x403417
push 0x10
push 0
push edi
call fcn.00502d42
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x403406
call fcn.00502b1c
cmp dword [eax], 0x22
je 0x403406
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00502b65
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x4033dc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x56f2b4], 0
jne 0x4034a2
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x4034cb
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0040323d
pop ecx
pop ecx
test eax, eax
jne 0x4034cd
inc edi
cmp edi, esi
jl 0x4034a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501491
leave
ret 8
Function at 0x408b74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x408bbc
call fcn.004074cf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x408bbc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x408bff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x408be8
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x408be8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x408bfc
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x409f8a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004074cf
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x409fc3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00409bcc
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40a021
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x40a045
cmp dword [edi + 0x74], 0
jne 0x40a045
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.004074cf
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00409fe2
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4104ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x410511
call fcn.004074cf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x410511
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41052d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040ffcf
mov esi, eax
test edi, edi
je 0x41052b
test ebx, ebx
je 0x41052b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x410ce8
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x51e8ed
call fcn.0050241f
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x410d0d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x410d5f
call fcn.00407698
push eax
lea ecx, [ebp - 0x10]
call fcn.00401870
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0050442c
push eax
call fcn.00402bcb
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401590
mov eax, esi
call fcn.005024f7
ret 8

Function at 0x412e77
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x56dbc8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x412eac
xor eax, eax
jmp 0x412eff
lea eax, [ebp - 0x210]
push eax
call fcn.00502b65
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x412edd
push 0x528ce0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00504e76
add esp, 0xc
test eax, eax
jne 0x412ea8
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00504e76
add esp, 0xc
test eax, eax
jne 0x412ea8
lea eax, [ebp - 0x210]
push eax
call fcn.0040bb86
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00501491
leave
ret

Function at 0x44f344
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0044f003
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x44f38e
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00401b60
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405030
jmp 0x44f399
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00414b78
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x44f39f
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004105d6
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x44f3dc
call fcn.0044f003
mov dword [esi + 0xc], 1
jmp 0x44f3e1
call fcn.0044f003
cmp dword [esi], 0
je 0x44f42a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x44f402
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00401b60
jmp 0x44f414
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401b20
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405030
jmp 0x44f44e
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x44f44e
push dword [esi]
push dword [ebp + 8]
call fcn.00414b78
pop esi
pop ebp
ret 0xc

Function at 0x48ce24
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x48ce3e
call fcn.004074cf
mov esi, dword [eax + 0xc]
push dword [0x573030]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x48ce5c
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x48ce54
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x48ce89
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x48ce56
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048cd52
mov esi, eax
jmp 0x48ce7b

Function at 0x4de757
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0040ea2c
call fcn.0040319b
cmp eax, esi
pop esi
jne 0x4de773
mov ecx, 0x570ec0
jmp fcn.00413d56
ret
Function at 0x4e205a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e2072
mov edi, dword [esi + 0xc]
jmp 0x4e20b2
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4e208b
call fcn.00411402
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e20a0
call fcn.00411402
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e20b2
call fcn.00411402
call fcn.004074cf
cmp dword [eax + 0x3c], 0
je 0x4e20c7
push edi
mov ecx, ebx
call fcn.004e0f20
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e1f74
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e20e5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e20f1
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x501491
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x56dbc8]
jne 0x50149b
repz ret
jmp fcn.005091a7
Function at 0x5149e7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x56dbc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.005088c1
and dword [ebp - 0x14], 0
cmp dword [0x5755bc], 0
mov dword [ebp - 0x18], eax
jne 0x514a9a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x514b42
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x514b42
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x54e23c
push ebx
mov dword [0x5755bc], eax
call edi
push eax
call esi
push 0x54e228
push ebx
mov dword [0x5755c0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5755c4], eax
call edi
push eax
call esi
mov dword [0x5755cc], eax
test eax, eax
je 0x514a9a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5755c8], eax
mov eax, dword [0x5755c8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x514af3
cmp dword [0x5755cc], ecx
je 0x514af3
push eax
call esi
push dword [0x5755cc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x514af3
test ebx, ebx
je 0x514af3
call edi
test eax, eax
je 0x514aea
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x514aea
test byte [ebp - 8], 1
jne 0x514af3
or dword [ebp + 0x10], 0x200000
jmp 0x514b26
mov eax, dword [0x5755c0]
cmp eax, dword [ebp - 0x18]
je 0x514b26
push eax
call esi
test eax, eax
je 0x514b26
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x514b26
mov eax, dword [0x5755c4]
cmp eax, dword [ebp - 0x18]
je 0x514b26
push eax
call esi
test eax, eax
je 0x514b26
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5755bc]
call esi
test eax, eax
je 0x514b42
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x514b44
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501491
leave
ret