joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499858
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 - 9]
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 [0x5c8294], 0
je 0x4999a1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x52b3cc]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x4999a1
mov eax, dword [0x5c8298]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5c8294]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x499970
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5c8294]
call fcn.00432d0c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x499968
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x499968
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x499968
mov eax, dword [ebp - 0x14]
call fcn.004a3bfc
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x499968
push ebp
call fcn.00499814
pop ecx
test al, al
jne 0x499968
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.0045041c
test al, al
je 0x499968
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
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.0045041c
cmp byte [ebp - 1], 0
je 0x499968
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x499968
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5c8298]
call fcn.00498f80
inc edi
dec ebx
jne 0x4998bd
mov eax, dword [0x5c8298]
cmp dword [eax + 8], 0
jle 0x499988
mov eax, dword [0x5c8298]
call fcn.00499038
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4999a1
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00499678
pop ecx
test al, al
jne 0x4999a1
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 0x4a0dcc
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.0043e668
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.0049bbe0
test ebx, ebx
jne 0x4a0e1f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004a0d08
mov ebx, eax
test ebx, ebx
je 0x4a0f0a
cmp esi, ebx
je 0x4a0e48
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 0x4a0e5d
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 0x4a0e95
add eax, 0xffffff5f
sub eax, 2
jb 0x4a0ead
dec eax
sub eax, 2
jb 0x4a0ec1
dec eax
sub eax, 2
jb 0x4a0eb7
jmp 0x4a0ecb
add eax, 0xfffffdff
sub eax, 2
jb 0x4a0ead
dec eax
sub eax, 2
jb 0x4a0ec1
dec eax
sub eax, 2
jb 0x4a0eb7
jmp 0x4a0ecb
mov byte [esp + 0x120], 0
jmp 0x4a0ed3
mov byte [esp + 0x120], 2
jmp 0x4a0ed3
mov byte [esp + 0x120], 1
jmp 0x4a0ed3
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004838a0
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0049d388
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4a0f0c
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x4a1ba4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x4a1bc0
cmp dword [esi + 4], 0
je 0x4a1bed
test byte [ebx + 0x55], 1
jne 0x4a1bdf
mov eax, ebx
call fcn.0049ff60
test eax, eax
jne 0x4a1bdf
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4a1cfd
mov edx, esi
mov eax, ebx
call fcn.004a15ac
jmp 0x4a1cfd
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4a1cf6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004a3bfc
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0049d388
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004a1ba4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004a3bfc
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1cfd
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a900c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x52b1b8]
cmp byte [eax + 0xc], 0
je 0x4a9179
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a9172
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5c82a4], 0
jne 0x4a9060
push 0x4a9180
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x4a9188
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5c82a4], eax
cmp dword [0x524bc4], 0
jne 0x4a915b
push 0x4a9198
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x524bc4], eax
cmp dword [0x524bc4], 0
je 0x4a915b
push 0x4a91a4
mov eax, dword [0x524bc4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5c82a8], eax
push 0x4a91b4
mov eax, dword [0x524bc4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5c82ac], eax
push 0x4a91c8
mov eax, dword [0x524bc4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5c82b0], eax
push 0x4a91e0
mov eax, dword [0x524bc4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5c82b4], eax
push 0x4a91f8
mov eax, dword [0x524bc4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5c82b8], eax
push 0x4a920c
mov eax, dword [0x524bc4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5c82bc], eax
push 0x4a9224
mov eax, dword [0x524bc4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5c82c0], eax
push 0x4a923c
mov eax, dword [0x524bc4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5c82c4], eax
push 0x4a9258
mov eax, dword [0x524bc4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5c82c8], eax
push 0x4a9264
mov eax, dword [0x524bc4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5c82cc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9179
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4aa940
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 1
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4aa9b2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4aa986
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.0045101c
jmp 0x4aa98d
mov eax, ebx
call fcn.00450e24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa9b9
cmp dword [ebp - 8], 0
je 0x4aa9a9
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 0x4aa9c0
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 0x4aaa68
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x4aaa3b
mov edx, ebx
mov eax, dword [0x477f10]
call fcn.0047c648
test al, al
je 0x4aaa2b
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.0047c558
call fcn.00450b20
jmp 0x4aaa6f
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x4aa9f3
mov ecx, dword [0x52b64c]
mov dl, 1
mov eax, dword [0x43e888]
call fcn.00443508
call fcn.00450a74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aaa6f
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 0x4aaa78
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, 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 0x4aaad0
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aaad7
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4aaae0
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 0x4aab35
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 + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aab3c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4aabac
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 0x4aac21
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004aa87c
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.0047c61c
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 0x4aac0b
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 0x4aac28
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4aac30
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 0x4aaca5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004aa87c
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 + 0x60]
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 0x4aac8f
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 0x4aacac
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4ad72c
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
lea ebx, [ebp + 8]
mov eax, 0x5254ac
call fcn.004b6a80
mov word [ebp - 0x18], 0xc
mov edx, 0x52596c
mov ecx, dword [ebx]
mov dword [ecx], edx
push 0x10
call fcn.004b2120
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4ad779
mov word [ebp - 0x18], 0x30
mov edx, dword [ebp - 4]
push edx
call fcn.004b094c
pop ecx
mov word [ebp - 0x18], 0x24
mov ecx, dword [ebp - 4]
jmp 0x4ad77c
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x3c], ecx
mov word [ebp - 0x18], 0x18
mov eax, dword [ebx]
mov edx, dword [ebx]
add edx, 0xc
mov dword [eax + 0x14], edx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x10
mov dword [ecx + 0x18], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x1c
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov ecx, dword [ebx]
add ecx, 0x20
mov dword [eax + 0x28], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x2c
mov dword [ecx + 0x34], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x30
mov dword [edx + 0x38], eax
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x38]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x14]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x24]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x34]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b2f18
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
lea ebx, [ebp + 8]
mov eax, 0x526884
call fcn.004b6a80
mov word [ebp - 0x18], 0xc
mov edx, 0x526bf4
mov ecx, dword [ebx]
mov dword [ecx], edx
push 0x10
call fcn.004b2120
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4b2f65
mov word [ebp - 0x18], 0x30
mov edx, dword [ebp - 4]
push edx
call fcn.004b094c
pop ecx
mov word [ebp - 0x18], 0x24
mov ecx, dword [ebp - 4]
jmp 0x4b2f68
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x3c], ecx
mov word [ebp - 0x18], 0x18
mov eax, dword [ebx]
mov edx, dword [ebx]
add edx, 0xc
mov dword [eax + 0x14], edx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x10
mov dword [ecx + 0x18], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x1c
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov ecx, dword [ebx]
add ecx, 0x20
mov dword [eax + 0x28], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x2c
mov dword [ecx + 0x34], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x30
mov dword [edx + 0x38], eax
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x38]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x14]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x24]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x34]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b78d8
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 0x4b78f4
call fcn.004b910c
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4b7913
test bl, 1
je 0x4b7913
call fcn.004c056c
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4b7af4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004b8c88
test byte [ebp + 0xd], 0xc0
jne 0x4b7b18
mov eax, dword [0x527e60]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4b7b25
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4b7b52
je 0x4b7b64
sub ecx, 0x100
je 0x4b7b72
sub ecx, 0x100
je 0x4b7b79
sub ecx, 0x100
je 0x4b7b6b
jmp 0x4b7b80
sub ecx, 0x600
je 0x4b7b79
sub ecx, 0x100
je 0x4b7b64
jmp 0x4b7b80
mov edi, 1
jmp 0x4b7b85
mov edi, 2
jmp 0x4b7b85
mov edi, 4
jmp 0x4b7b85
mov edi, 5
jmp 0x4b7b85
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4b7bac
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x5278d8]
test al, 0x80
je 0x4b7ba5
mov ebx, 0x80
jmp 0x4b7bbe
mov ebx, 1
jmp 0x4b7bbe
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4b7bbe
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4b7bd0
je 0x4b7bd9
dec eax
je 0x4b7be2
jmp 0x4b7beb
mov dword [ebp - 4], accept
jmp 0x4b7bfa
mov dword [ebp - 4], 0x40000000
jmp 0x4b7bfa
mov dword [ebp - 4], 0xc0000000
jmp 0x4b7bfa
push 1
call fcn.004b90a0
pop ecx
mov ebx, eax
jmp 0x4b7cea
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4b7c16
sub eax, 0x10
je 0x4b7c1d
sub eax, 0x10
je 0x4b7c26
sub eax, 0x10
je 0x4b7c2f
jmp 0x4b7c2f
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4b7c36
mov dword [ebp - 8], 1
jmp 0x4b7c36
mov dword [ebp - 8], 2
jmp 0x4b7c36
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4b7ca3
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4b7c98
test byte [ebp + 0xd], 1
je 0x4b7c93
mov ebx, 0x50
jmp 0x4b7c98
mov ebx, 2
push ebx
call fcn.004b90a0
pop ecx
mov ebx, eax
jmp 0x4b7cea
mov edi, esi
push edi
call fcn.004b7a58
pop ecx
test eax, eax
je 0x4b7cb7
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4b7cc3
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004b8dc8
add esp, 8
mov ebx, eax
inc eax
jne 0x4b7cea
push 4
call fcn.004b90a0
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004b8cbc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bc9e0
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.004b6668
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.004b66f8
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.004b66f8
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 0x528b99
lea ecx, [ebp - 0x200]
push ecx
call fcn.004b6668
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.004b66f8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.004bdc48
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4bcaf1
push esi
call fcn.004b66f8
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.004b66f8
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.004b62c0
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x4bcac8
xor eax, eax
jmp 0x4bcb78
push esi
call fcn.004b66f8
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.004b66f8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.004b65c0
add esp, 0xc
jmp 0x4bcb31
mov edi, dword [ebx + 0x24]
push edi
call fcn.004b66f8
pop ecx
push eax
push esi
call fcn.004b66f8
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004b66f8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.004b62e0
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x4bcb31
xor eax, eax
jmp 0x4bcb78
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004b6668
add esp, 8
push 0x528b9b
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004b6668
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.004b6668
add esp, 8
push 0x528b9d
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004b6668
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c0500
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 0x4c052d
jmp 0x4c0564
call fcn.004c04b0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004b66f8
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.004b66f8
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 0x4c05e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x529300], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4c06be
cmp dword [0x5292fc], 0
jne 0x4c06be
cmp dword [0x5294e0], 0
je 0x4c0678
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.004c03b0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4c065e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004c03b0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4c065e
lea ebx, [ebp - 0x84]
jmp 0x4c065f
inc ebx
call fcn.004c05a0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4c06f9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x529304
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004b66f8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x529307
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4c06f9
cmp dword [0x5292fc], 0
je 0x4c06d8
cmp dword [0x5292fc], 0xffffffff
je 0x4c06f9
push esi
call dword [0x5292fc]
pop ecx
mov eax, dword [0x529300]
test eax, eax
je 0x4c06f9
cmp dword [0x529300], 0xffffffff
je 0x4c06f9
cmp byte [eax], 0
je 0x4c06f9
push esi
push eax
call fcn.004c0500
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret