joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5148c0
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea eax, [ebp - 0x14]
sub esp, 0x30
mov dword [ebp - 0x14], 0
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 8], 0xa
mov dword [esp], 0
mov dword [ebp - 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
sub esp, 0x14
test eax, eax
je 0x514975
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 0xc]
mov dword [esp + 8], 0xffffffff
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [method.QString.fromUtf16_unsigned_short_const__int_]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, dword [ebp - 0xc]
sub esp, 4
mov dword [ebx], eax
mov eax, dword [sym.imp.Qt5Core.dll_QArrayData::shared_null]
mov dword [ebp - 0xc], eax
mov edx, dword [eax]
test edx, edx
je 0x514953
cmp edx, 0xffffffff
je 0x51499a
lock sub dword [eax], 1
mov eax, dword [ebp - 0xc]
jne 0x51499a
mov dword [esp], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 2
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WTSAPI32.dll_WTSFreeMemory
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp], 0x68c980
call dword [method.QString.fromAscii_helper_char_const__int_]
mov dword [ebx], eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x514e30
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], 0x68c980
call dword [method.QString.fromAscii_helper_char_const__int_]
mov dword [ebx], eax
lea eax, [ebp - 0x14]
mov dword [esp + 8], 5
mov dword [esp], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
sub esp, 0x14
test eax, eax
mov edx, dword [ebp - 0x10]
je 0x514eef
lea eax, [ebp - 0xc]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [method.QString.fromUtf16_unsigned_short_const__int_]
mov eax, dword [ebx]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebx], edx
mov edx, dword [eax]
test edx, edx
je 0x514ed0
cmp edx, 0xffffffff
je 0x514eec
lock sub dword [eax], 1
jne 0x514eec
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
mov edx, dword [ebp - 0x10]
mov dword [esp], edx
call sub.WTSAPI32.dll_WTSFreeMemory
sub esp, 4
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x532030
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov eax, 0x100
mov ebp, esp
push esi
push ebx
lea ebx, [ebp - 0x40]
sub esp, 0x60
mov esi, dword [ebp + 8]
mov word [ebp - 0xa], ax
mov ecx, ebx
mov dword [ebp - 0x3a], 0xff80
mov dword [ebp - 0x36], 0x100
mov dword [ebp - 0x32], 0
mov dword [ebp - 0x2e], 0x414b4320
mov dword [ebp - 0x2a], 0x41414141
mov dword [ebp - 0x26], 0x41414141
mov dword [ebp - 0x22], 0x41414141
mov dword [ebp - 0x1e], 0x41414141
mov dword [ebp - 0x1a], 0x41414141
mov dword [ebp - 0x16], 0x41414141
mov dword [ebp - 0x12], 0x41414141
mov dword [ebp - 0xe], 0x21000041
mov dword [esp], esi
call dword [method.QHostAddress.QHostAddress_QString_const_]
lea eax, [ebp - 0x3a]
sub esp, 4
mov ecx, 0x762374
mov dword [esp + 0x10], 0x89
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x32
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [method.QUdpSocket.writeDatagram_char_const__long_long__QHostAddress_const__unsigned_short_]
sub esp, 0x14
mov ecx, ebx
call dword [method.QHostAddress.QHostAddress__]
mov eax, dword [0x762380]
mov dword [esp], esi
mov dword [esp + 8], str.1nameLookup_QHostInfo_
mov dword [esp + 4], eax
call dword [method.QHostInfo.lookupHost_QString_const__QObject__char_const_]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x53a850
Capabilities:
Modify service
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [ebp + 8]
mov dword [esp + 8], 0xf003f
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
sub esp, 0xc
test eax, eax
je 0x53a963
mov ebx, eax
xor eax, eax
mov dword [esp + 4], 0
mov word [ebp - 0x2c], ax
mov eax, dword [esi]
lea edi, [ebp - 0x2c]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], edi
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.00615450
mov eax, dword [esi]
sub esp, 8
mov edx, dword [eax + 4]
add eax, dword [eax + 0xc]
add edx, edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 4], 0
mov eax, dword [esi]
lea ecx, [ebp - 0x34]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.00615450
mov eax, dword [ebp - 0x34]
sub esp, 8
mov dword [esp + 8], 0xf003f
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov eax, dword [ebp - 0x34]
sub esp, 0xc
cmp eax, edi
je 0x53a918
mov dword [esp], eax
call fcn.0063e3b0
test esi, esi
je 0x53aa60
cmp dword [ebp + 0xc], 1
je 0x53a9f0
jb 0x53aa32
cmp dword [ebp + 0xc], 2
je 0x53aa15
cmp dword [ebp + 0xc], 3
je 0x53a975
mov edi, dword [ebp - 0x30]
mov dword [esp], esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
sub esp, 4
mov dword [esp], ebx
call esi
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esp, [ebp - 0xc]
mov edi, eax
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 4
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
sub esp, 0x2c
test eax, eax
jne 0x53a940
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x53a943
lea eax, [ebp - 0x34]
mov dword [esp + 4], 1
mov dword [esp], esi
mov dword [esp + 8], eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
sub esp, 0xc
test eax, eax
jne 0x53a940
jmp 0x53a9d9
lea eax, [ebp - 0x34]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
sub esp, 8
test eax, eax
jne 0x53a940
jmp 0x53a9d9
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
sub esp, 0xc
test eax, eax
jne 0x53a940
jmp 0x53a9d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x53ac50
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov edx, dword [ebx]
mov dword [ebp - 0x30], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x53adc0
lea esi, [ebp - 0x30]
mov dword [esp + 4], 1
mov dword [esp], esi
call fcn.0053a850
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
test edx, edx
je 0x53ad94
cmp edx, 0xffffffff
je 0x53aca1
lock sub dword [eax], 1
mov eax, dword [ebp - 0x30]
je 0x53ad94
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x53adb2
lea eax, [ebp - 0x28]
mov dword [esp + 4], 0
mov ecx, esi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], eax
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.00615450
mov eax, dword [ebx]
sub esp, 8
mov ecx, dword [eax + 4]
add eax, dword [eax + 0xc]
lea edx, [ecx + ecx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 4], 0
mov eax, dword [ebx]
mov ecx, esi
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.00615450
mov eax, dword [ebp - 0x30]
sub esp, 8
mov dword [esp + 8], 0xf01ff
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
sub esp, 0xc
cmp eax, ecx
je 0x53ad5f
mov dword [esp], eax
call fcn.0063e3b0
test esi, esi
je 0x53add0
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
sub esp, 4
test eax, eax
setne bl
mov dword [esp], esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
sub esp, 4
mov dword [esp], edi
call esi
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x53aca1
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lock add dword [edx], 1
jmp 0x53ac6f
mov dword [esp], edi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x53ae20
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [ebp + 8]
mov dword [esp + 8], 0xf003f
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
sub esp, 0xc
test eax, eax
je 0x53af80
mov ebx, eax
xor eax, eax
mov dword [esp + 4], 0
mov word [ebp - 0x28], ax
mov eax, dword [esi]
lea edi, [ebp - 0x28]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], edi
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.00615450
mov eax, dword [esi]
sub esp, 8
mov edx, dword [eax + 4]
add eax, dword [eax + 0xc]
add edx, edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 4], 0
mov eax, dword [esi]
lea ecx, [ebp - 0x30]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.00615450
mov eax, dword [ebp - 0x30]
sub esp, 8
mov dword [esp + 8], 0xf003f
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov eax, dword [ebp - 0x30]
sub esp, 0xc
cmp eax, edi
je 0x53aee8
mov dword [esp], eax
call fcn.0063e3b0
test esi, esi
je 0x53af93
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0xea60
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0xea60
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0xea60
mov dword [ebp - 0x44], 0x15180
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 3
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 2
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
sub esp, 0xc
mov edi, eax
mov dword [esp], esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
sub esp, 4
mov dword [esp], ebx
call esi
sub esp, 4
test edi, edi
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub esp, 4
test esi, esi
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x53b8a0
Capabilities:
Get file version info

Disassembly:
push edi
push esi
xor eax, eax
push ebx
mov esi, ecx
mov ecx, 0x200
sub esp, 0x820
lea ebx, [esp + 0x20]
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x830]
mov eax, dword [eax]
mov edx, dword [eax + 4]
add eax, dword [eax + 0xc]
mov dword [esp], ebx
add edx, edx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
lea eax, [esp + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
sub esp, 8
xor eax, eax
test edi, edi
jne 0x53b902
add esp, 0x820
pop ebx
pop esi
pop edi
ret 4
mov dword [esp], edi
call fcn.0063e3d0
mov dword [esi], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.VERSION.dll_GetFileVersionInfoW
sub esp, 0x10
test eax, eax
jne 0x53b954
mov eax, dword [esi]
test eax, eax
je 0x53b939
mov dword [esp], eax
call fcn.0063e3a0
mov dword [esi], 0
mov dword [esi + 4], 0
add esp, 0x820
pop ebx
xor eax, eax
pop esi
pop edi
ret 4
lea eax, [esp + 0x18]
mov dword [esp + 4], str.VarFileInfoTranslation
mov dword [esp + 0xc], eax
lea eax, [esp + 0x1c]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp], eax
call sub.VERSION.dll_VerQueryValueW
sub esp, 0x10
test eax, eax
je 0x53b92b
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
rol eax, 0x10
mov dword [esi + 4], eax
mov eax, 1
jmp 0x53b8f6

Function at 0x53c680
Capabilities:
Check os version

Disassembly:
sub esp, 0x13c
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x114
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
sub esp, 4
cmp dword [esp + 0x20], 5
seta al
add esp, 0x13c
ret
Function at 0x5400a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x220]
sub esp, 0x24c
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x230], 0x104
mov dword [esp + 4], 0x104
mov dword [esp], esi
mov dword [ebp - 0x23c], eax
call eax
sub esp, 8
cmp eax, 0x104
mov ebx, eax
mov edi, dword [ebp - 0x228]
jbe 0x5401af
cmp dword [ebp - 0x22c], eax
cmovle eax, dword [ebp - 0x22c]
cmp dword [ebp - 0x230], ebx
mov dword [ebp - 0x240], eax
jge 0x540191
cmp ebx, 0x104
jg 0x5401e0
mov dword [ebp - 0x228], esi
lea esi, [ebp - 0x220]
mov dword [ebp - 0x230], 0x104
mov dword [ebp - 0x244], esi
mov eax, dword [ebp - 0x240]
mov edx, dword [ebp - 0x244]
mov dword [esp + 4], edi
mov dword [ebp - 0x22c], 0
add eax, eax
mov dword [esp], edx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x240]
cmp edi, esi
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ecx
je 0x540210
cmp edi, eax
je 0x540191
mov dword [esp], edi
call fcn.00564e28
mov edi, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ebx
mov dword [esp + 4], ebx
mov dword [esp], edi
mov eax, dword [ebp - 0x23c]
call eax
mov edi, dword [ebp - 0x228]
sub esp, 8
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [method.QString.fromUtf16_unsigned_short_const__int_]
mov eax, dword [ebp - 0x228]
cmp eax, esi
je 0x5401d5
mov dword [esp], eax
call fcn.00564e28
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + ebx]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebp - 0x244], eax
je 0x540217
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x228], eax
jmp 0x54013d
mov edi, eax
jmp 0x540191
call dword [sym.imp.Qt5Core.dll_qBadAlloc__]
jmp 0x5401f5
Function at 0x54f3f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x7629c0]
test esi, esi
jle 0x54f500
mov edi, dword [0x7629c4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x54f424
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x54f4a5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x54f410
mov dword [esp], eax
mov ebx, eax
call fcn.0054fce0
test eax, eax
mov edi, eax
je 0x54f527
mov eax, dword [0x7629c4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0054fde0
add eax, dword [edi + 0xc]
mov edx, dword [0x7629c4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x54f507
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x54f49e
sub eax, 4
and eax, 0xfffffffb
jne 0x54f4b0
add dword [0x7629c0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x7629c4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x54f49e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00642e20
lea esi, [esi]
xor esi, esi
jmp 0x54f42e
mov eax, dword [0x7629c4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00642e20
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00642e20
mov esi, esi
lea edi, [edi]

Function at 0x54f960
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x7629d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x7629d0]
sub esp, 4
test ebx, ebx
je 0x54f9b5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x54f9ae
test esi, esi
je 0x54f9ae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x54f990
mov dword [esp], 0x7629d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x54ff40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
je 0x5500cc
mov eax, dword [esp + 0x3c]
add eax, 1
lea edx, [eax*4]
cmp eax, 0x20000000
mov eax, 0xffffffff
cmovb eax, edx
mov dword [esp], eax
call fcn.0063e3d0
mov edx, dword [esp + 0x3c]
mov edi, eax
test edx, edx
je 0x55005c
xor ebx, ebx
nop
lea esi, [esi]
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + ebx*4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp], eax
mov dword [esp + 0x28], eax
call fcn.0063e3d0
mov ecx, dword [esp + 0x28]
mov esi, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [edi + ebx*4], esi
add ebx, 1
cmp dword [esp + 0x3c], ebx
jne 0x54ffb0
lea eax, [edi + ebx*4]
mov dword [eax], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.004e0420
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5500b8
mov eax, dword [edi]
test eax, eax
je 0x5500b8
xor ebx, ebx
jmp 0x5500a7
mov eax, dword [edi + ebx*4]
test eax, eax
je 0x5500b8
mov dword [esp], eax
add ebx, 1
call fcn.0063e3a0
cmp dword [esp + 0x3c], ebx
jne 0x5500a0
mov dword [esp], edi
call fcn.0063e3a0
add esp, 0x4c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov esi, 0xffffffff
jmp 0x5500c0
Function at 0x55fe60
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [ecx - 1]
mov ecx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ebx
sar ebx, 0x1f
imul ecx
mov ecx, edx
sar ecx, 2
sub ecx, ebx
mov ebx, 1
je 0x55feb3
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x55fea0
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x55ff30
mov ecx, dword [esi + 8]
cmp ebx, edx
cmovl ebx, edx
lea edx, [ebx + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, 1
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add ebx, 1
mov dword [esp], esi
call fcn.0055f710
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [esi + 4], edx
mov edx, esi
call fcn.0055f2e0
add dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0055fb50
mov eax, dword [0x661124]
cmp eax, 0xffffffff
je 0x55ff65
test eax, eax
je 0x55ff55
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x55febb
mov dword [0x661124], 0
call fcn.00565020
test al, 1
mov edx, 3
jne 0x55ff3e
jmp 0x55ff43
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x55ff4b
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
ja 0x55ff4b
mov dword [0x661124], 1
jmp 0x55ff3e