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

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x442b53
push esi
call fcn.00445c20
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x442b4c
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 0x442bd9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x442bc2
mov eax, dword [esi + 8]
test eax, eax
je 0x442b77
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 0x442bbe
cmp eax, 2
je 0x442bc2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x442b6a
cmp eax, 3
je 0x442b9d
cmp eax, 1
jne 0x442b6a
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 0x442b6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x442b6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00442c00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x442be8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00442c00
add esp, 4
pop esi
ret

Function at 0x44ec80
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44ed23
test eax, eax
jbe 0x44ed23
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44ed23
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44ecce
xor esi, esi
jmp 0x44ecd4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44ecff
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004542f0
add esi, eax
push esi
mov ebx, esi
call fcn.004542f0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44ece0
pop ebp
test edi, edi
pop edi
jne 0x44ed23
test ebx, ebx
je 0x44ed23
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00458640
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44ee65
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44ef7d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44ef7d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00469bce
mov esi, eax
test esi, esi
je 0x44ef7d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44ef7d
mov ecx, esi
call fcn.0044edd0
cmp edi, eax
jge 0x44ef7d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44ef03
mov dword [esp + 0x34], 1
jmp 0x44ef5e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44ef7d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044e320
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x453390
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4533f6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4533f6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4533d7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x453780
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4537b8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x454770
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4547b9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x454c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x476c90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004547e0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00454860
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00454860
lea ecx, [esi + 0xc]
call fcn.00468158
lea ecx, [esi + 0x10]
call fcn.00468158
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00455df0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00455df0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00455df0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004681cd
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004681cd
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x46a571
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46a5a9
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.00468628
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00468600
jmp 0x46a5b5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46bc63
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 0x46bca5
call fcn.00471801
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46bca5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46bc9c
xor eax, eax
jmp 0x46bcad
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046bcb3
pop edi
pop esi
pop ebx
ret 4

Function at 0x471d31
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 0x471d5f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x471d7d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00471c97
jmp 0x471d7d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x471d7d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00471c97
test edi, edi
mov eax, edi
jne 0x471d67
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4063a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a6b5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push esi
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString_2
mov ebx, 1
push 0x4dfae4
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], ebx
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
lea ecx, [esp + 8]
push esi
push 0
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 2
call fcn.004a5776
lea ecx, [esp + 8]
mov byte [esp + 0x18], bl
call sub.MFC42.DLL_CString::CString
push 0x23
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
lea edx, [esp + 8]
dec esi
inc eax
push esi
push eax
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 3
call fcn.004a5776
lea ecx, [esp + 8]
mov byte [esp + 0x18], bl
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.004a57ee
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x407af0
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a6c8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x110]
push 0x105
push eax
mov dword [esp + 0x224], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x110]
lea edx, [esp + 0xc]
push ecx
push str._sDrvRecovSvr.exe
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
add esi, 0x3dc4
lea eax, [esp + 8]
push str.driversDrvRecovSvr.exe
push esi
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0xc]
lea eax, [esp + 4]
push edx
push str._s__i
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x10]
add esp, 0xc
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [esp + 4]
mov dword [esp + 0x21c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x214]
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x408720
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 0x3cc8]
mov dword [esp + 4], 0
cmp eax, 4
jb 0x40877d
lea eax, [esp]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerAutoplayHandlers
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4087cc
mov edx, dword [esp + 0x10]
push 4
test edx, edx
lea edx, [esp + 8]
push edx
push 4
push eax
mov eax, dword [esp + 0x10]
sete cl
push str.DisableAutoplay
push eax
mov byte [esp + 0x1c], cl
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
jmp 0x4087c6
lea edx, [esp]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4087cc
mov eax, dword [esp + 0x10]
mov edx, dword [esp]
neg eax
lea ecx, [esp + 4]
push 4
sbb al, al
push ecx
and al, 0x96
push 4
push 0
dec al
push str.NoDriveTypeAutoRun
push edx
mov byte [esp + 0x1c], al
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
push ecx
push 0x1388
push 2
push 0
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
add esp, 0xc
ret 4

Function at 0x4087f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, ecx
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esi + 0x3cc8], 0xff
push eax
mov dword [esp + 0xc], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov edi, 2
jne 0x408835
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x408897
mov eax, dword [esp + 0xc]
cmp eax, 5
jne 0x40885f
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40884e
mov dword [esi + 0x3cc8], edi
jmp 0x408897
cmp eax, 1
jne 0x408897
mov dword [esi + 0x3cc8], 3
jmp 0x408897
cmp eax, 6
jne 0x408897
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x408878
mov dword [esi + 0x3cc8], 4
jmp 0x408897
cmp eax, 1
jne 0x408889
mov dword [esi + 0x3cc8], 5
jmp 0x408897
cmp eax, edi
jne 0x408897
mov dword [esi + 0x3cc8], 6
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
and eax, 0xffff
cmp eax, 0x404
je 0x4088d6
cmp eax, 0x804
je 0x4088c3
mov dword [esi + 0x3ccc], 0
pop edi
pop esi
add esp, 0x9c
ret
mov dword [esi + 0x3ccc], 1
pop edi
pop esi
add esp, 0x9c
ret
mov dword [esi + 0x3ccc], edi
pop edi
pop esi
add esp, 0x9c
ret
Function at 0x40a130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a6fb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [edi + 0x3dc4]
lea ecx, [esp + 0xc]
push eax
push str._scom.ini
push ecx
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push esi
push 0x4dff08
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0x18
push eax
push ecx
push str.Group
push 0x4dfefc
call ebx
push 0x4e5a9c
lea ecx, [esp + 0x14]
call fcn.004a5764
mov eax, dword [esp + 0x28]
test eax, eax
jbe 0x40a205
imul esi, eax
push ebp
mov ebp, eax
lea esi, [esi*2 + 0x4e5b74]
xor edx, edx
lea eax, [esp + 0x10]
mov dx, word [esi]
push edx
push 0x4dfef4
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
add esi, 2
dec ebp
jne 0x40a1d8
pop ebp
mov edx, dword [edi + 0x3dc4]
lea eax, [esp + 0xc]
push edx
push str._scom.ini
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ecx
push edx
push str.Status
push 0x4dfefc
call ebx
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x40a410
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a6fd6
push eax
mov eax, dword [0x4e5a98]
mov dword fs:[0], esp
sub esp, 0x20c
test eax, eax
push esi
mov esi, ecx
jg 0x40a59c
mov eax, dword [0x4e5e24]
and eax, 0xff
sub eax, 0
je 0x40a4d9
dec eax
je 0x40a4c2
dec eax
jne 0x40a537
mov eax, dword [esp + 0x220]
test eax, eax
je 0x40a472
call fcn.00490250
call fcn.00490460
call fcn.0049dd60
push ecx
mov ecx, esp
mov dword [esp + 8], esp
push 0x4e5fcc
call fcn.004a57ee
mov eax, dword [0x4e5fc8]
mov ecx, 0x4e5db4
push eax
mov dword [esp + 0x220], 0xffffffff
call fcn.0040a5c0
push eax
push str.1234
push str.9380
call fcn.00490ea0
add esp, 0x14
test eax, eax
jne 0x40a4bb
inc dword [0x4e5a98]
call fcn.0049df20
jmp 0x40a537
mov ecx, dword [0x4e5db4]
mov edx, dword [0x4e5fcc]
push ecx
push edx
mov ecx, esi
call fcn.00408fa0
jmp 0x40a537
mov eax, dword [esp + 0x220]
test eax, eax
je 0x40a4ee
call fcn.00490250
call fcn.00490460
push ecx
mov ecx, esp
mov dword [esp + 8], esp
push 0x4e5fcc
call fcn.004a57ee
mov eax, dword [0x4e5fc8]
mov ecx, 0x4e5db4
push eax
mov dword [esp + 0x220], 0xffffffff
call fcn.0040a5c0
push eax
push str.1234
push str.9380
call fcn.00490ea0
add esp, 0x14
test eax, eax
jne 0x40a537
inc dword [0x4e5a98]
mov eax, dword [0x4e5a98]
test eax, eax
jle 0x40a59c
call fcn.00411590
mov ecx, dword [esi + 0x20]
push 8
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
lea edx, [esp + 8]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esi + 0x3dc4]
lea eax, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x114]
push str._sReRun.exe__E:_s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0x10c]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
call dword [sym.imp.MSVCRT.dll_exit]
mov ecx, dword [esp + 0x210]
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x40bed0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
push ebx
lea eax, [esp + 4]
xor ebx, ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea ecx, [esp + 0x30]
push 2
push ecx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [esp + 8], eax
je 0x40bf35
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 8]
pop ebx
add esp, 0x10
ret

Function at 0x40bf40
Capabilities:
Get disk information via ioctl

Disassembly:
push 0xffffffffffffffff
push 0x4a7208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
push edi
mov ebp, ecx
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
mov dword [esp + 0x3c], 0
mov byte [edi], 0
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40bfc9
lea ecx, [esp + 0x2c]
push 0
push ecx
lea edx, [esp + 0x14]
push 0xc
push edx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40bfc2
mov eax, dword [esp + 0x10]
mov ecx, ebp
push eax
call fcn.0040c000
mov byte [edi], al
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [edi]
xor ecx, ecx
test al, al
setne cl
mov esi, ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x40c000
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
sub esp, 0x18
mov cx, word [0x4e0228]
mov eax, dword [str..A:]
mov dl, byte [0x4e022a]
push ebx
push ebp
push esi
push edi
mov word [esp + 0x18], cx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov byte [esp + 0x1a], dl
mov byte [esp + 0x18], 0x41
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
je 0x40c0d0
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dl, byte [esp + 0x18]
test bl, 1
je 0x40c0c6
cmp dl, 0x41
je 0x40c0c6
mov eax, 0x4e5bd4
mov ecx, dword [eax]
test ecx, ecx
je 0x40c06d
cmp byte [ecx + 0x18], dl
je 0x40c0c6
add eax, 4
cmp eax, 0x4e5c14
jl 0x40c062
push 0
push 0
push 3
push 0
push 3
lea eax, [esp + 0x28]
push 0
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x40c0c2
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x24]
push 0xc
push edx
push 0
push 0
push 0x2d1080
push esi
call ebp
test eax, eax
je 0x40c0bb
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
je 0x40c0dc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dl, byte [esp + 0x18]
inc dl
shr ebx, 1
mov byte [esp + 0x18], dl
jne 0x40c053
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x40db1c
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2a08
call fcn.004a5b80
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0x214]
push edi
mov bl, byte [esi + 0x68]
push ecx
cmp bl, 0x86
setne al
dec eax
and eax, 0x10
add eax, 4
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
mov edx, eax
and edx, 0xff
push edx
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esi + 0x64]
push 0
push 0x11
push 0xfa
push eax
call fcn.00482460
add esp, 0x2c
test eax, eax
je 0x40dcc6
mov al, byte [esi + 0x68]
mov cl, al
sub cl, 0x86
neg cl
sbb ecx, ecx
and ecx, 0xffffe07a
add ecx, 0x2680
cmp al, 0x92
jne 0x40dc28
xor bl, bl
mov word [esp + 0x14], 0x7f0
mov word [esp + 0x16], 0x7fa
mov dl, 1
mov byte [esp + 0x10], bl
mov ecx, dword [esp + 0x10]
xor eax, eax
and ecx, 0xff
mov ax, word [esp + ecx*2 + 0x14]
movzx cx, byte [esp + eax + 0x21a]
movzx si, byte [esp + eax + 0x21b]
shl ecx, 8
add ecx, esi
mov esi, ecx
and esi, 0xffff
and esi, 0x8000001f
jns 0x40dbe2
dec esi
or esi, 0xffffffe0
inc esi
jne 0x40dc0a
movzx si, byte [esp + eax + 0x218]
movzx ax, byte [esp + eax + 0x219]
shl esi, 8
add esi, eax
lea eax, [ecx - 1]
not eax
cmp si, ax
jne 0x40dc0a
test cx, cx
ja 0x40dc17
inc bl
cmp bl, 2
mov byte [esp + 0x10], bl
jb 0x40dba5
jmp 0x40dc19
mov dl, bl
neg dl
sbb edx, edx
and edx, 0xa
add edx, 0x6f0
mov ecx, edx
lea esi, [esp + ecx + 0x218]
mov ecx, 0x60
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0x10f]
mov cl, byte [esp + 0xe0]
mov dl, byte [esp + 0x9a]
add al, cl
mov cl, byte [esp + 0xb5]
mov bl, al
add bl, cl
add cl, dl
add bl, dl
cmp cl, al
mov byte [esp + 0x10], bl
mov dl, cl
ja 0x40dc6c
mov dl, al
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2a24]
and ecx, 0xff
lea edi, [esp + 0x18]
xor ebp, ebp
lea esi, [esp + ecx + 0x218]
mov ecx, 0x80
test eax, eax
rep movsd dword es:[edi], dword [esi]
jbe 0x40dcc6
mov ecx, dword [esp + 0x2a20]
lea esi, [esp + 0x18]
lea eax, [ecx + ebp]
mov edi, 0x200
mov bl, byte [eax]
xor bl, dl
xor bl, byte [esi]
inc esi
mov byte [eax], bl
inc eax
dec edi
jne 0x40dca8
mov eax, dword [esp + 0x2a24]
add ebp, 0x200
cmp ebp, eax
jb 0x40dc9c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2a08
ret 0xc