joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404440
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478580
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4044ed
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea ecx, [ebp - 0x14]
push 0
push 0
push ecx
push 0
push 1
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4044a9
mov eax, dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4044ef
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00418220
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
jne 0x4044c6
push str.invalid_vector_T__subscript
call fcn.00441bba
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
push 0
push 0
push edx
push ecx
push 1
push dword [eax - 0xc]
push eax
call edi
test eax, eax
jne 0x4044ed
mov eax, dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4044ef
xor esi, esi
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404513
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0044448b
mov esp, ebp
pop ebp
ret

Function at 0x4118d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479a8a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.004419e1
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x411976
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.00444327
push 0x4abd8c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.0044449a
push edi
push esi
call fcn.00442468
add esp, 8
mov eax, esi
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.0044448b
mov esp, ebp
pop ebp
ret 4
Function at 0x413660
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 0x413675
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4136b4
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 0x4136b0
lea ebx, [ebx]
cmp esi, edx
jae 0x4136b4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4136a0
cmp esi, edx
jb 0x4136b9
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 0x419110
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a070
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4191bd
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea ecx, [ebp - 0x14]
push 0
push 0
push ecx
push 0
push 1
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x419179
mov eax, dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4191bf
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00418220
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
jne 0x419196
push str.invalid_vector_T__subscript
call fcn.00441bba
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
push 0
push 0
push edx
push ecx
push 1
push dword [eax - 0xc]
push eax
call edi
test eax, eax
jne 0x4191bd
mov eax, dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4191bf
xor esi, esi
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4191e3
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0044448b
mov esp, ebp
pop ebp
ret
Function at 0x41a770
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x41a77e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x41a853
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 + 0x486700]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x486700]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x486700]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x486700]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x486700]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x486700]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x486700]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x486700]
dec edi
jne 0x41a796
pop edi
test esi, esi
je 0x41a872
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x486700]
dec esi
jne 0x41a857
not eax
pop esi
pop ebp
ret
Function at 0x41cb30
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 + 0x486700]
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 + 0x486700]
mov dword [edx + 8], eax
pop ebp
ret

Function at 0x41cba0
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 + 0x486700]
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 + 0x486700]
mov al, dl
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
ret

Function at 0x41cf30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4b42b0]
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 0x41cf78
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 0x41cf73
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x41cfa0
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x41cf89
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.00444e60
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.0044448b
mov esp, ebp
pop ebp
ret
Function at 0x41d100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b42b0]
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 0x41d147
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 0x41d142
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x41d174
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x41d158
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.00444e60
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x41d192
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.0044448b
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x41d17f
cmp byte [esi + 8], 0
je 0x41d17f
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044448b
mov esp, ebp
pop ebp
ret
Function at 0x41d320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4b42b0]
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 0x41d36a
cmp byte [edi + 1], 0
je 0x41d358
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x41d370
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
push ebx
je 0x41d395
cmp byte [edi + 1], 0
je 0x41d38e
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x41d398
xor ebx, ebx
mov dword [ebp - 0x14], ebx
jmp 0x41d3a7
mov ebx, dword [edi + 0x1c]
mov eax, 0xffff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
cmp ebx, eax
jae 0x41d3aa
mov dword [ebp - 0x10], ebx
push esi
push 0x404
call fcn.004436ef
mov esi, eax
add esp, 4
test esi, esi
jne 0x41d3d2
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov eax, 4
mov dword [ebp - 0xc], 0xffffffff
cmp ecx, eax
jbe 0x41d4d8
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 0x41d43a
cmp byte [edi + 1], 0
je 0x41d4d8
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 0x41d43d
mov dword [edi + 0x1c], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0x18], ebx
je 0x41d465
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 0x41d460
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x41d48e
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x41d478
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.00444e60
mov eax, dword [ebp - 0x18]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x41d4d8
lea eax, [ebx - 3]
test eax, eax
js 0x41d4c0
mov edi, edi
dec eax
cmp byte [eax + esi], 0x50
jne 0x41d4bc
cmp byte [eax + esi + 1], 0x4b
jne 0x41d4bc
cmp byte [eax + esi + 2], 5
jne 0x41d4bc
cmp byte [eax + esi + 3], 6
je 0x41d4f5
test eax, eax
jns 0x41d4a0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x41d4d8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
cmp eax, ecx
jb 0x41d3f0
push esi
call fcn.004436b7
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.0044448b
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
jmp 0x41d4c3
Function at 0x41e6f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x41e7b1
cmp dword [edi + 4], 0xffffffff
jne 0x41e7b1
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 0x41e720
sub esi, ecx
sar esi, 1
movzx eax, word [edi + esi*2 + 0x242]
cmp eax, 0x5c
je 0x41e74c
cmp eax, 0x2f
je 0x41e74c
mov dword [edi + esi*2 + 0x244], 0x2f
mov esi, dword [ebp + 0x10]
cmp esi, 1
jne 0x41e772
push esi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41e772
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.0041ccd0
add esp, 0x10
test eax, eax
jne 0x41e792
mov eax, dword [ebp + 0x10]
pop esi
pop edi
pop ebp
ret 0xc
push eax
call fcn.0041d5e0
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 0x41f700
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4b42b0]
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 0x41f7a7
push 0x104
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00445657
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f746
sub ecx, edx
sar ecx, 1
je 0x41f786
movzx eax, word [ebp + ecx*2 - 0x20e]
cmp eax, 0x2f
je 0x41f769
cmp eax, 0x5c
jne 0x41f786
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x41f8b5
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 0x41f7a7
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [edi]
test ax, ax
je 0x41f8a5
push esi
mov esi, edi
mov ecx, edi
cmp ax, 0x2f
je 0x41f7c4
cmp ax, 0x5c
jne 0x41f7c6
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x41f7b8
cmp esi, edi
je 0x41f812
sub esi, edi
lea eax, [ebp - 0x20c]
and esi, 0xfffffffe
push esi
push edi
push eax
call fcn.00444e60
add esp, 0xc
cmp esi, 0x208
jae 0x41f8b5
xor eax, eax
mov word [ebp + esi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0041f700
add esp, 8
xor eax, eax
mov word [ebp - 0x414], ax
pop esi
test ebx, ebx
je 0x41f83a
push 0x104
push ebx
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00445657
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 0x41f850
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.00445657
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 0x41f8a5
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.0044448b
mov esp, ebp
pop ebp
ret
call fcn.0044359b
int3
Function at 0x4201a0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a510
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [eax - 0xc]
test eax, eax
je 0x42024d
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea ecx, [ebp - 0x14]
push 0
push 0
push ecx
push 0
push 1
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x420209
mov eax, dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x42024f
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00418220
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
jne 0x420226
push str.invalid_vector_T__subscript
call fcn.00441bba
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
push 0
push 0
push edx
push ecx
push 1
push dword [eax - 0xc]
push eax
call edi
test eax, eax
jne 0x42024d
mov eax, dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x42024f
xor esi, esi
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x420273
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0044448b
mov esp, ebp
pop ebp
ret

Function at 0x4203e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b42b0]
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 0x42042d
call fcn.00425120
mov esi, eax
test esi, esi
jne 0x420461
jmp 0x42042f
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 0x420454
call fcn.00425120
mov esi, eax
jmp 0x420456
xor esi, esi
test edi, edi
je 0x420461
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 0x42047e
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.0044448b
mov esp, ebp
pop ebp
ret
Function at 0x421550
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push eax
call fcn.00421520
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 4]
test eax, eax
setne bl
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x421589
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424080
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ac47
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4b42b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x4240d4
mov dword [edi], 0x48e350
mov dword [edi + 0x60], 0x48078c
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [edi]
lea esi, [edi + 4]
push 0
push esi
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x480814
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00417580
mov eax, dword [edi]
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x48e34c
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00411700
lea eax, [esi + 4]
mov dword [esi], 0x48e304
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x4c], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x45], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov dword [esi + 0x50], 0
mov eax, dword [0x4b6e90]
mov dword [esi + 0x48], eax
mov eax, edi
mov dword [esi + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4