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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040710c
xor eax, eax
push ebp
push 0x409909
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409764
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40977e
push 0x105
mov eax, dword [ebp - 4]
call fcn.004071b0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4098f3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409918
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40980d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409918
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40980d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40994c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40980d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409980
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4098f3
xor eax, eax
push ebp
push 0x4098ec
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409528
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40987c
mov eax, dword [ebp - 0x10]
call fcn.004041b8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004072d0
jmp 0x4098c7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4099c0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4098c7
mov eax, dword [ebp - 0x10]
call fcn.004041b8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4099c0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004072d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4098f3
cmp dword [ebp - 8], 0
je 0x4098e2
mov eax, dword [ebp - 8]
call fcn.004041d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409910
lea eax, [ebp - 4]
call fcn.00407114
ret
Function at 0x409bd4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.0040710c
mov eax, dword [ebp - 0x21c]
call fcn.0040710c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409d73
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407124
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004071b0
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409c74
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409c86
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409c71
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409d3f
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409caf
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00409724
cmp dword [ebp - 0x220], 0
je 0x409ce7
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409ac8
pop ecx
mov ebx, eax
jmp 0x409d3f
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004093e0
mov eax, dword [ebp - 0x224]
call fcn.00409ac8
pop ecx
mov ebx, eax
test bl, bl
jne 0x409d32
cmp byte [0x4b0b50], 0
jne 0x409d32
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004093e0
mov eax, dword [ebp - 0x228]
call fcn.00409ac8
pop ecx
mov ebx, eax
test bl, bl
jne 0x409d3f
push ebp
call fcn.00409b78
pop ecx
mov ebx, eax
test bl, bl
je 0x409d55
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040730c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d7a
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.0040711c
ret

Function at 0x40bd00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4b0c48
push 0xa
push 0x40bd94
mov eax, dword [0x4b0c38]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40bd24
call fcn.00417404
push ebx
mov eax, dword [0x4b0c38]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40bd3b
call fcn.00417404
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40bd4d
call fcn.00417404
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4b0c4c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4b0c50], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4b0c54], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4b0c58], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4b0c5c], ecx
add edx, dword [eax + 0x14]
mov dword [0x4b0c60], edx
pop esi
pop ebx
ret
Function at 0x40f864
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40f90d
test eax, edx
je 0x40f910
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40f88d
push edx
mov edx, eax
mov eax, esp
call fcn.00407328
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40f8a3
push eax
lea eax, [esp + 8]
call fcn.00407328
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40f8b2
movzx eax, word [eax]
sub eax, ecx
jmp 0x40f8d9
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40f8f3
add ecx, 4
js 0x40f8ca
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40f8f0
push eax
mov eax, ecx
mov edx, 2
call fcn.004062ac
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40f8d7
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40f8d9
xor eax, eax
ret
test eax, eax
je 0x40f920
test edx, edx
jne 0x40f874
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004071b0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x410976
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x410997
cmp ebx, 3
je 0x410997
cmp ebx, 0x7b
je 0x410997
mov eax, esi
call fcn.00410918
test al, al
jne 0x41099b
xor eax, eax
jmp 0x41099d
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004071b0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4109b9
test al, 0x10
jne 0x4109bd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4143a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4143d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407260
jmp 0x4143e2
mov eax, ebx
mov edx, esi
call fcn.00407124
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4143ec
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41440e
movzx eax, word [esp]
jmp 0x414410
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x414cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x414e15
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00414b00
mov esi, eax
mov eax, dword [0x4ada0c]
cmp byte [eax], 0
je 0x414dbd
mov eax, dword [0x4ad7dc]
call fcn.004046d8
call fcn.00404300
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x414cc8]
call fcn.00408aec
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x414e30
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x414df9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4ad794]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b0c38]
call fcn.00408bb0
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414e1c
lea eax, [ebp - 4]
mov edx, dword [0x414cc8]
call fcn.00408af8
ret

Function at 0x417233
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406638
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x417256
mov eax, edi
add eax, eax
call fcn.004041b8
mov esi, eax
jmp 0x417258
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x417291
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41727b
mov eax, esp
cmp esi, eax
je 0x41729e
mov eax, esi
call fcn.004041d4
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4172d8
cmp bl, 0
je 0x4172d4
cmp bl, 0x41
jl 0x4172cf
cmp bl, 0x5a
jg 0x4172cf
or bl, 0x20
xor al, bl
inc esi
jmp 0x4172b3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x417218
Function at 0x417a60
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
xor edx, edx
call fcn.00407124
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004071b0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x417aa7
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00407260
jmp 0x417ac0
mov edx, ebx
dec edx
mov eax, esi
call fcn.00407488
push ebx
mov eax, dword [esi]
call fcn.004071b0
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x437b88
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x437c26
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x437bea
cmp byte [ebx + 0x10], 0
jne 0x437bea
cmp byte [ebx + 0x3c], 0
jne 0x437bea
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x437c0b
lea edx, [ebp - 4]
mov eax, dword [0x4ad9c4]
call fcn.0040a4e8
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x42b8f4]
call fcn.00414e5c
call fcn.00405ac0
jmp 0x437c0b
lea edx, [ebp - 8]
mov eax, dword [0x4ad9c4]
call fcn.0040a4e8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x42b8f4]
call fcn.00414e5c
call fcn.00405ac0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437c2d
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040711c
ret

Function at 0x437f1c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x437f6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00437b0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x437f83
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x437f8c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00437b0c
dec esi
jne 0x437fae
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x439ab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ecx, dword [ebp + 8]
dec ecx
test ecx, ecx
jl 0x439ae2
inc ecx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, 0xff
mov esi, dword [0x4ad8e4]
mov ebx, dword [esi + ebx*4]
shr eax, 8
and eax, 0xffffff
xor ebx, eax
mov eax, ebx
inc edx
dec ecx
jne 0x439abe
pop esi
pop ebx
pop ebp
ret 8
Function at 0x439de8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
movzx edx, dl
mov ecx, dword [eax + 4]
xor edx, ecx
and edx, 0xff
mov ebx, dword [0x4ad8e4]
mov ebx, dword [ebx + edx*4]
shr ecx, 8
and ecx, 0xffffff
xor ebx, ecx
mov dword [eax + 4], ebx
and ebx, 0xff
add dword [eax + 8], ebx
imul edx, dword [eax + 8], 0x8088405
inc edx
mov dword [eax + 8], edx
shr edx, 0x18
mov ecx, dword [eax + 0xc]
xor edx, ecx
and edx, 0xff
mov ebx, dword [0x4ad8e4]
mov edx, dword [ebx + edx*4]
shr ecx, 8
and ecx, 0xffffff
xor edx, ecx
mov dword [eax + 0xc], edx
pop ebx
ret

Function at 0x439ed4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov dword [ebp - 4], eax
lea eax, [ebp - 0x11]
mov ecx, 0xc
xchg edx, eax
call fcn.004318e0
mov edi, 0xc
lea esi, [ebp - 0x11]
mov eax, dword [ebp - 4]
call fcn.00439dcc
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00439de8
mov byte [esi], bl
inc esi
dec edi
jne 0x439ef9
cmp byte [ebp - 5], 0
je 0x439f2a
movzx eax, word [ebp + 8]
shr eax, 8
cmp al, byte [ebp - 6]
sete al
jmp 0x439f3c
mov eax, dword [ebp + 0xc]
shr eax, 0x10
movzx eax, ax
shr eax, 8
cmp al, byte [ebp - 6]
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x447bd4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040710c
mov eax, dword [ebp - 0xc]
call fcn.004069c8
xor eax, eax
push ebp
push 0x447cb4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00407114
mov edx, eax
lea eax, [ebp - 4]
call fcn.00447b4c
mov eax, dword [ebp - 4]
call fcn.0044a924
mov ebx, eax
test ebx, ebx
je 0x447c91
cmp dword [ebp - 0xc], 0
jne 0x447c44
push 0
push 0
push 3
push 0
mov eax, dword [ebp - 8]
call fcn.004071b0
push eax
push ebx
call sub.advapi32.dll_RegSetValueExW
jmp 0x447c91
lea eax, [ebp - 0xc]
call fcn.00406a50
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x447c6e
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x447c6e
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.004064a4
mov esi, eax
test esi, esi
je 0x447c79
sub esi, 4
mov esi, dword [esi]
push esi
mov eax, dword [ebp - 0x10]
push eax
push 3
push 0
mov eax, dword [ebp - 8]
call fcn.004071b0
push eax
push ebx
call sub.advapi32.dll_RegSetValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447cbb
lea eax, [ebp - 0xc]
call fcn.00406288
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040711c
ret
Function at 0x447cc4
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x447ccc
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x447e6b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, esi
xor edx, edx
call fcn.00407124
xor eax, eax
push ebp
push 0x447e31
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x447e20
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
call fcn.00448878
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
call fcn.0044743c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
pop ecx
call fcn.004075e0
lea eax, [ebp - 0xc]
call fcn.0044b0a0
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.004071b0
push eax
mov eax, dword [ebp - 8]
call fcn.004071b0
push eax
call sub.advapi32.dll_LookupAccountNameW
mov ebx, eax
test ebx, ebx
jne 0x447dfb
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
jne 0x447dfb
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x18]
call fcn.00407098
mov eax, dword [ebp - 0x14]
call fcn.004041a0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00406ee0
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004071b0
push eax
mov eax, dword [ebp - 8]
call fcn.004071b0
push eax
call sub.advapi32.dll_LookupAccountNameW
mov ebx, eax
test ebx, ebx
jne 0x447def
mov eax, dword [ebp - 0x10]
call fcn.004041d4
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, esi
xor edx, edx
call fcn.00407124
call fcn.00405bb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x447e3b
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.00449704
jmp 0x447e04
mov eax, esi
xor edx, edx
call fcn.00407124
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447e27
cmp dword [ebp - 0x10], 0
je 0x447e1f
mov eax, dword [ebp - 0x10]
call fcn.004041d4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447e72
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0040711c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040711c
lea eax, [ebp - 4]
call fcn.00406d14
ret
Function at 0x447e7c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040710c
xor eax, eax
push ebp
push 0x447f59
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00406d14
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004071b0
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x447f43
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov dword [ebp - 8], eax
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, esi
call fcn.00407098
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x447f07
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x447f3d
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [esi]
call fcn.00406ee0
push eax
push ebx
call sub.kernel32.dll_ReadFile
mov eax, dword [esi]
cmp word [eax], 0xfeff
jne 0x447f3d
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.00406ffc
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447f60
lea eax, [ebp - 4]
call fcn.00407114
ret

Function at 0x448088
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040710c
mov eax, dword [ebp - 8]
call fcn.0040710c
xor eax, eax
push ebp
push 0x4481ac
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.0040483c
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x10
call fcn.0040483c
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], 1
test edi, edi
jne 0x4480fc
lea esi, [ebp - 0x60]
jmp 0x4480fe
mov esi, edi
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00407178
cmp dword [ebp - 8], 0
je 0x448145
cmp dword [ebp - 4], 0
je 0x44813a
push 0x4481c8
push dword [ebp - 0xc]
lea eax, [ebp - 0x64]
call fcn.00447470
push dword [ebp - 0x64]
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.004076c4
jmp 0x448145
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00407178
push esi
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.004071b0
push eax
mov eax, dword [ebp - 4]
call fcn.004071b0
push eax
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x448189
test edi, edi
jne 0x448187
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4481b3
lea eax, [ebp - 0x64]
call fcn.00407114
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040711c
ret