joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439360
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x643988
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov word [ebp - 0x2c], ax
mov esi, ecx
mov eax, edx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4393a7
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403600
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4393cf
lea eax, [ebp - 0x2c]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43942c
push 0x63
lea ecx, [esi + 0x10]
push str.Error_opening_file
push ecx
call fcn.005df9a4
push 0x31
push 0x688638
add esi, 0xd8
push esi
call fcn.005df9a4
add esp, 0x18
cmp dword [ebp - 0x18], 8
jb 0x439425
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004effaf
add esp, 4
xor al, al
jmp 0x439554
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x439479
push 0x63
lea eax, [esi + 0x10]
push str.File_is_empty
push eax
call fcn.005df9a4
push 0x31
push 0x688638
add esi, 0xd8
push esi
call fcn.005df9a4
add esp, 0x18
cmp dword [ebp - 0x18], 8
jb 0x439425
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004effaf
add esp, 4
xor al, al
jmp 0x439554
cmp ebx, 0x400000
jbe 0x4394c4
push 0x63
lea edx, [esi + 0x10]
push str.File_too_large
push edx
call fcn.005df9a4
push 0x31
push 0x688638
add esi, 0xd8
push esi
call fcn.005df9a4
add esp, 0x18
cmp dword [ebp - 0x18], 8
jb 0x439425
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004effaf
add esp, 4
xor al, al
jmp 0x439554
push ebx
mov dword [ebp - 0x34], 0
call fcn.004effa4
add esp, 4
push 0
lea ecx, [ebp - 0x34]
push ecx
push ebx
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], ebx
je 0x439534
push esi
call fcn.004effaf
mov esi, dword [ebp - 0x30]
add esp, 4
call fcn.00439570
push 0x63
lea edx, [esi + 0x10]
push str.Could_not_read_file
push edx
call fcn.005df9a4
push 0x31
push 0x688638
add esi, 0xd8
push esi
call fcn.005df9a4
add esp, 0x18
lea ecx, [ebp - 0x2c]
call fcn.004bf3b0
xor al, al
jmp 0x439554
mov edi, dword [ebp - 0x30]
push ebx
mov eax, esi
call fcn.004392b0
push esi
mov bl, al
call fcn.004effaf
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.004bf3b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret
Function at 0x43a270
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x444], ebx
mov esi, dword [eax]
cmp esi, ebx
jne 0x43a29e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push 0x206
lea ecx, [ebp - 0x212]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x214], ax
call fcn.005de050
add esp, 0xc
push 0x206
lea eax, [ebp - 0x41a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x41c], dx
call fcn.005de050
add esp, 0xc
xor ecx, ecx
mov eax, 0x104
push 0x10
mov word [ebp - 0x438], cx
push 0x688704
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], ebx
call fcn.00403600
lea ecx, [ebp - 0x438]
call fcn.0043a460
cmp dword [ebp - 0x424], 8
jb 0x43a345
mov edx, dword [ebp - 0x438]
push edx
call fcn.004effaf
add esp, 4
push esi
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
je 0x43a40c
lea ecx, [ebp - 0x440]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x43a40c
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x440]
lea edx, [ebp - 0x43c]
push edx
push eax
push ebx
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x43a39f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x43a40c
mov edx, dword [ebp - 0x43c]
push edx
call fcn.005df877
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x43a40c
mov ecx, dword [ebp - 0x43c]
mov edx, dword [ebp - 0x440]
lea eax, [ebp - 0x43c]
push eax
push ecx
push esi
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x43a403
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x448]
push ecx
lea edx, [ebp - 0x41c]
push edx
mov edx, dword [esi]
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x214]
push ecx
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
push esi
call fcn.005df83d
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], ax
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43a424
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x214]
push ecx
mov ecx, edi
call fcn.00403600
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
mov eax, edi
pop ebx
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret
Function at 0x43adc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6433f8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x40], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x44], esi
jb 0x43ae01
mov eax, dword [eax]
lea edi, [ebp - 0x3c]
push edi
or edx, 0x20019
push edx
xor edi, edi
push edi
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43ae24
xor al, al
jmp 0x43af5c
lea ecx, [ebp - 0x34]
push ecx
push edi
lea edx, [ebp - 0x38]
push edx
push edi
mov ecx, ebx
mov dword [esi], edi
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
call fcn.00403dd0
push eax
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x43ae5b
cmp eax, edi
jne 0x43af4f
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004effa4
mov ecx, dword [ebp - 0x34]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x43ae97
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
mov edi, esi
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push esi
lea ecx, [ebp - 0x38]
push ecx
xor edi, edi
push edi
mov ecx, ebx
call fcn.00403dd0
mov edx, dword [ebp - 0x3c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x43af42
mov eax, dword [ebp - 0x38]
cmp eax, 1
jne 0x43aeeb
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x43aed0
mov ecx, dword [ebp - 0x40]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.00403600
jmp 0x43af36
cmp eax, 7
je 0x43aef5
cmp eax, 2
jne 0x43af36
mov eax, dword [ebp - 0x34]
inc eax
shr eax, 1
xor ecx, ecx
push eax
mov word [ebp - 0x2c], cx
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
call fcn.00403600
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 4], edi
call fcn.00402260
cmp dword [ebp - 0x18], 8
jb 0x43af36
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004effaf
add esp, 4
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
mov dword [ecx], edx
mov byte [ebp - 0x2d], 1
cmp esi, edi
je 0x43af4f
push esi
call fcn.004effaf
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43d360
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x643b02
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6c3afc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x6906c0
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 4]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.0041d0d0
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], 0x6906bc
call fcn.0040a5f0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], 0x6887d0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x6cd9fc]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov ecx, dword [ebp + 0xc]
push 2
mov byte [ebp - 4], 2
call fcn.00423990
test eax, eax
jne 0x43d45b
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x43d44a
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x43d45b
push ebx
call fcn.0040bc70
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43d480
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x643b02
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6c3afc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x6906c0
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 4]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.0041d0d0
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], 0x6906bc
call fcn.0040a5f0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], 0x6887d0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x6cd9fc]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov ecx, dword [ebp + 0xc]
push 2
mov byte [ebp - 4], 2
call fcn.0040a190
test eax, eax
jne 0x43d57b
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x43d56a
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x43d57b
push ebx
call fcn.0040bc70
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43e1d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0x40
jne 0x43e1f5
mov eax, esi
jmp 0x43e27a
jbe 0x43e235
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd8], 0x20
call fcn.00440a60
push esi
mov eax, edi
lea esi, [ebp - 0xd0]
call fcn.00440ad0
add esp, 4
lea edi, [ebp - 0x24]
call fcn.00440b70
mov eax, edi
mov edi, dword [ebp - 0xd8]
mov dword [ebp - 0xd4], eax
jmp 0x43e241
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xd8], edi
mov esi, 0x40
sub esi, edi
push esi
lea ecx, [ebx + edi + 0x2a0]
push 0x36
push ecx
call fcn.005de050
add esp, 0xc
push esi
lea edx, [ebx + edi + 0x2e0]
push 0x5c
push edx
call fcn.005de050
mov edi, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xd4]
add esp, 0xc
test edi, edi
jle 0x43e298
lea esi, [ebx + 0x2e0]
mov cl, byte [eax]
xor cl, 0x36
mov byte [esi - 0x40], cl
mov dl, byte [eax]
xor dl, 0x5c
mov byte [esi], dl
inc eax
inc esi
dec edi
jne 0x43e284
mov eax, dword [0x6c6374]
mov dword [ebx + 0x88], eax
mov ecx, dword [0x6c6378]
mov dword [ebx + 0x8c], ecx
mov edx, dword [0x6c637c]
mov dword [ebx + 0x90], edx
mov eax, dword [0x6c6380]
mov dword [ebx + 0x94], eax
mov ecx, dword [0x6c6384]
mov dword [ebx + 0x98], ecx
mov edx, dword [0x6c6388]
mov dword [ebx + 0x9c], edx
mov eax, dword [0x6c638c]
mov dword [ebx + 0xa0], eax
mov ecx, dword [0x6c6390]
lea edx, [ebx + 0x2a0]
mov dword [ebx + 0xa4], ecx
push edx
mov eax, 0x40
mov esi, ebx
mov dword [ebx + 4], 0
mov dword [ebx], 0
call fcn.00440ad0
mov eax, dword [0x6c6374]
lea esi, [ebx + 0xa8]
mov dword [esi + 0x88], eax
mov ecx, dword [0x6c6378]
mov dword [esi + 0x8c], ecx
mov edx, dword [0x6c637c]
mov dword [esi + 0x90], edx
mov eax, dword [0x6c6380]
mov dword [esi + 0x94], eax
mov ecx, dword [0x6c6384]
mov dword [esi + 0x98], ecx
mov edx, dword [0x6c6388]
mov dword [esi + 0x9c], edx
mov eax, dword [0x6c638c]
mov dword [esi + 0xa0], eax
mov ecx, dword [0x6c6390]
lea edx, [ebx + 0x2e0]
add esp, 4
mov dword [esi + 0xa4], ecx
push edx
mov eax, 0x40
mov dword [ebp - 0xd4], esi
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.00440ad0
lea edi, [ebx + 0x150]
mov ecx, 0x2a
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xd4]
add esp, 4
lea edi, [ebx + 0x1f8]
mov ecx, 0x2a
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret
Function at 0x43f7f0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
jne 0x43f817
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x43f807
lea ecx, [ebp - 0x210]
push 0x69150c
push ecx
call fcn.005e39f8
add esp, 8
test eax, eax
je 0x43f851
xor edx, edx
mov word [eax + 2], dx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
mov dword [ebp - 0x214], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x43f807
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x214]
xor ecx, ebp
mov dword [esi], edx
mov al, 1
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret

Function at 0x43f8a0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6428f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6c3afc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x100
call fcn.004effa4
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push esi
lea edx, [ebp - 0x14]
push edx
push ebx
push eax
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x10], 0x80
mov dword [ebp - 0x14], 0x44
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
jne 0x43f9ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x43f9ab
cmp dword [ebp - 0x14], 0x44
jbe 0x43f94b
test esi, esi
je 0x43f937
push esi
call fcn.004effaf
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x10]
cmp edi, 0x80
jbe 0x43f98f
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004effa4
mov edi, eax
add esp, 4
test edi, edi
je 0x43f980
cmp edi, esi
jne 0x43f980
call fcn.005e39a4
test esi, esi
je 0x43f98d
push esi
call fcn.004effaf
add esp, 4
mov esi, edi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push esi
lea edx, [ebp - 0x14]
push edx
push ebx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
setne bl
test esi, esi
je 0x43f9bd
push esi
call fcn.004effaf
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43fa90
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x643a9b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
lea ecx, [ebp - 0x94]
push ecx
lea edx, [ebp - 0x30]
push edx
mov word [ebp - 0x30], ax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
mov dword [ebp - 0x94], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x43fb45
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x74]
call fcn.0043f8a0
add esp, 4
test al, al
je 0x43fb45
lea ecx, [ebp - 0x90]
push ecx
lea edx, [ebp - 0x74]
call fcn.0043f9f0
add esp, 4
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00402260
cmp dword [ebp - 0x7c], 8
jb 0x43fb45
mov edx, dword [ebp - 0x90]
push edx
call fcn.004effaf
add esp, 4
mov dword [esi], 0
call fcn.0043f7f0
test al, al
mov al, 1
jne 0x43fb5c
mov dword [esi], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret

Function at 0x43fb80
Capabilities:
Encode data using xor

Disassembly:
test esi, esi
jne 0x43fb87
xor al, al
ret
mov byte [esi], 0
test eax, eax
je 0x43fb84
xor cl, cl
inc eax
mov edx, 4
push edi
movzx edi, byte [eax - 1]
movzx ecx, cl
xor edi, ecx
movzx ecx, byte [edi + 0x68c548]
movzx edi, byte [eax]
xor ecx, edi
movzx ecx, byte [ecx + 0x68c548]
movzx edi, byte [eax + 1]
xor ecx, edi
movzx ecx, byte [ecx + 0x68c548]
movzx edi, byte [eax + 2]
xor ecx, edi
movzx ecx, byte [ecx + 0x68c548]
movzx edi, byte [eax + 3]
xor ecx, edi
movzx ecx, byte [ecx + 0x68c548]
movzx edi, byte [eax + 4]
xor ecx, edi
mov cl, byte [ecx + 0x68c548]
add eax, 6
dec edx
jne 0x43fb97
xor cl, 0x55
mov byte [esi], cl
mov al, 1
pop edi
ret
Function at 0x440430
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x180]
mov dword [ebp - 0x16c], 0x67452301
mov dword [ebp - 0x168], 0xefcdab89
mov dword [ebp - 0x164], 0x98badcfe
mov dword [ebp - 0x160], 0x10325476
mov dword [ebp - 0x15c], 0xc3d2e1f0
call fcn.0043fce0
call fcn.0043fc00
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x168]
mov edx, dword [ebp - 0x164]
mov dword [esi], eax
mov eax, dword [ebp - 0x160]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x15c]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret
Function at 0x440eb0
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x643a1d
mov eax, dword fs:[0]
push eax
sub esp, 0xc3c
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc40], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0xc44], esi
mov word [esi], ax
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [ebp - 0x40e]
mov dword [ebp - 4], eax
push edx
mov dword [ebp - 0xc40], 1
mov word [ebp - 0x410], cx
call fcn.005de050
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x80e]
push ecx
mov dword [ebp - 0xc30], 0x200
mov word [ebp - 0x810], ax
call fcn.005de050
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp - 0xc0e]
push eax
mov dword [ebp - 0xc38], 0x200
mov word [ebp - 0xc10], dx
call fcn.005de050
add esp, 0x24
lea ecx, [ebp - 0xc30]
push ecx
lea edx, [ebp - 0x410]
push edx
mov dword [ebp - 0xc3c], 0x200
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x44105d
lea eax, [ebp - 0x410]
push str.SYSTEM
push eax
call fcn.005de254
add esp, 8
test eax, eax
je 0x44105d
lea eax, [ebp - 0x410]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x440fc0
sub eax, edx
sar eax, 1
inc eax
lea ecx, [ebp - 0xc48]
push ecx
mov dword [ebp - 0xc30], eax
lea edx, [ebp - 0xc3c]
push edx
lea eax, [ebp - 0xc10]
push eax
lea ecx, [ebp - 0xc38]
push ecx
lea edx, [ebp - 0x810]
push edx
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x44105d
lea ecx, [ebp - 0xc34]
push ecx
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x44105d
mov eax, dword [ebp - 0xc34]
push eax
lea ecx, [ebp - 0xc2c]
call fcn.004036f0
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00402260
lea ecx, [ebp - 0xc2c]
call fcn.004bf3b0
mov ecx, dword [ebp - 0xc34]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret

Function at 0x441080
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
xor ecx, ecx
test edx, edx
je 0x4410ac
push edi
lea esp, [esp]
movzx edi, byte [ecx + esi]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x68c148]
inc ecx
cmp ecx, edx
jb 0x441090
pop edi
not eax
ret