joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438f20
Capabilities:
Parse url

Disassembly:
push 0xffffffffffffffff
push 0x5ffb91
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
xor ebx, ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x14], ebx
mov esi, 1
mov dword [esp + 0x5c], esi
push ebp
call fcn.0040b700
push 0x400
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.005c2957
mov ecx, dword [esp + 0x6c]
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ecx
mov dword [esp + 0x3c], 0x400
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x438feb
mov esi, dword [esp + 0x28]
cmp esi, ebx
jne 0x438fd3
xor eax, eax
jmp 0x438fe1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x438fd8
sub eax, edx
mov edi, eax
push esi
mov eax, ebp
call fcn.0040f900
mov edx, dword [esp + 0x28]
push edx
call fcn.005c47cb
add esp, 4
mov byte [esp + 0x5c], bl
lea ecx, [esp + 0x68]
call fcn.0040b810
mov eax, ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret

Function at 0x439760
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x60466d
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0
call fcn.0040b8d0
mov ebx, 1
mov dword [esp + 0x254], ebx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4397db
push esi
mov ecx, 0x6ca128
call fcn.0040b990
jmp 0x439841
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov dword [esp + 0x24], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x439806
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov ecx, 0x6ca128
call fcn.0040b990
jmp 0x439841
cmp dword [esp + 0x24], edi
je 0x43981d
lea edx, [esp + 0x1c]
push edx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x439806
jmp 0x43982f
lea edx, [esp + 0x40]
lea edi, [esp + 0x10]
call fcn.0040bab0
call fcn.0040bd70
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0040b930
mov dword [esp + 0x14], ebx
mov byte [esp + 0x254], 0
lea ecx, [esp + 0x10]
call fcn.0040ba40
mov eax, esi
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.005c397a
add esp, 0x248
ret
Function at 0x439af0
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x604620
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], 0
mov ecx, 0x80
mov edx, ebx
call fcn.00439f10
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x439bbb
lea eax, [esp + 0x20]
push eax
mov ecx, 0x6d10e0
call fcn.0040b990
mov dword [esp + 0x34], edi
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0041e2b0
add esp, 8
mov byte [esp + 0x34], 1
mov eax, dword [eax]
push eax
call ebp
mov edi, eax
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x439b93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439bbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
test esi, esi
jne 0x439c4e
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x6d10e0
call fcn.0040b990
mov dword [esp + 0x34], 4
push eax
lea edx, [esp + 0x28]
push edx
call fcn.0041e2b0
add esp, 8
mov byte [esp + 0x34], 5
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [esp + 0x34], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439c26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439c4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x439ca5
test esi, esi
je 0x439ca5
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 0xa
jb 0x439b2c
cmp dword [0x71038c], 1
jl 0x439c8d
push str.CLEAN:_Processing_file:_file_failed_to_delete
push str.Helper::virDeleteFile
push 1
call fcn.00579a92
add esp, 0xc
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
cmp dword [0x71038c], 1
mov bl, 1
jl 0x439cc4
push str.CLEAN:_Processing_file:_file_deleted_successfully
push str.Helper::virDeleteFile
push 1
call fcn.00579a92
add esp, 0xc
mov al, bl
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x439ce0
Capabilities:
Get token privileges

Disassembly:
mov eax, 0x100c
call fcn.005c95e0
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x1008], eax
push 0xfff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.005c8fb0
add esp, 0xc
lea ecx, [esp]
push ecx
push 0xf01ff
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x439d8a
mov ecx, dword [esp]
lea edx, [esp + 4]
push edx
push 0x1000
lea eax, [esp + 0x10]
push eax
push 3
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x439d8a
xor eax, eax
cmp dword [esp + 8], eax
jbe 0x439d70
lea ecx, [esp + 0x14]
mov edi, edi
mov dword [ecx], 2
inc eax
add ecx, 0xc
cmp eax, dword [esp + 8]
jb 0x439d60
mov edx, dword [esp + 4]
mov ecx, dword [esp]
push 0
push 0
push edx
lea eax, [esp + 0x14]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp]
test eax, eax
je 0x439d98
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.005c397a
add esp, 0x100c
ret

Function at 0x439e60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x6045c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [esp + 0x14]
push eax
mov ecx, 0x6d10e0
call fcn.0040b990
mov dword [esp + 0x20], 0
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0041e2b0
add esp, 8
mov byte [esp + 0x20], 1
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
call fcn.0040ba40
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0040ba40
cmp esi, 0xffffffff
jne 0x439ef9
push ebx
call edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x439f10
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x604592
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
push esi
mov dword [esp + 0x18], 0
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call edi
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x6d10e0
call fcn.0040b990
mov dword [esp + 0x28], 0
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x1c], 1
call fcn.0041e2b0
add esp, 8
mov dword [esp + 0x28], 1
mov eax, dword [eax]
push esi
mov ebx, 3
push eax
mov dword [esp + 0x1c], ebx
call edi
test eax, eax
jne 0x439f9f
test ebp, ebp
jne 0x439f9f
xor esi, esi
jmp 0x439fa4
mov esi, 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], ebx
and ebx, 0xfffffffd
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.0040ba40
mov dword [esp + 0x28], 0xffffffff
test bl, 1
je 0x439fdd
and ebx, 0xfffffffe
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebx
call fcn.0040ba40
test esi, esi
je 0x439ff1
cmp dword [0x71038c], 1
jl 0x43a00e
push str.CLEAN:_Processing_file:_attributes_changed_successfully
jmp 0x439fff
cmp dword [0x71038c], 1
jl 0x43a00e
push str.CLEAN:_Processing_file:_attributes_failed_to_change
push str.Helper::virSetFileAttributes
push 1
call fcn.00579a92
add esp, 0xc
test esi, esi
setne al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x43a3e0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x5f8618
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
test esi, esi
je 0x43a452
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x43a452
mov dword [esp + 0x14], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
mov dword [esp + 0x14], 0xffffffff
test esi, esi
je 0x43a465
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x43a480
Capabilities:
Get number of processors
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x604538
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push esi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
xor eax, eax
xor ebx, ebx
mov word [esp + 0x1c], ax
push 6
mov eax, str..X:
lea esi, [esp + 0x1c]
mov byte [esp + 0x17], bl
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
call fcn.0040d7f0
mov dword [esp + 0x78], ebx
cmp dword [esp + 0x2c], 4
jae 0x43a4ef
call fcn.005c475a
mov eax, dword [esp + 0x1c]
mov ecx, 8
cmp dword [esp + 0x30], ecx
jae 0x43a502
lea eax, [esp + 0x1c]
mov edx, dword [ebp + 8]
mov dx, word [edx]
mov word [eax + 8], dx
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ecx
jae 0x43a51a
lea eax, [esp + 0x1c]
push ebx
push ebx
push 3
push ebx
push 7
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43a5a8
xor eax, eax
push ebx
mov word [esp + 0x41], ax
mov byte [esp + 0x43], al
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
lea eax, [esp + 0x18]
push eax
push 0x28
lea ecx, [esp + 0x4c]
push ecx
push 0xc
lea edx, [esp + 0x48]
push edx
push 0x2d1400
push esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x5c], bl
mov dword [esp + 0x60], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43a5a1
cmp dword [esp + 0x5c], 7
sete byte [esp + 0x13]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x43a5c4
mov eax, dword [esp + 0x1c]
push eax
call fcn.005c396f
add esp, 4
mov al, byte [esp + 0x13]
xor ecx, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.005c397a
mov esp, ebp
pop ebp
ret
Function at 0x43ab10
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x604471
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x48]
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
call fcn.0040b8d0
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], esi
xor eax, eax
push esi
lea ebx, [esi + 0xa]
mov ebp, 1
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x34], 7
mov word [esp + 0x20], ax
call fcn.00430320
mov dword [esp + 0x40], ebp
xor ebp, ebp
mov eax, dword [esp + 0x1c]
mov ebx, 8
cmp dword [esp + 0x30], ebx
jae 0x43ab9f
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
dec ecx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [esp + 0x2c]
mov esi, eax
lea edx, [ecx - 1]
cmp esi, edx
jbe 0x43abe6
lea ebx, [esi + 1]
cmp ebx, ecx
ja 0x43abcf
or eax, 0xffffffff
lea esi, [esp + 0x18]
call fcn.0040b490
jmp 0x43abde
mov eax, ebx
push 0
sub eax, ecx
lea ebx, [esp + 0x1c]
call fcn.004455d0
inc ebp
cmp ebp, 5
jb 0x43ab8c
jmp 0x43ac3b
cmp esi, ecx
jbe 0x43abef
call fcn.005c475a
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebx
jae 0x43abfd
lea eax, [esp + 0x1c]
xor ecx, ecx
mov word [eax + esi*2], cx
cmp dword [esp + 0x30], ebx
jb 0x43ac15
mov eax, dword [esp + 0x1c]
mov esi, eax
test eax, eax
jne 0x43ac19
jmp 0x43ac2f
lea esi, [esp + 0x1c]
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43ac20
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, dword [esp + 0x10]
push esi
call fcn.0040fac0
xor ebx, ebx
mov byte [esp + 0x40], bl
cmp dword [esp + 0x30], 8
jb 0x43ac55
mov edx, dword [esp + 0x1c]
push edx
call fcn.005c396f
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.005c397a
add esp, 0x34
ret
Function at 0x43ad20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x608808
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [edi + 0x10]
cmp dword [edi + 0xc], ebx
jbe 0x43ad5b
call fcn.005c475a
mov esi, dword [edi + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x24], eax
cmp esi, dword [edi + 0x10]
jbe 0x43ad6e
call fcn.005c475a
mov ecx, dword [esp + 0x24]
mov eax, dword [edi]
push ebx
push ecx
push esi
push eax
push edi
lea ebx, [esp + 0x38]
call fcn.004460f0
mov ebx, dword [ebp + 8]
movzx eax, word [ebx]
xor esi, esi
mov edx, 0x2008
mov dword [esp + 0x10], esi
cmp ax, dx
je 0x43ada6
mov ecx, 0x200c
cmp ax, cx
jne 0x43ae56
mov eax, dword [ebx + 8]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov eax, dword [ebx + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], esi
mov ecx, dword [ebx + 8]
cmp dword [ecx + 0x10], esi
jbe 0x43ae47
mov dword [esp + 0x14], esi
jmp 0x43add4
mov ebx, edx
mov ecx, dword [esp + 0x10]
mov edx, 0x200c
cmp word [ebx], dx
jne 0x43ae0b
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + ecx + 8]
lea eax, [esp + 0x18]
push eax
call fcn.0040b990
mov byte [esp + 0x38], 1
mov ebx, eax
call fcn.00424a30
mov byte [esp + 0x38], 0
lea ecx, [esp + 0x18]
jmp 0x43ae2d
mov ecx, dword [ecx + esi*4]
lea eax, [esp + 0x1c]
push eax
call fcn.0040b990
mov byte [esp + 0x38], 2
mov ebx, eax
call fcn.00424a30
mov byte [esp + 0x38], 0
lea ecx, [esp + 0x1c]
call fcn.0040ba40
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
add dword [esp + 0x14], 0x10
inc esi
cmp esi, dword [eax + 0x10]
jb 0x43add2
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43b1d0
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x604421
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov ebx, 0x101
xor ecx, ecx
push eax
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], eax
mov word [esp + 0x24], cx
call fcn.00430320
mov dword [esp + 0x44], 1
mov eax, dword [esp + 0x20]
mov ebp, 8
cmp dword [esp + 0x34], ebp
jae 0x43b24c
lea eax, [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x43b2a8
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], ebp
jae 0x43b26a
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b270
mov ecx, dword [esp + 0x30]
sub eax, edx
sar eax, 1
mov ebx, eax
cmp ebx, ecx
ja 0x43b297
or eax, 0xffffffff
lea esi, [esp + 0x1c]
call fcn.0040b490
jmp 0x43b2b1
mov eax, ebx
push 0
sub eax, ecx
lea ebx, [esp + 0x20]
call fcn.004455d0
jmp 0x43b2b1
lea eax, [esp + 0x1c]
call fcn.0040b600
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x34], ebp
jae 0x43b2bf
lea ecx, [esp + 0x20]
push edi
call fcn.0040b990
xor ebx, ebx
mov dword [esp + 0x10], 1
mov byte [esp + 0x44], bl
cmp dword [esp + 0x34], ebp
jb 0x43b2e6
mov eax, dword [esp + 0x20]
push eax
call fcn.005c396f
add esp, 4
xor ecx, ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
mov eax, edi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005c397a
add esp, 0x38
ret
Function at 0x43b320
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x604421
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov ebx, 0x10
xor ecx, ecx
push eax
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], eax
mov word [esp + 0x24], cx
call fcn.00430320
mov dword [esp + 0x44], 1
mov eax, dword [esp + 0x20]
mov ebp, 8
cmp dword [esp + 0x34], ebp
jae 0x43b39c
lea eax, [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x43b3f8
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], ebp
jae 0x43b3ba
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b3c0
mov ecx, dword [esp + 0x30]
sub eax, edx
sar eax, 1
mov ebx, eax
cmp ebx, ecx
ja 0x43b3e7
or eax, 0xffffffff
lea esi, [esp + 0x1c]
call fcn.0040b490
jmp 0x43b401
mov eax, ebx
push 0
sub eax, ecx
lea ebx, [esp + 0x20]
call fcn.004455d0
jmp 0x43b401
lea eax, [esp + 0x1c]
call fcn.0040b600
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x34], ebp
jae 0x43b40f
lea ecx, [esp + 0x20]
push edi
call fcn.0040b990
xor ebx, ebx
mov dword [esp + 0x10], 1
mov byte [esp + 0x44], bl
cmp dword [esp + 0x34], ebp
jb 0x43b436
mov eax, dword [esp + 0x20]
push eax
call fcn.005c396f
add esp, 4
xor ecx, ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
mov eax, edi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005c397a
add esp, 0x38
ret
Function at 0x43b620
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x5fa2a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov al, byte [esp + 0x38]
mov dword [esp + 0x20], 1
xor ebx, ebx
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], ebx
mov byte [esp + 0x20], 2
cmp byte [esp + 0x34], bl
je 0x43b681
cmp byte [0x72a7bc], bl
je 0x43b67a
cmp al, bl
je 0x43b67a
mov esi, 0x20119
jmp 0x43b697
mov esi, 0x20019
jmp 0x43b697
cmp byte [0x72a7bc], bl
je 0x43b692
mov esi, 0x20106
cmp al, bl
jne 0x43b697
mov esi, 0x20006
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x43b6ac
push eax
call edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x43b6e1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
push eax
push ebx
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp eax, ebx
jne 0x43b6e1
mov byte [esp + 0x13], 1
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x43b6f1
push eax
call edi
mov byte [esp + 0x20], bl
lea ecx, [esp + 0x2c]
call fcn.0040ba40
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.0040ba40
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret