joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c860
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585378
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
push 0x594ed6
lea ecx, [ebp - 0x2c]
call fcn.00405ef0
mov dword [ebp - 4], 0
push str.GetIpAddrFromHostName___in_..._n
push 0x5fa950
call fcn.0040c050
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x40c8ee
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40c8ee
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405fb0
push str.GetIpAddrFromHostName___out_..._n
push str.CInternetUtils::GetIpAddrFromHostName
call fcn.0040c050
add esp, 8
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405f30
mov ecx, dword [ebp - 0x38]
or ecx, 1
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405f70
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret

Function at 0x40d760
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x218], 0
push 0x7f
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.00562540
add esp, 0xc
lea ecx, [ebp - 0x198]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40d7b5
xor eax, eax
jmp 0x40d887
push 0x80
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x40d885
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x40d885
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 0xc]
cmp dword [edx], 0
je 0x40d885
mov eax, dword [ebp - 0x220]
movsx ecx, word [eax + 0xa]
cmp ecx, 4
jge 0x40d815
xor eax, eax
jmp 0x40d887
mov byte [ebp - 0x218], 0
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
movzx edx, byte [ecx + 3]
push edx
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
movzx eax, byte [edx + 2]
push eax
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
movzx ecx, byte [eax + 1]
push ecx
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
movzx edx, byte [ecx]
push edx
push str._u._u._u._u
lea eax, [ebp - 0x218]
push eax
call fcn.0055b801
add esp, 0x18
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405fb0
mov eax, 1
jmp 0x40d887
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret
Function at 0x40d8a0
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x40d909
mov eax, dword [ebp - 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d8f9
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x40d8f9
mov eax, dword [ebp - 4]
jmp 0x40d90b
cmp dword [ebp - 4], 0
je 0x40d909
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x411c50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
pop ebp
ret

Function at 0x412e70
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x412eb1
cmp dword [ebp + 0xc], 0
je 0x412eb1
cmp dword [ebp + 0x10], 0x10
jae 0x412eb6
jmp 0x412fca
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x412ee0
jmp 0x412fca
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
jbe 0x412f03
jmp 0x412fca
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x412f25
jmp 0x412fca
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x412f45
jmp 0x412fca
mov byte [ebp - 0x2c], 0
xor edx, edx
mov dword [ebp - 0x2b], edx
mov dword [ebp - 0x27], edx
mov dword [ebp - 0x23], edx
mov word [ebp - 0x1f], dx
mov byte [ebp - 0x1d], dl
push 0x58
push 0
lea eax, [ebp - 0x88]
push eax
call fcn.00562540
add esp, 0xc
lea ecx, [ebp - 0x88]
push ecx
call fcn.00411c50
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x88]
push ecx
call fcn.00411c90
add esp, 0xc
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00411d90
add esp, 8
push 0x10
lea ecx, [ebp - 0x2c]
push ecx
push 0x10
mov edx, dword [ebp + 0xc]
push edx
call fcn.0055b733
add esp, 0x10
mov dword [ebp - 8], 1
xor eax, eax
jne 0x412e9f
cmp dword [ebp - 0xc], 0
je 0x412fda
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 4], 0
je 0x412fea
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0xffffffff
je 0x412ffa
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret
Function at 0x413e00
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0xc3d2e1f0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5c], 0
mov eax, 1
pop ebp
ret

Function at 0x413ff0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x414024
cmp dword [ebp + 0xc], 0
je 0x414024
cmp dword [ebp + 0x10], 0x14
jae 0x414029
jmp 0x4140d8
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x414053
jmp 0x4140d8
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
jbe 0x414073
jmp 0x4140d8
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x414092
jmp 0x4140d8
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4140af
jmp 0x4140d8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00413e60
add esp, 0xc
test eax, eax
je 0x4140c9
jmp 0x4140d8
mov dword [ebp - 8], 1
xor edx, edx
jne 0x414012
cmp dword [ebp - 0xc], 0
je 0x4140e8
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 4], 0
je 0x4140f8
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0xffffffff
je 0x414108
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x414840
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x63bda4], 0
je 0x414866
mov eax, dword [0x63bda8]
jmp 0x414947
mov dword [ebp - 4], 0
mov dword [ebp - 0x120], 0
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.00562540
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x414938
mov byte [ebp - 0x12c], 0
mov byte [ebp - 0x12b], 0
mov byte [ebp - 0x12a], 0
mov byte [ebp - 0x129], 0
mov byte [ebp - 0x128], 0
mov byte [ebp - 0x127], 5
mov dword [ebp - 0x124], 0
lea edx, [ebp - 0x124]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [0x63bda8], eax
cmp dword [0x63bda8], 0
je 0x414938
push 0x63bda8
mov ecx, dword [ebp - 0x124]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [0x63bda4], 1
mov eax, dword [0x63bda8]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret

Function at 0x414ac0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1694
call fcn.00565240
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jne 0x414b00
xor eax, eax
jmp 0x414bff
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.0048b890
add esp, 8
test eax, eax
jne 0x414bc8
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x23c], ecx
cmp dword [ebp + 0xc], 0
je 0x414bc6
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x414bc6
xor eax, eax
mov word [ebp - 0x1690], ax
push 0x144e
push 0
lea ecx, [ebp - 0x168e]
push ecx
call fcn.00562540
add esp, 0xc
push 0x1450
lea edx, [ebp - 0x1690]
push edx
mov eax, dword [ebp - 0x23c]
push eax
call fcn.00414960
add esp, 0xc
mov dword [ebp - 0x1694], eax
cmp dword [ebp - 0x1694], 0
je 0x414bba
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x1690]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x414bba
jmp 0x414be3
mov dword [ebp - 0x23c], 0
jmp 0x414bc8
jmp 0x414be3
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x414b1d
cmp dword [ebp - 0x240], 0
je 0x414bf9
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret
Function at 0x414c10
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
jmp 0x414c36
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xa
jge 0x414c8e
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x414c62
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x414c77
push 0x5f6208
push 0x5f620c
call fcn.00414ac0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x414c81
jmp 0x414c8e
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x414c2d
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x414d30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x414d6c
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x414d62
mov eax, 1
jmp 0x414d6e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x416240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5852f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x615000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x1c], 0x400
lea eax, [ebp - 0x18]
push eax
push 1
push 0
lea ecx, [ebp + 0xc]
call fcn.00406030
push eax
call fcn.00416170
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x41634f
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x44]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp + 0x28]
call fcn.00406030
push eax
call fcn.00416170
add esp, 4
push eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x41631f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 0x44]
mov ecx, dword [eax]
push ecx
sub esp, 0x1c
mov ecx, 7
lea esi, [ebp + 0x28]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
sub esp, 0x1c
mov ecx, 7
lea esi, [ebp + 0xc]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push str.GetReg_:_s__s_error__value:_i__error_code:_i_n
push 0x5f872c
call fcn.0040c050
add esp, 0x48
jmp 0x41634d
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x21], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00405f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x28]
call fcn.00405f70
mov al, byte [ebp - 0x21]
jmp 0x41639c
jmp 0x416370
sub esp, 0x1c
mov ecx, 7
lea esi, [ebp + 0xc]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push str.open_reg_error_:_s_n
push str.GetDwordReg
call fcn.0040c050
add esp, 0x24
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x22], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00405f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x28]
call fcn.00405f70
mov al, byte [ebp - 0x22]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4168f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00402270
mov dword [ebp - 0x6c], eax
push 0x44
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.00562540
add esp, 0xc
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 1
xor ecx, ecx
mov word [ebp - 0x38], cx
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
lea ecx, [ebp + 8]
call fcn.00406030
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x416957
mov dword [ebp - 0x7c], 0
jmp 0x4169aa
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x3fffffff
jle 0x416979
mov dword [ebp - 0x80], 0
jmp 0x4169a4
mov eax, dword [ebp - 0x18]
shl eax, 1
call fcn.0056a8e0
mov dword [ebp - 0x84], esp
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.00402280
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x7c], edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x68]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x7c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x4169fb
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x4169fb
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x78], ecx
lea ecx, [ebp + 8]
call fcn.00405f70
mov eax, dword [ebp - 0x78]
lea esp, [ebp - 0x84]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret
Function at 0x416d30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5834a1
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x310], 0
lea ecx, [ebp - 0x25c]
call fcn.004197b0
mov dword [ebp - 4], 0
mov dword [ebp - 0x244], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0xffffffff
jne 0x416dd1
lea eax, [ebp - 0x25c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00419820
mov ecx, dword [ebp - 0x310]
or ecx, 1
mov dword [ebp - 0x310], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.00406130
mov eax, dword [ebp + 8]
jmp 0x416ee9
lea edx, [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x260]
push eax
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0
je 0x416ea9
lea ecx, [ebp - 0x2ec]
call fcn.004205e0
mov byte [ebp - 4], 1
call fcn.00402270
mov dword [ebp - 0x270], eax
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x27c], ecx
mov edx, dword [ebp - 0x23c]
push edx
lea eax, [ebp - 0x30c]
push eax
call fcn.00416a20
add esp, 8
mov dword [ebp - 0x314], eax
mov ecx, dword [ebp - 0x314]
mov dword [ebp - 0x318], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x318]
push edx
lea ecx, [ebp - 0x2d0]
call fcn.00405f90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30c]
call fcn.00405f70
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00419920
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x260]
push edx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2ec]
call fcn.004086c0
jmp 0x416dea
mov eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x25c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00419820
mov edx, dword [ebp - 0x310]
or edx, 1
mov dword [ebp - 0x310], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.00406130
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret

Function at 0x418b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x20219
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x418b61
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x418ba7
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0x800
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x418ba2
xor eax, eax
jmp 0x418ba7
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x418bb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x418bef
xor eax, eax
jmp 0x418c38
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
mov edx, dword [ebp + 0x14]
push edx
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x418c29
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x418c38
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x418de0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x120], 0
push 0xff
push 0
lea eax, [ebp - 0x11f]
push eax
call fcn.00562540
add esp, 0xc
movsx ecx, byte [ebp + 8]
push ecx
push str.._c:
push 0xff
lea edx, [ebp - 0x120]
push edx
call fcn.0055b87e
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x418e75
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile___Error:__ld_n
call fcn.0055d49e
add eax, 0x40
push eax
call fcn.0055da75
add esp, 0xc
or eax, 0xffffffff
jmp 0x418ed6
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x418ec9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IOCTL_STORAGE_GET_DEVICE_NUMBER_Error:__ld_n
call fcn.0055d49e
add eax, 0x40
push eax
call fcn.0055da75
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x418ed6
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret