joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a0f0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [esi + 0x18], ecx
ja 0x41a142
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [esi + 8]
mov esi, dword [esi]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x41a15a
mov ecx, esi
jmp 0x41a15f
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x41a18c
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x41a16e
mov eax, dword [eax]
jmp 0x41a152
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
jne 0x41a17e
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41a4e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul ecx, ecx, 0x1000193
and ecx, edx
cmp dword [ebx + 0x18], ecx
ja 0x41a534
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov esi, dword [ebx]
lea edx, [ecx*8]
mov ecx, dword [ebx + 8]
mov dword [esp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x41a563
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x41a563
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x41a5a7
cmp esi, eax
jne 0x41a557
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x41a591
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 8]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x41a5c3
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x41a5e5
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.0041a600
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x41a5cb
mov dword [ecx], edi
jmp 0x41a5e5
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x41a5e5
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.0041a650
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41c350
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], 0
test eax, eax
je 0x41c395
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
push ecx
lea ecx, [esp + 0x14]
push ecx
push edi
push 2
push edi
push edi
push edi
push 0x49c9b8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41c395
mov edi, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x14], 8
jb 0x41c3a0
mov edx, dword [edx]
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x41c3ab
mov esi, dword [esi]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c3b0
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test edi, edi
je 0x41c3e4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41c3f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [esp + 8], 0
test eax, eax
je 0x41c434
lea ecx, [esp + 0xc]
mov dword [esp + 8], esi
push ecx
lea ecx, [esp + 0xc]
push ecx
push esi
push 2
push esi
push esi
push esi
push 0x49c9b8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41c434
mov esi, dword [esp + 8]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x41c43f
mov eax, dword [eax]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
sete bl
test esi, esi
je 0x41c457
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0xc], 0
push esi
mov esi, ecx
mov dword [esp + 8], esi
push edi
test ebx, ebx
jns 0x41f46d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4a6840]
xor edi, edi
test ecx, ecx
je 0x41f4b3
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x41f4b3
mov ecx, dword [0x4a6840]
lea edi, [esi + 0x1c]
mov eax, ebx
mov dword [esp + 0x10], str.File::Read
cdq
push edx
mov esi, dword [ecx]
push eax
mov eax, dword [esp + 0x14]
add eax, 4
push eax
push edi
push str.File::Read
call dword [esi + 0x10]
mov esi, dword [esp + 0xc]
jmp 0x41f4bb
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movdqu xmmword [esp + 0x20], xmm0
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0
push eax
push ebx
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f4fa
mov esi, dword [esp + 0x14]
jmp 0x41f50c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x41f509
xor esi, esi
jmp 0x41f50c
or esi, 0xffffffff
test edi, edi
je 0x41f524
mov ecx, dword [0x4a6840]
test ecx, ecx
je 0x41f524
mov edx, dword [ecx]
push edi
push dword [esp + 0x14]
call dword [edx + 0x14]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41f5d0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
mov ecx, dword [0x4a6840]
xor edi, edi
test ecx, ecx
je 0x41f625
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x41f625
push dword [ebp + 0xc]
mov ecx, dword [0x4a6840]
lea eax, [esi + 4]
push dword [ebp + 8]
lea edi, [esi + 0x1c]
mov dword [esp + 0x14], str.File::SetLength
push eax
mov edx, dword [ecx]
push edi
push str.File::SetLength
call dword [edx + 0x10]
jmp 0x41f62d
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea eax, [esp + 0x18]
push 1
push eax
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esi]
call ebx
test eax, eax
je 0x41f689
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call ebx
test eax, eax
je 0x41f689
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x41f689
push 0
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esi]
call ebx
test eax, eax
je 0x41f689
mov bl, 1
jmp 0x41f68b
xor bl, bl
test edi, edi
je 0x41f6a3
mov ecx, dword [0x4a6840]
test ecx, ecx
je 0x41f6a3
mov edx, dword [ecx]
push edi
push dword [esp + 0x10]
call dword [edx + 0x14]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41f9d0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
test bl, 1
push esi
mov esi, ecx
mov ecx, 3
cmovne eax, ecx
test bl, 2
mov ecx, 1
cmovne eax, ecx
mov ecx, ebx
and ecx, 4
mov dword [ebp - 4], ecx
mov ecx, 4
cmovne eax, ecx
test bl, 8
mov ecx, 2
cmovne eax, ecx
mov dword [ebp + 0xc], eax
push edi
test bl, 0x10
je 0x41fa27
mov dword [ebp + 0xc], 5
jmp 0x41fa2f
test eax, eax
je 0x41fb8c
xor edx, edx
mov edi, 0x40000000
test bl, 0x40
mov eax, 4
cmovne edx, edi
test bl, 0x80
cmovne edx, eax
test bl, 0x20
je 0x41fa52
or edx, 0x80000000
test ebx, 0x4000
je 0x41fa60
or edx, 0x100
test ebx, 0x40000
je 0x41fa6e
or edx, 0x20000000
mov ecx, ebx
shr ecx, 8
not ecx
and ecx, 1
test ebx, 0x200
jne 0x41fa83
or ecx, 2
test ebx, 0x8000
je 0x41fa8d
or ecx, eax
xor eax, eax
test ebx, 0x400
cmovne eax, edi
test ebx, 0x800
je 0x41faa5
or eax, 0x100
test ebx, 0x1000
je 0x41fab0
or eax, 2
test ebx, 0x2000
je 0x41fabd
or eax, 0x4000000
test ebx, 0x20000
je 0x41faca
or eax, 0x2000000
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x41fad5
mov edi, dword [edi]
push 0
push eax
push dword [ebp + 0xc]
push 0
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp dword [esi], edi
je 0x41fb2e
mov ecx, esi
call fcn.0040e570
test edi, edi
je 0x41fb2e
cmp edi, 0xffffffff
je 0x41fb2e
mov dword [esi], edi
call fcn.0041c610
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x4a574c]
mov dword [ebp + 8], eax
test ecx, ecx
jne 0x41fb21
call fcn.0041c6d0
mov ecx, dword [0x4a574c]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push dword [ebp + 8]
push esi
push edi
call dword [eax + 4]
mov eax, dword [esi]
test eax, eax
je 0x41fb7c
cmp eax, 0xffffffff
je 0x41fb7c
mov eax, ebx
mov dword [esi + 0x20], 0
shr eax, 0xa
and al, 1
cmp dword [ebp - 4], 0
mov byte [esi + 0x25], al
je 0x41fb6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
mov byte [esi + 0x24], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test bl, 0xa
je 0x41fb8c
mov byte [esi + 0x24], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0041f6b0
mov dword [esi + 0x20], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41fcd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4a22d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
sub esp, 8
mov edx, esp
mov dword [edx], edi
test edi, edi
jne 0x41fcfc
xor ecx, ecx
jmp 0x41fd19
cmp byte [edi], 0
jne 0x41fd05
xor ecx, ecx
jmp 0x41fd19
mov ecx, edi
lea esi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41fd10
sub ecx, esi
lea eax, [ebp - 0x1c]
mov dword [edx + 4], ecx
push eax
call fcn.00410ed0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x41fd30
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
mov esi, eax
mov dword [ebp - 0x38], esi
jb 0x41fd4d
push dword [ebp - 0x1c]
call fcn.0046d967
add esp, 4
test esi, esi
jne 0x41fd66
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x41fe67
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046d0ab
add esp, 4
mov esi, eax
push dword [ebp - 0x38]
push esi
sub esp, 8
mov edx, esp
mov dword [edx], edi
test edi, edi
je 0x41fdaf
cmp byte [edi], 0
jne 0x41fda3
xor edi, edi
jmp 0x41fdaf
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x41fda6
sub edi, ecx
lea eax, [ebp - 0x1c]
mov dword [edx + 4], edi
push eax
call fcn.00410ed0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x41fdc6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
jb 0x41fdde
push dword [ebp - 0x1c]
call fcn.0046d967
add esp, 4
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040a410
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00410dc0
mov edi, eax
add esp, 8
cmp ebx, edi
je 0x41fe26
cmp dword [ebx + 0x14], 0x10
jb 0x41fe0d
push dword [ebx]
call fcn.0046d967
add esp, 4
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx], 0
call fcn.00407690
cmp dword [ebp - 0x20], 0x10
jb 0x41fe37
push dword [ebp - 0x34]
call fcn.0046d967
add esp, 4
cmp dword [ebp - 8], 8
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
jb 0x41fe5a
push dword [ebp - 0x1c]
call fcn.0046d967
add esp, 4
test esi, esi
je 0x41fe67
push esi
call fcn.0046ea8c
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret 8
Function at 0x424dc0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a22d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, 0x1400
cmp ax, di
je 0x424e6f
push 9
lea eax, [ebp - 0x18]
mov ebx, edi
push eax
push 0x59
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x424e6f
mov ecx, dword [ebp - 0x1c]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004085c0
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x424e27
mov eax, dword [esi]
jmp 0x424e29
mov eax, esi
xor ecx, ecx
and edi, 0xfc00
mov word [eax], cx
xor eax, eax
cmp ax, di
je 0x424e5c
push 9
lea eax, [ebp - 0x18]
push eax
push 0x5a
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x424e5c
dec eax
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004085c0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov edx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea esi, [edi + 4]
mov ecx, esi
call fcn.00418520
add esp, 4
test al, al
jne 0x4253a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x425394
cmp eax, 0x21
je 0x425394
cmp eax, 5
jne 0x42536d
mov eax, 0x3e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x14], 8
jb 0x425375
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
lea eax, [ecx*2 + 0x3e9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x3ea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x20], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x429f20
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32FirstW]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
mov edi, edi
push 0x22c
push 0
push edi
call fcn.0046eac0
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x429f58
mov byte [esi + 8], 1
call ebx
jmp 0x429f5e
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x429f7a
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x429f30
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x42b4f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
mov esi, 8
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0xc]
cmp esi, 0xffffffff
lea eax, [ebp - 4]
cmovbe eax, edx
mov edi, dword [eax]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x42b536
cmp byte [0x4a5798], al
jne 0x42b561
int3
test bl, 1
je 0x42b549
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.00409ac0
mov ecx, dword [ebp - 8]
sub esi, edi
add ecx, edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ecx
test esi, esi
jne 0x42b513
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.004721c7
int3

Function at 0x42b570
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x4a22d0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x4a36fc]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.0046ea8c
add esp, 4
mov edi, 0x100
jmp 0x42b5d0
mov esi, dword [0x4a6850]
xor dl, dl
test esi, esi
jle 0x42b608
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x42b603
mov eax, dword [esi*4 + 0x4a60e0]
test eax, eax
je 0x42b603
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x42b5e0
dec edi
test edi, edi
jle 0x42b611
test dl, dl
jne 0x42b5d0
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
Function at 0x42e5f0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0
push edi
mov ecx, dword [esi]
test ecx, ecx
je 0x42e6db
cmp ecx, 0xffffffff
je 0x42e6db
cmp byte [esi + 0x34], 0
mov edx, 0x1000002
push 0
push 0
push 0
mov eax, 2
cmovne eax, edx
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
lea edi, [esi + 0x30]
cmp dword [edi], ebx
je 0x42e681
mov ecx, edi
call fcn.0040e570
test ebx, ebx
je 0x42e681
cmp ebx, 0xffffffff
je 0x42e681
mov dword [edi], ebx
call fcn.0041c610
mov dword [ebp - 8], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x4a574c]
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x42e674
call fcn.0041c6d0
mov ecx, dword [0x4a574c]
push dword [ebp - 8]
mov eax, dword [ecx]
push dword [ebp - 0x10]
push edi
push ebx
call dword [eax + 4]
mov eax, dword [edi]
test eax, eax
je 0x42e6db
cmp eax, 0xffffffff
je 0x42e6db
xorps xmm0, xmm0
mov ecx, esi
movq qword [ebp - 0x14], xmm0
call fcn.0041f530
mov ecx, eax
add ecx, 0xffffffff
adc edx, 0xffffffff
test edx, edx
ja 0x42e6db
jb 0x42e6b1
cmp ecx, 0x7ffffffe
ja 0x42e6db
push 0
push dword [ebp - 0x14]
mov dword [esi + 0x2c], eax
push dword [ebp - 0x10]
push 4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x28], eax
test eax, eax
je 0x42e6db
mov dword [esi + 0x28], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44014d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4a22d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 0x50], ebx
call fcn.00412940
push eax
lea ecx, [ebp - 0x4c]
call fcn.004054c0
lea ecx, [ebp - 0x1c]
call fcn.00405570
push ebx
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00413470
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
mov dword [ebp - 8], 7
lea ecx, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], ebx
push 0xffffffffffffffff
cmp word [eax], 0x22
jne 0x4401c5
xor eax, eax
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x3c]
add eax, 2
push eax
jmp 0x4401ce
push dword [ebp - 0x3c]
xor eax, eax
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x34]
push eax
call fcn.00407bd0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040a470
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.00408120
lea eax, [ebp - 0x34]
push eax
push 3
push eax
call fcn.0040f190
call fcn.0043faea
push 0x38
mov esi, eax
lea eax, [ebp - 0x88]
push ebx
push eax
call fcn.0046eac0
add esp, 0x18
mov dword [ebp - 0x8c], 0x3c
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x88], 0x40
cmovae eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x20], 8
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], str.runas
mov dword [ebp - 0x70], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, 1
jne 0x440293
push 0xffffffffffffffff
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 0x50], ebx
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x440293
mov bl, 1
test edi, edi
je 0x440293
mov eax, dword [ebp - 0x50]
mov dword [edi], eax
test esi, esi
je 0x44029e
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00408120
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00408120
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret

Function at 0x441690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x4416a2
xor eax, eax
jmp 0x4416db
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
and dword [ebp + 0x10], 0
lea ecx, [ebp + 0x10]
push 0
push ecx
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
mov edx, eax
mov eax, dword [ebp + 0xc]
sub esi, ecx
add eax, ecx
add ebx, ecx
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x4416df
test esi, esi
jne 0x4416a8
mov dword [edi], ebx
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
test edx, edx
je 0x4416d6
push 8
pop eax
jmp 0x4416da
Function at 0x44d1e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 8], ebx
call fcn.0044df0b
push 1
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x20]
call fcn.00415920
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x44d222
mov esi, 0x80070002
jmp 0x44d2cc
push 1
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.0044e008
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
push ebx
push str.PendingFileRenameOperations
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x44d25c
mov esi, 0x80070002
jmp 0x44d2c4
cmp eax, 0xea
jne 0x44d29d
cmp dword [ebp - 8], 7
jne 0x44d26f
test byte [ebp - 4], 1
je 0x44d276
mov esi, 0x8000ffff
jmp 0x44d2c4
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.0044e008
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
push ebx
push str.PendingFileRenameOperations
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x44d2ad
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x44d2c4
push dword [ebp + 8]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x14]
call fcn.0044d50c
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x14]
call fcn.0040eb90
lea ecx, [ebp - 0x20]
call fcn.004159e0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret