joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10051eb0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x18]
test esi, esi
jg 0x10051ed1
jl 0x10051ec8
test edi, edi
jne 0x10051ed1
xor eax, eax
xor edx, edx
jmp 0x10051f9b
cmp dword [ebp + 0x38], 0
je 0x10051ee8
push esi
push edi
push dword [esp + 0x1c]
call dword [sym.imp.msvcp140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x10051f9b
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10051f2c
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x10051f2c
cmp dword [eax], edi
mov esi, edi
mov ebx, dword [esp + 0x18]
cmovb esi, dword [eax]
push esi
push ecx
push ebx
call fcn.100070bd
mov eax, dword [ebp + 0x2c]
add ebx, esi
mov dword [esp + 0x1c], ebx
add esp, 0xc
mov ebx, edi
sub ebx, esi
sub dword [eax], esi
mov eax, dword [ebp + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x20]
jmp 0x10051f34
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x4c], 0
mov ecx, ebx
je 0x10051f91
mov ecx, ebp
call fcn.10051791
mov edx, dword [esp + 0x10]
mov ecx, ebx
jmp 0x10051f70
push dword [ebp + 0x4c]
push eax
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [esp + 0x20]
sub ebx, eax
add edx, eax
add esp, 0x10
mov dword [esp + 0x10], edx
mov ecx, ebx
cmp eax, 0xfff
jne 0x10051fa2
mov eax, 0xfff
cmp ebx, eax
ja 0x10051f4b
test ecx, ecx
je 0x10051f91
push dword [ebp + 0x4c]
push ebx
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, ebx
add esp, 0x10
sub ecx, eax
sub edi, ecx
sbb esi, 0
mov eax, edi
mov edx, esi
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
sub edi, ebx
jmp 0x10051f93
Function at 0x10051fb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10051fd3
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.msvcp140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x10052083
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x20]
mov ecx, dword [eax]
mov dword [esp + 0x10], esi
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x18], edi
test ecx, ecx
je 0x10051ff6
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10051ff8
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x10], eax
test edi, edi
jl 0x10052074
jg 0x1005200b
test esi, esi
je 0x10052074
test eax, eax
jl 0x10052055
jg 0x10052015
test ebp, ebp
je 0x10052055
cmp edi, eax
jg 0x10052025
jl 0x1005201f
cmp esi, ebp
jae 0x10052025
mov ebp, esi
mov dword [esp + 0x10], edi
push ebp
push dword [esp + 0x24]
push ecx
call fcn.100070bd
mov eax, dword [ebx + 0x30]
add esp, 0xc
sub esi, ebp
sbb edi, dword [esp + 0x10]
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
mov eax, dword [esp + 0x20]
add eax, ebp
test edi, edi
jl 0x10052074
jg 0x10052059
test esi, esi
je 0x10052074
jmp 0x10052059
mov eax, dword [esp + 0x20]
cmp dword [ebx + 0x4c], 0
je 0x10052074
push dword [ebx + 0x4c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
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.1014ecdb
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.1014ecdb
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.1014ecdb
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 0x10057580
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 0x10]
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
push edi
mov dword [esi], eax
mov ecx, dword [ecx]
cmp ecx, dword [esp + 0x28]
je 0x100576e6
mov eax, ecx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x34]
xor ebx, ebx
inc ebx
mov ebp, 0x3ff
mov ecx, eax
cmp dword [esi], edx
je 0x100576e6
mov edx, dword [esp + 0x20]
movzx ecx, word [eax]
mov eax, ecx
mov byte [esp + 0x13], 0
movzx edx, word [edx]
cmp bx, dx
jae 0x10057607
lea eax, [ecx + 0x2400]
cmp ax, bp
ja 0x100576f9
mov eax, edx
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
mov cl, byte [esp + 0x13]
cmp ebx, 0x80
jae 0x10057625
mov dl, bl
xor edi, edi
jmp 0x10057655
mov ebx, eax
lea eax, [ecx + 0x2800]
cmp ax, bp
ja 0x100575f5
add ebx, 0xffff2840
mov cl, 1
shl ebx, 0xa
mov byte [esp + 0x13], cl
jmp 0x100575f9
mov edx, ebx
cmp ebx, 0x800
jae 0x1005763a
shr edx, 6
xor edi, edi
or dl, 0xc0
inc edi
jmp 0x10057655
cmp ebx, 0x10000
jae 0x1005764c
shr edx, 0xc
or dl, 0xe0
push 2
jmp 0x10057654
shr edx, 0x12
or dl, 0xf0
push 3
pop edi
movzx eax, cl
mov ecx, dword [esp + 0x14]
xor eax, 1
add eax, eax
cmp edi, 3
cmovb eax, edi
mov dword [esp + 0x18], eax
lea ebp, [eax + 1]
mov eax, dword [esp + 0x34]
sub eax, dword [esi]
cmp eax, ebp
jl 0x100576e6
mov eax, ecx
mov ecx, dword [esp + 0x2c]
add eax, 2
cmp byte [esp + 0x13], 0
mov dword [ecx], eax
jne 0x1005768f
cmp edi, 3
jae 0x10057699
mov eax, dword [esi]
mov ebp, dword [esp + 0x18]
mov byte [eax], dl
inc dword [esi]
test ebp, ebp
je 0x100576b8
imul ecx, edi, 6
mov eax, dword [esi]
sub ecx, 6
mov edx, ebx
dec ebp
shr edx, cl
and dl, 0x3f
or dl, 0x80
mov byte [eax], dl
inc dword [esi]
test ebp, ebp
jg 0x100576a0
xor ecx, ecx
shr ebx, 0xa
inc ecx
movzx eax, bx
cmp byte [esp + 0x13], 0
cmovne ecx, eax
mov eax, dword [esp + 0x20]
mov word [eax], cx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, ecx
mov dword [esp + 0x14], eax
cmp ecx, dword [esp + 0x28]
jne 0x100575ad
xor eax, eax
cmp dword [esp + 0x24], ecx
sete al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x1c
push 2
pop eax
jmp 0x100576ef
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.1014ecdb
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.1014ecdb
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.1014ecdb
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.1014ecdb
mov ecx, esi
call fcn.1008c14e
mov ecx, esi
call fcn.1014ecdb
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.1014ecdb
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.1014ecdb
mov ecx, esi
call fcn.1008c14e
jmp 0x1008a795
cmp al, 0x42
jne 0x1008a7f9
push 4
lea ecx, [esi + 0x24]
call fcn.1014ecdb
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.1014ecdb
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.1014ecdb
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.1014ecdb
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.1014ecdb
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.1014ecdb
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 0x100a6749
Capabilities:
Hash data via bcrypt

Disassembly:
push 0x50
mov eax, 0x10254121
call fcn.10236073
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
push eax
xor ebx, ebx
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x40]
mov dword [ebp - 0x50], ecx
inc ebx
mov dword [ebp - 0x58], ecx
push eax
mov dword [ebp - 0x54], ebx
call fcn.100a0eb9
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push esi
push eax
call fcn.100a0eb9
add esp, 0x10
push 8
xor esi, esi
mov byte [ebp - 4], 2
push esi
push 0x102619e4
lea eax, [ebp - 0x48]
push eax
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
js 0x100a682e
push esi
lea eax, [ebp - 0x58]
push eax
push 4
lea eax, [ebp - 0x50]
push eax
push str.HashDigestLength
push dword [ebp - 0x48]
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
js 0x100a682e
lea eax, [ebp - 0x49]
mov ecx, edi
push eax
push dword [ebp - 0x50]
call fcn.1000cc42
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push esi
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
push esi
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x48]
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
js 0x100a682e
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x44]
call sub.bcrypt.dll_BCryptHashData
test eax, eax
js 0x100a682e
push esi
push dword [ebp - 0x50]
push dword [edi]
push dword [ebp - 0x44]
call sub.bcrypt.dll_BCryptFinishHash
cmp dword [ebp - 0x44], esi
je 0x100a683b
push dword [ebp - 0x44]
call sub.bcrypt.dll_BCryptDestroyHash
cmp dword [ebp - 0x48], esi
je 0x100a6849
push esi
push dword [ebp - 0x48]
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
lea ecx, [ebp - 0x28]
call fcn.10006f54
lea ecx, [ebp - 0x40]
call fcn.10006f54
mov eax, edi
call fcn.10236022
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.1014ecdb
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