joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x405a12
pop dword [ebp - 0x50]
mov eax, 0xf32d06ee
sub eax, 0xf2ecacdc
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xb782694d
add dword [ebp - 0x60], 0x96cfdbfe
mov dword [ebp - 0x5c], 0x85852507
sub dword [ebp - 0x5c], 0x5351d8c2
mov dword [ebp - 0x58], 0x6a0bcb67
add dword [ebp - 0x58], 0xe24078c7
mov dword [ebp - 0x54], 0xdc156869
sub dword [ebp - 0x54], 0xdc156869
lea eax, [ebp - 0x60]
push eax
mov eax, 0xbb09b2d2
add eax, 0x4536ce32
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xd54b5970
add dword [ebp - 0x60], 0x9f270fe6
mov dword [ebp - 0x5c], 0xddea0c53
sub dword [ebp - 0x5c], 0x9c7daade
mov dword [ebp - 0x58], 0x6ec179
add dword [ebp - 0x58], 0x6300aaf3
mov dword [ebp - 0x54], 0x743dff33
add dword [ebp - 0x54], 0x8bc200cd
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x37820
push 0
call eax
mov ecx, 0xf14cbc35
sub ecx, 0xf14c7219
mov ebx, eax
mov edi, 0xc6d704e0
add edi, 0x396fdf20
add edi, dword [ebp - 0x50]
mov edx, 0x53d8a6a4
add dword [ebp - 0x30], 0xf07ddc8e
mov esi, dword [edi]
xor dword [ebp - 0x18], esi
xor esi, edx
mov dword [ebp - 0x4c], 0xdf26c9b
mov dword [ebx], esi
sub dword [ebp - 0x1c], ebx
add ebx, 0x905b285b
sub ebx, 0x905b2857
add edi, 0x5e0749e8
sub edi, 0x5e0749e4
loop 0x405b29
add eax, 0x11b43
mov ebx, eax
add eax, 0x9a279bfd
add eax, 0x65d86408
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x10025cf8
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0xd8
mov eax, 0x1023e39b
call fcn.10236073
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc0], esi
test edi, edi
jne 0x10025d26
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
jmp 0x10025de8
xorps xmm0, xmm0
mov dword [ebp - 0xc4], ebx
movups xmmword [ebp - 0xe4], xmm0
movups xmmword [ebp - 0xd4], xmm0
push ebx
push ebx
push 0x10261b60
lea eax, [ebp - 0xe4]
mov dword [ebp - 4], ebx
push eax
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
mov dword [ebp - 0xc0], eax
test eax, eax
js 0x10025df0
lea eax, [ebp - 0xb9]
mov byte [ebp - 0xb9], bl
push eax
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.1000899b
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
sub eax, edi
push ebx
push eax
push edi
push dword [ebp - 0xe4]
mov byte [ebp - 4], 3
call sub.bcrypt.dll_BCryptGenRandom
mov ebx, eax
test ebx, ebx
jns 0x10025dcf
push str.InternalError
lea ecx, [ebp - 0x40]
lfence
call fcn.100047be
push ebx
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push str.BCryptRandomBytes:_BCrypt_Failed_to_generate_random_data____08x
push eax
call fcn.1000d1e8
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
jmp 0x10025e22
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xe4]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esi], edi
mov dword [esi + 8], eax
call fcn.10024f53
mov eax, esi
call fcn.10236022
ret
push str.InternalError
lea ecx, [ebp - 0x28]
lfence
call fcn.100047be
push dword [ebp - 0xc0]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push str.BCryptRandomBytes:_BCrypt_Failed_to_open_random_number_generator_algorithm_provider____08x
push eax
call fcn.1000d1e8
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ecx
push eax
lea ecx, [ebp - 0xb8]
call fcn.100d3840
push 0x102e88c4
lea eax, [ebp - 0xb8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1004d5d2
Capabilities:
Encode data using base64

Disassembly:
push 0x14
mov eax, 0x102488ec
call fcn.10236040
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov esi, dword [ebp + 8]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [ebp + 0x10]
xor edx, edx
push 3
pop ecx
div ecx
mov ecx, esi
mov dword [ebp - 4], ebx
shl eax, 2
push eax
mov dword [ebp - 0x20], 1
call fcn.1004d8ee
mov eax, dword [ebp + 0x10]
mov edi, ebx
mov word [ebp - 0x14], bx
mov byte [ebp - 0x12], bl
test eax, eax
je 0x1004d797
push 3
pop ecx
mov edx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [edx]
mov byte [ebp + edi - 0x14], al
inc edi
mov ah, byte [ebp - 0x12]
inc edx
mov dword [ebp + 0xc], edx
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov byte [ebp - 0x10], ah
mov byte [ebp - 0xe], dl
mov byte [ebp - 0xf], dh
cmp edi, ecx
jne 0x1004d6ba
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
and ah, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], ah
movzx eax, byte [ebp + edi - 0x18]
mov cl, byte [eax + 0x10265c10]
mov eax, dword [esi + 4]
mov byte [ebp - 0xd], cl
cmp eax, dword [esi + 8]
je 0x1004d69d
mov byte [eax], cl
inc dword [esi + 4]
jmp 0x1004d6a9
lea ecx, [ebp - 0xd]
push ecx
push eax
mov ecx, esi
call fcn.1000d3dc
inc edi
cmp edi, 4
jl 0x1004d680
mov dl, byte [ebp - 0xe]
mov edi, ebx
mov dh, byte [ebp - 0xf]
push 3
pop ecx
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x1004d624
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x1004d797
mov eax, edi
cmp edi, ecx
jge 0x1004d6f2
cmp eax, ecx
jae 0x1004d79f
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, ecx
jl 0x1004d6d8
mov ah, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x1004d6f5
mov ah, byte [ebp - 0x10]
mov al, dh
and dh, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, ah
mov byte [ebp - 0x17], dh
shr al, 6
and ah, 0x3f
add dl, al
mov byte [ebp - 0x15], ah
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x1004d763
mov edi, eax
movzx eax, byte [ebp + ebx - 0x18]
mov cl, byte [eax + 0x10265c10]
mov eax, dword [esi + 4]
mov byte [ebp - 0x10], cl
cmp eax, dword [esi + 8]
je 0x1004d74c
mov byte [eax], cl
inc dword [esi + 4]
jmp 0x1004d758
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, esi
call fcn.1000d3dc
inc ebx
cmp ebx, edi
jl 0x1004d72f
mov edi, dword [ebp - 0x1c]
push 3
pop ecx
cmp edi, ecx
jge 0x1004d797
sub ecx, edi
mov byte [ebp - 0x10], 0x3d
mov dword [ebp - 0x1c], ecx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x1004d780
mov byte [eax], 0x3d
inc dword [esi + 4]
jmp 0x1004d78f
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, esi
call fcn.1000d3dc
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
jne 0x1004d770
mov eax, esi
call fcn.1023600e
ret
call fcn.100d3840
int3
Function at 0x1004d9b7
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1024896e
call fcn.10236040
mov edi, ecx
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.1004da61
pop ecx
pop ecx
xor ecx, ecx
mov ebx, dword [eax]
mov dword [eax], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x10], ecx
je 0x1004d9f1
push dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
call fcn.1004db4d
xor ecx, ecx
lea esi, [edi + 4]
push esi
push ecx
push ebx
push 0x1004d960
push ecx
push ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x1004da15
call fcn.1023600e
ret 4
and dword [esi], 0
push 6
call sub.msvcp140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x1004e90d
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x10248cc4
call fcn.10236040
mov edi, ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.1004e97b
xor ecx, ecx
add esp, 0xc
mov ebx, dword [eax]
mov dword [eax], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x10], ecx
je 0x1004e94c
push 8
push dword [ebp - 0x10]
call fcn.100d3840
pop ecx
pop ecx
xor ecx, ecx
lea esi, [edi + 4]
push esi
push ecx
push ebx
push 0x1004e8b0
push ecx
push ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x1004e970
call fcn.1023600e
ret 8
and dword [esi], 0
push 6
call sub.msvcp140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x10051588
Capabilities:
Move file

Disassembly:
push 0x34
mov eax, 0x10249546
call fcn.10236073
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10056d14
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.10056d14
add esp, 0x10
cmp dword [edi + 0x14], 8
jb 0x100515bf
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x100515c7
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.100486a0
lea ecx, [ebp - 0x40]
call fcn.100486a0
mov eax, esi
call fcn.10236022
ret
Function at 0x10056039
Capabilities:
Create directory

Disassembly:
push 0x48
mov eax, 0x1024a109
call fcn.10236073
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x10], ebx
jne 0x10056056
xor al, al
jmp 0x10056158
push ebx
push ebx
push closesocket
call fcn.10058333
movzx eax, al
push eax
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.10058b2c
add esp, 0x18
push 0xf
pop eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x28], bl
mov ebx, dword [ebp - 0x50]
or esi, 0xffffffff
mov edi, dword [ebp - 0x54]
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x10056105
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x100560a0
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.100d3840
call fcn.10058336
mov esi, eax
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.100d3840
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10056d14
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x100560db
mov eax, dword [eax]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
pop ecx
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.100486a0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor ecx, ecx
cmp dword [eax], 0x11
cmove esi, ecx
add edi, 0x18
cmp edi, ebx
jne 0x10056096
mov eax, dword [ebp - 0x14]
cmp esi, 0xffffffff
setne bl
cmp eax, 0x10
jb 0x1005613f
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
cmp eax, 0x1000
jb 0x10056136
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10006a87
mov eax, dword [ebp - 0x44]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.100d3840
pop ecx
pop ecx
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10006f1c
mov al, bl
call fcn.10236022
ret
Function at 0x1005dfa4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x14
mov eax, 0x1024b354
call fcn.10236040
xor esi, esi
mov dword [ebp - 0x18], esi
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 4], esi
call fcn.1005dc9b
pop ecx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], 1
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x10256524]
mov ecx, edi
call esi
neg eax
sbb ecx, ecx
mov eax, dword [ebx]
neg ecx
mov dword [eax + 0x6c], ecx
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x10256524]
mov ecx, edi
call esi
mov ecx, dword [ebx]
push eax
call fcn.100d3840
mov eax, dword [ebx]
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x1005e00f
mov ecx, dword [eax]
mov dword [eax + 0x68], ecx
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10256524]
mov ecx, edi
call esi
mov ecx, dword [ebx]
push eax
add ecx, 0x18
call fcn.100d3840
mov ecx, dword [ebx]
lea eax, [ecx + 0x18]
cmp dword [eax + 0x14], 0x10
jb 0x1005e03b
mov eax, dword [eax]
mov dword [ecx + 0x70], eax
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x10256524]
mov ecx, edi
call esi
mov ecx, dword [ebx]
add ecx, 0x30
cmp ecx, eax
je 0x1005e065
push dword [ebp - 0x10]
push dword [eax + 4]
push dword [eax]
call fcn.1000895e
mov edx, dword [ebx]
mov eax, dword [edx + 0x34]
sub eax, dword [edx + 0x30]
mov dword [edx + 0x78], eax
and dword [edx + 0x7c], 0
mov edx, dword [ebx]
mov eax, dword [edx + 0x30]
mov dword [edx + 0x80], eax
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x10256524]
mov ecx, edi
call esi
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
jmp 0x1005e0c4
mov ecx, dword [ebx]
lea esi, [eax + 0x10]
push esi
lea eax, [ebp - 0x20]
add ecx, 0x3c
push eax
call fcn.1005dae3
mov ecx, dword [eax]
lea eax, [esi + 0x18]
push eax
add ecx, 0x20
call fcn.100d3840
lea ecx, [ebp - 0x10]
call fcn.100059e8
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xd], 0
je 0x1005e099
mov edi, dword [ebx]
mov edi, dword [edi + 0x40]
mov esi, dword [edi]
jmp 0x1005e101
lea eax, [esi + 8]
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x1005e0e0
mov ecx, dword [eax]
add eax, 0x18
mov dword [ebp - 0x14], ecx
cmp dword [eax + 0x14], 0x10
jb 0x1005e0ee
mov eax, dword [eax]
mov ecx, dword [ebx]
mov dword [ebp - 0x10], eax
add ecx, 0x5c
lea eax, [ebp - 0x14]
push eax
call fcn.1005dc70
mov esi, dword [esi]
cmp esi, edi
jne 0x1005e0d3
mov edx, dword [ebx]
mov eax, ebx
mov ecx, dword [edx + 0x60]
sub ecx, dword [edx + 0x5c]
sar ecx, 3
mov dword [edx + 0x88], ecx
and dword [edx + 0x8c], 0
mov edx, dword [ebx]
mov ecx, dword [edx + 0x5c]
mov dword [edx + 0x90], ecx
call fcn.1023600e
ret
Function at 0x1008a73f
Capabilities:
Parse credit card information

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x1008a79f
mov ebp, 0x10000000
cmp eax, 0x7c
je 0x1008a79f
cmp eax, 0x29
jne 0x1008a7a5
cmp dword [esi + 0x10], 0
jne 0x1008a79f
test dword [esi + 0x50], ebp
je 0x1008a89d
cmp eax, 0x5d
jne 0x1008a77a
test dword [esi + 0x50], ebp
je 0x1008a891
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.100d3840
mov ecx, esi
call fcn.1008c14e
mov ecx, esi
call fcn.100d3840
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x1008a753
pop esi
pop ebp
mov al, cl
pop ebx
ret
cmp eax, 0x2e
jne 0x1008a7b6
push 5
lea ecx, [esi + 0x24]
call fcn.100d3840
jmp 0x1008a787
cmp eax, 0x5c
jne 0x1008a802
mov ecx, esi
call fcn.1008c14e
test byte [esi + 0x50], 0x80
je 0x1008a7f9
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x1008a7e2
push 4
lea ecx, [esi + 0x24]
call fcn.100d3840
mov ecx, esi
call fcn.1008c14e
jmp 0x1008a795
cmp al, 0x42
jne 0x1008a7f9
push 4
lea ecx, [esi + 0x24]
call fcn.100d3840
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x1008a7d9
mov ecx, esi
call fcn.1008a8a7
jmp 0x1008a78e
cmp eax, 0x5b
jne 0x1008a825
mov ecx, esi
call fcn.1008c14e
mov ecx, esi
call fcn.1008acb8
push 4
push 0x5d
mov ecx, esi
call fcn.1008b9b0
jmp 0x1008a78e
cmp eax, 0x28
jne 0x1008a852
mov ecx, esi
call fcn.1008c14e
mov ecx, esi
call fcn.1008c604
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.1008b9b0
test bl, bl
je 0x1008a795
jmp 0x1008a78e
cmp eax, 0x5e
jne 0x1008a85e
push 2
jmp 0x1008a7d1
cmp eax, 0x24
jne 0x1008a86a
push 3
jmp 0x1008a7d1
cmp eax, 0x2a
je 0x1008a895
cmp eax, 0x2b
je 0x1008a895
cmp eax, 0x3f
je 0x1008a895
cmp eax, 0x7b
je 0x1008a895
cmp eax, 0x7d
jne 0x1008a76c
test dword [esi + 0x50], ebp
je 0x1008a899
jmp 0x1008a77a
push 4
jmp 0x1008a89f
push 0xa
jmp 0x1008a89f
push 6
jmp 0x1008a89f
push 5
mov ecx, esi
call fcn.1008b97e
int3
Function at 0x10090c06
Capabilities:
Create directory

Disassembly:
push 0x40
mov eax, 0x1024e320
call fcn.10236073
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x10], ebx
jne 0x10090c23
xor al, al
jmp 0x10090d19
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10090c2d
mov eax, dword [esi]
push ebx
push eax
call fcn.1009243b
pop ecx
pop ecx
test al, al
je 0x10090c41
mov al, 1
jmp 0x10090d19
or edi, 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x10090c4c
mov esi, dword [esi]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0x44]
mov dword [ebp - 4], ebx
push eax
push dword [0x1030cb00]
mov dword [ebp - 0x44], ebx
push esi
jmp 0x10090ccb
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.100d3840
mov esi, dword [0x1030cb00]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.100d3840
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10056d14
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x10090cae
mov eax, dword [eax]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
pop ecx
lea ecx, [ebp - 0x40]
mov edi, eax
call fcn.100486a0
lea eax, [ebp - 0x44]
push eax
push dword [0x1030cb00]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10090c6f
mov eax, dword [ebp - 0x14]
cmp edi, 0xffffffff
setne bl
cmp eax, 0x10
jb 0x10090d17
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
cmp eax, 0x1000
jb 0x10090d0e
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.10006a87
mov eax, dword [ebp - 0x48]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4c]
push eax
push ecx
call fcn.100d3840
pop ecx
pop ecx
mov al, bl
call fcn.10236022
ret

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

Disassembly:
push 0x34
mov eax, 0x10238bcc
call fcn.10236073
mov eax, dword [ebp + 8]
test eax, eax
je 0x1009249d
push eax
lea ecx, [ebp - 0x28]
call fcn.100047be
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10056d14
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x10092472
mov eax, dword [eax]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x40]
mov ebx, eax
call fcn.100486a0
lea ecx, [ebp - 0x28]
call fcn.10006f54
cmp ebx, 0xffffffff
je 0x1009249d
shr ebx, 4
and bl, 1
or bl, byte [ebp + 0xc]
mov al, bl
jmp 0x1009249f
xor al, al
call fcn.10236022
ret
Function at 0x1009d625
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x18
mov eax, 0x10252f3c
call fcn.10236040
mov edi, ecx
mov eax, dword [edi]
push 0x18
cmp eax, dword [edi + 4]
jne 0x1009d659
call fcn.100d3840
pop ecx
mov ecx, eax
mov eax, dword [ebp + 8]
and dword [ecx], 0
and dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov dword [eax], ecx
jmp 0x1009d6ae
call fcn.100d3840
pop ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
and dword [ebp - 4], 0
shr ecx, 1
push ecx
push dword [edi]
mov ecx, eax
call fcn.1009d3ed
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
cmp dword [ebx + 0x14], 8
mov dword [ebp - 4], 1
jb 0x1009d690
mov eax, dword [ebx]
push 0
push ecx
push eax
call sub.CRYPT32.dll_CryptUnprotectMemory
test eax, eax
je 0x1009d6b6
push 0
push dword [edi + 0xc]
mov ecx, ebx
call fcn.1009c775
mov eax, dword [ebp + 8]
mov dword [eax], ebx
call fcn.1023600e
ret 4
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.1009d5d3
pop ecx
pop ecx
push 0x10300cbc
lea eax, [ebp - 0x24]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x100a06e2
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
mov ebp, closesocket
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, ebp
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x100a06fa
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, ebp
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x100a073b
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, ebp
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebp
pop ebx
ret

Function at 0x100a07a8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x100a07b1
pop esi
ret