joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fa30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov edx, 0xc
lea ecx, [ebp - 0x3c]
call fcn.0040aba0
mov edx, 5
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0040aba0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], reloc.OLEAUT32.dll_SysReAllocString
cmp dword [eax + 0x10], 0
je 0x40fabf
cmp dword [esi + 0x10], 0
je 0x40fabf
cmp dword [eax + 0x14], 8
jb 0x40fa7f
mov eax, dword [eax]
lea ecx, [ebp - 0xc]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fabf
cmp dword [esi + 0x14], 8
jb 0x40faa2
mov esi, dword [esi]
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
cmp ecx, 8
jb 0x40faf9
mov edx, dword [ebp - 0x24]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40faef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc54
push ecx
push edx
call fcn.004205b6
add esp, 8
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
cmp ecx, 8
jb 0x40fb47
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40fb3d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc54
push ecx
push edx
call fcn.004205b6
add esp, 8
mov edx, 0xa
lea ecx, [ebp - 0x3c]
call fcn.0040aba0
mov edx, 5
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0040aba0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], reloc.OLEAUT32.dll_SysReAllocString
cmp dword [eax + 0x10], 0
je 0x40fbc5
cmp dword [esi + 0x10], 0
je 0x40fbc5
cmp dword [eax + 0x14], 8
jb 0x40fb85
mov eax, dword [eax]
lea ecx, [ebp - 0xc]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fbc5
cmp dword [esi + 0x14], 8
jb 0x40fba8
mov esi, dword [esi]
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
cmp ecx, 8
jb 0x40fbfb
mov edx, dword [ebp - 0x24]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40fbf1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc59
push ecx
push edx
call fcn.004205b6
add esp, 8
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
cmp ecx, 8
jb 0x40fc45
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40fc3b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc59
push ecx
push edx
call fcn.004205b6
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00420573
mov esp, ebp
pop ebp
ret
call fcn.0042552f
call fcn.0042552f
int3
Function at 0x4144d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
lea edi, [edx + edx]
mov esi, 0x811c9dc5
xor edx, edx
test edi, edi
je 0x4144f1
movzx eax, byte [edx + ecx]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, edi
jb 0x4144e0
pop edi
mov eax, esi
pop esi
ret

Function at 0x414900
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edx]
cmp dword [ebp + 8], 0x100
push esi
push edi
mov edi, ecx
mov esi, str.expand_16_byte_k
mov ecx, str.expand_32_byte_k
cmove esi, ecx
lea ecx, [edx + 0x10]
cmovne ecx, edx
mov dword [edi + 4], eax
mov eax, dword [edx + 4]
mov dword [edi + 8], eax
mov eax, dword [edx + 8]
mov dword [edi + 0xc], eax
mov eax, dword [edx + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [ecx]
mov dword [edi + 0x2c], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0x30], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x34], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x38], eax
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x3c], eax
pop edi
pop esi
pop ebp
ret
Function at 0x415080
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4338e0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1c
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
push ecx
push dword [ebx + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.00407690
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x1c]
push dword [0x45cb18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x4150fe
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
jmp 0x415145
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x41512e
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x415124
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415166
push ecx
push edx
call fcn.004205b6
add esp, 8
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.0042552f
int3
Function at 0x4166d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x445008]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
xor bl, bl
cmp dword [ecx + 0x10], 0
push esi
je 0x4167a6
cmp dword [ecx + 0x14], 8
jb 0x4166fa
mov ecx, dword [ecx]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4167a6
xorps xmm0, xmm0
mov dword [esp + 0x10], 0
movq qword [esp + 8], xmm0
lea edx, [esp + 0x20]
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
add ecx, 0xfffffff0
push 2
push edx
adc eax, 0xffffffff
mov word [esp + 0x1c], 0
push eax
push ecx
push esi
movlpd qword [esp + 0x2c], xmm0
movq qword [esp + 0x34], xmm0
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x41679f
push 0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41679f
cmp dword [esp + 8], 0x10
jne 0x41679f
cmp dword [esp + 0x10], 0xd3b1d3ff
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x2c]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.00420573
mov esp, ebp
pop ebp
ret
Function at 0x4186b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x10], 0
xorps xmm0, xmm0
push ebx
push esi
push edi
movlpd qword [ebp - 0x18], xmm0
je 0x418758
cmp dword [ecx + 0x14], 8
jb 0x4186dd
mov ecx, dword [ecx]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x418758
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x418736
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
xor ecx, ebp
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
call fcn.00420573
mov esp, ebp
pop ebp
ret
Function at 0x41b930
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433cbe
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x445008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x41baff
dec eax
mov dword [ebp + 8], eax
mov al, byte [edx]
inc edx
mov byte [ebp + esi - 0x14], al
inc esi
mov ah, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov byte [ebp - 0xf], ah
mov byte [ebp - 0xd], ch
mov byte [ebp - 0xe], cl
cmp esi, 3
jne 0x41ba35
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ch
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
and ah, 0x3f
mov cl, ch
shr al, 6
and cl, 0xf
mov byte [ebp - 0x15], ah
shl cl, 2
add cl, al
xor esi, esi
mov byte [ebp - 0x16], cl
nop dword [eax + eax]
cmp dword [0x45cbf8], 0x10
mov ecx, 0x45cbe4
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x45cbe4]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.0040dc80
inc esi
cmp esi, 4
jl 0x41ba00
mov edx, dword [ebp - 0x20]
xor esi, esi
mov ch, byte [ebp - 0xd]
mov cl, byte [ebp - 0xe]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x41b9a3
mov dword [ebp + 8], esi
test esi, esi
je 0x41baff
mov eax, esi
cmp esi, 3
jge 0x41ba71
cmp eax, 3
jae 0x41bb12
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x41ba55
mov dl, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
jmp 0x41ba74
mov dl, byte [ebp - 0xf]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ch
shr al, 4
and ch, 0xf
shl cl, 4
add cl, al
shl ch, 2
mov al, dl
mov byte [ebp - 0x17], cl
shr al, 6
and dl, 0x3f
add ch, al
mov byte [ebp - 0x15], dl
lea eax, [esi + 1]
mov byte [ebp - 0x16], ch
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x41badd
xor esi, esi
nop
cmp dword [0x45cbf8], 0x10
mov ecx, 0x45cbe4
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x45cbe4]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.0040dc80
inc esi
cmp esi, dword [ebp - 0x20]
jl 0x41bab0
mov esi, dword [ebp + 8]
cmp esi, 3
jge 0x41baff
mov eax, 3
sub eax, esi
mov dword [ebp + 8], eax
nop dword [eax]
push 0x3d
mov ecx, edi
call fcn.0040dc80
sub dword [ebp + 8], 1
jne 0x41baf0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00420709
int3
Function at 0x41d150
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLangID]
and eax, 0x3ff
add eax, 0xffffffe8
cmp eax, 0x42
ja case.0x41d16a.26
movzx eax, byte [eax + 0x41d1a0]
jmp dword [eax*4 + 0x41d198]
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultUILanguage]
and eax, 0x3ff
add eax, 0xffffffe8
cmp eax, 0x42
ja case.0x41d18b.26
movzx eax, byte [eax + 0x41d1ec]
jmp dword [eax*4 + 0x41d1e4]
mov al, 1
ret
xor al, al
ret

Function at 0x41d230
Capabilities:
Check for debugger via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
jne 0x41d2df
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_CheckRemoteDebuggerPresent]
test eax, eax
je 0x41d2df
cmp dword [ebp - 8], 0
jne 0x41d2df
push 0x2c8
lea eax, [ebp - 0x2d0]
push 0
push eax
call fcn.00423800
add esp, 0xc
mov dword [ebp - 0x2d4], 0x10010
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
test eax, eax
je 0x41d2cf
cmp dword [ebp - 0x2d0], 0
jne 0x41d2df
cmp dword [ebp - 0x2cc], 0
jne 0x41d2df
cmp dword [ebp - 0x2c8], 0
jne 0x41d2df
cmp dword [ebp - 0x2c4], 0
jne 0x41d2df
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
ret
Function at 0x41f580
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4328a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x104
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
push 0x110
mov dword [edi + 0x14], 0xf
call fcn.00420581
push 0x104
mov esi, eax
mov dword [edi + 0x10], 0x104
push 0
push esi
mov dword [edi], esi
mov dword [edi + 0x14], 0x10f
call fcn.00423800
add esp, 0x10
mov byte [esi + 0x104], 0
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x41f604
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
test eax, eax
je 0x41f672
mov esi, dword [edi + 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [edi + 0x14]
cmp edx, esi
ja 0x41f632
mov ecx, edi
cmp eax, 0x10
jb 0x41f629
mov ecx, dword [edi]
mov dword [edi + 0x10], edx
mov byte [ecx + edx], 0
jmp 0x41f686
mov ecx, edx
sub eax, esi
sub ecx, esi
mov dword [ebp - 0x18], ecx
cmp ecx, eax
ja 0x41f663
cmp dword [edi + 0x14], 0x10
mov eax, edi
mov dword [edi + 0x10], edx
jb 0x41f64c
mov eax, dword [edi]
push ecx
add esi, eax
push 0
push esi
call fcn.00423800
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x41f686
push ecx
push ecx
push dword [ebp - 0x18]
push ecx
mov ecx, edi
call fcn.004034a0
jmp 0x41f686
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x41f67c
mov eax, dword [edi]
mov dword [edi + 0x10], 0
mov byte [eax], 0
mov eax, edi
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.00420573
mov esp, ebp
pop ebp
ret
Function at 0x41f6b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432c60
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x445008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push ecx
push 0x104
call fcn.00407690
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x41f6ed
mov eax, dword [edi]
push 0x104
push eax
push 0x1001
push 0x400
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
mov ecx, eax
test ecx, ecx
je 0x41f787
mov esi, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
cmp ecx, esi
ja 0x41f725
mov eax, edi
cmp edx, 0x10
jb 0x41f71c
mov eax, dword [edi]
mov dword [edi + 0x10], ecx
mov byte [eax + ecx], 0
jmp 0x41f75e
mov ebx, ecx
mov eax, edx
sub ebx, esi
sub eax, esi
cmp ebx, eax
ja 0x41f751
mov dword [edi + 0x10], ecx
mov eax, edi
cmp edx, 0x10
jb 0x41f73d
mov eax, dword [edi]
push ebx
add esi, eax
push 0
push esi
call fcn.00423800
add esp, 0xc
mov byte [esi + ebx], 0
jmp 0x41f75e
push ecx
push ebx
push dword [ebp - 0x10]
mov ecx, edi
push ebx
call fcn.004034a0
mov eax, dword [edi + 0x10]
mov ecx, edi
dec eax
cmp dword [edi + 0x14], 0x10
jb 0x41f76c
mov ecx, dword [edi]
mov dword [edi + 0x10], eax
mov byte [ecx + eax], 0
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
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x41f791
mov eax, dword [edi]
mov dword [edi + 0x10], 0
mov byte [eax], 0
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

Function at 0x41f7c0
Capabilities:
Create process on windows

Disassembly:
cmp dword [ecx + 0x10], 0
je 0x41f7df
cmp dword [ecx + 0x14], 8
jb 0x41f7ce
mov ecx, dword [ecx]
push 5
push 0
push 0
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x420ffc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x42103b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42103b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42103b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42103b
cmp dword [ecx + 0x74], 0xe
jbe 0x42103b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42b25a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437c2c
push 0x437c24
push str.FlsAlloc
push 0x1e
call fcn.0042b0db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b28e
push dword [ebp + 8]
mov ecx, esi
call dword [0x435334]
call esi
jmp 0x42b294
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42b2d8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437c3c
push 0x437c34
push str.FlsGetValue
push 0x20
call fcn.0042b0db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b30f
push dword [ebp + 8]
mov ecx, esi
call dword [0x435334]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsGetValue]
Function at 0x42b964
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x42b9af
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042bb03
test al, al
jne 0x42b9a9
sub edx, 2
cmp edx, edi
jne 0x42b98f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42b9d1
lea eax, [edi + 2]
cmp edx, eax
je 0x42b9d1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042b8b0
add esp, 0x10
jmp 0x42bacb
push esi
lea ecx, [ebp - 0x255]
call fcn.0042bb03
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42ba14
push dword [ebp - 0x25c]
jmp 0x42b9c1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x42ba51
cmp word [ebp - 0x226], 0
je 0x42ba72
cmp word [ebp - 0x226], ax
jne 0x42ba51
cmp word [ebp - 0x224], 0
je 0x42ba72
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042b8b0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42babe
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42ba2b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42baa6
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
jmp 0x42bacb
push 0x42b6e0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042e5c0
add esp, 0x10
jmp 0x42ba9b
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420573
leave
ret

Function at 0x42c4d4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42c4e5
pop esi
ret
push ebx
push edi
push esi
call fcn.0042c49d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00429c66
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42c50d
push ebx
push esi
push edi
call fcn.004239a0
add esp, 0xc
push 0
call fcn.00429c2c
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42c8d1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042c522
Function at 0x432380
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4323ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4323ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40d4d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b72b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00460100
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40d552
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045de7f
mov eax, dword [eax]
push 0x486100
push eax
call fcn.00450d54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046038b
test bl, bl
je 0x40d552
push 0x486100
lea ecx, [esp + 0xc]
call fcn.0046071b
push 0x489c90
lea ecx, [esp + 0xc]
call fcn.0046071b
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40d58e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046038b
jmp 0x40d659
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40d612
lea edx, [esp + 0x7c]
push 0x489c8c
push edx
call fcn.00450d54
add esp, 8
test eax, eax
je 0x40d612
lea eax, [esp + 0x7c]
push 0x489c88
push eax
call fcn.00450d54
add esp, 8
test eax, eax
je 0x40d612
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d5a2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046038b
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40de50
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40deb2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc