joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b10
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 0x402b2b
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 0x402b62
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x402b5e
jmp 0x402b50
cmp esi, eax
jae 0x402b62
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402b50
cmp esi, eax
jb 0x402b69
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 0x403bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x564490]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403c0c
push 0
push edi
push 0x51f268
jmp 0x403ce3
xor ecx, ecx
mov eax, 0x4d42
mov dword [ebp - 0xe], ecx
mov ecx, dword [ebp - 0x1c]
push esi
mov word [ebp - 0x14], ax
call fcn.00403a00
mov ecx, dword [ebp - 0x1c]
movzx edi, ax
add edi, 0x36
push esi
mov dword [ebp - 0xa], edi
call fcn.00403a20
imul eax, dword [esi + 8]
add eax, edi
shr eax, 2
push 0
mov dword [ebp - 0x12], eax
lea eax, [ebp - 0x18]
push eax
push 0xe
lea ecx, [ebp - 0x14]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403cd1
cmp dword [ebp - 0x18], 0xe
jne 0x403cd1
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x1c]
cdq
sub eax, edx
sar eax, 1
push esi
mov dword [ebp - 0x24], eax
mov dword [esi + 8], eax
call fcn.00403a20
mov edi, eax
imul edi, dword [ebp - 0x24]
add edi, dword [ebp - 0xa]
push 0
lea edx, [ebp - 0x18]
push edx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403cbd
cmp dword [ebp - 0x18], edi
jne 0x403cbd
mov eax, dword [esi + 8]
add eax, eax
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fa7f1
mov esp, ebp
pop ebp
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
push 0
push ecx
push 0x51f258
jmp 0x403ce3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x20]
push 0
push edx
push 0x51f244
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004fa7f1
mov esp, ebp
pop ebp
ret 8
Function at 0x404350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
push 2
lea ecx, [ebp + 8]
push ecx
push esi
call edi
test eax, eax
jne 0x40437d
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 4], 2
jne 0x404372
cmp word [ebp + 8], 0
jne 0x404372
push 0
lea edx, [ebp - 4]
push edx
push 2
lea eax, [ebp + 8]
push eax
push esi
call edi
test eax, eax
je 0x404372
cmp dword [ebp - 4], 2
jne 0x404372
cmp word [ebp + 8], 1
jne 0x404372
push 0
lea ecx, [ebp - 4]
push ecx
push 2
lea edx, [ebp + 8]
push edx
push esi
call edi
test eax, eax
je 0x404372
cmp dword [ebp - 4], 2
jne 0x404372
movzx eax, word [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x404460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push 2
push 0
push esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
jne 0x4044b8
call fcn.00412130
test eax, eax
je 0x40449a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x40449c
xor eax, eax
mov ecx, dword [eax + 0x20]
push 0
push esi
push 0x51f3a8
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push edi
test eax, eax
je 0x404619
push 0xe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x404658
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404658
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x404658
movzx edi, word [eax + 4]
lea edx, [edi - 1]
shl edx, 5
add edx, 0x230
push edx
call fcn.004fb154
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
jne 0x404545
push eax
mov eax, dword [ebp + 8]
push eax
push 0x51f398
call fcn.00404250
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
push edx
lea eax, [esi + 0x108]
mov dword [esi + 0x20c], edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call edi
push 0x51f396
lea ecx, [esi + 4]
push ecx
call edi
cmp dword [esi + 0x20c], 0
mov dword [ebp - 8], 0
jbe 0x404619
mov edx, dword [ebp + 0xc]
add esi, 0x21c
add edx, 0x12
mov dword [ebp + 0xc], edx
lea esp, [esp]
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
push 3
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x40462c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40464c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
mov dword [esi + 4], edi
call fcn.004fb154
mov edx, dword [ebp - 0xc]
add esp, 4
push edi
push edx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov eax, dword [esi]
push eax
call fcn.004f9cf0
add esp, 0xc
lea ecx, [esi - 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004042e0
test eax, eax
je 0x404632
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add dword [ebp + 0xc], 0xe
inc eax
add esi, 0x20
mov dword [ebp - 8], eax
cmp eax, dword [edx + 0x20c]
jb 0x404590
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
push eax
jmp 0x404650
mov edx, dword [ebp + 8]
push 0
push edx
push 0x51f37c
call fcn.00404250
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.004fb11a
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp + 8]
push eax
push 2
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 4], 0
call edi
test eax, eax
jne 0x4046a3
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 8], 2
jne 0x404699
push 0
lea edx, [ebp + 8]
push edx
push 2
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 1
call edi
test eax, eax
je 0x404699
cmp dword [ebp + 8], 2
jne 0x404699
movzx ecx, word [ebp + 0xc]
push 0
lea edx, [ebp + 8]
push edx
push 2
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], ecx
call edi
test eax, eax
je 0x404699
xor eax, eax
cmp dword [ebp + 8], 2
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x404760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x564490]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebx
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xffffffff
jne 0x4047cc
call fcn.00412130
test eax, eax
je 0x4047b3
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x4047b5
xor eax, eax
mov ecx, dword [eax + 0x20]
push 0
push ebx
push 0x51f3ec
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x404911
mov edx, dword [edi + 0x20c]
mov ecx, dword [ebp - 0x18]
push edx
push esi
call fcn.00404670
test eax, eax
jne 0x40480d
call fcn.00412130
test eax, eax
je 0x4047f4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x4047f6
xor eax, eax
mov ecx, dword [eax + 0x20]
push 0
push ebx
push 0x51f3d8
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40490a
xor ebx, ebx
cmp dword [edi + 0x20c], ebx
jbe 0x4048a4
lea esi, [edi + 0x224]
mov al, byte [esi - 0x10]
mov dl, byte [esi - 0x14]
mov byte [ebp - 0x13], al
mov eax, dword [esi]
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x11], 0
mov dx, word [eax + 0xc]
mov word [ebp - 0x10], dx
mov ax, word [eax + 0xe]
movzx ecx, ax
movzx edx, dx
imul ecx, edx
mov word [ebp - 0xe], ax
cmp ecx, 8
jl 0x404857
mov byte [ebp - 0x12], 0
jmp 0x40485e
mov al, 1
shl al, cl
mov byte [ebp - 0x12], al
mov ecx, dword [esi - 4]
push ebx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x18]
push edi
call fcn.00404700
mov ecx, dword [ebp - 0x1c]
push 0
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 8], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404911
cmp dword [ebp - 0x20], 0x10
jne 0x404911
inc ebx
add esi, 0x20
cmp ebx, dword [edi + 0x20c]
jb 0x404821
mov esi, dword [ebp - 0x1c]
cmp dword [edi + 0x20c], 0
mov dword [ebp - 0x18], 0
jbe 0x40490a
lea esi, [edi + 0x224]
lea ebx, [ebx]
mov eax, dword [esi]
mov ebx, dword [eax + 0x14]
push 0
mov dword [eax + 0x14], 0
mov eax, dword [esi - 4]
mov ecx, dword [esi - 8]
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404911
mov eax, dword [ebp - 0x20]
cmp eax, dword [esi - 4]
jne 0x404911
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi]
inc eax
mov dword [ecx + 0x14], ebx
add esi, 0x20
mov dword [ebp - 0x18], eax
cmp eax, dword [edi + 0x20c]
jb 0x4048c0
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004fa7f1
mov esp, ebp
pop ebp
ret 8
Function at 0x404930
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
call fcn.00412130
test eax, eax
je 0x404947
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x404949
xor eax, eax
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4049c8
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4049c8
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x404971
pop ebx
pop ebp
ret 4
push esi
push edi
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [ebx + 0x10]
mov edi, eax
mov eax, dword [ebx + 0xc]
push edx
push eax
push edi
call fcn.004f9cf0
mov eax, dword [edi + 8]
cdq
sub eax, edx
add esp, 0xc
sar eax, 1
push esi
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
xor eax, eax
pop ebp
ret 4
Function at 0x40a65f
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.00415365
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 0x40a698
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.0040a2a1
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 0x40a6f6
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 0x40a71a
cmp dword [edi + 0x74], 0
jne 0x40a71a
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00415365
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.0040a6b7
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 0x410c4a
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 0x410c91
call fcn.00415365
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x410c91
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x410cad
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041074f
mov esi, eax
test edi, edi
je 0x410cab
test ebx, ebx
je 0x410cab
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x411765
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5166ff
call fcn.004fb97b
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41178a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4117dc
call fcn.0041192a
push eax
lea ecx, [ebp - 0x10]
call fcn.00402e20
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.004fb7a2
push eax
call fcn.004051d0
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.00402bc0
mov eax, esi
call fcn.004fba53
ret 8
Function at 0x416010
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.00415ccf
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41605a
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040ec09
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040d2a4
jmp 0x416065
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00418e8c
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41606b
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.0041142f
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 0x4160a8
call fcn.00415ccf
mov dword [esi + 0xc], 1
jmp 0x4160ad
call fcn.00415ccf
cmp dword [esi], 0
je 0x4160f6
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x4160ce
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040ec09
jmp 0x4160e0
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004030c0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040d2a4
jmp 0x41611a
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 0x41611a
push dword [esi]
push dword [ebp + 8]
call fcn.00418e8c
pop esi
pop ebp
ret 0xc

Function at 0x422501
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0045cb0c
call fcn.00414d96
cmp dword [eax + 0x14], 0
jne 0x42251e
mov ecx, esi
pop esi
jmp fcn.00421fe8
pop esi
ret

Function at 0x425ba6
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00414028
call fcn.00414d96
cmp dword [eax + 0x14], 0
jne 0x425bc3
mov ecx, esi
pop esi
jmp fcn.00425579
pop esi
ret
Function at 0x4615b2
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 0x4615cc
call fcn.00415365
mov esi, dword [eax + 0xc]
push dword [0x5691d0]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4615ea
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 0x4615e2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x461617
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4615e4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004614e0
mov esi, eax
jmp 0x461609

Function at 0x4df5cd
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 0x4df5e5
mov edi, dword [esi + 0xc]
jmp 0x4df625
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4df5fe
call fcn.00408bdc
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4df613
call fcn.00408bdc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4df625
call fcn.00408bdc
call fcn.00415365
cmp dword [eax + 0x3c], 0
je 0x4df63a
push edi
mov ecx, ebx
call fcn.004de48b
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004df4e7
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4df658
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4df664
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 0x4fa7f1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x564490]
jne 0x4fa7fb
repz ret
jmp fcn.00501b3c
Function at 0x50c5e8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x564490]
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.00501538
and dword [ebp - 0x14], 0
cmp dword [0x56bca0], 0
mov dword [ebp - 0x18], eax
jne 0x50c69b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x50c743
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x50c743
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x545b64
push ebx
mov dword [0x56bca0], eax
call edi
push eax
call esi
push 0x545b50
push ebx
mov dword [0x56bca4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x56bca8], eax
call edi
push eax
call esi
mov dword [0x56bcb0], eax
test eax, eax
je 0x50c69b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x56bcac], eax
mov eax, dword [0x56bcac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x50c6f4
cmp dword [0x56bcb0], ecx
je 0x50c6f4
push eax
call esi
push dword [0x56bcb0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x50c6f4
test ebx, ebx
je 0x50c6f4
call edi
test eax, eax
je 0x50c6eb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x50c6eb
test byte [ebp - 8], 1
jne 0x50c6f4
or dword [ebp + 0x10], 0x200000
jmp 0x50c727
mov eax, dword [0x56bca4]
cmp eax, dword [ebp - 0x18]
je 0x50c727
push eax
call esi
test eax, eax
je 0x50c727
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x50c727
mov eax, dword [0x56bca8]
cmp eax, dword [ebp - 0x18]
je 0x50c727
push eax
call esi
test eax, eax
je 0x50c727
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x56bca0]
call esi
test eax, eax
je 0x50c743
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x50c745
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fa7f1
leave
ret