joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4afb00
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4afba2
cmp dword [ebx + 0x94], 0
jne 0x4afb9c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4afa4c
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4afb9c
push 3
mov eax, dword [esp + 4]
push eax
call sub.USER32.DLL_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_GetWindowLongW
test al, 8
je 0x4afb62
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4afb9c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041e130
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4afb71
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4afdc0
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x51f66c]
cmp dword [eax + 0x170], 0
je 0x4aff25
test bl, bl
jne 0x4afe73
cmp dword [esi + 0x9c], 0
jne 0x4afe68
mov eax, esi
call fcn.004b2cb0
push eax
push 0x4afccc
call sub.USER32.DLL_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4afe39
mov eax, dword [0x51f66c]
cmp byte [eax + 0xd3], 0
je 0x4afe39
mov eax, dword [esi + 0xd8]
call fcn.004537a0
mov edi, eax
cmp edi, 0
jl 0x4afe39
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.USER32.DLL_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4afe22
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4afe68
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041e130
push eax
call sub.USER32.DLL_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4afe48
inc dword [esi + 0x9c]
jmp 0x4aff25
cmp dword [esi + 0x9c], 0
jle 0x4aff25
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4aff25
cmp dword [esi + 0x44], 0
je 0x4afed0
mov eax, dword [0x51f66c]
cmp byte [eax + 0xd3], 0
je 0x4afed0
mov eax, dword [esi + 0xd8]
call fcn.004537a0
mov edi, eax
cmp edi, 0
jl 0x4afed0
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.USER32.DLL_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4afeb9
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4afeff
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041e130
push eax
call sub.USER32.DLL_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4afedf
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4a2bb4]
call fcn.00453960
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4b0b74
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4b0bdf
cmp byte [ebx + 0xd3], 0
jne 0x4b0bdf
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.USER32.DLL_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004521a4
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4b0bcc
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4b0bec
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00452068
jmp 0x4b0bec
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00452068
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4b2414
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4b2482
mov eax, esi
call fcn.004d6394
test al, al
je 0x4b2482
mov eax, dword [ebx + 0x84]
call fcn.004d5fe8
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4b2482
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4b2476
push 0
mov eax, dword [ebx + 0x84]
call fcn.004d5fe8
push eax
call sub.USER32.DLL_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004ccfbc
jmp 0x4b2482
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004b224c
pop esi
pop ebx
ret
Function at 0x4bd2b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00452050
xor eax, eax
push ebp
push 0x4bd445
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.USER32.DLL_OpenClipboard
test eax, eax
je 0x4bd413
xor edx, edx
push ebp
push 0x4bd40c
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004520bc
mov eax, dword [ebp - 8]
test eax, eax
je 0x4bd31f
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4bd31f
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.0045179c
test eax, eax
je 0x4bd328
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4bd3e1
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x4bd3d0
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004520bc
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4bd38a
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4bd38a
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.0045179c
test eax, eax
je 0x4bd393
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.004520f4
lea ecx, [esi + 2]
mov edx, ebx
call fcn.0044f9a4
call sub.USER32.DLL_EmptyClipboard
mov eax, dword [ebp - 0x10]
push eax
push 0xd
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd3d7
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
mov ecx, dword [0x51a250]
mov dl, 1
mov eax, dword [0x433504]
call fcn.0043d290
call fcn.00450ef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd44c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00452060
ret
Function at 0x4ca604
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x51f730], 0
je 0x4ca745
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x519fec]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x4ca745
mov eax, dword [0x51f734]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x51f730]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4ca714
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x51f730]
call fcn.0041e130
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4ca70c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1ea], 0
je 0x4ca70c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x5c]
test al, al
je 0x4ca70c
mov eax, dword [ebp - 0x14]
call fcn.004d5fe8
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4ca70c
push ebp
call fcn.004ca5c0
pop ecx
test al, al
jne 0x4ca70c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.004506ac
test al, al
je 0x4ca70c
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.004506ac
cmp byte [ebp - 1], 0
je 0x4ca70c
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00431d58
test al, al
je 0x4ca70c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x51f734]
call fcn.004c9d18
inc edi
dec ebx
jne 0x4ca669
mov eax, dword [0x51f734]
cmp dword [eax + 8], 0
jle 0x4ca72c
mov eax, dword [0x51f734]
call fcn.004c9dd0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4ca745
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004ca424
pop ecx
test al, al
jne 0x4ca745
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d2b94
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.USER32.DLL_GetMessagePos
call fcn.00431d40
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.004ccbcc
test ebx, ebx
jne 0x4d2be7
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004d2a10
mov ebx, eax
test ebx, ebx
je 0x4d2cdd
cmp esi, ebx
je 0x4d2c10
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4d2c25
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4d2c5d
add eax, 0xffffff5f
sub eax, 2
jb 0x4d2c75
dec eax
sub eax, 2
jb 0x4d2c89
dec eax
sub eax, 2
jb 0x4d2c7f
jmp 0x4d2c93
add eax, 0xfffffdff
sub eax, 2
jb 0x4d2c75
dec eax
sub eax, 2
jb 0x4d2c89
dec eax
sub eax, 2
jb 0x4d2c7f
jmp 0x4d2c93
mov byte [esp + 0x120], 0
jmp 0x4d2c9b
mov byte [esp + 0x120], 2
jmp 0x4d2c9b
mov byte [esp + 0x120], 1
jmp 0x4d2c9b
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004a4d8c
mov esi, eax
call fcn.004c9404
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004ce58c
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4d2cdf
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x4e1744
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4e1831
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4e1803
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
xor edx, edx
push ebp
push 0x4e17f2
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.0044f9a4
mov eax, dword [ebp - 4]
call fcn.004e1484
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.USER32.DLL_SetClipboardData
test eax, eax
jne 0x4e17db
mov ecx, dword [0x51a140]
mov dl, 1
mov eax, dword [0x412da8]
call fcn.0043d290
call fcn.00450ef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e17f9
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
Function at 0x4e195c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 0xd
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4e19d0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4e19a2
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00452214
jmp 0x4e19ab
mov eax, ebx
xor edx, edx
call fcn.00452068
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e19d7
cmp dword [ebp - 8], 0
je 0x4e19c7
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4e1a68
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4e1b10
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x4e1ae3
mov edx, ebx
mov eax, dword [0x48cafc]
call fcn.00494e2c
test al, al
je 0x4e1ad3
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00494d44
call fcn.00450fec
jmp 0x4e1b17
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x4e1a9b
mov ecx, dword [0x51a2e4]
mov dl, 1
mov eax, dword [0x4e1398]
call fcn.0043d290
call fcn.00450ef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1b17
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4e1b20
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4e1b7c
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov dx, 2
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1b83
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4e1b8c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4e1be1
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1be8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4e1c58
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4e1ccd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004e1484
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.00494e08
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4e1cb7
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1cd4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4e1cdc
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4e1d51
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004e1484
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x68]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4e1d3b
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1d58
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4fe6e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4fe6fc
call fcn.004ff858
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4fe71b
test bl, 1
je 0x4fe71b
call fcn.00506d48
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x503254
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.004fd494
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
call fcn.004fd544
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004fd544
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x518561
lea ecx, [ebp - 0x200]
push ecx
call fcn.004fd494
add esp, 8
push 0xa
lea ecx, [ebp - 0x200]
push ecx
call fcn.004fd544
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov eax, dword [ebx]
push eax
call fcn.005046f4
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x503365
push esi
call fcn.004fd544
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.004fd544
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.004fc7ec
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x50333c
xor eax, eax
jmp 0x5033ec
push esi
call fcn.004fd544
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.004fd544
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.004fd3c3
add esp, 0xc
jmp 0x5033a5
mov edi, dword [ebx + 0x24]
push edi
call fcn.004fd544
pop ecx
push eax
push esi
call fcn.004fd544
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004fd544
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.004fc80c
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x5033a5
xor eax, eax
jmp 0x5033ec
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004fd494
add esp, 8
push 0x518563
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004fd494
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
mov eax, dword [ebx + 0x24]
push eax
call fcn.004fd494
add esp, 8
push 0x518565
mov edx, dword [ebx + 0x24]
push edx
call fcn.004fd494
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x506cdc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x506d09
jmp 0x506d40
call fcn.00506c8c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004fd544
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004fd544
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x506dc4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x518c0c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x506e9e
cmp dword [0x518c08], 0
jne 0x506e9e
cmp dword [0x518e08], 0
je 0x506e58
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00506794
add esp, 8
mov ebx, eax
test eax, eax
jne 0x506e3e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00506794
add esp, 8
mov ebx, eax
test eax, eax
jne 0x506e3e
lea ebx, [ebp - 0x84]
jmp 0x506e3f
inc ebx
call fcn.00506d7c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x506ed9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x518c10
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004fd544
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x518c13
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x506ed9
cmp dword [0x518c08], 0
je 0x506eb8
cmp dword [0x518c08], 0xffffffff
je 0x506ed9
push esi
call dword [0x518c08]
pop ecx
mov eax, dword [0x518c0c]
test eax, eax
je 0x506ed9
cmp dword [0x518c0c], 0xffffffff
je 0x506ed9
cmp byte [eax], 0
je 0x506ed9
push esi
push eax
call fcn.00506cdc
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x507770
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x5204a4], 0
jne 0x5077f1
cmp dword [0x5204c4], 0
jne 0x5077a0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x5204c4], eax
test eax, eax
jne 0x5077a0
push str.GetEnvironmentStrings_failed
call fcn.00506ef0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x5204c4]
jmp 0x5077b4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004fd544
pop ecx
mov edi, eax
test eax, eax
jne 0x5077ac
lea edi, [ebp + 1]
push edi
call fcn.004fc7ec
pop ecx
mov ebx, eax
mov dword [0x5204a8], ebx
test ebx, ebx
jne 0x5077de
xor eax, eax
jmp 0x5078b4
push edi
mov edx, dword [0x5204c4]
push edx
push ebx
call fcn.004fd1dc
add esp, 0xc
jmp 0x507811
xor esi, esi
mov ebx, dword [0x5204a4]
jmp 0x50780b
push eax
call fcn.004fd544
pop ecx
test eax, eax
jne 0x507807
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x5077fb
lea ebx, [esi + 4]
push 4
mov dword [0x5204ac], ebx
inc ebx
push ebx
call fcn.004fc750
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x507834
xor eax, eax
jmp 0x5078b4
cmp dword [0x5204a4], 0
jne 0x507865
xor esi, esi
mov ebx, dword [0x5204a8]
mov eax, dword [esp]
mov ebp, eax
jmp 0x507856
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004fd544
pop ecx
mov edi, eax
test eax, eax
jne 0x50784c
jmp 0x507896
xor esi, esi
mov ebx, dword [0x5204a4]
mov eax, dword [esp]
mov edi, eax
jmp 0x507890
push eax
call fcn.004fd544
pop ecx
test eax, eax
je 0x507885
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x507889
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x507874
mov eax, dword [0x5204a4]
test eax, eax
je 0x5078a6
push eax
call fcn.004fc7fc
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x5204a4], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41ab50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x1f5
mov eax, dword [ebp - 4]
sub eax, 1
cmp eax, 0x1f4
je 0x41ab8f
push 0x1f4
mov ecx, dword [ebp - 4]
sub ecx, 1
push ecx
push str._RCSfile:_outilparutils.cxx_v__
push str.file__s_:_internal_error__size_mismatch:_._noutilpar.inc_size_d__dtbmax.inc_size_d_nAborting._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0x10
push 0xffffffffffffffff
call dword [sym.imp.MSVCR100.dll_exit]
xor eax, eax
mov esp, ebp
pop ebp
ret