joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464fb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 0xffffffff
jne 0x464fdc
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x464fd3
sub esi, ecx
xor ecx, ecx
mov eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0053c5e4
mov edi, eax
add esp, 4
test edi, edi
jne 0x4650b7
sub esp, 0xc
mov dword [ebp - 0x54], 0x39517a41
mov ecx, esp
mov dword [ebp - 0x50], 0x6c677950
mov dword [ebp - 0x4c], 0x6a636961
mov dword [ebp - 0x48], 0x71634363
push dword [ebp - 8]
mov dword [ebp - 0x44], 0x71416949
mov dword [ebp - 0x40], 0x6738444a
mov dword [ebp - 0x3c], 0x34595459
mov dword [ebp - 0x38], 0x34387a4b
mov dword [ebp - 0x34], 0x6b6b334c
mov dword [ebp - 0x30], 0x33457949
mov dword [ebp - 0x2c], 0x32554849
mov dword [ebp - 0x28], 0x6e73694a
mov dword [ebp - 0x24], 0x4e45794c
mov dword [ebp - 0x20], 0x4b777748
mov dword [ebp - 0x1c], 0x34525147
mov dword [ebp - 0x18], 0x76497941
mov dword [ebp - 0x14], 0x3641584a
mov dword [ebp - 0x10], 0x41344145
mov dword [ebp - 0xc], 0x50414141
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
call fcn.004660a0
lea eax, [ebp - 0x6c]
push eax
call fcn.00447e40
add esp, 0x10
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
je 0x4650d9
jmp 0x4650e3
push esi
push ebx
push edi
call fcn.0053da60
mov ecx, dword [ebp - 4]
add esp, 0xc
mov byte [esi + edi], 0
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
push str.invalid_vector_T__subscript
call fcn.0053af06
lea eax, [ebp - 8]
mov dword [ebp - 8], ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.0053d1b7
push 0x590b74
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], vtable.std::runtime_error.0
push eax
call fcn.0053d3af
int3

Function at 0x469170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x469185
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4691c4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4691c0
lea ebx, [ebx]
cmp esi, edx
jae 0x4691c4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4691b0
cmp esi, edx
jb 0x4691c9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x46fbf0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax - 0xc]
test eax, eax
je 0x46fc74
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea ecx, [ebp - 8]
push 0
push 0
push ecx
push 0
push 1
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x46fc3a
mov eax, dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x46fc76
push dword [ebp - 8]
mov ecx, esi
call fcn.0046de70
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
je 0x46fca5
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push 0
push 0
push edx
push ecx
push 1
push dword [eax - 0xc]
push eax
call edi
test eax, eax
jne 0x46fc74
mov eax, dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x46fc76
xor esi, esi
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46fc93
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
push str.invalid_vector_T__subscript
call fcn.0053af06
int3
Function at 0x4763f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4763fe
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x4764d3
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x580ab8]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x580ab8]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x580ab8]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x580ab8]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x580ab8]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x580ab8]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x580ab8]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x580ab8]
dec edi
jne 0x476416
pop edi
test esi, esi
je 0x4764f2
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x580ab8]
dec esi
jne 0x4764d7
not eax
pop esi
pop ebp
ret
Function at 0x47b590
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsx eax, al
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x580ab8]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x580ab8]
mov dword [edx + 8], eax
pop ebp
ret

Function at 0x47b600
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 8]
mov ecx, esi
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
mov ecx, dword [edi]
shr eax, 8
xor dl, al
movsx eax, dl
xor eax, ecx
shr ecx, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x580ab8]
xor eax, ecx
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, esi
shr esi, 8
and eax, 0xff
xor esi, dword [eax*4 + 0x580ab8]
mov al, dl
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
ret

Function at 0x47b990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x47b9d8
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47b9d3
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x47ba00
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x47b9e9
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.0053da60
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
Function at 0x47bb60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0xc], ebx
mov edi, 1
cmp byte [esi], 0
je 0x47bba7
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47bba2
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x47bbd4
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x47bbb8
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call fcn.0053da60
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x47bbf2
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x47bbdf
cmp byte [esi + 8], 0
je 0x47bbdf
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
Function at 0x47bd80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x47bdca
cmp byte [edi + 1], 0
je 0x47bdb8
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x47bdd0
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
push ebx
je 0x47bdf5
cmp byte [edi + 1], 0
je 0x47bdee
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x47bdf8
xor ebx, ebx
mov dword [ebp - 0x14], ebx
jmp 0x47be07
mov ebx, dword [edi + 0x1c]
mov eax, 0xffff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
cmp ebx, eax
jae 0x47be0a
mov dword [ebp - 0x10], ebx
push esi
push 0x404
call fcn.0053c5e4
mov esi, eax
add esp, 4
test esi, esi
jne 0x47be32
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov eax, 4
mov dword [ebp - 0xc], 0xffffffff
cmp ecx, eax
jbe 0x47bf38
lea esp, [esp]
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x20], edx
sub ebx, ecx
mov dword [ebp - 0x1c], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x47be9a
cmp byte [edi + 1], 0
je 0x47bf38
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x47be9d
mov dword [edi + 0x1c], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0x18], ebx
je 0x47bec5
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47bec0
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x47beee
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x47bed8
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0x18], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.0053da60
mov eax, dword [ebp - 0x18]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x47bf38
lea eax, [ebx - 3]
test eax, eax
js 0x47bf20
mov edi, edi
dec eax
cmp byte [eax + esi], 0x50
jne 0x47bf1c
cmp byte [eax + esi + 1], 0x4b
jne 0x47bf1c
cmp byte [eax + esi + 2], 5
jne 0x47bf1c
cmp byte [eax + esi + 3], 6
je 0x47bf55
test eax, eax
jns 0x47bf00
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x47bf38
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
cmp eax, ecx
jb 0x47be50
push esi
call fcn.0053c5ac
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
jmp 0x47bf23
Function at 0x47d130
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x47d1f1
cmp dword [edi + 4], 0xffffffff
jne 0x47d1f1
push esi
lea esi, [edi + 0x244]
push esi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x47d160
sub esi, ecx
sar esi, 1
movzx eax, word [edi + esi*2 + 0x242]
cmp eax, 0x5c
je 0x47d18c
cmp eax, 0x2f
je 0x47d18c
mov dword [edi + esi*2 + 0x244], 0x2f
mov esi, dword [ebp + 0x10]
cmp esi, 1
jne 0x47d1b2
push esi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x47d1b2
pop esi
mov eax, 0x2000000
pop edi
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047b730
add esp, 0x10
test eax, eax
jne 0x47d1d2
mov eax, dword [ebp + 0x10]
pop esi
pop edi
pop ebp
ret 0xc
push eax
call fcn.0047c040
add esp, 4
mov dword [edi], eax
xor ecx, ecx
mov edx, 0x200
test eax, eax
cmove ecx, edx
pop esi
mov eax, ecx
pop edi
pop ebp
ret 0xc
mov eax, 0x1000000
pop edi
pop ebp
ret 0xc
Function at 0x47f760
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x47f807
push 0x104
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0053e297
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47f7a6
sub ecx, edx
sar ecx, 1
je 0x47f7e6
movzx eax, word [ebp + ecx*2 - 0x20e]
cmp eax, 0x2f
je 0x47f7c9
cmp eax, 0x5c
jne 0x47f7e6
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x47f915
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47f807
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [edi]
test ax, ax
je 0x47f905
push esi
mov esi, edi
mov ecx, edi
cmp ax, 0x2f
je 0x47f824
cmp ax, 0x5c
jne 0x47f826
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x47f818
cmp esi, edi
je 0x47f872
sub esi, edi
lea eax, [ebp - 0x20c]
and esi, 0xfffffffe
push esi
push edi
push eax
call fcn.0053da60
add esp, 0xc
cmp esi, 0x208
jae 0x47f915
xor eax, eax
mov word [ebp + esi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0047f760
add esp, 8
xor eax, eax
mov word [ebp - 0x414], ax
pop esi
test ebx, ebx
je 0x47f89a
push 0x104
push ebx
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0053e297
add esp, 0x10
xor eax, eax
lea ecx, [ebp - 0x414]
mov word [ebp - 0x20e], ax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47f8b0
sub ecx, edx
mov eax, 0x104
sar ecx, 1
sub eax, ecx
push eax
push edi
push eax
lea eax, [ebp - 0x414]
lea eax, [eax + ecx*2]
push eax
call fcn.0053e297
xor eax, eax
add esp, 0x10
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47f905
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
call fcn.0053c4d0
int3
Function at 0x482560
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4825e4
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea ecx, [ebp - 8]
push 0
push 0
push ecx
push 0
push 1
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4825aa
mov eax, dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4825e6
push dword [ebp - 8]
mov ecx, esi
call fcn.0046de70
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
je 0x482615
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push 0
push 0
push edx
push ecx
push 1
push dword [eax - 0xc]
push eax
call edi
test eax, eax
jne 0x4825e4
mov eax, dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4825e6
xor esi, esi
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x482603
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
push str.invalid_vector_T__subscript
call fcn.0053af06
int3
Function at 0x4834c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov dword [ebp - 0xc], eax
xor edi, edi
xor eax, eax
cmp dword [ebp + 0xc], eax
push edi
push 0x20
setne al
inc eax
push eax
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x48350d
call fcn.004be910
mov esi, eax
test esi, esi
jne 0x483541
jmp 0x48350f
mov edi, eax
push 0
test ebx, ebx
lea eax, [ebp - 8]
cmovne eax, ebx
push eax
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x483534
call fcn.004be910
mov esi, eax
jmp 0x483536
xor esi, esi
test edi, edi
je 0x483541
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48355e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret

Function at 0x483580
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x48]
push edi
mov edi, dword [ebp + 8]
push 0x44
push 0
push eax
call fcn.0053e0b0
add esp, 0xc
mov dword [ebp - 0x48], 0x44
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 8
push 0
push 0
push 0
push edi
push 0
test esi, esi
je 0x4835e1
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x4835e7
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne al
test al, al
je 0x483631
mov eax, dword [ebp + 0xc]
xor edi, edi
test eax, eax
je 0x48360f
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x48360f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x54]
call esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
Function at 0x4899c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push 0
push eax
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x489a04
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00468a00
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x489a14
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.004be590
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
Function at 0x48c510
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
xor eax, eax
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.004e90c0
add esp, 4
lea ecx, [ebp - 0x18]
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x20219
push eax
push dword [ebp - 8]
push dword [edi]
call fcn.004f0cd0
mov edi, eax
test edi, edi
je 0x48c58d
mov esi, dword [ebp - 0x18]
jmp 0x48c608
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp - 0x1c]
push 0
push esi
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x48c5f0
push dword [ebp - 0xc]
mov ecx, ebx
call fcn.0046de70
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
sub eax, ecx
je 0x48c6ab
lea eax, [ebp - 0xc]
push eax
push ecx
push dword [ebp - 0x1c]
push edi
push dword [ebp - 0x20]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x48c5f0
test esi, esi
je 0x48c67c
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call eax
xor esi, esi
jmp 0x48c68d
test esi, esi
je 0x48c601
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call eax
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0
cmp byte [ebp + 0x1c], 0
jne 0x48c68d
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
push 0x20219
push dword [ebp - 8]
push dword [eax]
call fcn.004f0cd0
mov esi, dword [ebp - 0x18]
mov edi, eax
test edi, edi
jne 0x48c68d
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0x1c]
push edi
push dword [ebp - 0x20]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x48c680
push dword [ebp - 8]
mov ecx, ebx
call fcn.0046de70
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
sub eax, ecx
je 0x48c6b5
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp - 0x1c]
push edi
push dword [ebp - 0x20]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x48c680
lea ecx, [ebp - 0x18]
call fcn.004c28e0
mov esi, dword [ebp - 0x18]
xor edi, edi
jmp 0x48c68d
test esi, esi
je 0x48c698
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
test esi, esi
je 0x48c698
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
push str.invalid_vector_T__subscript
call fcn.0053af06
push str.invalid_vector_T__subscript
call fcn.0053af06
int3