joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d290
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43d2c3
push esi
call fcn.00440390
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43d2bc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43d349
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43d332
mov eax, dword [esi + 8]
test eax, eax
je 0x43d2e7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43d32e
cmp eax, 2
je 0x43d332
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43d2da
cmp eax, 3
je 0x43d30d
cmp eax, 1
jne 0x43d2da
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43d2da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43d2da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043d370
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43d358
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043d370
add esp, 4
pop esi
ret

Function at 0x4659bd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4659f5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00463a71
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00463a49
jmp 0x465a01
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4670af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4670f1
call fcn.0046cd9b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4670f1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4670e8
xor eax, eax
jmp 0x4670f9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004670ff
pop edi
pop esi
pop ebx
ret 4

Function at 0x46d2cb
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 0x46d2f9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46d317
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046d231
jmp 0x46d317
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46d317
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046d231
test edi, edi
mov eax, edi
jne 0x46d301
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4d04ec
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d058a
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x4d054e
cmp byte [ebx + 0x10], 0
jne 0x4d054e
cmp byte [ebx + 0x3c], 0
jne 0x4d054e
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
je 0x4d056f
lea edx, [ebp - 4]
mov eax, dword [0x5f9db0]
call fcn.005129fc
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4c07d4]
call fcn.004f86d4
call fcn.0050e910
jmp 0x4d056f
lea edx, [ebp - 8]
mov eax, dword [0x5f9db0]
call fcn.005129fc
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4c07d4]
call fcn.004f86d4
call fcn.0050e910
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0591
lea eax, [ebp - 8]
mov edx, 2
call fcn.0050f198
ret

Function at 0x4d0e98
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4d0ee6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004d0438
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d0eff
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4d0f08
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004d0438
dec esi
jne 0x4d0f2a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4d28e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5fafa8
cmp dword [edi], 0
jne 0x4d295c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x5fafa4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5f30d8
mov ecx, 2
call fcn.0050cda0
mov edx, 0x4d28b8
lea eax, [esi + 5]
call fcn.004d28d8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004d28d8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4d2931
mov dword [0x5fafa4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4d5e10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4d5f8b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0050f540
mov eax, dword [ebp - 4]
call fcn.004d5770
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4d5e62
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00510204
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004d6a04
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4d5f41
xor eax, eax
push ebp
push 0x4d5f3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004d5a10
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004d5fc0
test al, al
je 0x4d5f18
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0050f2a0
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4d5f18
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0050fdf8
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004d5970
test al, al
je 0x4d5f12
mov eax, dword [ebp - 8]
call fcn.0050fdf8
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0050fe48
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004d5e10
dec ebx
cmp ebx, 0xffffffff
jne 0x4d5ec1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5f41
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004d5a10
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
call fcn.0050fdf8
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004d59fc
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004d5970
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5f92
lea eax, [ebp - 0x3c]
call fcn.0050f138
lea eax, [ebp - 8]
mov edx, 2
call fcn.0050f198
ret

Function at 0x4d68e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004d5788
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0050fdf8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004d5970
test al, al
jne 0x4d6948
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5f9d84]
mov dl, 1
mov eax, dword [0x4d4594]
call fcn.004f88d8
call fcn.0050e910
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d6954
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0050fdf8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004d5970
test al, al
jne 0x4d69b5
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5f9d80]
mov dl, 1
mov eax, dword [0x4d4594]
call fcn.004f88d8
call fcn.0050e910
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004d57b8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4d6fb4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d70dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.004d5a10
xor eax, eax
push ebp
push 0x4d70b7
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004d5fc0
test al, al
je 0x4d709b
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004d6e94
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0050f2a0
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x4d709b
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0050fdf8
push eax
push edi
push esi
call sub.ADVAPI32.DLL_RegEnumValueW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004d5970
test al, al
je 0x4d7097
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0050fdf8
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.0050fe48
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004d6e94
pop ecx
inc edi
dec ebx
jne 0x4d703f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d70be
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.004d5a10
ret
Function at 0x4f8584
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4f86a9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004f8394
mov esi, eax
mov eax, dword [0x5f9fd4]
cmp byte [eax], 0
je 0x4f8651
mov eax, dword [0x5f9fe0]
call fcn.0050d104
call fcn.0050cd50
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4f855c]
call fcn.00510fc8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4f86c4
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x4f868d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5f9e34]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5fa2d4]
call fcn.005110bc
push eax
call sub.USER32.DLL_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.USER32.DLL_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f86b0
lea eax, [ebp - 4]
mov edx, dword [0x4f855c]
call fcn.00510fd4
ret

Function at 0x4f9704
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f97da
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0050f540
lea eax, [ebp - 4]
call fcn.0050f6a8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0050fdf8
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4f97c4
mov eax, ebx
call fcn.0050cb4c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4f97bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0050fdf8
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x4f97a7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4f97ec
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x4f97a7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f97c4
mov eax, dword [ebp - 0x10]
call fcn.0050cb68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f97e1
lea eax, [ebp - 4]
call fcn.0050f138
ret
Function at 0x4fa1bc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0050f5e8
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00512a90
mov edi, eax
cmp edi, 0x104
jbe 0x4fa167
mov eax, edi
add eax, eax
call fcn.0050cb4c
mov esi, eax
jmp 0x4fa169
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00512a90
push esi
call sub.USER32.DLL_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4fa1a2
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4fa18c
mov eax, esp
cmp esi, eax
je 0x4fa1af
mov eax, esi
call fcn.0050cb68
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4fa1e8
cmp bl, 0
je 0x4fa1e4
cmp bl, 0x41
jl 0x4fa1df
cmp bl, 0x5a
jg 0x4fa1df
or bl, 0x20
xor al, bl
inc esi
jmp 0x4fa1c3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4fa128

Function at 0x4faa1c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0050fe9c
add esp, 0x800
pop ebx
ret
Function at 0x50df6c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0050e358
mov byte [esp], al
cmp byte [esp], 0
jne 0x50e0f5
test edi, edi
je 0x50e0f5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x50e02c
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x50e007
cmp edi, 0xffffffff
je 0x50dfcb
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x50dfcb
mov byte [esp], 0
jmp 0x50e0f5
mov ebx, dword [esi]
cmp ebx, 1
jg 0x50e007
test ebx, ebx
jne 0x50e000
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.0050af0c
test eax, eax
jne 0x50e000
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x50e0f5
pause
dec ebp
test ebp, ebp
jg 0x50dfb0
cmp edi, 0xffffffff
je 0x50e02c
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x50e02a
mov byte [esp], 0
jmp 0x50e0f5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x50df7a
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.0050af0c
cmp ebx, eax
jne 0x50e02c
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0050e168
mov edx, eax
mov ebx, dword [0x5fdc10]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x50e093
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x50e091
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x50e093
xor edi, edi
cmp byte [esp], 0
je 0x50e0bc
mov ebx, dword [esi]
test bl, 1
jne 0x50e0d5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.0050af0c
cmp ebx, eax
jne 0x50e099
mov byte [esp + 1], 1
jmp 0x50e0d5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.0050af0c
cmp ebx, eax
jne 0x50e0bc
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x50e046
cmp byte [esp], 0
je 0x50e0f5
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x50ed9c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5fd398], 0
je 0x50edfd
cmp word [0x5fd674], 0xd7b2
jne 0x50edc5
cmp dword [0x5fd67c], 0
jbe 0x50edc5
mov eax, 0x5fd670
call dword [0x5fd68c]
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 0x50ee28
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x5f3728], 0
jne 0x50ee19
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x50eff4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x5f36f8], 0
je 0x50f01f
mov edx, edi
mov eax, esi
call dword [0x5f36f8]
mov ebx, eax
jmp 0x50f030
mov eax, 8
call fcn.0050cb4c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5fd399], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x50efbc
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread
mov esi, eax
test esi, esi
jne 0x50f065
mov edx, 8
mov eax, ebx
call fcn.0050cb68
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x511578
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x5116dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0050f138
cmp si, word [0x5f3ee8]
jb 0x511610
cmp si, word [0x5f40e8]
ja 0x511610
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x511610
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5f3ee8]
jae 0x5115ea
mov edi, ebx
dec edi
jmp 0x51160b
cmp si, word [ebx*8 + 0x5f3ee8]
jbe 0x5115fa
inc ebx
mov dword [ebp - 8], ebx
jmp 0x51160b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5f3eec]
call fcn.00511488
jmp 0x511610
cmp edi, dword [ebp - 8]
jae 0x5115d4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x5116bf
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x5116bf
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0050fe9c
push dword [ebp - 0x160]
push 0x5116f8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0050fe9c
push dword [ebp - 0x164]
push 0x511708
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0050fe9c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.005100d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5116e4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0050f198
ret
Function at 0x511890
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x511993
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5ffea1
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x5ffeba]
jne 0x5118dc
mov eax, esi
mov edx, 0x5ffebc
mov ecx, 0x55
call fcn.0050fe9c
push 0x5ffea1
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x51197d
push 0x5ffea1
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.0050f138
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x51194b
cmp byte [0x5ffea0], 0
je 0x511910
mov edx, esi
mov eax, ebx
call fcn.00511774
jmp 0x51194b
mov edx, esi
mov eax, ebx
call fcn.00511578
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x51194b
cmp dword [esi], 0
je 0x511934
mov eax, esi
mov edx, 0x5119ac
call fcn.0050fff4
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00511578
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0050fff4
push 0x5ffea1
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x5ffeba], bx
push 0xaa
mov eax, dword [esi]
call fcn.0050fdf8
push eax
push 0x5ffebc
call sub.KERNEL32.DLL_lstrcpynW
push 0x5ffea1
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51199a
lea eax, [ebp - 4]
call fcn.0050f138
ret