joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb69f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xb7e9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xb6a002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00b6ddff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xb6a002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00b656e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00b6e20b
push 0x10
call fcn.00b6e1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xb69fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00b5a1c0
jmp 0xb69fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00b69b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xb69ff0
mov ecx, edi
call fcn.00b5a2c0
push edi
call fcn.00b6e1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xb6a021
inc ebx
cmp ebx, 0x20
jb 0xb69f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xb6b250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb7f808
push 0xb6f288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xb6b329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xb6b329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00b6e1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xb6b329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xb6b329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xb6b32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00b6b351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb6bd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xb6bd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xb6bd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xb6bd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xb6bd94
push eax
push esi
call fcn.00b6e20b
add esp, 8
pop esi
ret 0x10

Function at 0xb6bda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xb6be22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xb6be15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xb84320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00b6ddff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xb6bdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xb6be30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xb6bec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xb6beb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xb84320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00b6ddff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xb6beab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xb6be6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xb6c000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xb6c131
push esi
call fcn.00b6f145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00b5e080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xb6c131
push 0
push ebp
call fcn.00b5e3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00b5e260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xb6c08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00b5e2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xb6c121
push 0xb84918
push edi
call fcn.00b6d3f0
push eax
push ebx
push esi
call fcn.00b6bf60
push 0xb848f8
push edi
call fcn.00b6d3f0
push eax
push ebx
push esi
call fcn.00b6bf60
push 0xb848d8
push edi
call fcn.00b6d3f0
push eax
push ebx
push esi
call fcn.00b6bf60
push 0xb848c0
push edi
call fcn.00b6d3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00b6bf60
push 0xb848a0
push edi
call fcn.00b6d3f0
push eax
push ebx
push esi
call fcn.00b6bf60
push 0xb84888
push edi
call fcn.00b6d3f0
push eax
push ebx
push esi
call fcn.00b6bf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xb6d1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00b6d140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00b6d140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00b6d140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00b6d140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xb6dbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xb6dc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xb7f87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xb6dc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xb6dc52
xor eax, eax
pop esi
leave
ret 4

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x7b805fbf
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x4c192a0f
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4023b0
Capabilities:
Access peb ldr_data
Download url
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x40c509
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x412018]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [0x412018]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
push str.https:__microsoft.com
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
xor eax, eax
mov dword [esp + 0x40], 0
cmp dword [esp + 0x24], 0x10
mov word [esp + 0x28], ax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov eax, dword [esp + 0x10]
jae 0x402413
lea eax, [esp + 0x10]
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
push 0
call sub.urlmon.dll_URLOpenBlockingStreamA
test eax, eax
jne 0x40244c
mov eax, dword [esp + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esp + 8]
push ecx
push 4
lea ecx, [esp + 0x30]
push ecx
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0040b0ba
add esp, 0x40
ret
Function at 0x4068a0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x1c0
mov eax, dword [0x412018]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x30]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor eax, eax
cmp dword [0x415250], 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
mov eax, dword [0x41523c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 6
jae 0x406915
mov eax, 0x41523c
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x40696b
mov esi, dword [esp + 0xc]
test esi, esi
je 0x406964
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebx, dword [sym.imp.MSVCR90.dll_strcpy_s]
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 4]
push eax
call edi
push eax
push 0x104
push 0x414a30
call ebx
mov esi, dword [esi + 0x1c]
add esp, 0xc
test esi, esi
jne 0x406940
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [esp + 0x1c4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040b0ba
add esp, 0x1c0
ret

Function at 0x406990
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x1c0
mov eax, dword [0x412018]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x30]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push str.microsoft.com
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x406a4b
mov esi, dword [esp + 0xc]
test esi, esi
je 0x406a44
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebx, dword [sym.imp.MSVCR90.dll_strcpy_s]
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 4]
push eax
call edi
push eax
push 0x104
push 0x414c40
call ebx
mov esi, dword [esi + 0x1c]
add esp, 0xc
test esi, esi
jne 0x406a20
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [esp + 0x1c4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040b0ba
add esp, 0x1c0
ret
Function at 0x4078f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
push esi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x84]
push eax
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop esi
add esp, 0x5c
ret

Function at 0x407bd0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x444
mov eax, dword [0x412018]
xor eax, esp
mov dword [esp + 0x43c], eax
push 0x434
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.00407890
lea edx, [esp]
jmp 0x407c10
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x407c10
lea ecx, [esp]
push ecx
call fcn.004078f0
add esp, 4
push 0
call dword [sym.imp.MSVCR90.dll_exit]
int3

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test edi, edi
jle 0x407c72
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov edx, dword [0x414524]
push 0
mov eax, edi
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x407c78
add esi, eax
cmp esi, edi
jl 0x407c53
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop esi
pop ebp
xor al, al
pop ebx
ret

Function at 0x407c80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test edi, edi
jle 0x407cb2
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov edx, dword [0x414524]
push 0
mov eax, edi
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x407cb8
add esi, eax
cmp esi, edi
jl 0x407c93
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop esi
pop ebp
xor al, al
pop ebx
ret

Function at 0x407cc0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0xc], eax
xor esi, esi
lea esp, [esp]
mov eax, dword [0x414524]
push 0
mov ecx, 4
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x14]
push edx
push eax
call edi
cmp eax, 0xffffffff
je 0x407d08
add esi, eax
cmp esi, 4
jl 0x407ce0
pop edi
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret
Function at 0x407e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40c649
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x412018]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea edi, [esp + 0xc]
call fcn.00407d10
test al, al
je 0x407ec1
mov eax, dword [esp + 0xc]
inc eax
push eax
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
mov ecx, dword [esp + 0x10]
mov esi, eax
mov byte [esi + ecx], 0
mov edi, dword [esp + 0x10]
push esi
call fcn.00407c40
add esp, 8
test al, al
jne 0x407ed5
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x30]
call fcn.00409260
add esp, 0x1c
mov ecx, dword [esp + 0x40]
push eax
mov dword [esp + 0x3c], 0
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x4095a0
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0x510
mov eax, dword [0x412018]
xor eax, esp
mov dword [esp + 0x50c], eax
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x116]
push ecx
mov word [esp + 0x118], ax
call sub.MSVCR90.dll_memset
xor edx, edx
push 0x102
push edx
lea eax, [esp + 0x1e]
push eax
mov word [esp + 0x20], dx
call sub.MSVCR90.dll_memset
add esp, 0x18
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
mov dword [esp + 0xc], 0x64
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [esp]
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 8], 0x64
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 0x10c]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
lea eax, [esp + 0xc]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x514]
add esp, 8
xor ecx, esp
call fcn.0040b0ba
add esp, 0x510
ret
Function at 0x40b0ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412018]
jne 0x40b0c4
repz ret
jmp fcn.0040b505
Function at 0x401dba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x6c], 0
jne 0x401e7a
lea ecx, [ebp - 0x14]
call fcn.004011a0
mov dword [ebp - 4], 0
push 0x104
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0043066f
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004306be
push str.winhlp32.exe
lea ecx, [ebp - 0x14]
call fcn.00430630
lea ecx, [ebp - 0x14]
call fcn.00401200
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401e61
push 0x6a
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x401e61
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x6c], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00430372
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x401e88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0x114], ecx
lea eax, [ebp - 8]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401ef5
mov dword [ebp - 0x110], 0x104
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x10c]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4020f3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov dword [ebp - 0x224], ecx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
ja 0x402244
lea edx, [ebp - 0x20c]
push edx
push str..htm
push SysReAllocStringLen
mov ecx, dword [ebp - 0x224]
call fcn.00401e88
test eax, eax
jne 0x402244
push str._shellopencommand
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x20c]
push edx
push SysReAllocStringLen
mov ecx, dword [ebp - 0x224]
call fcn.00401e88
test eax, eax
jne 0x402244
push str.__1_
lea eax, [ebp - 0x20c]
push eax
call fcn.00402290
add esp, 8
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x4021f1
push 0x451408
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00402290
add esp, 8
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x4021e6
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x20d]
mov dword [ebp - 0x220], eax
jmp 0x4021ef
mov ecx, dword [ebp - 0x220]
mov byte [ecx], 0
jmp 0x4021fa
mov edx, dword [ebp - 0x220]
mov byte [edx], 0
push 0x45140c
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x214], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00402280
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8