joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56e4b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5de87c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push ebp
push esi
mov esi, ecx
or eax, 0xffffffff
push edi
lea ebp, [esi + 0x4c]
push 0x30
mov dword [esi], vtable.radLoadManager.0
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [ebp], ebx
call fcn.0056d2e0
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
mov dword [esp + 0x1c], ebx
je 0x56e546
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
push eax
push 0xc8
push eax
mov ecx, edi
call fcn.0056d8a0
mov dword [edi], vtable.RefHashTable_class_radLoadFileLoader_.0
mov ecx, edi
jmp 0x56e548
xor ecx, ecx
mov dword [esi + 0x34], ecx
mov edx, dword [ecx]
mov dword [esp + 0x1c], 0xffffffff
call dword [edx]
push 0x30
call fcn.0056d2e0
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
mov dword [esp + 0x1c], 1
je 0x56e592
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
push eax
push 0xc8
push eax
mov ecx, edi
call fcn.0056d8a0
mov dword [edi], vtable.RefHashTable_class_radLoadDataLoader_.0
mov ecx, edi
jmp 0x56e594
xor ecx, ecx
mov dword [esi + 0x38], ecx
mov edx, dword [ecx]
mov dword [esp + 0x1c], 0xffffffff
call dword [edx]
push 0x20
call fcn.0056d2e0
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
mov dword [esp + 0x1c], 2
je 0x56e5d8
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 8]
push eax
mov ecx, edi
call fcn.0056f4c0
mov dword [edi], vtable.RefQueue_class_radLoadObject_.0
mov ecx, edi
jmp 0x56e5da
xor ecx, ecx
mov dword [esi + 0x3c], ecx
mov edx, dword [ecx]
mov dword [esp + 0x1c], 0xffffffff
call dword [edx]
push 0x20
call fcn.0056d2e0
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
mov dword [esp + 0x1c], 3
je 0x56e618
push 0x20
mov ecx, edi
call fcn.0056f4c0
mov dword [edi], vtable.RefQueue_class_radLoadCallback_.0
mov ecx, edi
jmp 0x56e61a
xor ecx, ecx
mov dword [esi + 0x40], ecx
mov eax, dword [ecx]
mov dword [esp + 0x1c], 0xffffffff
call dword [eax]
push ebx
push ebp
call fcn.005689e4
mov ecx, dword [ebp]
mov edx, dword [ecx]
add esp, 8
call dword [edx + 8]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
push ebx
push ecx
push 2
push esi
lea eax, [esi + 0x44]
push 0x56e1a0
push eax
call fcn.00566db1
mov ecx, dword [esp + 0x2c]
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x56e940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5de8f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov ecx, dword [ecx + 0xc]
push esi
push edi
push ecx
lea ecx, [esp + 0x14]
call fcn.0056d340
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.004422b0
sub esp, 8
lea edx, [esp + 0x10]
mov ecx, esp
push edx
call fcn.004422b0
lea ecx, [esp + 0x18]
call fcn.0056d540
mov esi, eax
test esi, esi
je 0x56e9d1
mov edi, dword [esp + 0x3c]
nop
push edi
call fcn.005c7846
add esp, 4
push eax
push esi
call fcn.005c7846
add esp, 4
mov ecx, eax
call fcn.005c754b
neg eax
sbb eax, eax
test esi, eax
lea ecx, [esp + 0x10]
jne 0x56e9f7
call fcn.0056d370
mov esi, eax
test esi, esi
jne 0x56e9a0
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.005466c0
xor al, al
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x28
ret 0xc
mov dword [esp + 0x2c], 0xffffffff
call fcn.005466c0
mov ecx, dword [esp + 0x24]
pop edi
mov al, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x28
ret 0xc
Function at 0x5c8d17
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x5fed60
call fcn.005cb744
mov edi, 0x94
mov eax, edi
call fcn.005c9390
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x6c74c0], ecx
mov eax, dword [esi + 4]
mov dword [0x6c74cc], eax
mov edx, dword [esi + 8]
mov dword [0x6c74d0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x6c74c4], esi
cmp ecx, 2
je 0x5c8d77
or esi, 0x8000
mov dword [0x6c74c4], esi
shl eax, 8
add eax, edx
mov dword [0x6c74c8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x5c8db2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5c8db2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x5c8dca
cmp eax, 0x20b
je 0x5c8db7
mov dword [ebp - 0x1c], esi
jmp 0x5c8dde
cmp dword [ecx + 0x84], 0xe
jbe 0x5c8db2
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x5c8dd8
cmp dword [ecx + 0x74], 0xe
jbe 0x5c8db2
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.005cda2e
pop ecx
test eax, eax
jne 0x5c8df2
push 0x1c
call fcn.005c8cf3
pop ecx
call fcn.005cc37e
test eax, eax
jne 0x5c8e03
push 0x10
call fcn.005c8cf3
pop ecx
call fcn.005cd98c
mov dword [ebp - 4], esi
call fcn.005d40bd
test eax, eax
jge 0x5c8e1c
push 0x1b
call fcn.005c8cce
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x6d1164], eax
call fcn.005d3f9b
mov dword [0x6c7504], eax
call fcn.005d3ef9
test eax, eax
jge 0x5c8e42
push 8
call fcn.005c8cce
pop ecx
call fcn.005d3cc6
test eax, eax
jge 0x5c8e53
push 9
call fcn.005c8cce
pop ecx
call fcn.005c87f6
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x5c8e66
push eax
call fcn.005c8cce
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.005d3c5d
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x5c8e87
movzx eax, word [ebp - 0x34]
jmp 0x5c8e8a
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00442410
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x5c8ea8
push edi
call fcn.005c892e
call fcn.005c8950
jmp 0x5c8eda
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.005cb77f
ret
Function at 0x128f8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x12927
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00013d24
jmp 0x12945
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00012880
mov edi, eax
test ebx, ebx
je 0x12945
cmp dword [esi], 0
je 0x12945
dec ebx
jmp 0x1292e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x12bb4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x2aa044], 0x8088405
inc edx
mov dword [0x2aa044], edx
mul edx
mov eax, edx
ret

Function at 0x12d8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x12e24
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x12e04
xor eax, eax
push ebp
push 0x12dfd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x12e40
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x12e04
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x13bf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0001271c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x2aa049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x13bb8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x15afc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x15cb8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x15b5d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x15cd4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x15bcf
xor eax, eax
push ebp
push 0x15bc8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00015954
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x15bb1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x15cf4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x15bcf
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x15cb0
cmp byte [ebp - 0xd], 0
jne 0x15c11
cmp byte [ebp - 0x12], 0
je 0x15cb0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x15c2a
dec ebx
cmp byte [ebx], 0x2e
je 0x15c39
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x15c29
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x15cb0
inc ebx
cmp byte [ebp - 0x12], 0
je 0x15c66
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x15cb0
cmp byte [ebp - 0xd], 0
je 0x15cb0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x15cb0
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x16268
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x162c4
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x162b6
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x162ab
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x162a6
mov eax, 0x64
jmp 0x162bb
call sub.kernel32.dll_GetLastError
call fcn.0001280c
xor eax, eax
jmp 0x162a6
mov eax, 0x67
jmp 0x162bb
Function at 0x162cc
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x16327
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x16319
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x1630e
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x16309
mov eax, 0x65
jmp 0x1631e
call sub.kernel32.dll_GetLastError
call fcn.0001280c
xor eax, eax
jmp 0x16309
mov eax, 0x67
jmp 0x1631e

Function at 0x16500
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x16530
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x16526
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.0001281c
or eax, 0xffffffff
jmp 0x16524
mov eax, 0x67
call fcn.0001280c
or eax, 0xffffffff
jmp 0x16524

Function at 0x189b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov edx, dword [esi]
mov eax, dword [ebx + 8]
cmp edx, eax
jbe 0x189db
mov eax, 8
jmp 0x18a02
xor edx, edx
mov dword [edi], edx
cmp dword [esi], 0
jne 0x189e6
mov dword [esi], eax
mov eax, ebx
call fcn.00018980
push esi
mov eax, dword [ebx + 4]
push eax
push edi
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x18af4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov edx, dword [esi]
mov eax, dword [ebx + 8]
cmp edx, eax
jbe 0x18b1b
mov eax, 8
jmp 0x18b42
xor edx, edx
mov dword [edi], edx
cmp dword [esi], 0
jne 0x18b26
mov dword [esi], eax
mov eax, ebx
call fcn.00018abc
push esi
mov eax, dword [ebx + 4]
push eax
push edi
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x1a9b8
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00012b94
ret
Function at 0x1b278
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov esi, eax
lea edi, [esp]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov esi, edx
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_GetThreadDesktop
xor ecx, ecx
mov eax, esp
lea edx, [esp + 0x10]
xor ebx, ebx
mov bl, cl
mov edi, 0x1b2d4
mov bl, byte [edi + ebx - 1]
xor bl, byte [eax]
mov byte [edx], bl
inc ecx
inc edx
inc eax
cmp cl, 0x10
jne 0x1b29f
mov edi, esi
lea esi, [esp + 0x10]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
add esp, 0x20
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00014538
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1d921
test al, 0x10
jne 0x1d925
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x1d92c
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00014538
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1d945
test al, 0x10
je 0x1d949
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x1dc00
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov eax, 0x400
call fcn.00019248
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x1dc61
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00018ad4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00018af0
push eax
call sub.advapi32.dll_GetUserNameW
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00018adc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1dc68
lea eax, [ebp - 8]
call fcn.00019258
ret

Function at 0x1dc78
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov eax, 0x400
call fcn.00019248
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x1dcdb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00018ad4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00018af0
push eax
push 2
call sub.secur32.dll_GetUserNameExW
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00018adc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1dce2
lea eax, [ebp - 8]
call fcn.00019258
ret
Function at 0x1dce8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00014314
mov eax, pe_nt_image_headers32
call fcn.00019248
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x1dd62
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00018ad4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00018af0
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x1dd40
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00018adc
jmp 0x1dd4c
mov eax, ebx
mov edx, 0x1dd74
call fcn.00014350
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1dd69
lea eax, [ebp - 4]
call fcn.00019258
ret

Function at 0x1de1c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00014538
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x1de3e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x1de44
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00014538
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret
Function at 0x1de60
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x1dfd3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00013c3c
lea eax, [ebp - 0x14]
mov edx, 0x400
call fcn.0002aea4
mov eax, 0x400
call fcn.00019248
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x1dfb6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0x400
mov eax, dword [ebp - 0x10]
call fcn.00018ad4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00018af0
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, ebx
call fcn.00014538
push eax
push 0
call sub.advapi32.dll_LookupAccountNameW
test eax, eax
je 0x1df88
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00013c3c
xor eax, eax
push ebp
push 0x1df81
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ConvertSidToStringSidA
test al, al
je 0x1df5f
xor eax, eax
push ebp
push 0x1df4d
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0002afec
mov ecx, eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00013d24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1df5f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1df88
cmp dword [ebp - 0xc], 0
je 0x1df7b
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
mov dword [ebp - 0xc], eax
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00013c90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1dfbd
lea eax, [ebp - 0x10]
call fcn.00019258
lea eax, [ebp - 0x14]
mov edx, 0x400
call fcn.0002aecc
ret
Function at 0x1ec44
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x1ed22
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [edi + 0xc], 0xffffffff
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, dword [edi]
call fcn.00014538
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
mov dword [edi + 0xc], esi
cmp esi, 0xffffffff
jne 0x1ec9d
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
jmp 0x1ed0c
mov eax, ebx
mov byte [edi + 0x14], al
cmp al, 2
jne 0x1ecf7
xor eax, eax
mov dword [edi + 8], eax
lea eax, [ebp - 8]
mov edx, 0x1ed38
call fcn.00014350
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00014548
add eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.00014538
push eax
mov eax, dword [edi + 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x1ecee
mov eax, 2
mov dword [edi + 0x10], eax
mov dword [edi + 8], eax
xor ebx, ebx
jmp 0x1ed0c
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
jmp 0x1ed0c
cmp al, 1
jne 0x1ed07
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi + 8], eax
xor ebx, ebx
jmp 0x1ed0c
mov ebx, 0x6e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1ed29
lea eax, [ebp - 8]
call fcn.00014314
ret

Function at 0x1ed3c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x1ee0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 0xc]
cmp esi, 0xffffffff
jne 0x1ed6e
mov esi, 0x6e
jmp 0x1edf8
cmp byte [ebx + 0x14], 2
jne 0x1ede6
lea eax, [ebp - 8]
mov edx, edi
call fcn.00014350
lea eax, [ebp - 8]
mov edx, 0x1ee24
call fcn.00014554
lea eax, [ebp - 8]
mov edx, 0x1ee2c
call fcn.00014554
push 0
push 0
mov eax, dword [ebx + 0x10]
push eax
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00014548
add eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.00014538
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x1eddd
xor esi, esi
mov eax, dword [ebp - 4]
add dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 8], eax
jmp 0x1edf8
call sub.kernel32.dll_GetLastError_1
mov esi, eax
jmp 0x1edf8
cmp byte [ebx + 0x14], 1
jne 0x1edf3
mov esi, 1
jmp 0x1edf8
mov esi, 0x6e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1ee15
lea eax, [ebp - 8]
call fcn.00014314
ret