joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470848
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4709f9
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.0043ad60
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x470a10
call fcn.0043a9c4
mov eax, ebx
call fcn.00425478
mov edi, eax
dec edi
test edi, edi
jl 0x470900
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0042544c
mov edx, dword [0x444610]
call fcn.00439d00
test al, al
je 0x4708fc
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.0042544c
lea edx, [ebp - 0x14]
call fcn.00476a10
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.0043ad60
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0043aa38
inc esi
dec edi
jne 0x4708ae
mov al, byte [0x470a14]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x470a20
mov eax, dword [ebp - 0xc]
call fcn.0042d7d0
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.0043a758
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00476a10
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x470a10
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f0]
call fcn.00476a10
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x470a10
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x470a10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x470a2c
call fcn.0042997c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470a00
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.0043a6e4
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0043a6e4
lea eax, [ebp - 0x14]
call fcn.0043a6c0
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0043a6e4
ret
Function at 0x474550
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 [0x4f5570], 0
je 0x47469f
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4d3af4]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x47469f
mov eax, dword [0x4f5574]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4f5570]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x47466e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4f5570]
call fcn.0041d094
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x474666
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x474666
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x474666
mov eax, dword [ebp - 0x14]
call fcn.0047d1b4
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x474666
push ebp
call fcn.0047450c
pop ecx
test al, al
jne 0x474666
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x474622
mov eax, dword [ebp - 0x14]
call fcn.0047bd48
dec eax
jle 0x474666
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, 0xffbd
call fcn.00439d70
cmp byte [ebp - 1], 0
je 0x474666
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x474666
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4f5574]
call fcn.00473cd4
inc edi
dec ebx
jne 0x4745b5
mov eax, dword [0x4f5574]
cmp dword [eax + 8], 0
jle 0x474686
mov eax, dword [0x4f5574]
call fcn.00473d64
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x47469f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00474374
pop ecx
test al, al
jne 0x47469f
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 0x477c90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x477cdc
mov eax, esi
call fcn.00462480
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x477cdc
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x477cdc
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x477e1b
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x477d1c
cmp eax, 0x108
ja 0x477d1c
mov eax, esi
call fcn.00462480
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x477e12
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x477e1b
jmp 0x477e12
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x477dfb
cmp eax, 0x20a
ja 0x477dfb
test byte [esi + 0x50], 0x80
jne 0x477d4e
sub eax, 0x203
je 0x477d4b
sub eax, 3
je 0x477d4b
sub eax, 3
jne 0x477d4e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x477d62
dec eax
je 0x477d77
dec eax
je 0x477d94
dec eax
je 0x477d77
jmp 0x477d9b
mov ecx, ebx
mov eax, dword [0x4d3af4]
mov eax, dword [eax]
mov edx, esi
call fcn.0046be7c
jmp 0x477e12
cmp byte [esi + 0x5d], 1
jne 0x477d8d
mov eax, esi
mov si, 0xffed
call fcn.00439d70
jmp 0x477e1b
or word [esi + 0x54], 1
jmp 0x477e12
and word [esi + 0x54], 0xfffe
jmp 0x477e12
mov eax, dword [0x4f552c]
cmp byte [eax + 0x20], 0
je 0x477e12
mov eax, dword [0x4f552c]
cmp dword [eax + 0x1c], 0
je 0x477e12
mov eax, dword [ebx]
mov edx, dword [0x4f552c]
cmp eax, dword [edx + 0x1c]
jne 0x477e12
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.004623c4
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00439d70
jmp 0x477e1b
cmp eax, 0xb00b
jne 0x477e12
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004765b0
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b3e4
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 + 0x1f8], 0
je 0x47b400
cmp dword [esi + 4], 0
je 0x47b42d
test byte [ebx + 0x55], 1
jne 0x47b41f
mov eax, ebx
call fcn.0047a03c
test eax, eax
jne 0x47b41f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x47b53d
mov edx, esi
mov eax, ebx
call fcn.0047af04
jmp 0x47b53d
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 0x47b536
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0047d1b4
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.00477bc4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0047b3e4
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.0047d1b4
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b53d
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 0x481a60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4d3ae0]
cmp byte [eax + 0xc], 0
je 0x481bcd
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x481bc6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f5580], 0
jne 0x481ab4
push 0x481bd4
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x481bdc
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f5580], eax
cmp dword [0x4cd254], 0
jne 0x481baf
push 0x481bec
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4cd254], eax
cmp dword [0x4cd254], 0
je 0x481baf
push 0x481bf8
mov eax, dword [0x4cd254]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f5584], eax
push 0x481c08
mov eax, dword [0x4cd254]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f5588], eax
push 0x481c1c
mov eax, dword [0x4cd254]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f558c], eax
push 0x481c34
mov eax, dword [0x4cd254]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f5590], eax
push 0x481c4c
mov eax, dword [0x4cd254]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f5594], eax
push 0x481c60
mov eax, dword [0x4cd254]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f5598], eax
push 0x481c78
mov eax, dword [0x4cd254]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f559c], eax
push 0x481c90
mov eax, dword [0x4cd254]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f55a0], eax
push 0x481cac
mov eax, dword [0x4cd254]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f55a4], eax
push 0x481cb8
mov eax, dword [0x4cd254]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f55a8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481bcd
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x489fdc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48a0b4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f55bc], 0
jne 0x48a098
lea eax, [ebp - 4]
mov edx, 0x48a0cc
call fcn.0043a758
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0043ab70
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x48a098
mov eax, ebx
call fcn.00438c90
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x48a091
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x48a07b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x48a0dc
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x48a07b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4f55bc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a098
mov eax, dword [ebp - 0xc]
call fcn.00438cb0
ret
mov ebx, dword [0x4f55bc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a0bb
lea eax, [ebp - 4]
call fcn.0043a6c0
ret
Function at 0x4a56f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x4a5727
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffa0
jmp 0x4a5731
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret

Function at 0x4a573c
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x4a57a2
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x4a57a2
call fcn.004a5f10
jmp 0x4a57dd
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x4a57b2
call fcn.004a5f10
jmp 0x4a57dd
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x4a57d8
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x4a57d6
cmp ebx, 1
je 0x4a57d6
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x4a57c3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a593c
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4a5982
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
je 0x4a5970
cmp eax, dword [ebp + 0x10]
jle 0x4a5a0b
call fcn.004a98bc
mov dword [eax], 8
xor eax, eax
jmp 0x4a5a78
cmp dword [0x505eb8], 1
jne 0x4a59c7
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x4a5a0b
xor eax, eax
jmp 0x4a5a78
call sub.KERNEL32.DLL_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x4a5a07
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
jmp 0x4a5a0b
xor eax, eax
jmp 0x4a5a78
lea edx, [ebp - 0x10c]
push edx
call fcn.004a420c
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x4a5a2c
call fcn.004a98bc
mov dword [eax], 0x22
xor eax, eax
jmp 0x4a5a78
test edi, edi
jne 0x4a5a4f
mov edx, dword [ebp + 0x10]
push edx
call fcn.004a3a40
pop ecx
mov edi, eax
test eax, eax
jne 0x4a5a4f
call fcn.004a98bc
mov dword [eax], 8
xor eax, eax
jmp 0x4a5a78
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a9854
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
je 0x4a98b6
call fcn.004a9804
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004a420c
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.004a420c
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 0x4a9934
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4d14d0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4a9a0e
cmp dword [0x4d14cc], 0
jne 0x4a9a0e
cmp dword [0x4d16d8], 0
je 0x4a99c8
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.004a9704
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a99ae
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004a9704
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a99ae
lea ebx, [ebp - 0x84]
jmp 0x4a99af
inc ebx
call fcn.004a98f0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4a9a49
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4d14d4
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004a420c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4d14d7
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4a9a49
cmp dword [0x4d14cc], 0
je 0x4a9a28
cmp dword [0x4d14cc], 0xffffffff
je 0x4a9a49
push esi
call dword [0x4d14cc]
pop ecx
mov eax, dword [0x4d14d0]
test eax, eax
je 0x4a9a49
cmp dword [0x4d14d0], 0xffffffff
je 0x4a9a49
cmp byte [eax], 0
je 0x4a9a49
push esi
push eax
call fcn.004a9854
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b0fc8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4b0ff6
mov eax, ebx
call fcn.004b1a80
cmp dword [ebx + 0x3c], 0
je 0x4b0fef
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4b1067
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4b1059
cmp dword [ebx + 8], 0
je 0x4b1018
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4b102a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b1059
cmp dword [ebx + 8], 0
je 0x4b100b
cmp eax, 3
je 0x4b103d
dec eax
jne 0x4b100b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4b100b
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4b100b
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4b1085
cmp dword [ebx + 0x10], 0xcc
je 0x4b1085
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004b1090
pop ebx
ret
Function at 0x404604
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406900
test esi, esi
jne 0x40463c
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406a3c
jmp 0x40465a
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044e8
mov edi, eax
test esi, esi
je 0x40465a
cmp dword [ebx], 0
je 0x40465a
dec esi
jmp 0x404643
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405e9c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c2054], 0
je 0x405efd
cmp word [0x4c2330], 0xd7b2
jne 0x405ec5
cmp dword [0x4c2338], 0
jbe 0x405ec5
mov eax, 0x4c232c
call dword [0x4c2348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405f28
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4bf030], 0
jne 0x405f19
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406088
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4bf034], 0
je 0x4060ae
mov edx, esi
mov eax, ebx
call dword [0x4bf034]
jmp 0x4060bd
mov eax, 8
call fcn.00404230
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4c2055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406050
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x40882c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408993
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406900
cmp si, word [0x4bf7dc]
jb 0x4088c6
cmp si, word [0x4bf9dc]
ja 0x4088c6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4088c6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4bf7dc]
jae 0x4088a0
mov edi, ebx
dec edi
jmp 0x4088c1
cmp si, word [ebx*8 + 0x4bf7dc]
jbe 0x4088b0
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4088c1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4bf7e0]
call fcn.0040873c
jmp 0x4088c6
cmp edi, dword [ebp - 0xc]
jae 0x40888a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408975
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408975
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406ae8
push dword [ebp - 0x164]
push 0x4089b0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406ae8
push dword [ebp - 0x168]
push 0x4089c0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406ae8
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406ea0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40899a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004068f8
ret