joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458f34
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x458f4b
add esp, 0xfffffff0
call fcn.0042e794
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00417c5c
mov eax, dword [0x4b3988]
cmp word [eax + 2], 0
jne 0x458f73
mov eax, dword [0x4b3988]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045a610
mov eax, dword [0x4b398c]
cmp word [eax + 2], 0
jne 0x458f8d
mov eax, dword [0x4b398c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045a808
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x40d64c]
call fcn.0042e400
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x40d64c]
call fcn.0042e400
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], SafeArrayPutElement
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x445efc]
call fcn.0044d68c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x459114
mov eax, dword [0x4b3944]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0044da5c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45ad88
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4b3944]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.USER32.DLL_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00420ad4
test eax, eax
je 0x459082
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0041cca4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00420afc
test eax, eax
je 0x459096
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.USER32.DLL_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.0042f1e4
mov eax, dword [0x4b394c]
cmp byte [eax], 0
jne 0x4590ca
mov eax, ebx
call fcn.0045923c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045af64
mov eax, ebx
call fcn.0045b914
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45910a
call fcn.0042e7ec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4594b0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4c235c]
cmp dword [eax + 0x30], 0
je 0x45955a
cmp dword [ebx + 0x94], 0
jne 0x459554
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x459440
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x459554
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_GetWindowLongA
test al, 8
je 0x45951a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x459554
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.0040fdec
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x459529
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45a038
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45a06d
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.USER32.DLL_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0042f06c
jmp 0x45a07a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0042efd0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45b140
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45b181
mov eax, esi
call fcn.0046b998
test al, al
je 0x45b181
mov eax, dword [ebx + 0x84]
call fcn.0046b694
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x45b181
push 0
mov eax, dword [ebx + 0x84]
call fcn.0046b694
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret
Function at 0x462b44
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 [0x4c2400], 0
je 0x462c93
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4b3974]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x462c93
mov eax, dword [0x4c2404]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4c2400]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x462c62
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4c2400]
call fcn.0040fdec
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x462c5a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x462c5a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x462c5a
mov eax, dword [ebp - 0x14]
call fcn.0046b694
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x462c5a
push ebp
call fcn.00462b00
pop ecx
test al, al
jne 0x462c5a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x462c16
mov eax, dword [ebp - 0x14]
call fcn.0046a228
dec eax
jle 0x462c5a
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.0042e62c
cmp byte [ebp - 1], 0
je 0x462c5a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x462c5a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4c2404]
call fcn.004622c8
inc edi
dec ebx
jne 0x462ba9
mov eax, dword [0x4c2404]
cmp dword [eax + 8], 0
jle 0x462c7a
mov eax, dword [0x4c2404]
call fcn.00462358
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x462c93
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00462968
pop ecx
test al, al
jne 0x462c93
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 0x466284
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 0x4662d0
mov eax, esi
call fcn.0045155c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4662d0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4662d0
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 0x46640f
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x466310
cmp eax, 0x108
ja 0x466310
mov eax, esi
call fcn.0045155c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x466406
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x46640f
jmp 0x466406
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4663ef
cmp eax, 0x20a
ja 0x4663ef
test byte [esi + 0x50], 0x80
jne 0x466342
sub eax, 0x203
je 0x46633f
sub eax, 3
je 0x46633f
sub eax, 3
jne 0x466342
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x466356
dec eax
je 0x46636b
dec eax
je 0x466388
dec eax
je 0x46636b
jmp 0x46638f
mov ecx, ebx
mov eax, dword [0x4b3974]
mov eax, dword [eax]
mov edx, esi
call fcn.0045aff8
jmp 0x466406
cmp byte [esi + 0x5d], 1
jne 0x466381
mov eax, esi
mov si, 0xffed
call fcn.0042e62c
jmp 0x46640f
or word [esi + 0x54], 1
jmp 0x466406
and word [esi + 0x54], 0xfffe
jmp 0x466406
mov eax, dword [0x4c23bc]
cmp byte [eax + 0x20], 0
je 0x466406
mov eax, dword [0x4c23bc]
cmp dword [eax + 0x1c], 0
je 0x466406
mov eax, dword [ebx]
mov edx, dword [0x4c23bc]
cmp eax, dword [edx + 0x1c]
jne 0x466406
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.004514a0
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.0042e62c
jmp 0x46640f
cmp eax, 0xb00b
jne 0x466406
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00464ba4
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 0x4698c4
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 0x4698e0
cmp dword [esi + 4], 0
je 0x46990d
test byte [ebx + 0x55], 1
jne 0x4698ff
mov eax, ebx
call fcn.0046851c
test eax, eax
jne 0x4698ff
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x469a1d
mov edx, esi
mov eax, ebx
call fcn.004693e4
jmp 0x469a1d
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 0x469a16
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0046b694
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.004661b8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004698c4
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.0046b694
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469a1d
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 0x46ff40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4b3960]
cmp byte [eax + 0xc], 0
je 0x4700ad
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4700a6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c2410], 0
jne 0x46ff94
push 0x4700b4
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x4700bc
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c2410], eax
cmp dword [0x4af3c8], 0
jne 0x47008f
push 0x4700cc
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4af3c8], eax
cmp dword [0x4af3c8], 0
je 0x47008f
push 0x4700d8
mov eax, dword [0x4af3c8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c2414], eax
push 0x4700e8
mov eax, dword [0x4af3c8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c2418], eax
push 0x4700fc
mov eax, dword [0x4af3c8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c241c], eax
push 0x470114
mov eax, dword [0x4af3c8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c2420], eax
push 0x47012c
mov eax, dword [0x4af3c8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c2424], eax
push 0x470140
mov eax, dword [0x4af3c8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c2428], eax
push 0x470158
mov eax, dword [0x4af3c8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c242c], eax
push 0x470170
mov eax, dword [0x4af3c8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c2430], eax
push 0x47018c
mov eax, dword [0x4af3c8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c2434], eax
push 0x470198
mov eax, dword [0x4af3c8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c2438], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4700ad
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x4757dc
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 0x4758b4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c244c], 0
jne 0x475898
lea eax, [ebp - 4]
mov edx, 0x4758cc
call fcn.0042f014
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0042f42c
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x475898
mov eax, ebx
call fcn.0042d420
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x475891
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 0x47587b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4758dc
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x47587b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4c244c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475898
mov eax, dword [ebp - 0xc]
call fcn.0042d440
ret
mov ebx, dword [0x4c244c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4758bb
lea eax, [ebp - 4]
call fcn.0042ef7c
ret

Function at 0x481b5c
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4c2470], 0
jne 0x481b7f
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x481ad0
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x4c2470], eax
ret

Function at 0x485b90
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 0x485bac
call fcn.00487090
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x485bc8
test bl, 1
je 0x485bc8
call fcn.0048d4d4
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x485dac
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.00486c2c
test byte [ebp + 0xd], 0xc0
jne 0x485dd0
mov eax, dword [0x4b0320]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x485ddd
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x485e0a
je 0x485e1c
sub ecx, 0x100
je 0x485e2a
sub ecx, 0x100
je 0x485e31
sub ecx, 0x100
je 0x485e23
jmp 0x485e38
sub ecx, 0x600
je 0x485e31
sub ecx, 0x100
je 0x485e1c
jmp 0x485e38
mov edi, 1
jmp 0x485e3d
mov edi, 2
jmp 0x485e3d
mov edi, 4
jmp 0x485e3d
mov edi, 5
jmp 0x485e3d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x485e64
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4afd98]
test al, 0x80
je 0x485e5d
mov ebx, 0x80
jmp 0x485e76
mov ebx, 1
jmp 0x485e76
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x485e76
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x485e88
je 0x485e91
dec eax
je 0x485e9a
jmp 0x485ea3
mov dword [ebp - 4], accept
jmp 0x485eb2
mov dword [ebp - 4], 0x40000000
jmp 0x485eb2
mov dword [ebp - 4], 0xc0000000
jmp 0x485eb2
push 1
call fcn.00487024
pop ecx
mov ebx, eax
jmp 0x485fa2
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x485ece
sub eax, 0x10
je 0x485ed5
sub eax, 0x10
je 0x485ede
sub eax, 0x10
je 0x485ee7
jmp 0x485ee7
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x485eee
mov dword [ebp - 8], 1
jmp 0x485eee
mov dword [ebp - 8], 2
jmp 0x485eee
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 0x485f5b
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x485f50
test byte [ebp + 0xd], 1
je 0x485f4b
mov ebx, 0x50
jmp 0x485f50
mov ebx, 2
push ebx
call fcn.00487024
pop ecx
mov ebx, eax
jmp 0x485fa2
mov edi, esi
push edi
call fcn.00485d10
pop ecx
test eax, eax
je 0x485f6f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x485f7b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00486d4c
add esp, 8
mov ebx, eax
inc eax
jne 0x485fa2
push 4
call fcn.00487024
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00486c60
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48a340
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.004847f4
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.004848b4
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.004848b4
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 0x4b1041
lea ecx, [ebp - 0x200]
push ecx
call fcn.004847f4
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.004848b4
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.0048b554
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x48a451
push esi
call fcn.004848b4
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.004848b4
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.00484114
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x48a428
xor eax, eax
jmp 0x48a4d8
push esi
call fcn.004848b4
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.004848b4
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.00484750
add esp, 0xc
jmp 0x48a491
mov edi, dword [ebx + 0x24]
push edi
call fcn.004848b4
pop ecx
push eax
push esi
call fcn.004848b4
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004848b4
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.00484134
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x48a491
xor eax, eax
jmp 0x48a4d8
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004847f4
add esp, 8
push 0x4b1043
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004847f4
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.004847f4
add esp, 8
push 0x4b1045
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004847f4
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48d46c
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 0x48d4ce
call fcn.0048d41c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004848b4
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.004848b4
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 0x48d54c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4b1650], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x48d626
cmp dword [0x4b164c], 0
jne 0x48d626
cmp dword [0x4b1830], 0
je 0x48d5e0
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.0048d31c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x48d5c6
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0048d31c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x48d5c6
lea ebx, [ebp - 0x84]
jmp 0x48d5c7
inc ebx
call fcn.0048d508
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x48d661
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4b1654
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004848b4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4b1657
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x48d661
cmp dword [0x4b164c], 0
je 0x48d640
cmp dword [0x4b164c], 0xffffffff
je 0x48d661
push esi
call dword [0x4b164c]
pop ecx
mov eax, dword [0x4b1650]
test eax, eax
je 0x48d661
cmp dword [0x4b1650], 0xffffffff
je 0x48d661
cmp byte [eax], 0
je 0x48d661
push esi
push eax
call fcn.0048d46c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret