joyce8/EMBER2024-capa huggingface dataset:
Function at 0x592ad8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00592128
xor eax, eax
push ebp
push 0x592c56
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x592c40
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x592b23
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x592b2d
call fcn.004046dc
jmp 0x592c5d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004225e8
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1018]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x592c35
push 0
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x592be3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x2733
je 0x592bd0
lea eax, [ebp - 0x18]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00404058
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.00592a90
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x592c68]
cmp dl, byte [eax + 0x28]
je 0x592c3c
call fcn.0040e800
jmp 0x592c3c
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422610
jmp 0x592c3c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jle 0x592c04
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422610
jmp 0x592b2d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004225e8
cmp edx, dword [esp + 4]
jne 0x592c24
cmp eax, dword [esp]
pop edx
pop eax
jne 0x592b2d
push ebp
call fcn.00592a90
pop ecx
jmp 0x592c3c
push ebp
call fcn.00592a90
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x592c5d
mov eax, dword [ebp - 4]
call fcn.00592140
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x592c6c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x592d96
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00592128
xor eax, eax
push ebp
push 0x592d79
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x592cbe
call fcn.004046dc
jmp 0x592d80
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x592d63
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
je 0x592d63
lea eax, [ebp - 0x14]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00404058
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x14], 0
je 0x592d63
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.0040dea0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
mov eax, 0x592db0
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x2c]
push eax
push 2
mov ecx, dword [0x5f65b0]
mov dl, 1
mov eax, dword [0x590ee8]
call fcn.0040e944
call fcn.00404630
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x592d80
mov eax, dword [ebp - 4]
call fcn.00592140
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x592d9d
lea eax, [ebp - 0x30]
call fcn.00404cc0
ret
Function at 0x592e28
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x592f7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00592128
xor eax, eax
push ebp
push 0x592f5e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x592e90
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x592e90
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x592f48
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x592ea3
call fcn.004046dc
jmp 0x592f65
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x592f48
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
je 0x592f48
lea eax, [ebp - 0x14]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00404058
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x14], 0
je 0x592f48
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.0040dea0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
mov eax, 0x592f94
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x2c]
push eax
push 2
mov ecx, dword [0x5f65b0]
mov dl, 1
mov eax, dword [0x590ee8]
call fcn.0040e944
call fcn.00404630
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x592f65
mov eax, dword [ebp - 4]
call fcn.00592140
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x592f82
lea eax, [ebp - 0x30]
call fcn.00404cc0
ret
Function at 0x5999c8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x599a31
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x5f4cf4]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x599a1b
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.005999b8
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x599790]
call fcn.00599a58
mov dword [0x5f4d58], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x599a38
lea eax, [ebp - 8]
call fcn.00406b3c
ret
Function at 0x599a58
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
test dl, dl
je 0x599a6b
add esp, 0xfffffff0
call fcn.004041c8
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.00406bb0
xor eax, eax
push ebp
push 0x599be4
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00403e20
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], 0xffffffff
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x20], edx
mov dl, 1
mov eax, dword [0x41c94c]
call fcn.00403e20
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x10
mov edx, dword [ebp + 8]
call fcn.00406b54
mov eax, dword [ebp - 4]
add eax, 0x14
call fcn.00406b3c
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.00406b3c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xc], edx
mov eax, ebx
call fcn.005998d4
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov dl, 1
mov eax, dword [0x4c465c]
call fcn.004c489c
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
mov dl, byte [0x599c10]
mov byte [eax + 0x48], dl
mov eax, dword [ebp - 4]
mov dword [eax + 0x40], 0xffffffff
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x599b55
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, ebx
call fcn.00599908
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
jmp 0x599b98
call fcn.00599a3c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x599b91
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.00599908
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x599b98
mov eax, dword [ebp - 0x10]
call fcn.00599968
ret
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x599bad
mov eax, dword [ebp - 4]
mov edx, dword [0x5f4d58]
mov dword [eax + 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x599bce
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x599bc8
mov eax, dword [ebp - 4]
inc dword [eax + 0x20]
cmp dword [ebp - 0xc], 0
jne 0x599bb3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x599beb
lea eax, [ebp + 8]
call fcn.00406b3c
ret

Function at 0x59b9b0
Capabilities:
Encode data using xor

Disassembly:
or edx, edx
je 0x59b9cf
jecxz 0x59b9cf
push ebx
push edi
xor ebx, ebx
lea edi, [0x59b9d8]
mov bl, al
shr eax, 8
xor bl, byte [edx]
inc edx
xor eax, dword [edi + ebx*4]
loop 0x59b9c0
pop edi
pop ebx
ret
Function at 0x59be04
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
or ecx, 0xffffffff
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0059bddc
mov dword [ebp - 0x10], eax
mov byte [ebp - 9], 0
mov dword [ebp - 0x14], 1
mov al, byte [ebp - 0x10]
and al, 0xff
xor byte [ebp - 9], al
shr dword [ebp - 0x10], 8
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 5
jne 0x59be2c
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x59c748
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x59c7d9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov edx, dword [ebp - 4]
call fcn.004056bc
je 0x59c7be
cmp dword [0x5f9480], 0
je 0x59c796
mov eax, dword [ebp - 4]
call fcn.00405590
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
neg al
sbb eax, eax
mov dword [ebp - 8], eax
jmp 0x59c7c3
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404f64
mov eax, dword [ebp - 0xc]
call fcn.0040519c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
neg al
sbb eax, eax
mov dword [ebp - 8], eax
jmp 0x59c7c3
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59c7e0
lea eax, [ebp - 0xc]
call fcn.00404cc0
ret

Function at 0x59ca38
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x59caaf
cmp dword [ebp - 8], 0
je 0x59caa8
cmp dword [ebp - 0xc], 0
jbe 0x59caa8
mov eax, dword [ebp + 8]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_2
test eax, eax
je 0x59ca9f
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jne 0x59ca96
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x59cab6
mov dword [ebp - 0x10], 0xfffffffc
jmp 0x59cab6
mov dword [ebp - 0x10], 0xfffffffd
jmp 0x59cab6
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x59cab6
mov dword [ebp - 0x10], 0xfffffffe
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x59cac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x59cb5c
cmp dword [ebp - 8], 0
je 0x59cb55
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jbe 0x59cb55
cmp dword [ebp + 8], 1
jne 0x59caf3
cmp dword [ebp + 0xc], 0
je 0x59cb06
mov eax, dword [ebp + 8]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_2
test eax, eax
je 0x59cb45
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x14]
jne 0x59cb34
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x59cb6a
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov dword [ebp - 0x10], 0xfffffffc
jmp 0x59cb6a
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax], edx
mov dword [ebp - 0x10], 0xfffffffd
jmp 0x59cb6a
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x59cb6a
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax], edx
mov dword [ebp - 0x10], 0xfffffffe
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8

Function at 0x59cbfc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
cmp dword [ebp - 4], 0xffffffff
je 0x59cc62
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize_1
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x59cc53
cmp dword [ebp - 0x10], 0xffffffff
jne 0x59cc53
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x59cc53
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
jmp 0x59cc62
mov eax, dword [ebp - 0x14]
xor edx, edx
mov edx, eax
xor eax, eax
add dword [ebp - 0x10], eax
adc dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x59cc6c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x59ccd6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5f9480], 0
je 0x59cca4
mov eax, dword [ebp - 4]
call fcn.00405590
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 8], eax
jmp 0x59ccc0
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404f64
mov eax, dword [ebp - 0xc]
call fcn.0040519c
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59ccdd
lea eax, [ebp - 0xc]
call fcn.00404cc0
ret
Function at 0x59cd24
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 2
lea eax, [ebp - 2]
push eax
push 0xf
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x59cd4b
mov al, byte [ebp - 2]
mov byte [0x5f4de8], al
jmp 0x59cd52
mov byte [0x5f4de8], 0x2c
push 2
lea eax, [ebp - 6]
push eax
push 0xf
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x59cd75
mov ax, word [ebp - 6]
mov word [0x5f4dec], ax
jmp 0x59cd7e
mov word [0x5f4dec], 0x2c
mov al, byte [0x5f4de8]
mov byte [0x5f4df0], al
pop ecx
pop ecx
pop ebp
ret

Function at 0x5a1948
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.005a2088
mov eax, dword [ebp - 4]
call fcn.005a1838
cmp eax, 2
jne 0x5a1986
mov eax, dword [ebp - 4]
call fcn.005a17c0
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 0xffffffff
je 0x5a1986
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.005a173c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret
Function at 0x5a1c94
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.005a1838
sub eax, 1
jb 0x5a1cea
je 0x5a1cbb
dec eax
je 0x5a1df7
jmp 0x5a1e13
xor ecx, ecx
or edx, 0xffffffff
mov eax, dword [ebp - 4]
call fcn.005a1e4c
mov eax, dword [ebp - 4]
call fcn.005a1838
test eax, eax
jne 0x5a1e13
mov edx, 0x2710
mov eax, dword [ebp - 4]
call fcn.005a1c94
jmp 0x5a1e13
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005a1764
test eax, eax
je 0x5a1e13
xor eax, eax
push ebp
push 0x5a1df0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 4]
test eax, eax
je 0x5a1dda
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.005a173c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.0059eaec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
xor edx, edx
call fcn.0059eaec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, eax
lea eax, [eax + eax*2]
xor edx, edx
mov dword [eax*8 + 0x5f95c0], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
call fcn.0059eaec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.0059eaec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, eax
lea eax, [eax + eax*2]
inc dword [eax*8 + 0x5f95b4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, eax
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x5f95c8]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
push 0x5a1998
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
add edx, edx
lea edx, [edx + edx*2]
mov dword [edx*8 + 0x5f95c4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
or edx, 0xffffffff
call fcn.0059eaec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 8]
call fcn.0059eb1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a1e13
mov eax, dword [ebp - 4]
call fcn.005a18e0
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, eax
lea eax, [eax + eax*2]
xor edx, edx
mov dword [eax*8 + 0x5f95c0], edx
mov eax, dword [ebp - 4]
call fcn.005a1948
mov eax, dword [ebp - 4]
call fcn.005a1838
add eax, 0xfffffffd
sub eax, 2
setb al
neg al
sbb eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x5a3568
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
test dl, dl
je 0x5a357a
add esp, 0xfffffff0
call fcn.004041c8
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0059e988
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
add eax, 0x18
mov edx, dword [ebp - 0xc]
call fcn.00405424
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x20], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], 0xffffffff
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0xc], edx
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x30], edx
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x59e304]
call fcn.0059f3d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x5a360f
call fcn.00404220
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x5b94c8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x5b94d1
push ecx
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5b9628
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5f63e8]
cmp dword [eax], 0
je 0x5b951c
push 1
lea eax, [ebp - 0xe]
push eax
push 0xf
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoW
dec eax
jge 0x5b9543
mov word [ebp - 0xe], 0x2c
jmp 0x5b9543
push 2
lea eax, [ebp - 0xe]
push eax
push 0xf
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
dec eax
jge 0x5b953a
mov word [ebp - 0xe], 0x2c
jmp 0x5b9543
xor eax, eax
mov al, byte [ebp - 0xe]
mov word [ebp - 0xe], ax
mov al, byte [ebp - 0xe]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, 3
mov edx, 0xa
mov eax, dword [ebp - 4]
call fcn.0059cfc8
push dword [ebp - 0x14]
push 0x5b9640
lea eax, [ebp - 0x18]
push eax
push 0x20
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0xa
mov eax, dword [ebp - 8]
call fcn.0059cfc8
lea eax, [ebp - 0x1c]
mov edx, 0x5b9650
call fcn.00404fa4
mov edx, dword [ebp - 0x1c]
cmp dword [ebp - 8], 0
seta al
neg al
sbb eax, eax
xor ecx, ecx
call fcn.0059dea0
push dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x20
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov edx, 0xa
mov eax, dword [ebp - 0xc]
call fcn.0059cfc8
lea eax, [ebp - 0x28]
mov edx, 0x5b9660
call fcn.00404fa4
mov ecx, dword [ebp - 0x28]
cmp dword [ebp - 0xc], 2
sete al
neg al
sbb eax, eax
mov edx, 0x5b9674
call fcn.0059dea0
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0xc], 1
sete al
neg al
sbb eax, eax
mov edx, 0x5b9684
call fcn.0059dea0
push dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov edx, 4
call fcn.0040505c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b962f
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.00404ce4
ret