joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a782
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x63800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
shl eax, 8
push esi
add eax, 0x20019
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x41a7b5
mov ecx, dword [ecx]
lea esi, [ebp - 0x10]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
xor edx, edx
mov dword [ebp - 0xc], edx
test esi, esi
js 0x41a859
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 8], edx
jb 0x41a7e8
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push edx
lea ecx, [ebp - 0xc]
push ecx
push edx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x41a850
cmp dword [ebp - 0xc], 3
je 0x41a81b
mov esi, 0x8007065d
jmp 0x41a850
push ebx
push dword [ebp - 8]
mov ecx, ebx
call fcn.0041b143
cmp dword [edi + 0x14], 8
jb 0x41a82e
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
push dword [ebx]
push 0
push 0
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462c5a
leave
ret 0x14

Function at 0x41a872
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x63800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x20006
cmp byte [ebp + 0x18], 0
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, 0x102
cmovne ecx, edi
cmp dword [eax + 0x14], 8
jb 0x41a8a6
mov eax, dword [eax]
xor ebx, ebx
lea edi, [ebp - 8]
push ebx
push edi
push ebx
push ecx
push ebx
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x41a8ef
cmp dword [esi + 0x10], ebx
jne 0x41a8c9
mov esi, ebx
jmp 0x41a8d1
cmp dword [esi + 0x14], 8
jb 0x41a8d1
mov esi, dword [esi]
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00462c5a
leave
ret 0x14
Function at 0x41d742
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x41d74f
int3
pop ebp
jmp fcn.00490183

Function at 0x421e2b
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push 0x74
mov eax, 0x59e58c
call fcn.00462cd6
mov edx, ecx
mov dword [ebp - 0x68], edx
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x34]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x80], ebx
and dword [ebp - 0x7c], 0
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x14]
push 8
mov dword [ebp - 0x74], eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], edi
mov word [ebx], ax
lea esi, [edx + 0x10]
mov dword [ebp - 4], edi
mov ecx, esi
mov dword [ebp - 0x7c], 1
call fcn.0041ef94
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 8]
test eax, eax
je 0x421f2d
add eax, 4
push eax
push edi
push edi
push 0x800c
mov dword [eax], edi
push dword [0x64fa2c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x421ec4
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x421f32
mov ecx, dword [ebp - 0x78]
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x421ed5
mov eax, dword [ecx]
mov edi, dword [ebp - 0x70]
lea ecx, [eax + edi*2]
mov eax, dword [ebp - 0x68]
mov edx, dword [eax + 8]
test ecx, ecx
je 0x421f1c
mov eax, dword [ebp - 0x74]
push 0
sub eax, edi
add eax, eax
push eax
push ecx
push dword [edx + 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x421f13
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x421f15
xor edi, edi
test edi, edi
js 0x421f32
mov eax, dword [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [eax + 8]
call 0x42c3f4
mov edi, eax
jmp 0x421f32
mov edi, 0x80004004
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0041efa9
xor eax, eax
mov byte [ebp - 4], al
test edi, edi
js 0x421fc5
push dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
call fcn.00421da6
push eax
mov ecx, ebx
call fcn.004094b8
lea ecx, [ebp - 0x2c]
call fcn.0040aa69
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x69]
push eax
mov eax, dword [ebp - 0x70]
sub ecx, eax
push ecx
push eax
push dword [ebp - 0x78]
lea ecx, [ebp - 0x64]
call fcn.0040977e
mov dword [ebp - 0x7c], 3
mov dword [ebp - 4], 2
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x421f96
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004094f1
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 3
push eax
call fcn.00422007
lea ecx, [ebp - 0x4c]
call fcn.0040aa69
lea ecx, [ebp - 0x64]
call fcn.0040aa69
jmp 0x421fcf
cmp edi, 0x80004004
je 0x421fcf
mov byte [eax], al
mov eax, ebx
call fcn.00462c80
ret 0x10
Function at 0x424252
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x63800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x2e0], 0xffffffff
jne 0x424273
xor eax, eax
inc eax
jmp 0x4242b4
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [esi + 0x2e0]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esi + 0x2e0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x2e0], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00462c5a
leave
ret

Function at 0x4242d2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x63800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x2e0]
cmp eax, 0xffffffff
jne 0x4242f8
xor eax, eax
inc eax
jmp 0x42433e
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
push 0
push ecx
push dword [edi + 8]
push dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 8]
add dword [esi + 0xc8], edx
adc dword [esi + 0xcc], 0
lea ecx, [eax - 1]
neg ecx
mov esi, 0x80004005
sbb ecx, ecx
and ecx, esi
cmp eax, 1
jne 0x42433c
xor eax, eax
mov ecx, esi
cmp dword [edi + 8], edx
cmove ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00462c5a
leave
ret 4
Function at 0x42ba92
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x63800c]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
push 0x190
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00463cc0
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x42bade
call fcn.0042bcef
mov esi, eax
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00462c5a
mov esp, ebp
pop ebp
ret

Function at 0x42bb02
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x63800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], ecx
push eax
push 1
push 2
mov ebx, eax
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
lea edi, [ebp - 0x18]
cmp esi, 0xffffffff
setne cl
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp esi, 0xffffffff
je 0x42bb8d
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 8], bl
jne 0x42bb66
xor edi, edi
push edi
call dword [sym.imp.WS2_32.dll_htonl]
jmp 0x42bb73
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
xor edi, edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
cmp ebx, 0xffffffff
setne cl
jmp 0x42bb8f
xor edi, edi
mov dword [ebp - 8], 1
test cl, cl
je 0x42bbc5
push 4
lea eax, [ebp - 8]
push eax
push 8
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42bbc5
push 0xa
push esi
call dword [sym.imp.WS2_32.dll_listen]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42bbd4
cmp esi, 0xffffffff
je 0x42bbd4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], esi
cmp ebx, 0xffffffff
jne 0x42bbe6
call fcn.0042bcef
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462c5a
leave
ret 4
Function at 0x42fc12
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x63800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0xffff
push edi
mov edi, ecx
cmp bx, si
jne 0x42fc38
xor eax, eax
jmp 0x42fc8e
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x42fc61
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x42fc61
dec dword [edx]
mov edx, dword [edi + 0x20]
mov eax, dword [ebp + 8]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], ax
jmp 0x42fc8e
cmp dword [edi + 0x4c], 0
je 0x42fc8b
mov ecx, edi
call fcn.0042ff56
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x42fc9f
push dword [edi + 0x4c]
push esi
call fcn.00479efb
pop ecx
pop ecx
cmp ax, bx
je 0x42fc8b
movzx ebx, si
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462c5a
leave
ret 4
mov word [ebp - 0x28], si
mov esi, dword [eax]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [esi + 0x1c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x5b664c]
mov ecx, dword [ebp - 0x34]
call dword [esi + 0x1c]
test eax, eax
js 0x42fc8b
cmp eax, 1
jle 0x42fcf8
cmp eax, 3
jne 0x42fc8b
push dword [edi + 0x4c]
push dword [ebp - 0x28]
call fcn.00479efb
pop ecx
pop ecx
cmp ax, bx
je 0x42fc8b
mov eax, dword [ebp + 8]
movzx ebx, ax
jmp 0x42fc8b
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x42fd19
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.005804a7
add esp, 0x10
cmp esi, eax
jne 0x42fc8b
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x30], eax
je 0x42fc8b
mov eax, dword [ebp + 8]
jmp 0x42fc8e
Function at 0x437fb2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x63800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0x124], ebx
push 0x5effb0
mov ecx, esi
mov dword [ebp - 0x24c], eax
call fcn.004096b4
mov eax, dword [ebp - 0x24c]
xor ecx, ecx
push 0x118
push ecx
mov dword [eax], ecx
lea eax, [ebp - 0x244]
mov dword [ebx], ecx
mov bl, cl
push eax
mov dword [edi], ecx
call fcn.00463cc0
add esp, 0xc
mov dword [ebp - 0x248], 0x11c
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x438092
mov ecx, dword [ebp - 0x124]
mov bl, 1
mov eax, dword [ebp - 0x244]
mov dword [edi], eax
mov eax, dword [ebp - 0x240]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x24c]
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x124], 0x118
mov dword [ecx], eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x120]
push eax
push 0
push 2
push str.BuildLab
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
js 0x438092
mov edx, esi
lea ecx, [ebp - 0x120]
call fcn.004380a5
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462c5a
leave
ret 8

Function at 0x43834f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x63800c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0x10], 0
mov eax, 0x20006
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x102
cmovne eax, edi
cmp dword [edx + 0x14], 8
jb 0x438380
mov edx, dword [edx]
push 0
lea edi, [ebp - 8]
push edi
xor edi, edi
push edi
push eax
push edi
push edi
push edi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x4383c8
cmp dword [esi + 0x10], eax
jne 0x4383a4
xor esi, esi
jmp 0x4383ac
cmp dword [esi + 0x14], 8
jb 0x4383ac
mov esi, dword [esi]
push 4
push ebx
push 4
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00462c5a
leave
ret 0xc

Function at 0x4388c9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [edx + 0x14], 8
mov eax, dword [edx + 0x10]
jb 0x4388d7
mov edx, dword [edx]
cmp dword [ecx + 0x14], 8
jb 0x4388df
mov ecx, dword [ecx]
lea eax, [eax*2 + 2]
push eax
push edx
push 2
push ecx
push 0x5f2ac8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
movzx ecx, ax
mov edx, 0x80070000
or ecx, edx
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovle edx, ecx
shr edx, 0x1f
xor dl, 1
mov al, dl
pop ebp
ret 4
Function at 0x438c28
Capabilities:
Enumerate processes

Disassembly:
push 0x258
mov eax, 0x5a0f51
call fcn.00462cd6
mov esi, ecx
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x264], esi
xor ecx, ecx
mov dword [ebp - 0x240], ecx
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
push ecx
mov dword [ebp - 4], ecx
push 2
mov dword [ebp - 0x240], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, 0x22c
mov edi, eax
push ebx
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.00463cc0
add esp, 0xc
mov dword [ebp - 0x23c], ebx
cmp edi, 0xffffffff
je 0x438d4c
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x438d3d
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x258]
and dword [ebp - 0x248], 0
mov dword [ebp - 0x25c], eax
xor eax, eax
mov word [ebp - 0x258], ax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x244], 7
call fcn.004096b4
mov dword [ebp - 4], 1
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x438d11
mov eax, dword [ebp - 0x25c]
mov dword [ecx], eax
lea eax, [ebp - 0x258]
push eax
add ecx, 4
call fcn.0040a8b7
add dword [esi + 4], 0x1c
jmp 0x438d20
lea eax, [ebp - 0x25c]
push eax
push ecx
mov ecx, esi
call 0x43c931
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 0
call fcn.0040aa69
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x438cad
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.00462c80
ret
Function at 0x4391b7
Capabilities:
Get session user name

Disassembly:
push 0x264
mov eax, 0x5a107c
call fcn.00462cd6
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x250], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x270], edi
push str.SkyDrive_Mutex_8EAEBBD8_2370_4716_9C12_1C4BA22A988C
mov dword [ebp - 0x254], ebx
call fcn.004094f1
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x26c]
push esi
mov dword [ebp - 0x254], 1
call fcn.004094f1
mov edx, 0x5f2d4c
mov ecx, eax
call fcn.00417f8b
lea ecx, [ebp - 0x26c]
mov bl, al
call fcn.0040aa69
test bl, bl
jne 0x439235
push 0x5f734c
mov ecx, edi
call fcn.004096dd
push esi
mov ecx, edi
call fcn.004096dd
push 0x202
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x250], 0x101
push 0
push eax
call fcn.00463cc0
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x439318
push 0x5f734c
mov ecx, edi
call fcn.004096dd
and dword [ebp - 0x25c], 0
lea ecx, [ebp - 0x26c]
xor eax, eax
push 7
pop ebx
mov word [ebp - 0x26c], ax
lea eax, [ebp - 0x24c]
push eax
mov dword [ebp - 0x258], ebx
call fcn.004096b4
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x26c]
cmp dword [ebp - 0x258], 8
cmovae ecx, dword [ebp - 0x26c]
lea edx, [eax + eax]
call fcn.00422c8e
lea ecx, [ebp - 0x26c]
mov esi, eax
call fcn.0040aa69
mov edx, esi
lea ecx, [ebp - 0x16]
call fcn.00433f04
push ecx
lea ecx, [ebp - 0x16]
push ecx
push eax
lea ecx, [ebp - 0x26c]
call fcn.00433f25
mov dword [ebp - 0x254], ebx
lea eax, [ebp - 0x26c]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.0040fd71
lea ecx, [ebp - 0x26c]
call fcn.0040aa69
mov eax, edi
call fcn.00462c80
ret

Function at 0x43a0d4
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x228
mov eax, 0x5a12e3
call fcn.00462cd6
mov esi, edx
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov dword [ebp - 0x234], eax
call fcn.0043c1b1
movzx eax, byte [ebp + 8]
and dword [ebp - 0x230], 0
shl eax, 8
or eax, 0x20019
cmp dword [esi + 0x14], 8
jb 0x43a112
mov esi, dword [esi]
lea ecx, [ebp - 0x230]
push ecx
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x43a1eb
xor ebx, ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0xff
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
jne 0x43a1be
and dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x22c]
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x218], 7
call fcn.004096b4
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x22c]
and dword [ebp - 4], edi
push eax
call fcn.0041cf3d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.0040aa69
jmp 0x43a1c6
cmp edi, 0x103
jne 0x43a1d1
inc ebx
test edi, edi
je 0x43a13c
jmp 0x43a1df
movzx esi, di
or esi, 0x80070000
test edi, edi
cmovle esi, edi
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.00462c80
ret 8
Function at 0x43a1f5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x228
mov eax, 0x5a12e3
call fcn.00462cd6
mov esi, edx
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov dword [ebp - 0x234], eax
call fcn.0043c1b1
xor edi, edi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x230], edi
jb 0x43a226
mov esi, dword [esi]
lea eax, [ebp - 0x230]
push eax
push 0x20019
push edi
push esi
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x43a305
mov ebx, edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0xff
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test edi, edi
jne 0x43a2d5
and dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x22c]
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x218], 7
call fcn.004096b4
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x22c]
and dword [ebp - 4], edi
push eax
call fcn.0041cf3d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.0040aa69
jmp 0x43a2dd
cmp edi, 0x103
jne 0x43a2eb
inc ebx
test edi, edi
push 0
pop edi
je 0x43a257
jmp 0x43a2f9
movzx esi, di
or esi, 0x80070000
test edi, edi
cmovle esi, edi
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.00462c80
ret 8

Function at 0x43adfc
Capabilities:
Get session user name

Disassembly:
push 0x14
mov eax, 0x5a1437
call fcn.00462cd6
mov esi, ecx
push 0x5effb0
call fcn.004096b4
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
push ebx
push 2
mov dword [ebp - 0x20], ebx
call dword [sym.imp.Secur32.dll_GetUserNameExW]
cmp dword [ebp - 0x20], ebx
jbe 0x43ae6b
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
push ecx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call 0x43c09d
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 0x1c]
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x43ae5f
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004096b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0043c374
cmp dword [esi + 0x10], ebx
jne 0x43ae7c
push 0x5f18b0
mov ecx, esi
call fcn.004096b4
call fcn.00462c80
ret

Function at 0x43b661
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
cmp dword [ecx + 0x14], 8
push esi
push edi
mov esi, ecx
jb 0x43b66d
mov esi, dword [ecx]
mov edi, dword [ecx + 0x10]
mov ecx, 0x811c9dc5
push 0
pop edx
add edi, edi
je 0x43b68d
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, edi
jb 0x43b67c
pop edi
mov eax, ecx
pop esi
ret
Function at 0x43b694
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x63800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x43b6b7
mov eax, dword [esi]
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x43b6f8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
jb 0x43b6d9
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43b6f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00462c5a
leave
ret

Function at 0x43d7e1
Capabilities:
Get user security identifier

Disassembly:
push 0x30
mov eax, 0x5a1704
call fcn.00462cd6
mov dword [ebp - 0x3c], edx
mov esi, ecx
xor ebx, ebx
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
jb 0x43d804
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push ebx
lea ecx, [ebp - 0x34]
push ecx
push ebx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
push ecx
lea ecx, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x36], ax
lea eax, [ebp - 0x36]
push eax
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.0043e00a
mov dword [ebp - 4], ebx
lea edi, [ebp - 0x2c]
xor eax, eax
mov byte [ebp - 0x35], bl
stosd dword es:[edi], eax
push ecx
lea ecx, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x35]
push eax
push dword [ebp - 0x34]
call 0x43dfc7
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x43d864
mov esi, dword [esi]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x43d88f
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x3c]
call fcn.004096b4
mov bl, 1
lea ecx, [ebp - 0x2c]
call fcn.00419f13
lea ecx, [ebp - 0x20]
call fcn.0043c374
mov al, bl
call fcn.00462c80
ret