joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010402d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x101631e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
xor edi, edi
cmp dword [eax + 0x254], edi
je 0x10104089
cmp dword [eax + 0x264], edi
je 0x1010416f
cmp byte [0x1079d9e8], 0
push eax
push dword [eax + 0x250]
je 0x10104076
call dword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x1010407c
call dword [sym.imp.kernel32.dll_FindNextFileA]
mov ecx, dword [esi]
mov dword [ecx + 0x264], eax
jmp 0x1010416f
mov eax, dword [eax + 0x25c]
cmp eax, edi
je 0x10104209
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy]
mov eax, dword [esi]
pop ecx
pop ecx
cmp dword [eax + 0x260], edi
je 0x101040d5
lea eax, [ebp - 0x234]
push eax
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov eax, dword [esi]
push dword [eax + 0x260]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCR100.dll_wcscat]
add esp, 0xc
mov eax, dword [esi]
mov cl, byte [eax + 0x268]
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, 0xffffff90
sub ecx, 0xffffff80
mov dword [eax], ecx
cmp byte [0x1079d9e8], 0
je 0x10104109
push dword [esi]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
jmp 0x1010412b
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x234]
push eax
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
push dword [esi]
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ecx, dword [esi]
mov dword [ecx + 0x250], eax
mov eax, dword [esi]
xor ecx, ecx
cmp dword [eax + 0x250], 0xffffffff
setne cl
mov dword [eax + 0x264], ecx
mov eax, dword [esi]
cmp dword [eax + 0x264], edi
jne 0x10104157
mov dword [eax + 0x250], edi
mov ecx, dword [esi]
xor eax, eax
inc eax
mov dword [ecx + 0x254], eax
mov ecx, dword [esi]
cmp dword [ecx + 0x264], edi
jne 0x1010416f
mov dword [esi + 4], eax
mov eax, dword [esi]
cmp dword [eax + 0x264], edi
je 0x10104191
cmp byte [0x1079d9e8], 0
jne 0x10104191
push dword [eax + 0x258]
add eax, 0x2c
push eax
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [eax + 0x26c], ecx
mov edx, dword [esi]
mov ebx, dword [edx + 0x26c]
mov ecx, ebx
shr ecx, 4
and ecx, 1
je 0x101041c6
push esi
xor ecx, ecx
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
cmp word [eax], 0x2e
je 0x101041cf
test byte [edx + 0x268], 3
jne 0x101041d2
jmp 0x101041cf
test byte [edx + 0x268], 1
je 0x101041d2
xor ecx, ecx
inc ecx
cmp dword [edx + 0x264], edi
je 0x101041eb
cmp ecx, edi
jne 0x10104046
test bl, 2
jne 0x10104046
mov eax, edx
xor ecx, ecx
cmp dword [eax + 0x264], edi
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10113450
leave
ret 4
xor al, al
jmp 0x101041f8
Function at 0x10113450
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101631e0]
jne 0x1011345a
repz ret
jmp fcn.10113f88
Function at 0x10020ad0
Capabilities:
Get geographical location

Disassembly:
push 0x9c
mov eax, 0x100d580a
call fcn.100d393a
mov ebx, ecx
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x2c]
and dword [ebp - 4], 0
xor eax, eax
push 6
pop ecx
rep stosd dword es:[edi], eax
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xa8], ebx
call fcn.1005f6e2
push 8
pop ecx
xor eax, eax
mov byte [ebp - 4], 1
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x64]
call fcn.1005f1c6
and dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.10062ea0
mov edi, eax
mov dword [ebp - 0xa4], edi
cmp dword [esi + 0x14], 0x10
mov ecx, esi
mov byte [ebp - 4], 4
jb 0x10020b48
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x44]
mov esi, dword [edi]
add eax, ecx
push edx
lea edx, [ebp - 0x2c]
push edx
mov esi, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call dword [0x101097a0]
mov ecx, edi
call esi
test al, al
je 0x10020cf0
push str.userId
lea ecx, [ebp - 0x2c]
call fcn.10042e1e
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.10061230
push eax
lea ecx, [ebx + 4]
call fcn.10042e1e
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 5
call fcn.10042e1e
push str.firstName
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.10042e1e
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.10061230
push eax
lea ecx, [ebx + 0x1c]
call fcn.10042e1e
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.10042e1e
push str.lastName
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.10042e1e
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.10061230
push eax
lea ecx, [ebx + 0x34]
call fcn.10042e1e
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 7
call fcn.10042e1e
push str.email
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.10042e1e
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.10061230
push eax
lea ecx, [ebx + 0x4c]
call fcn.10042e1e
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 8
call fcn.10042e1e
push str.countryCode
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.10042e1e
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.10061230
push eax
lea ecx, [ebx + 0x64]
call fcn.10042e1e
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.10042e1e
push str.displayName
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.10042e1e
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.10061230
push eax
lea ecx, [ebx + 0x7c]
call fcn.10042e1e
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xa
call fcn.10042e1e
push str.accountType
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.10042e1e
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.10061230
push eax
lea ecx, [ebx + 0x94]
call fcn.10042e1e
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xb
call fcn.10042e1e
push edi
lea ecx, [ebp - 0xa4]
call fcn.10042e1e
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xc
call fcn.10042e1e
lea ecx, [ebp - 0x64]
call fcn.1005fa6d
lea ecx, [ebp - 0x2c]
call fcn.1005fbb2
call fcn.100d3887
ret 4
Function at 0x1002ec5b
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x100d7cc9
call fcn.100d38cc
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x1002ed6b
cmp byte [edi + 0x3d], bl
je 0x1002ed6b
mov eax, dword [edi]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x101097a0]
mov ecx, edi
call esi
cmp eax, 0xffffffff
jne 0x1002ec9c
xor al, al
jmp 0x1002ed6d
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.10042e1e
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x14]
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x38]
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x1002ecf5
sub eax, 1
je 0x1002ecf8
dec eax
sub eax, 1
jne 0x1002ed58
inc eax
jmp 0x1002ed56
mov byte [edi + 0x3d], bl
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edx, dword [ebp - 0x2c]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x30], edx
je 0x1002ed34
push dword [edi + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, dword [ebp - 0x30]
add esp, 0x10
cmp edx, eax
jne 0x1002ed54
mov esi, dword [ebp - 0x14]
cmp byte [edi + 0x3d], 0
je 0x1002ed52
test edx, edx
jne 0x1002ecba
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.10042e1e
jmp 0x1002ecb7
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 4
call fcn.10042e1e
mov al, bl
jmp 0x1002ed6d
mov al, 1
call fcn.100d3876
ret
Function at 0x100313c0
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x100d800a
call fcn.100d38cc
mov edi, ecx
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
cmp ebx, esi
jne 0x100313df
xor eax, eax
jmp 0x10031537
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x10031408
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x10031408
dec dword [edx]
mov eax, ebx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x10031537
cmp dword [edi + 0x4c], 0
je 0x10031535
mov ecx, edi
call fcn.1002fa2d
xor eax, eax
cmp dword [edi + 0x38], eax
jne 0x10031439
push dword [edi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, esi
pop ecx
pop ecx
cmovne esi, ebx
jmp 0x10031535
push eax
push 8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], al
call fcn.10042e1e
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x38]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x11]
push eax
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x10031526
cmp eax, 1
jg 0x1003150c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x10
mov ebx, dword [ebp - 0x30]
cmovae eax, edx
sub ebx, eax
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp + 8]
je 0x100314db
push dword [edi + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
push dword [ebp - 0x38]
cmovae eax, edx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, dword [ebp - 0x38]
add esp, 0x10
cmp ecx, eax
jne 0x10031526
jmp 0x100314de
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x11]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x34], eax
jne 0x10031508
test ecx, ecx
jne 0x10031458
cmp dword [ebp - 0x1c], 0x20
jae 0x10031526
push ecx
push 8
lea ecx, [ebp - 0x2c]
call fcn.10042e1e
jmp 0x10031458
mov esi, ebx
jmp 0x10031526
cmp eax, 3
jne 0x10031526
push dword [edi + 0x4c]
movsx eax, byte [ebp - 0x11]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, esi
pop ecx
pop ecx
cmovne esi, ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 5
call fcn.10042e1e
mov eax, esi
call fcn.100d3876
ret 4
Function at 0x1004057c
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d68f8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x101aea5c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xf4]
cmp dword [ecx], 0
je 0x100405b3
push dword [ecx]
call fcn.10042e1e
and dword [ebp - 4], 0
lea ecx, [esi + 0xdc]
call fcn.10042e1e
lea ecx, [esi + 0xc4]
mov dword [ebp - 4], 1
call fcn.10042e1e
lea ecx, [esi + 0xac]
mov dword [ebp - 4], 2
call fcn.10042e1e
lea ecx, [esi + 0x94]
mov dword [ebp - 4], 3
call fcn.10042e1e
lea ecx, [esi + 0x7c]
mov dword [ebp - 4], 4
call fcn.10042e1e
lea ecx, [esi + 0x64]
mov dword [ebp - 4], 5
call fcn.10042e1e
lea ecx, [esi + 0x4c]
mov dword [ebp - 4], 6
call fcn.10042e1e
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 7
call fcn.10042e1e
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 8
call fcn.10042e1e
mov ecx, esi
mov dword [ebp - 4], 9
call fcn.10042e1e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x1004d5d7
Capabilities:
Encode data using base64

Disassembly:
push 0x14
mov eax, 0x100dca8a
call fcn.100d3898
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
mov eax, dword [ebp + 0x10]
mov edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], 1
test eax, eax
je 0x1004d75e
push 3
pop esi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
mov byte [ebp + edi - 0x14], al
inc edi
mov dl, byte [ebp - 0x13]
inc ecx
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp edi, esi
jne 0x1004d6a7
mov esi, dword [ebp + 8]
mov al, cl
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, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
cmp dword [0x101a175c], 0x10
mov ecx, 0x101a1748
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x101a1748]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.10042e1e
inc edi
cmp edi, 4
jl 0x1004d66f
mov dl, byte [ebp - 0xd]
mov edi, ebx
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
push 3
pop esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x1004d611
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x1004d75e
mov eax, edi
cmp edi, esi
jge 0x1004d6dd
cmp eax, esi
jae 0x1004d769
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x1004d6c5
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x1004d749
mov esi, dword [ebp + 8]
mov edi, eax
cmp dword [0x101a175c], 0x10
mov ecx, 0x101a1748
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x101a1748]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.10042e1e
inc ebx
cmp ebx, edi
jl 0x1004d71a
mov edi, dword [ebp - 0x1c]
push 3
pop esi
cmp edi, esi
jge 0x1004d75e
sub esi, edi
mov ecx, dword [ebp + 8]
push 0x3d
call fcn.10042e1e
sub esi, 1
jne 0x1004d74f
mov eax, dword [ebp + 8]
call fcn.100d3861
ret 0xc
call fcn.10042e1e
int3
Function at 0x1004e1c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
mov dword [edi], eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x10]
je 0x1004e311
mov eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x1c]
xor ebx, ebx
inc ebx
mov esi, 0x3ff
mov ecx, eax
cmp dword [edi], edx
je 0x1004e311
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx edx, word [edx]
cmp bx, dx
jae 0x1004e23f
lea eax, [ecx + 0x2400]
cmp ax, si
ja 0x1004e320
mov eax, edx
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
mov cl, byte [ebp - 1]
cmp ebx, 0x80
jae 0x1004e25c
mov dl, bl
xor eax, eax
jmp 0x1004e28c
mov ebx, eax
lea eax, [ecx + 0x2800]
cmp ax, si
ja 0x1004e22e
add ebx, 0xffff2840
mov cl, 1
shl ebx, 0xa
mov byte [ebp - 1], cl
jmp 0x1004e231
mov edx, ebx
cmp ebx, 0x800
jae 0x1004e271
shr edx, 6
xor eax, eax
or dl, 0xc0
inc eax
jmp 0x1004e28c
cmp ebx, 0x10000
jae 0x1004e283
shr edx, 0xc
or dl, 0xe0
push 2
jmp 0x1004e28b
shr edx, 0x12
or dl, 0xf0
push 3
pop eax
movzx esi, cl
mov ecx, dword [ebp - 0xc]
xor esi, 1
add esi, esi
mov dword [ebp - 8], eax
cmp eax, 3
cmovb esi, eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [edi]
inc esi
cmp eax, esi
jl 0x1004e311
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp - 1], 0
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
jne 0x1004e2c2
cmp ecx, 3
jae 0x1004e2c9
mov eax, dword [edi]
mov byte [eax], dl
inc dword [edi]
dec esi
test esi, esi
jle 0x1004e2e8
imul ecx, ecx, 6
mov eax, dword [edi]
sub ecx, 6
mov edx, ebx
dec esi
shr edx, cl
and dl, 0x3f
or dl, 0x80
mov byte [eax], dl
inc dword [edi]
test esi, esi
jg 0x1004e2d0
xor ecx, ecx
shr ebx, 0xa
inc ecx
movzx eax, bx
cmp byte [ebp - 1], 0
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 0xc], eax
cmp ecx, dword [ebp + 0x10]
jne 0x1004e1e9
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x1004e319
Function at 0x1004fa08
Capabilities:
Set http header

Disassembly:
push 0x4c
mov eax, 0x100dcd73
call fcn.100d38cc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, dword [edi]
mov edi, dword [edi + 4]
jmp 0x1004fabb
push 0x10118f18
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.1004f6b4
add esp, 0xc
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
push ecx
mov ecx, eax
call fcn.10042e1e
push eax
lea ecx, [ebp - 0x40]
call fcn.10042e1e
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.10042e1e
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10042e1e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
pop ecx
push 0x20000000
push 0xffffffffffffffff
push eax
push dword [ebx]
call dword [sym.imp.winhttp.dll_WinHttpAddRequestHeaders]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.10042e1e
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 6
call fcn.10042e1e
or dword [ebp - 4], 0xffffffff
add esi, 0x30
cmp esi, edi
jne 0x1004fa24
mov al, 1
call fcn.100d3876
ret
Function at 0x10066060
Capabilities:
Check mutex on windows

Disassembly:
push 0
mov eax, 0x100dfe8d
call fcn.100d3898
mov esi, ecx
mov eax, dword [esi]
xor edi, edi
mov dword [ebp - 4], edi
test eax, eax
jne 0x100660b4
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push edi
push edi
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x100660b4
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 5
jne 0x100660b4
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push edi
push edi
call dword [sym.imp.kernel32.dll_OpenMutexW]
mov dword [esi], eax
cmp dword [esi], edi
setne bl
lea ecx, [ebp + 8]
mov dword [ebp - 4], 1
call fcn.10042e1e
mov al, bl
call fcn.100d3861
ret 0x18

Function at 0x1006697b
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x100d7cc9
call fcn.100d38cc
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x10066a94
cmp byte [edi + 0x3e], bl
je 0x10066a94
mov eax, dword [edi]
mov ecx, 0xffff
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x101097a0]
mov ecx, edi
call esi
mov ecx, 0xffff
cmp cx, ax
jne 0x100669c5
xor al, al
jmp 0x10066a96
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.10042e1e
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x14]
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x38]
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_unsigned_short_int__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x10066a1e
sub eax, 1
je 0x10066a21
dec eax
sub eax, 1
jne 0x10066a81
inc eax
jmp 0x10066a7f
mov byte [edi + 0x3e], bl
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edx, dword [ebp - 0x2c]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x30], edx
je 0x10066a5d
push dword [edi + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, dword [ebp - 0x30]
add esp, 0x10
cmp edx, eax
jne 0x10066a7d
mov esi, dword [ebp - 0x14]
cmp byte [edi + 0x3e], 0
je 0x10066a7b
test edx, edx
jne 0x100669e3
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.10042e1e
jmp 0x100669e0
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 4
call fcn.10042e1e
mov al, bl
jmp 0x10066a96
mov al, 1
call fcn.100d3876
ret
Function at 0x1006a220
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x100d800a
call fcn.100d38cc
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, 0xffff
cmp si, bx
jne 0x1006a242
xor eax, eax
jmp 0x1006a3ae
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x1006a26e
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x1006a26e
dec dword [edx]
mov ax, bx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x1006a3ae
cmp dword [edi + 0x4c], 0
je 0x1006a3ab
mov ecx, edi
call fcn.1006a175
xor eax, eax
cmp dword [edi + 0x38], eax
jne 0x1006a2a3
push dword [edi + 0x4c]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
pop ecx
pop ecx
cmp ax, si
je 0x1006a3ab
movzx esi, bx
jmp 0x1006a3ab
push eax
push 8
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x14], bx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], al
call fcn.10042e1e
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x38]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_unsigned_short_int__char__struct__Mbstatet_::out_struct__Mbstatet___unsigned_short_int_const___unsigned_short_int_const___unsigned_short_int_const____char___char___char___const]
test eax, eax
js 0x1006a39c
cmp eax, 1
jg 0x1006a37b
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x10
mov ebx, dword [ebp - 0x30]
cmovae eax, edx
sub ebx, eax
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp + 8]
je 0x1006a346
push dword [edi + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
push dword [ebp - 0x38]
cmovae eax, edx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, dword [ebp - 0x38]
add esp, 0x10
cmp ecx, eax
jne 0x1006a376
jmp 0x1006a349
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x14]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
jne 0x1006a373
test ecx, ecx
jne 0x1006a2c3
cmp dword [ebp - 0x1c], 0x20
jae 0x1006a396
push ecx
push 8
lea ecx, [ebp - 0x2c]
call fcn.10042e1e
jmp 0x1006a2c3
movzx esi, bx
movzx esi, si
jmp 0x1006a396
cmp eax, 3
jne 0x1006a39c
push dword [edi + 0x4c]
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
pop ecx
pop ecx
cmp ax, si
je 0x1006a396
movzx esi, bx
movzx eax, si
movzx esi, ax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 5
call fcn.10042e1e
mov ax, si
call fcn.100d3876
ret 4