joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42490c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42492a
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x424942
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42493d
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x424947
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x4249b5
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x4249fe
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x424973
inc dword [ebp - 0xc]
jmp 0x42498b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42498b
cmp dword [ebp - 0xc], 0
jle 0x42498b
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x4249ad
xor eax, eax
jmp 0x4249a9
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x4249a8
mov eax, esi
jmp 0x424a01
inc eax
cmp eax, ecx
jle 0x424995
inc esi
cmp esi, dword [ebp - 8]
jl 0x42495f
jmp 0x4249fe
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x4249fe
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x4249d6
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x4249f8
xor eax, eax
jmp 0x4249f4
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x4249f3
mov eax, esi
jmp 0x424a01
inc eax
cmp eax, ecx
jle 0x4249e0
inc esi
cmp esi, dword [ebp - 8]
jl 0x4249be
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x424b70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x424b8d
mov eax, dword [eax - 4]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x424b9b
mov eax, dword [eax - 4]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x424cbd
test ebx, ebx
jl 0x424cbd
test esi, esi
jle 0x424cbd
mov eax, dword [ebp - 8]
call fcn.00408980
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00408980
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x424c5a
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x424cbd
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x424c3f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x424c0e
inc dword [ebp - 0x14]
jmp 0x424c1e
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x424c1e
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x424c29
or eax, 0xffffffff
jmp 0x424c3f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x424c3c
inc eax
jmp 0x424c3f
or eax, 0xffffffff
test eax, eax
jl 0x424c47
cmp esi, eax
jg 0x424bfc
cmp esi, eax
jg 0x424c52
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x424cc0
inc edx
dec dword [ebp - 0x1c]
jne 0x424bf8
jmp 0x424cbd
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x424cbd
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x424ca4
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x424c83
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x424c8e
or eax, 0xffffffff
jmp 0x424ca4
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x424ca1
inc eax
jmp 0x424ca4
or eax, 0xffffffff
test eax, eax
jl 0x424cac
cmp esi, eax
jg 0x424c6c
cmp esi, eax
jg 0x424cb7
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x424cc0
inc edx
dec dword [ebp - 0x1c]
jne 0x424c68
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4327b4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x4327bc
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4352bc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x4352d3
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x4352c3
mov eax, ecx
pop ebx
ret
Function at 0x4469b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x4469c4
add esp, 0xfffffff0
call fcn.00406710
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x440934]
call fcn.004629dc
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x445980]
call fcn.004640f8
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x445980]
call fcn.004640f8
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x446a19
call fcn.00406768
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4968e8
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 + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x496936
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004962cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49694f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4a0e48
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a0e90
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004a0de0
mov eax, dword [ebp - 4]
call fcn.00408980
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0e97
lea eax, [ebp - 4]
call fcn.00407ed4
pop eax
jmp eax

Function at 0x4a10b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a1147
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x4a10fb
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.0040806c
jmp 0x4a112f
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
cmp word [ebx], 0
jne 0x4a1112
lea eax, [ebp - 4]
call fcn.00407ed4
jmp 0x4a1125
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004a0f68
mov ebx, eax
test esi, esi
je 0x4a1125
dec esi
jmp 0x4a1102
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.004082c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a114e
lea eax, [ebp - 4]
call fcn.00407ed4
pop eax
jmp eax

Function at 0x4a1158
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041c400
add esp, 0x208
pop ebx
ret
Function at 0x4a11b8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041c400
add esp, 0x208
pop ebx
ret

Function at 0x4a1314
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4a144c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4a1434
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x4a1371
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x4a1434
cmp dword [ebp - 0x14], 0
jne 0x4a1386
mov eax, dword [ebp - 0xc]
call fcn.00407ed4
mov bl, 1
jmp 0x4a1434
cmp dword [ebp - 0x14], 0x70000000
jb 0x4a1394
call fcn.004222e8
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.0040806c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00408464
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
je 0x4a133a
test eax, eax
jne 0x4a1434
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x4a13e2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x4a1434
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x4a13ea
dec esi
test esi, esi
je 0x4a13f9
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x4a13e9
cmp dword [ebp - 0x10], 7
jne 0x4a1404
test esi, esi
je 0x4a1404
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00408af4
cmp dword [ebp - 0x10], 7
jne 0x4a1427
test esi, esi
je 0x4a1427
lea eax, [ebp - 4]
call fcn.00408464
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004082c4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1453
lea eax, [ebp - 4]
call fcn.00407ed4
pop eax
jmp eax

Function at 0x4a2b08
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x4b88ac
mov eax, esi
mov edx, 8
test al, 1
je 0x4a2b24
shr eax, 1
xor eax, 0xedb88320
jmp 0x4a2b26
shr eax, 1
dec edx
jne 0x4a2b17
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4a2b10
pop esi
ret

Function at 0x4a2b3c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x4b88a8], 0
jne 0x4a2b66
call fcn.004a2b08
mov dword [esp], 0x4b88a8
mov edx, dword [esp]
mov eax, 1
lock xchg dword [edx], eax
mov eax, edi
test esi, esi
je 0x4a2b90
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x4b88ac]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4a2b6c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4a5790
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 9]
mov eax, ebx
call fcn.004a5744
test al, al
jne 0x4a57b1
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4a57ff
xor eax, eax
push ebp
push 0x4a57ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00408980
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a57f6
lea eax, [ebp - 9]
call fcn.004a5780
pop eax
jmp eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a588c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4a5894
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a59fc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
call fcn.004a118c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004a0a94
lea eax, [ebp - 0x20]
mov edx, 0x4a5a18
call fcn.00408b74
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.004a0dc0
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
mov edx, ebx
call fcn.004089e0
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.004a0cd0
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.004a0dc0
mov eax, dword [ebp - 0x28]
mov ecx, 1
mov edx, eax
mov eax, esi
call fcn.00408e90
dec eax
je 0x4a5936
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x4a59d2
call sub.kernel32.dll_GetLastError
mov dword [edi], eax
jmp 0x4a59d2
lea eax, [ebp - 4]
call fcn.004a1494
cmp dword [ebp - 4], 0
jne 0x4a5951
lea eax, [ebp - 4]
mov edx, 0x4a5a30
call fcn.0040830c
push 0x4a5a44
push dword [ebp - 4]
push 0x4a5a84
push 0x4a5a94
push 0x4a5ad4
lea eax, [ebp - 8]
mov edx, 5
call fcn.00408c54
push 0
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 8]
call fcn.00408980
push eax
call sub.advapi32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x4a599a
call sub.kernel32.dll_GetLastError
mov dword [edi], eax
xor ebx, ebx
jmp 0x4a59d2
mov dword [ebp - 0x18], 0xc
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x4a59c9
call sub.kernel32.dll_GetLastError
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5a03
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.00407f34
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407f34
pop eax
jmp eax
Function at 0x4a5dcc
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
call fcn.004233f4
cmp eax, 2
jne 0x4a5e34
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4a5def
xor eax, eax
jmp 0x4a5e43
lea eax, [esp + 8]
push eax
push 0x4a5e48
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x4a5e34
xor eax, eax
jmp 0x4a5e43
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret

Function at 0x4a5e70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4a5eca
inc esi
xor edi, edi
cmp edi, 1
jne 0x4a5e96
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4a5ea4
cmp edi, 1
jle 0x4a5ea4
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004a5790
test eax, eax
jne 0x4a5eca
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4a5eca
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4a5eca
inc edi
dec esi
jne 0x4a5e86
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4a5ed4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4a5ef8
mov eax, dword [ebp - 4]
jmp 0x4a5efb
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret
Function at 0x4a5f00
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x4a5f4d
xor ebx, ebx
jmp 0x4a5f42
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.0041b644
test eax, eax
jne 0x4a5f41
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x4a5ff8
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a5f23
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4a5f59
je 0x4a5f62
jmp 0x4a5f6b
call fcn.004a1580
mov esi, eax
jmp 0x4a5f6d
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x4a5f6d
xor esi, esi
test si, si
je 0x4a5ff8
xor ebx, ebx
jmp 0x4a5f93
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x4a5f92
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4a5ff8
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a5f7a
xor ebx, ebx
jmp 0x4a5fed
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov dx, 0x3ff
and dx, si
movzx edx, dx
cmp eax, edx
jne 0x4a5fec
mov ax, 0x3ff
and ax, si
cmp ax, 4
jne 0x4a5fe1
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.004a5ed4
push eax
mov eax, esi
call fcn.004a5ed4
pop edx
cmp edx, eax
jne 0x4a5fec
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4a5ff8
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a5fa2
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4a63e4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a64bd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a64d8
push ebx
push 0x4a64e8
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00408c54
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00405c10
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00408980
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4a6466
mov ax, 0x83
call fcn.004a6008
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004a63b8
push 0x1cff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4a646f
call fcn.004a63b8
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a64c4
lea eax, [ebp - 4]
call fcn.00407ed4
pop eax
jmp eax
Function at 0x4a65d8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a66a1
jmp 0x4a6695
cmp dword [esi + 0x10], 0x1000
jne 0x4a6683
test byte [esi + 0x15], 1
jne 0x4a6683
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4a6634
cmp ebp, 2
je 0x4a6634
cmp ebp, 0x10
je 0x4a6634
cmp ebp, 0x20
jne 0x4a6650
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a6650
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4a6661
mov eax, dword [esi]
add eax, ebx
call fcn.004a65d0
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4a6654
cmp byte [esp + 4], 0
je 0x4a6683
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov edi, dword [esi]
add edi, dword [esi + 0xc]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a66a1
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4a6609
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4045d8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00407734
test esi, esi
jne 0x404610
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00407870
jmp 0x40462e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044bc
mov edi, eax
test esi, esi
je 0x40462e
cmp dword [ebx], 0
je 0x40462e
dec esi
jmp 0x404617
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406384
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x568054], 0
je 0x4063e5
cmp word [0x568330], 0xd7b2
jne 0x4063ad
cmp dword [0x568338], 0
jbe 0x4063ad
mov eax, 0x56832c
call dword [0x568348]
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 0x406410
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x55d030], 0
jne 0x406401
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x55d038], 0
je 0x4065b6
mov edx, esi
mov eax, ebx
call dword [0x55d038]
jmp 0x4065c5
mov eax, 8
call fcn.00404204
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x568055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406558
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x40988c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4099f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407734
cmp si, word [0x55d7e0]
jb 0x409926
cmp si, word [0x55d9e0]
ja 0x409926
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x409926
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x55d7e0]
jae 0x409900
mov edi, ebx
dec edi
jmp 0x409921
cmp si, word [ebx*8 + 0x55d7e0]
jbe 0x409910
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409921
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x55d7e4]
call fcn.0040979c
jmp 0x409926
cmp edi, dword [ebp - 0xc]
jae 0x4098ea
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4099d5
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4099d5
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407934
push dword [ebp - 0x164]
push 0x409a10
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407934
push dword [ebp - 0x168]
push 0x409a20
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407934
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407cec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4099fa
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0040772c
ret