joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57e7e0
Capabilities:
Set global application hook

Disassembly:
push edi
xor eax, eax
sub esp, 0xb8
mov ecx, 0x25
lea edx, [esp + 0x1c]
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, dword [0x7381d4]
mov dword [esp + 0x1c], 0x94
test ecx, ecx
je 0x57e810
add esp, 0xb8
pop edi
ret
mov dword [esp], edx
call sub.kernel32.dll_GetVersionExA
test eax, eax
push edx
je 0x57e82e
cmp dword [esp + 0x2c], 2
jne 0x57e82e
mov dword [0x7381d8], 1
mov dword [0x7381d0], 1
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x57e020
mov dword [esp], 3
mov dword [0x7381dc], eax
call sub.user32.dll_SetWindowsHookExA
sub esp, 0x10
mov dword [0x7381e0], eax
mov dword [esp], 1
call sub.winmm.dll_timeBeginPeriod
push eax
mov dword [esp], 0x57e3a0
call fcn.00401335
mov dword [0x7381d4], 1
add esp, 0xb8
pop edi
ret

Function at 0x57e8a0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push ebx
sub esp, 0x44
lea esi, [esp + 0x24]
lea esi, [esi]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.user32.dll_PeekMessageA
sub esp, 0x14
test eax, eax
je 0x57ea28
mov eax, dword [esp + 0x28]
cmp eax, 0x100
jb 0x57e995
cmp eax, 0x101
jbe 0x57e907
sub eax, 0x104
cmp eax, 1
ja 0x57e995
mov eax, dword [esp + 0x2c]
cmp eax, 0x10
jb 0x57e995
cmp eax, 0x12
jbe 0x57e921
sub eax, 0x5b
cmp eax, 1
ja 0x57e995
mov dword [esp], 0x10
mov dword [0x7381c8], 0
call sub.user32.dll_GetKeyState
test ax, ax
push ecx
js 0x57ea2e
mov dword [esp], 0x11
call sub.user32.dll_GetKeyState
test ax, ax
push edx
js 0x57ea46
mov dword [esp], 0x12
call sub.user32.dll_GetKeyState
test ax, ax
push ebx
js 0x57ea3a
mov dword [esp], 0x5b
call sub.user32.dll_GetKeyState
test ax, ax
push ecx
js 0x57ea04
mov dword [esp], 0x5c
call sub.user32.dll_GetKeyState
test ax, ax
push edx
js 0x57ea04
mov eax, dword [esp + 0x24]
mov dword [esp + 4], 0xfffffff0
mov dword [esp], eax
call sub.user32.dll_GetWindowLongA
and eax, 0x40010000
push ebx
cmp eax, 0x40010000
push ebx
jne 0x57e9ed
mov eax, dword [esp + 0x24]
mov dword [esp], eax
jmp 0x57e9e1
mov dword [esp + 4], 0xfffffff0
mov dword [esp], eax
call sub.user32.dll_GetWindowLongA
and eax, 0x40010000
push edx
cmp eax, 0x40010000
push edx
jne 0x57ea10
mov dword [esp], ebx
call sub.user32.dll_GetParent
mov ebx, eax
test eax, eax
push ecx
jne 0x57e9c0
mov dword [esp], esi
call sub.user32.dll_TranslateMessage
push eax
mov dword [esp], esi
call sub.user32.dll_DispatchMessageA
push eax
jmp 0x57e8b0
or dword [0x7381c8], 8
jmp 0x57e995
mov dword [esp], ebx
mov dword [esp + 4], esi
call sub.user32.dll_IsDialogMessageA
test eax, eax
push ebx
push ebx
jne 0x57e8b0
jmp 0x57e9ed
add esp, 0x44
pop ebx
pop esi
ret
or dword [0x7381c8], 1
jmp 0x57e941
or dword [0x7381c8], 4
jmp 0x57e96d
or dword [0x7381c8], 2
jmp 0x57e957

Function at 0x57ea60
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x2c
mov dword [esp + 0x10], 0xff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.user32.dll_MsgWaitForMultipleObjects
sub esp, 0x14
add esp, 0x2c
jmp fcn.0057e8a0
Function at 0x57ef60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x2c
mov edx, dword [0x7381d8]
mov eax, dword [esp + 0x30]
test edx, edx
mov dword [esp], eax
jne 0x57efc0
call fcn.00583ce0
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.shell32.dll_ShellExecuteA
sub esp, 0x18
cmp eax, 0x20
setg al
and eax, 0xff
add esp, 0x2c
ret
call fcn.00583d00
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.shell32.dll_ShellExecuteW
sub esp, 0x18
cmp eax, 0x20
setg al
and eax, 0xff
add esp, 0x2c
ret

Function at 0x57f4a0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x1c
mov edx, dword [0x742be0]
mov eax, dword [esp + 0x20]
test edx, edx
mov dword [esp], eax
jne 0x57f4d0
call fcn.00583ce0
mov dword [esp], eax
call sub.msvcrt.dll_getenv
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp fcn.00583730
call fcn.00583d00
mov dword [esp], eax
call sub.msvcrt.dll__wgetenv
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp fcn.005836a0

Function at 0x57f690
Capabilities:
Create directory

Disassembly:
sub esp, 0x1c
mov ecx, dword [0x742be0]
mov eax, dword [esp + 0x20]
test ecx, ecx
mov dword [esp], eax
jne 0x57f6b5
call fcn.00583ce0
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp 0x58d2e8
call fcn.00583d00
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp 0x58d2f0
jmp dword [sym.imp.msvcrt.dll__mkdir]
jmp dword [sym.imp.msvcrt.dll__wmkdir]

Function at 0x57f6d0
Capabilities:
Delete directory

Disassembly:
sub esp, 0x1c
mov edx, dword [0x742be0]
mov eax, dword [esp + 0x20]
test edx, edx
mov dword [esp], eax
jne 0x57f6f5
call fcn.00583ce0
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp 0x58d2f8
call fcn.00583d00
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp 0x58d300
jmp dword [sym.imp.msvcrt.dll__rmdir]
jmp dword [sym.imp.msvcrt.dll__wrmdir]

Function at 0x57f710
Capabilities:
Move file

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ecx, dword [0x742be0]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
test ecx, ecx
mov dword [esp], eax
jne 0x57f750
call fcn.00583ce0
mov dword [esp], ebx
mov esi, eax
call fcn.00583ce0
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
add esp, 0x14
pop ebx
pop esi
jmp sub.msvcrt.dll_rename
call fcn.00583d00
mov dword [esp], ebx
mov esi, eax
call fcn.00583d00
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
add esp, 0x14
pop ebx
pop esi
jmp 0x58d308
jmp dword [sym.imp.msvcrt.dll__wrename]

Function at 0x57f780
Capabilities:
Delete file

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
mov dword [esp + 4], 0x1b6
mov dword [esp], ebx
call fcn.0057f640
mov eax, dword [0x742be0]
test eax, eax
mov dword [esp], ebx
jne 0x57f7b6
call fcn.00583ce0
mov dword [esp + 0x20], eax
add esp, 0x18
pop ebx
jmp sub.msvcrt.dll_remove
call fcn.00583d00
mov dword [esp + 0x20], eax
add esp, 0x18
pop ebx
jmp 0x58d310
jmp dword [sym.imp.msvcrt.dll__wremove]
Function at 0x57f7d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x1c
mov edx, dword [0x742be0]
mov eax, dword [esp + 0x20]
test edx, edx
mov dword [esp], eax
jne 0x57f7f5
call fcn.00583ce0
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp fcn.0058c068
call fcn.00583d00
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp 0x58c42c
push edi
push esi
push ebx
sub esp, 0x330
mov ebx, dword [esp + 0x340]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
jne 0x58c45b
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
jmp 0x58c61e
cmp word [ebx], 0
je 0x58c4e5
mov eax, dword [sym.imp.msvcrt.dll__osver]
mov eax, dword [eax]
test ah, 0x80
je 0x58c4c1
lea esi, [esp + 0x22c]
mov dword [esp + 0x10], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.kernel32.dll_WideCharToMultiByte
sub esp, 0x20
mov dword [esp], esi
call sub.kernel32.dll_GetFileAttributesA
jmp 0x58c4c9
mov dword [esp], ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
push edx
jne 0x58c4e1
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor ebx, ebx
jmp 0x58c61e
test al, 0x10
jne 0x58c4f2
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
jmp 0x58c4da
lea edi, [esp + 0x24]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], edi
call sub.msvcrt.dll__wfullpath
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x7334ec
mov esi, eax
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x7334f0
mov ebx, eax
call sub.msvcrt.dll_wcslen
lea edx, [esi + ebx + 0x21d]
add eax, edx
add eax, eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
jne 0x58c557
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
jmp 0x58c61e
lea esi, [eax + 0x434]
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll_wcscpy
cmp word [ebx + 0x434], 0
je 0x58c5cd
mov dword [esp + 4], 0x2f
mov dword [esp], esi
call sub.msvcrt.dll_wcsrchr
mov dword [esp], esi
mov edi, eax
call sub.msvcrt.dll_wcslen
lea eax, [ebx + eax*2 + 0x432]
cmp edi, eax
je 0x58c5cd
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call sub.msvcrt.dll_wcsrchr
mov dword [esp], esi
mov edi, eax
call sub.msvcrt.dll_wcslen
lea eax, [ebx + eax*2 + 0x432]
cmp edi, eax
je 0x58c5cd
mov dword [esp + 4], 0x7334ec
mov dword [esp], esi
call sub.msvcrt.dll_wcscat
mov dword [esp + 4], 0x7334f0
mov dword [esp], esi
call sub.msvcrt.dll_wcscat
lea edx, [ebx + 0x224]
mov ecx, 0x41
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebx + 0x42c], 0xffffffff
mov dword [ebx + 0x430], 0
mov dword [ebx + 0x21c], 0
mov word [ebx + 0x220], 0
mov word [ebx + 0x222], 0
add esp, 0x330
mov eax, ebx
pop ebx
pop esi
pop edi
ret
Function at 0x57fca0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00583ce0
mov dword [esp], eax
call sub.ws2_32.dll_gethostbyname
test eax, eax
push edx
je 0x57fcd7
movsx ecx, word [eax + 8]
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
mov edx, dword [esp + 0x28]
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov dword [edx], ecx
add esp, 0x1c
ret
xor eax, eax
jmp 0x57fcd3

Function at 0x57fce0
Capabilities:
Connect socket

Disassembly:
push ebx
sub esp, 0x28
cmp dword [esp + 0x38], 2
jne 0x57fd65
movzx eax, word [esp + 0x40]
mov dword [esp], eax
lea ebx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov word [esp + 0x10], 2
call sub.ws2_32.dll_htons
push ecx
mov edx, dword [esp + 0x3c]
mov word [esp + 0x12], ax
mov dword [esp + 8], edx
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x10
mov dword [esp], eax
call sub.ws2_32.dll_connect
sub esp, 0xc
add esp, 0x28
pop ebx
ret
add esp, 0x28
or eax, 0xffffffff
pop ebx
ret
Function at 0x580110
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
add esp, 0x1c
ret

Function at 0x5801d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.ws2_32.dll_recv
sub esp, 0x10
add esp, 0x1c
ret

Function at 0x5802a0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.ws2_32.dll_setsockopt
sub esp, 0x14
add esp, 0x2c
ret

Function at 0x580340
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.ws2_32.dll_getsockname
sub esp, 0xc
add esp, 0x1c
ret

Function at 0x580400
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1ac
lea eax, [esp + 0x10]
mov dword [esp], 0x101
mov dword [esp + 4], eax
call sub.ws2_32.dll_WSAStartup
push eax
push eax
mov dword [esp], 0x57f3c0
call fcn.00401335
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [0x742bd0], eax
lea edx, [eax + 0x20]
add eax, 0x40
mov dword [0x742bd8], edx
mov dword [0x742bd4], eax
add esp, 0x1ac
ret

Function at 0x583d40
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x7382a0]
test eax, eax
je 0x583d50
mov eax, dword [0x7382a4]
ret
sub esp, 0xc
call sub.kernel32.dll_TlsAlloc
mov dword [0x7382a0], 1
mov dword [0x7382a4], eax
add esp, 0xc
ret

Function at 0x583d70
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.00583d40
mov dword [esp], eax
call sub.kernel32.dll_TlsGetValue
push edx
add esp, 0x1c
ret

Function at 0x583d90
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.00583d40
mov edx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.kernel32.dll_TlsSetValue
push ecx
push ecx
add esp, 0x1c
ret
Function at 0x5852f0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov dword [esp], 0x742be4
call sub.kernel32.dll_InitializeCriticalSection
push eax
call sub.kernel32.dll_TlsAlloc
mov dword [esp], 0xb8
mov dword [0x7424a4], eax
call sub.msvcrt.dll_malloc
mov ecx, 0x20
mov ebx, eax
lea edx, [eax + 8]
mov dword [eax + 4], 0
mov edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [0x742bdc]
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x8c], eax
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0xb4], eax
call sub.kernel32.dll_GetCurrentProcess
mov edi, eax
call sub.kernel32.dll_GetCurrentThread
mov esi, eax
call sub.kernel32.dll_GetCurrentProcess
lea edx, [ebx + 0xb0]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.kernel32.dll_DuplicateHandle
sub esp, 0x1c
test eax, eax
je 0x5853c9
mov eax, dword [0x7424a4]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.kernel32.dll_TlsSetValue
mov dword [0x7424ac], ebx
push eax
push eax
mov eax, dword [0x7424a8]
mov dword [0x7424a8], ebx
mov dword [ebx], eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov dword [esp], 0xffffffff
call sub.msvcrt.dll_exit
lea esi, [esi]
lea edi, [edi]
push ebp
push edi
push esi
push ebx
sub esp, 0x2fc
xor ebx, ebx
mov dword [esp], 0xb8
call sub.msvcrt.dll_malloc
mov ecx, 0x20
mov ebp, eax
mov eax, dword [esp + 0x310]
lea edx, [ebp + 8]
mov dword [ebp + 4], eax
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x314]
mov dword [esp + 0x10], 4
mov dword [ebp + 8], eax
lea eax, [ebp + 0xb4]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x585210
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp + 0x88], 0
call sub.kernel32.dll_CreateThread
mov ecx, 0xb3
sub esp, 0x18
mov edx, eax
mov dword [ebp + 0xb0], eax
mov eax, ebx
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 0x24], 0x10001
call sub.kernel32.dll_GetThreadContext
push eax
push eax
mov eax, dword [esp + 0xe8]
mov dword [ebp + 0x8c], eax
mov eax, dword [0x742bfc]
test eax, eax
jne 0x585520
mov esi, 0x7424b0
mov ebx, dword [esi]
test ebx, ebx
je 0x5854c1
mov edi, dword [ebx + 0x88]
test edi, edi
jne 0x585500
mov esi, ebx
mov ebx, dword [esi]
test ebx, ebx
jne 0x5854af
mov eax, dword [0x7424a8]
mov edx, dword [0x742bfc]
mov dword [ebp], eax
mov dword [0x7424a8], ebp
test edx, edx
je 0x5854e6
mov dword [esp], 0x742be4
call sub.kernel32.dll_LeaveCriticalSection
push eax
mov dword [0x742bfc], 1
add esp, 0x2fc
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx]
mov dword [esi], eax
mov eax, dword [ebx + 0xb0]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push ecx
mov dword [esp], ebx
call fcn.0058d070
jmp 0x5854a9
mov dword [esp], 0x742be4
call sub.kernel32.dll_EnterCriticalSection
push eax
jmp 0x5854a4
Function at 0x585b97
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
mov esi, eax
lea eax, [edx - 1]
cmp eax, 0x40
push ebx
mov ebx, edx
mov edi, dword [esp + 0x14]
ja case.0x585bad.5
jmp dword [eax*4 + 0x732268]
test edi, edi
je case.0x585bad.5
test ecx, ecx
jne case.0x585bad.23
jmp case.0x585bad.5
xor eax, eax
test ecx, ecx
jmp 0x585bc8
xor eax, eax
test edi, edi
je 0x585be1
mov eax, esi
call fcn.00585b80
test eax, eax
je 0x585be1
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov dword [eax + 8], edi
jmp 0x585be1
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x58cafb
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x10]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.kernel32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
jne 0x58cb3f
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0058cac0
mov eax, dword [esp + 0x24]
cmp eax, 4
je 0x58cb74
cmp eax, 0x40
je 0x58cb74
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.kernel32.dll_VirtualProtect
sub esp, 0x10
mov edi, ebx
mov ecx, ebp
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
cmp eax, 4
je 0x58cbaf
cmp eax, 0x40
je 0x58cbaf
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.kernel32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x58cd90
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x742520
call sub.kernel32.dll_EnterCriticalSection
mov ebx, dword [0x742538]
push ecx
jmp 0x58cdcf
mov eax, dword [ebx]
mov dword [esp], eax
call sub.kernel32.dll_TlsGetValue
push edx
mov esi, eax
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x58cdcc
test esi, esi
je 0x58cdcc
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x58cdaa
mov dword [esp], 0x742520
call sub.kernel32.dll_LeaveCriticalSection
push eax
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x59631e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push 0x40
push 0x6a6620
call fcn.005822c0
add esp, 8
mov dword [ebp - 4], eax
push esi
call fcn.00582b90
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
mov eax, dword [ebp - 4]
lea eax, [eax + 0x18]
push eax
push ebx
call sub.kernel32.dll_GetEnvironmentVariableA
mov edi, eax
push ebx
call fcn.00584cc0
add esp, 4
mov ebx, edi
mov eax, dword [ebp - 4]
cmp ebx, dword [eax + 0x14]
jle 0x5963ae
push ebx
push 0
push dword [ebp - 4]
push 0x68be84
call fcn.00582370
add esp, 0x10
mov dword [ebp - 4], eax
push esi
call fcn.00582b90
add esp, 4
mov esi, eax
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
mov eax, dword [ebp - 4]
lea eax, [eax + 0x18]
push eax
push esi
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
push esi
call fcn.00584cc0
add esp, 4
push ebx
mov eax, dword [ebp - 4]
lea eax, [eax + 0x18]
push eax
call fcn.00583710
add esp, 8
jmp 0x5963c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5963d5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 8
call fcn.0066d496
add esp, 4
mov esi, eax
push 0x104
call fcn.0066d496
add esp, 4
mov ebx, eax
push esi
call fcn.0066d4f8
add esp, 4
push eax
push edi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp eax, 0
jne 0x59644f
push ebx
call fcn.0066d4f8
add esp, 4
push eax
push 0
push esi
call fcn.0066d640
add esp, 8
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, ebx
push 0x6a6624
push eax
mov eax, dword [eax]
call dword [eax + 0x34]
add esp, 4
push eax
call fcn.00583730
add esp, 4
push eax
call fcn.005839e0
add esp, 8
jmp 0x596456
mov eax, 0x6a5ed4
jmp 0x596456
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x596516
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
push 0x6811e4
call fcn.00584e40
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
lea eax, [eax + 8]
push eax
call sub.kernel32.dll_GetNativeSystemInfo
push dword [ebp - 4]
call fcn.005964d6
add esp, 4
jmp 0x596548
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x59654f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov ebx, 0x679f20
push 0x6922b0
call fcn.00584e40
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x9c
mov eax, dword [ebp - 4]
lea eax, [eax + 8]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
cmp eax, 0
je 0x5965a1
cmp eax, 2
je 0x5965ab
cmp eax, 1
je 0x596638
jmp 0x596666
mov ebx, 0x6a6680
jmp 0x596666
mov ebx, 0x6a6698
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp eax, 4
je 0x5965cc
cmp eax, 5
je 0x5965d3
cmp eax, 6
je 0x596601
cmp eax, 0xa
je 0x59662f
jmp 0x596636
mov ebx, 0x6a6698
jmp 0x596636
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp eax, 0
je 0x5965ea
cmp eax, 1
je 0x5965f1
cmp eax, 2
je 0x5965f8
jmp 0x5965ff
mov ebx, 0x6a66b8
jmp 0x5965ff
mov ebx, 0x6a66dc
jmp 0x5965ff
mov ebx, 0x6a66dc
jmp 0x5965ff
jmp 0x596636
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp eax, 0
je 0x596618
cmp eax, 1
je 0x59661f
cmp eax, 2
je 0x596626
jmp 0x59662d
mov ebx, 0x6a66fc
jmp 0x59662d
mov ebx, 0x6a6724
jmp 0x59662d
mov ebx, 0x6a6744
jmp 0x59662d
jmp 0x596636
mov ebx, 0x6a6764
jmp 0x596636
jmp 0x596666
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp eax, 0
je 0x59664f
cmp eax, 0x5a
je 0x596656
cmp eax, 0xa
je 0x59665d
jmp 0x596664
mov ebx, 0x6a6784
jmp 0x596664
mov ebx, 0x6a67a4
jmp 0x596664
mov ebx, 0x6a67c4
jmp 0x596664
jmp 0x596666
mov eax, ebx
jmp 0x59666a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5c0b55
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call fcn.00582b90
add esp, 4
push eax
push 0
push 0
call sub.kernel32.dll_CreateMutexA
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x5c0b82
call fcn.005804b0
mov eax, 0
jmp 0x5c0b89
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5c2dd1
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
push 0x692548
call fcn.00584e40
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
lea eax, [eax + 8]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 4]
jmp 0x5c2dfb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5c382c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push 6
push eax
call sub.user32.dll_ShowWindow
mov eax, 0
jmp 0x5c3844
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret