joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a9e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x425ce8], ebx
push esi
push edi
jne 0x40aa60
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40aa9b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41e83c
push edi
call esi
test eax, eax
mov dword [0x425ce8], eax
je 0x40aa9b
push 0x41e82c
push edi
call esi
push 0x41e818
push edi
mov dword [0x425cec], eax
call esi
cmp dword [0x4258a8], 2
mov dword [0x425cf0], eax
jne 0x40aa60
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x425cf8], eax
je 0x40aa60
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x425cf4], eax
mov eax, dword [0x425cf4]
test eax, eax
je 0x40aaa5
call eax
test eax, eax
je 0x40aa8c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x425cf8]
test eax, eax
je 0x40aa8c
test byte [ebp - 8], 1
jne 0x40aaa5
cmp dword [0x4258b4], 4
jb 0x40aa9f
or byte [ebp + 0x12], 0x20
jmp 0x40aac4
xor eax, eax
jmp 0x40aad4
or byte [ebp + 0x12], 4
jmp 0x40aac4
mov eax, dword [0x425cec]
test eax, eax
je 0x40aac4
call eax
mov ebx, eax
test ebx, ebx
je 0x40aac4
mov eax, dword [0x425cf0]
test eax, eax
je 0x40aac4
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x425ce8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bfaf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x40c183
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x426e00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x40c183
test cl, 0x48
je 0x40c01a
cmp byte [eax + 5], 0xa
je 0x40c01a
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c06c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x40c054
call fcn.0040512a
mov dword [eax], 9
call fcn.00405133
mov dword [eax], esi
jmp 0x40c064
cmp eax, 0x6d
je 0x40c183
push eax
call fcn.0040513c
pop ecx
or eax, 0xffffffff
jmp 0x40c185
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x40c17e
test eax, eax
je 0x40c093
cmp byte [ebx], 0xa
jne 0x40c093
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40c09c
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x40c178
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x40c168
cmp al, 0xd
je 0x40c0ce
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x40c15a
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x40c0e8
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x40c0e3
add dword [ebp + 0x10], 2
jmp 0x40c13c
mov dword [ebp + 0x10], eax
jmp 0x40c156
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c110
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40c156
cmp dword [ebp - 0xc], 0
je 0x40c156
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40c131
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40c13c
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40c159
cmp ebx, dword [ebp + 0xc]
jne 0x40c141
cmp byte [ebp - 1], 0xa
jne 0x40c141
mov byte [ebx], 0xa
jmp 0x40c159
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040a2b8
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40c15a
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x40c0b2
jmp 0x40c178
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40c178
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x40c185
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412c95
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4229c8]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x412ce4
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x412ce4
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x412cf0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00403ab3
leave
ret 8

Function at 0x4146bc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4229c8]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x414709
push dword [ebp + 8]
call fcn.00418e7a
mov esi, eax
test esi, esi
je 0x414731
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x414731
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x41d244
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00403ab3
leave
ret 0xc

Function at 0x4176c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x4229c8]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x41771e
push 0x41b984
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00403a2b
add esp, 0x10
cmp eax, 0xffffffff
je 0x417732
cmp eax, esi
jae 0x417732
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x417734
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4176e9
jmp 0x417735
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.00403ab3
leave
ret
Function at 0x417755
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4229c8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4177f7
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x4178f9
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4178a7
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4178fa
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41789c
cmp dword [ebp - 0x24], 1
jne 0x41789c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x41b994
push eax
call fcn.00403ac1
add esp, 0xc
cmp eax, 1
jne 0x41789c
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4178fa
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x4178fa
lea ecx, [ebp - 0x18]
push ecx
push 0x41773f
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x4178fa
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x417920
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.004176c0
cmp eax, ebx
pop ecx
pop ecx
jne 0x417922
inc edi
cmp edi, esi
jl 0x417909
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00403ab3
leave
ret 4
Function at 0x417931
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x422110
je 0x4179ed
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4179d5
mov esi, dword [ebx + 4]
jmp 0x4179cf
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4179bf
cmp dword [ebp - 0xc], 4
jne 0x4179bf
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x4179b7
or dword [eax + 0x9c], ecx
jmp 0x4179bf
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x417983
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x417966
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x417dda
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x419e36
call fcn.004031c0
sub esp, 0x11c
mov eax, dword [0x4229c8]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x417ed3
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x417ea7
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00401a6c
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00417dda
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401026
test bl, bl
jne 0x417ea7
or dword [ebp - 4], 0xffffffff
jmp 0x417e18
cmp esi, 0x103
je 0x417eb7
cmp esi, 0x3f2
jne 0x417ec7
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00403ab3
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4190f2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x419127
cmp edi, dword [esi + 0xc]
jge 0x419127
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x419127
cmp edi, dword [eax + 8]
jge 0x419127
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x419129
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x41922d
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x419261
jmp fcn.0040d511
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x4192d2
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x4193cb
cmp eax, dword [edi + 0xc]
jge 0x4193cb
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x419323
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x4193b4
cmp dword [ebp + 0xc], ebx
je 0x4193b4
jmp 0x41934d
push 0x10
call fcn.00418fbe
cmp eax, ebx
je 0x419339
mov ecx, eax
call fcn.00419224
mov esi, eax
jmp 0x41933b
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x419364
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x419374
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x419386
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0040d511
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00404460
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4193c6
cmp ecx, dword [esi + 8]
jge 0x4193c6
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x4193cc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41948b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4194b9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4194d7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004193f5
jmp 0x4194d7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4194d7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004193f5
test edi, edi
mov eax, edi
jne 0x4194c1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4255dc]
test ecx, ecx
je 0x41958a
jmp 0x41948a
ret 8
Function at 0x497cd0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov eax, ecx
mov ebx, dword [esp + 0x10]
cdq
and edx, 7
push ebp
add eax, edx
and ecx, 7
sar eax, 3
push esi
mov esi, dword [esp + 0x10]
test eax, eax
mov ebp, ecx
jle 0x497d1b
push edi
mov edi, eax
push 8
mov ecx, esi
call fcn.00492570
xor ecx, ecx
and eax, 0xff
mov cl, bh
xor edx, edx
xor eax, ecx
mov dh, bl
mov ebx, dword [eax*4 + 0x4a0084]
xor ebx, edx
dec edi
jne 0x497cf6
pop edi
test ebp, ebp
jle 0x497d47
push 1
mov ecx, esi
call fcn.00492570
mov ecx, ebx
and ebx, 0x7fff
shr ecx, 0xf
and ecx, 1
xor eax, ecx
shl ebx, 1
test eax, eax
je 0x497d44
xor ebx, 0x8005
dec ebp
jne 0x497d1f
pop esi
mov eax, ebx
pop ebp
pop ebx
ret

Function at 0x10bbd058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10bbd1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10bbd07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10bbd06a
add dl, dl
jne 0x10bbd089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10bbd0dc
xor eax, eax
add dl, dl
jne 0x10bbd096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10bbd17d
add dl, dl
jne 0x10bbd0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10bbd0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10bbd0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10bbd0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10bbd0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10bbd075
mov eax, 1
add dl, dl
jne 0x10bbd0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10bbd0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10bbd0e1
sub eax, ebx
mov ebx, 1
jne 0x10bbd128
mov ecx, 1
add dl, dl
jne 0x10bbd10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10bbd119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10bbd105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10bbd075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10bbd13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10bbd14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10bbd136
cmp eax, 0x7d00
jae 0x10bbd16d
cmp eax, 0x500
jb 0x10bbd168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10bbd075
cmp eax, 0x7f
ja 0x10bbd170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10bbd075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10bbd19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10bbd075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x43534b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042708b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x435383
xor eax, eax
jmp 0x4353af
cmp esi, dword [ebp - 4]
je 0x4353ac
cmp dword [ebp + 0xc], 0
je 0x4353ac
push dword [edi + 0x9c]
call fcn.00434f59
push dword [edi + 0x9c]
mov esi, eax
call fcn.00424fcd
pop ecx
pop ecx
cmp esi, eax
je 0x43537f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x100113e
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov ax, word [esi]
cmp ax, 0x22
push 2
pop ecx
jne 0x1001171
add esi, ecx
mov ax, word [esi]
test ax, ax
je 0x1001169
cmp ax, 0x22
jne 0x1001159
cmp word [esi], 0x22
jne 0x1001189
jmp 0x1001187
cmp ax, 0x20
jbe 0x1001189
add esi, ecx
cmp word [esi], 0x20
ja 0x1001177
jmp 0x1001189
cmp ax, 0x20
ja 0x1001191
add esi, ecx
mov ax, word [esi]
test ax, ax
jne 0x1001181
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x18], 1
je 0x10011ab
movzx eax, word [ebp - 0x14]
jmp 0x10011ae
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x11286f6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x138048d
cmp si, 0x46d7
cmc
clc
cmp ecx, dword [ebp - 8]
jb 0x1f4c1c8
pushal
lea esp, [esp + 0x20]
jbe fcn.011230df
bswap si
adc si, 0xa4a7
sub ecx, 1
bts si, 2
xor di, bx
bsr si, si
xadd di, si
mov dword [ebp - 4], ecx
push 0xe34ae409
seto ch
or si, 0x1b62
movsx ecx, bl
mov ecx, dword [ebp - 8]
pushal
add ecx, dword [ebp - 4]
bt ecx, esi
not si
shr ecx, 1
pushfd
xadd di, si
sub si, sp
add si, 0x820a
mov edi, dword [ebx + ecx*4]
btc si, 0xd
ror esi, 3
rcl si, 8
add edi, eax
not esi
lea esi, [eax*8 - 0x778f35e7]
mov esi, dword [ebp + 0xc]
lea esp, [esp + 0x28]
push ecx
mov dword [esp], eax
pushfd
lodsb al, byte [esi]
call fcn.01f327f9
add byte [eax], al
inc edi
je 0x11253e2
outsd dx, dword [esi]
jne 0x1125405
dec eax
popal
outsb dx, byte [esi]
insb byte es:[edi], dx
inc ecx
add byte [ecx], dl
leave
call fcn.01122658
test eax, 0xfcde090
push cs
sti
xchg ecx, eax
mov dl, 0xec
into
int3
test dword [ecx - 0x4949e980], ebx
xchg esi, eax
pushfd
xor byte [esi], al
imul ecx, dword [ebp - 0x28], 0x6e
xchg esi, eax
inc ecx
enter 0xffffffffffffdbaf, 0xffffffffffffffff
push edx
mov dl, 0x6e
and al, 0xe7
lodsb al, byte [esi]
jns 0x1125396
ja 0x11253f0
adc eax, 0xdbe43b8a
int1
jnp 0x112547d
cli
adc eax, 0x8a2d1167
push ecx
mov bl, 0xd9
mov dword [0xa58cf17], eax
cmp al, 0x29
movsd dword es:[edi], dword [esi]
mov byte [0xefd013ec], al
and eax, 0x350c9054
imul ebp, ecx, 0x6570f5be
std
aad 0xaf
dec esi
sahf
xor eax, 0x1f2defef
sahf
mov ebx, 0xf20a1a70
sub ecx, 0x37
fsub qword [eax + 0x5953b34c]
ficomp word [edx]
mov dword [0x173d6e7b], eax
out dx, al
inc ebx
mov ecx, 0x828775e2
sbb eax, 0x859b9692
and eax, 0x1a1fe478
jno 0x11253f7
xchg bl, ah
sbb eax, 0x51571613
mov eax, 0x2839d81c
push 0x78e87190
pop ecx
push 0xffffffffffffffff
mov cl, 0x44
mov ebp, 0xc3950f48
setne bl
lea esp, [esp + 4]
jb 0x11252fe
pushal
jmp 0x1120088
test bh, al
cmp byte [edi - 1], 0
push 0x59c5dd1f
mov byte [esp], 0xf8
lea esp, [esp + 0x24]
jne 0x1125384
btc di, dx
shrd di, bp, cl
mov edi, dword [edx + 0x24]
pushal
add edi, eax
cmc
movzx ecx, word [edi + ecx*2]
and di, 0x4b62
mov edi, dword [edx + 0x1c]
test bh, ah
call fcn.01128e1d
inc ebx
add dword [ebx - 0x2de8f4ff], esi
add byte [eax], al
add byte [eax], al
add ah, ah
invalid
inc al
cmc
stc
neg al
call fcn.01f31d8d
pushfd
pushal
lea esp, [esp + 0x24]
jbe fcn.011230df
and si, 0xe699
neg si
dec di
sub ecx, 1
bsf esi, esi
bt dx, si
mov dword [ebp - 4], ecx
stc
mov ecx, dword [ebp - 8]
neg di
add ecx, dword [ebp - 4]
ror di, 8
shr ecx, 1
push 0x9697877b
cmp al, cl
dec di
mov edi, dword [ebx + ecx*4]
test ch, 0x63
shrd esi, esp, cl
add edi, eax
pushal
call fcn.01f4b1ff
jmp 0x1f327e2