joyce8/EMBER2024-capa huggingface dataset:
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.1021b520
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.1021b520
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.1021b520
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.1021b520
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.1021b520
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.1021b520
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.1021b520
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.1021b520
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.1021b520
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.1021b520
mov ecx, esi
call fcn.1008c14e
mov ecx, esi
call fcn.1021b520
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.1021b520
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.1021b520
mov ecx, esi
call fcn.1008c14e
jmp 0x1008a795
cmp al, 0x42
jne 0x1008a7f9
push 4
lea ecx, [esi + 0x24]
call fcn.1021b520
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.1021b520
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.1021b520
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.1021b520
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.1021b520
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.1021b520
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
Function at 0x100aafbe
Capabilities:
Receive http response

Disassembly:
push 0x70
mov eax, 0x102548f5
call fcn.10236073
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 8]
call fcn.1009eef5
xor ebx, ebx
cmp dword [eax + 0x120], ebx
jne 0x100ab03c
push ebx
push dword [edi + 0x40]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x100ab10e
call dword [sym.imp.kernel32.dll_GetLastError]
push str.WinHttpQueryDataAvaliable
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.100047be
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.100a95c9
add esp, 0xc
push eax
push esi
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.1009f4b3
lea ecx, [ebp - 0x58]
call fcn.10006f54
lea ecx, [ebp - 0x28]
call fcn.10006f54
jmp 0x100ab10e
mov ecx, dword [edi + 8]
call fcn.1009eef5
mov esi, dword [eax + 0x120]
test esi, esi
mov eax, 0x10000
cmove esi, eax
cmp dword [ebp + 0xc], esi
jae 0x100ab070
cmp byte [ebp + 0x10], bl
jne 0x100ab070
push dword [edi + 0x2c]
mov ecx, edi
push dword [edi + 0x28]
call fcn.1009ef6e
jmp 0x100ab10e
lea eax, [ebp - 0x7c]
mov ecx, edi
push eax
call fcn.1009ed4e
push esi
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 2
call fcn.10081fc0
lea ecx, [edi + 0x84]
test eax, eax
jne 0x100ab09d
push esi
call fcn.1021b520
jmp 0x100ab09f
mov dword [ecx], eax
mov eax, dword [edi + 0x84]
test eax, eax
jne 0x100ab0af
mov eax, dword [edi + 0x88]
push ebx
push esi
push eax
push dword [edi + 0x40]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x100ab106
call dword [sym.imp.kernel32.dll_GetLastError]
push 0x10270010
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.100047be
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.100a95c9
add esp, 0xc
push eax
push esi
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.1009f4b3
lea ecx, [ebp - 0x70]
call fcn.10006f54
lea ecx, [ebp - 0x40]
call fcn.10006f54
lea ecx, [ebp - 0x7c]
call fcn.1007f828
call fcn.10236022
ret
Function at 0x100ab9b4
Capabilities:
Encode data using base64

Disassembly:
push 0x10
mov eax, 0x10254a89
call fcn.10236040
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp + 8]
mov dword [edi], ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, dword [ebp + 0x10]
push 3
mov dword [ebp - 4], ecx
pop ecx
mov dword [ebp - 0x1c], 1
cmp eax, ecx
jb 0x100abaab
xor edx, edx
div ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov al, byte [ecx + 1]
mov bl, byte [ecx]
mov bh, byte [ecx + 2]
mov byte [ebp - 0xd], al
mov eax, dword [0x1030d2c0]
movzx ecx, bl
shr ecx, 2
movsx ax, byte [ecx + eax]
mov ecx, edi
movzx eax, ax
push eax
call fcn.1021b520
and bl, 3
shl bl, 4
movzx ecx, bl
mov bl, byte [ebp - 0xd]
movzx eax, bl
shr eax, 4
or ecx, eax
mov eax, dword [0x1030d2c0]
movsx ax, byte [ecx + eax]
mov ecx, edi
movzx eax, ax
push eax
call fcn.1021b520
movzx esi, bh
and bl, 0xf
shl bl, 2
mov eax, esi
shr eax, 6
movzx ecx, bl
or ecx, eax
mov eax, dword [0x1030d2c0]
movsx ax, byte [ecx + eax]
mov ecx, edi
movzx eax, ax
push eax
call fcn.1021b520
mov eax, dword [0x1030d2c0]
and esi, 0x3f
mov ecx, edi
movsx ax, byte [esi + eax]
movzx eax, ax
push eax
call fcn.1021b520
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
sub eax, 3
add ecx, 3
mov dword [ebp + 0x10], eax
sub dword [ebp - 0x18], 1
mov dword [ebp - 0x14], ecx
jne 0x100ab9fe
jmp 0x100abaae
mov ecx, dword [ebp + 0xc]
sub eax, 1
je 0x100abb1b
sub eax, 1
jne 0x100abb68
mov bl, byte [ecx]
mov bh, byte [ecx + 1]
mov eax, dword [0x1030d2c0]
movzx ecx, bl
shr ecx, 2
movsx ax, byte [ecx + eax]
mov ecx, edi
movzx eax, ax
push eax
call fcn.1021b520
and bl, 3
movzx eax, bh
shr eax, 4
shl bl, 4
movzx ecx, bl
or ecx, eax
mov eax, dword [0x1030d2c0]
movsx ax, byte [ecx + eax]
mov ecx, edi
movzx eax, ax
push eax
call fcn.1021b520
mov eax, dword [0x1030d2c0]
and bh, 0xf
shl bh, 2
movzx ecx, bh
movsx ax, byte [ecx + eax]
movzx eax, ax
push eax
jmp 0x100abb58
mov bl, byte [ecx]
mov eax, dword [0x1030d2c0]
movzx ecx, bl
shr ecx, 2
movsx ax, byte [ecx + eax]
mov ecx, edi
movzx eax, ax
push eax
call fcn.1021b520
mov eax, dword [0x1030d2c0]
and bl, 3
shl bl, 4
movzx ecx, bl
movsx ax, byte [ecx + eax]
mov ecx, edi
movzx eax, ax
push eax
call fcn.1021b520
push 0x3d
mov ecx, edi
call fcn.1021b520
push 0x3d
mov ecx, edi
call fcn.1021b520
mov eax, edi
call fcn.1023600e
ret