joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46adcc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x46ae01
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.USER32.DLL_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0049cf7c
jmp 0x46ae0b
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.0049cee8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46bd58
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x46bd90
mov eax, esi
call fcn.0047b4c4
test al, al
je 0x46bd90
mov eax, dword [ebx + 0x74]
call fcn.0047b1c8
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x46bd90
push 0
mov eax, dword [ebx + 0x74]
call fcn.0047b1c8
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret

Function at 0x472e8c
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
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x4ddd24], 0
sete dl
or al, dl
jne 0x472fcc
mov eax, dword [0x4ddd28]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4ddd24]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x472f9b
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x4ddd24]
call fcn.0048a2e8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x472f93
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x472f93
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x472f93
mov eax, dword [ebp - 0x14]
call fcn.0047b1c8
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x472f93
push ebp
call fcn.00472e48
pop ecx
test al, al
jne 0x472f93
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x472f4f
mov eax, dword [ebp - 0x14]
call fcn.00479b54
dec eax
jle 0x472f93
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 bx, 0xffc1
call fcn.0049c414
cmp byte [ebp - 1], 0
je 0x472f93
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x472f93
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4ddd28]
call fcn.00472694
inc edi
dec esi
jne 0x472ee2
mov eax, dword [0x4ddd28]
cmp dword [eax + 8], 0
jle 0x472fb3
mov eax, dword [0x4ddd28]
call fcn.00472724
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x472fcc
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00472cb0
pop ecx
test al, al
jne 0x472fcc
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 0x478b60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x478b91
je 0x478beb
sub eax, 7
je 0x478bb2
dec eax
je 0x478bdc
sub eax, 0x17
je 0x478c90
jmp 0x478cce
add eax, 0xffffff00
sub eax, 9
jb 0x478c7c
add eax, 0xffffff09
sub eax, 0xb
jb 0x478c44
jmp 0x478cce
mov eax, ebx
call fcn.00462a18
mov edi, eax
test edi, edi
je 0x478d2e
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x478d37
jmp 0x478d2e
test byte [ebx + 0x44], 0x20
jne 0x478d37
jmp 0x478d2e
mov edx, esi
mov eax, ebx
call fcn.00476160
cmp dword [esi + 0xc], 0xffffffff
jne 0x478d37
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00493150
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00474c94
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00478a38
test eax, eax
je 0x478d37
mov dword [esi + 0xc], 1
jmp 0x478d37
mov edx, esi
mov eax, ebx
call fcn.00478acc
test al, al
je 0x478d2e
cmp dword [esi + 0xc], 0
jne 0x478d37
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.0047b1c8
push eax
call sub.USER32.DLL_DefWindowProcA
jmp 0x478d37
mov eax, ebx
call fcn.004757fc
test al, al
jne 0x478d37
jmp 0x478d2e
mov eax, ebx
call fcn.0047b1c8
mov edi, eax
call sub.USER32.DLL_GetCapture
cmp edi, eax
jne 0x478d2e
cmp dword [0x4d1140], 0
je 0x478d2e
mov eax, dword [0x4d1140]
cmp ebx, dword [eax + 0x24]
jne 0x478d2e
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4d1140]
call fcn.00476094
jmp 0x478d2e
mov eax, dword [0x4ddcec]
cmp byte [eax + 0x20], 0
je 0x478d2e
mov eax, dword [0x4ddcec]
cmp dword [eax + 0x1c], 0
je 0x478d2e
mov eax, dword [esi]
mov edx, dword [0x4ddcec]
cmp eax, dword [edx + 0x1c]
jne 0x478d2e
lea eax, [ebp - 0x110]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.0046295c
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.0049c414
jmp 0x478d37
mov edx, esi
mov eax, ebx
call fcn.00476160
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4791f8
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 + 0x1e8], 0
je 0x479214
cmp dword [esi + 4], 0
je 0x479241
test byte [ebx + 0x45], 1
jne 0x479233
mov eax, ebx
call fcn.00478130
test eax, eax
jne 0x479233
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x479351
mov edx, esi
mov eax, ebx
call fcn.00478e70
jmp 0x479351
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
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 0x47934a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0047b1c8
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.00476094
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004791f8
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 + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
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.0047b1c8
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479351
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 0x481d4c
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 0x481e24
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4ddd70], 0
jne 0x481e08
lea eax, [ebp - 4]
mov edx, 0x481e3c
call fcn.0049cf2c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0049d2d8
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x481e08
mov eax, ebx
call fcn.0049bafc
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x481e01
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 0x481deb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x481e4c
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x481deb
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4ddd70], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481e08
mov eax, dword [ebp - 0xc]
call fcn.0049bb14
ret
mov ebx, dword [0x4ddd70]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481e2b
lea eax, [ebp - 4]
call fcn.0049ce94
ret

Function at 0x49760c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x497645
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0049cf7c
jmp 0x49764e
mov eax, ebx
mov edx, esi
call fcn.0049cee8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x497658
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x497679
mov al, byte [esp]
jmp 0x49767b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x49bd40
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x49bd6f
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0049cf7c
jmp 0x49bd8d
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.0049bcc8
mov edi, eax
test ebx, ebx
je 0x49bd8d
cmp dword [esi], 0
je 0x49bd8d
dec ebx
jmp 0x49bd76
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x49c0b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d1560]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x49c148
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x49c128
xor eax, eax
push ebp
push 0x49c121
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x49c164
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c128
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4d1560]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d1560], ax
mov esp, ebp
pop ebp
ret

Function at 0x49ce48
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0049bafc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4de03d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x49ce10
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x49e53c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x49e6f8
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x49e59d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x49e714
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x49e60f
xor eax, eax
push ebp
push 0x49e608
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.0049e394
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x49e5f1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x49e734
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e60f
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x49e6f0
cmp byte [ebp - 0xd], 0
jne 0x49e651
cmp byte [ebp - 0x12], 0
je 0x49e6f0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x49e66a
dec ebx
cmp byte [ebx], 0x2e
je 0x49e679
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x49e669
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x49e6f0
inc ebx
cmp byte [ebp - 0x12], 0
je 0x49e6a6
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x49e6f0
cmp byte [ebp - 0xd], 0
je 0x49e6f0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x49e6f0
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49eae4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x49ebcc
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x4de420], 1
jae 0x49ebbe
xor eax, eax
mov dword [0x4de02c], eax
xor eax, eax
mov dword [0x4de034], eax
xor eax, eax
mov dword [0x4de038], eax
mov byte [0x4de03e], 2
mov byte [0x4de03f], 2
mov byte [0x4de040], 3
mov word [0x4de3e8], 0
mov word [0x4de3f8], 1
mov word [0x4de408], 0xa
mov dword [0x4de410], 0x80020004
mov dword [0x4de3dc], 0x49db9c
mov dword [0x4de3e0], 0x49db94
mov dword [0x4de3e4], 0x49db9c
call fcn.0049c080
test al, al
je 0x49eb7d
call fcn.0049c0b0
call fcn.0049c174
mov eax, 0x4de044
mov edx, 0x49ebd8
call fcn.00499812
mov eax, 0x4de210
mov edx, 0x49ebd8
call fcn.00499812
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4de024], eax
call fcn.0049a7b8
mov dword [0x4de020], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4de018], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ebd3
ret

Function at 0x4a0d88
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 0x4a0da4
call fcn.004a22a4
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4a0dc0
test bl, 1
je 0x4a0dc0
call fcn.004a897c
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4a0fa4
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.004a1e40
test byte [ebp + 0xd], 0xc0
jne 0x4a0fc8
mov eax, dword [0x4d249c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4a0fd5
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4a1002
je 0x4a1014
sub ecx, 0x100
je 0x4a1022
sub ecx, 0x100
je 0x4a1029
sub ecx, 0x100
je 0x4a101b
jmp 0x4a1030
sub ecx, 0x600
je 0x4a1029
sub ecx, 0x100
je 0x4a1014
jmp 0x4a1030
mov edi, 1
jmp 0x4a1035
mov edi, 2
jmp 0x4a1035
mov edi, 4
jmp 0x4a1035
mov edi, 5
jmp 0x4a1035
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4a105c
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4d1f14]
test al, 0x80
je 0x4a1055
mov ebx, 0x80
jmp 0x4a106e
mov ebx, 1
jmp 0x4a106e
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4a106e
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4a1080
je 0x4a1089
dec eax
je 0x4a1092
jmp 0x4a109b
mov dword [ebp - 4], 0x80000000
jmp 0x4a10aa
mov dword [ebp - 4], 0x40000000
jmp 0x4a10aa
mov dword [ebp - 4], 0xc0000000
jmp 0x4a10aa
push 1
call fcn.004a2238
pop ecx
mov ebx, eax
jmp 0x4a119a
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4a10c6
sub eax, 0x10
je 0x4a10cd
sub eax, 0x10
je 0x4a10d6
sub eax, 0x10
je 0x4a10df
jmp 0x4a10df
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4a10e6
mov dword [ebp - 8], 1
jmp 0x4a10e6
mov dword [ebp - 8], 2
jmp 0x4a10e6
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 0x4a1153
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4a1148
test byte [ebp + 0xd], 1
je 0x4a1143
mov ebx, 0x50
jmp 0x4a1148
mov ebx, 2
push ebx
call fcn.004a2238
pop ecx
mov ebx, eax
jmp 0x4a119a
mov edi, esi
push edi
call fcn.004a0f08
pop ecx
test eax, eax
je 0x4a1167
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4a1173
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004a1f60
add esp, 8
mov ebx, eax
inc eax
jne 0x4a119a
push 4
call fcn.004a2238
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004a1e74
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a5680
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.0049fb64
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.0049fbf4
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.0049fbf4
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 0x4d30bd
lea ecx, [ebp - 0x200]
push ecx
call fcn.0049fb64
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.0049fbf4
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.004a681c
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4a5791
push esi
call fcn.0049fbf4
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.0049fbf4
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.0049f5e0
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x4a5768
xor eax, eax
jmp 0x4a5818
push esi
call fcn.0049fbf4
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.0049fbf4
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.0049fac0
add esp, 0xc
jmp 0x4a57d1
mov edi, dword [ebx + 0x24]
push edi
call fcn.0049fbf4
pop ecx
push eax
push esi
call fcn.0049fbf4
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.0049fbf4
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0049f600
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x4a57d1
xor eax, eax
jmp 0x4a5818
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.0049fb64
add esp, 8
push 0x4d30bf
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0049fb64
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.0049fb64
add esp, 8
push 0x4d30c1
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0049fb64
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a8914
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 0x4a8976
call fcn.004a88c4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0049fbf4
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.0049fbf4
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 0x4a89f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4d3750], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4a8ace
cmp dword [0x4d374c], 0
jne 0x4a8ace
cmp dword [0x4d3930], 0
je 0x4a8a88
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.004a87c4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a8a6e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004a87c4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a8a6e
lea ebx, [ebp - 0x84]
jmp 0x4a8a6f
inc ebx
call fcn.004a89b0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4a8b09
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4d3754
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0049fbf4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4d3757
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4a8b09
cmp dword [0x4d374c], 0
je 0x4a8ae8
cmp dword [0x4d374c], 0xffffffff
je 0x4a8b09
push esi
call dword [0x4d374c]
pop ecx
mov eax, dword [0x4d3750]
test eax, eax
je 0x4a8b09
cmp dword [0x4d3750], 0xffffffff
je 0x4a8b09
cmp byte [eax], 0
je 0x4a8b09
push esi
push eax
call fcn.004a8914
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b040c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4b043a
mov eax, ebx
call fcn.004b0eb0
cmp dword [ebx + 0x3c], 0
je 0x4b0433
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4b04ab
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x4b049d
cmp dword [ebx + 8], 0
je 0x4b045c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x4b046e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b049d
cmp dword [ebx + 8], 0
je 0x4b044f
cmp eax, 3
je 0x4b0481
dec eax
jne 0x4b044f
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 0x4b044f
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x4b044f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4b04c9
cmp dword [ebx + 0x10], 0xcc
je 0x4b04c9
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.004b04d4
pop ebx
ret