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

Disassembly:
sub esp, 0x1c4
mov eax, dword [0x103e1bc0]
xor eax, esp
mov dword [esp + 0x1c0], eax
cmp byte [0x1042ee18], 0
push ebx
mov ebx, dword [esp + 0x1cc]
mov dword [esp + 0x10], ebx
jne 0x10140cb9
call fcn.1015f8d0
test eax, eax
je 0x10140cd1
mov byte [0x1042ee18], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.1024d940
add esp, 0x1c4
ret
mov eax, dword [ebx + 0x9cc]
test eax, eax
je 0x10140cf2
push 0x400
push eax
call fcn.10160580
add esp, 8
call fcn.1015f8d0
test eax, eax
jne 0x10140cb9
push ebp
push esi
push edi
nop word [eax + eax]
mov ebx, 2
mov dword [esp + 0x18], 4
lea eax, [esp + 0x90]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
nop dword [eax]
lea eax, [esp + 0x40]
push eax
call fcn.10133f70
push 1
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x38], xmm0
movups xmmword [esp + 0x28], xmm0
call fcn.1012f020
lea eax, [esp + 0x58]
push eax
call fcn.10133f70
mov esi, dword [eax + 8]
lea eax, [esp + 0x6c]
push eax
call fcn.10133f70
add esp, 0x10
lea ebp, [ebx + 1]
mov ecx, eax
mov eax, esi
cdq
push 0
add eax, dword [ecx]
push ebp
adc edx, dword [ecx + 4]
push edx
push eax
call fcn.1024ecd0
movups xmm1, xmmword [esp + 0x30]
mov esi, dword [esp + 0x10]
mov edi, eax
mov ebx, edx
dec esi
movaps xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 4
movd ecx, xmm0
shld ebx, edi, 8
push ecx
push eax
push 0
push esi
shl edi, 8
call fcn.1024ecd0
xor edi, eax
xor ebx, edx
lea eax, [esp + 0x70]
mov dword [esp + 0x20], edi
push eax
mov dword [esp + 0x28], ebx
call fcn.10133f70
lea esi, [eax + 8]
lea eax, [esp + 0x84]
push eax
call fcn.10133f70
mov edx, dword [esp + 0x18]
add esp, 8
mov ebx, ebp
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
add ecx, dword [esi]
lea eax, [edx + 2]
imul edx, dword [esp + 0x28]
imul ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 0x10
xor ecx, edx
mov dword [esp + 0x28], ecx
movups xmm0, xmmword [esp + 0x20]
movups xmmword [eax], xmm0
add eax, 0x10
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
jne 0x10140d20
movsd xmm0, qword [0x10262520]
lea eax, [esp + 0x90]
sub esp, 8
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.1015f720
add esp, 0x10
call fcn.1015f8d0
test eax, eax
je 0x10140d00
lea eax, [esp + 0xd0]
mov byte [esp + 0xd0], 0
push 0x100
push eax
call fcn.101603c0
add esp, 8
cmp byte [esp + 0xd0], 0
pop edi
pop esi
pop ebp
je 0x10140e82
lea eax, [esp + 0xc4]
push 0x400
push eax
call fcn.10160580
add esp, 8
call fcn.1015f8d0
test eax, eax
jne 0x10140cb9
push str.libcurl_is_now_using_a_weak_random_seed__n
push dword [esp + 0x14]
call fcn.1012bd70
add esp, 8
call fcn.1015f8d0
mov ecx, dword [esp + 0x1c4]
neg eax
pop ebx
sbb eax, eax
xor ecx, esp
and eax, 0xffffffdd
add eax, 0x23
call fcn.1024d940
add esp, 0x1c4
ret
Function at 0x10145700
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1004
call fcn.1024ebc0
mov eax, dword [0x103e1bc0]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push eax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x10145769
push 0x1000
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x10145769
lea eax, [esp]
push eax
call dword [0x103de0e4]
add esp, 4
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.1024d940
add esp, 0x1004
ret
mov ecx, dword [esp + 0x1000]
xor eax, eax
xor ecx, esp
call fcn.1024d940
add esp, 0x1004
ret
Function at 0x10169a70
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x20
call fcn.1024ebc0
push ebx
push esi
mov esi, dword [esp + 0x38]
xor ebx, ebx
mov eax, esi
sub eax, ebx
je 0x10169ab8
sub eax, 2
je 0x10169ab8
sub eax, 0x15
je 0x10169ab8
push 0x293
push str.crypto_bio_b_addr.c
push 0x83
push 0x8f
push 0x20
call fcn.10162cb0
add esp, 0x14
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
call fcn.10169890
cmp eax, 1
jne 0x10169ab0
mov eax, dword [esp + 0x3c]
xor ecx, ecx
push ebp
push edi
xorps xmm0, xmm0
mov dword [esp + 0x10], ecx
xor edi, edi
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
test esi, esi
jne 0x10169af9
or ecx, 0x400
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x3c], 1
jne 0x10169b07
or ecx, 1
mov dword [esp + 0x10], ecx
mov ebp, dword [esp + 0x48]
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esp + 0x40]
push dword [esp + 0x40]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x10169b5f
cmp esi, 8
je 0x10169ba6
mov ecx, dword [esp + 0x10]
test ecx, 0x400
je 0x10169b6e
push ebp
lea eax, [esp + 0x14]
and ecx, 0xfffffbff
push eax
push dword [esp + 0x40]
or ecx, 4
mov edi, esi
push dword [esp + 0x40]
mov dword [esp + 0x20], ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
jne 0x10169b25
mov ebx, 1
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
push 0x2d4
push str.crypto_bio_b_addr.c
push 2
push 0x8f
push 0x20
call fcn.10162cb0
test edi, edi
cmovne esi, edi
push esi
call fcn.10169fb0
push eax
push 1
call fcn.101622f0
add esp, 0x20
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
push 0x2c5
push str.crypto_bio_b_addr.c
push 0x41
push 0x8f
push 0x20
call fcn.10162cb0
add esp, 0x14
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
Function at 0x101b8b80
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.1024ebc0
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0x10
lea eax, [edx + 0xf]
lea ecx, [esi + 0xf]
cmp esi, eax
ja 0x101b8bc4
cmp ecx, edx
jb 0x101b8bc4
push edi
mov ecx, esi
sub edx, esi
mov edi, 0x10
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x101b8bb3
pop edi
jmp 0x101b8bd1
movups xmm1, xmmword [esi]
movups xmm0, xmmword [edx]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
push 0x10
push esi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
push esi
push dword [eax + 4]
call fcn.1018f700
add esp, 0x14
pop esi
test eax, eax
je 0x101b8bfb
cmp dword [esp], 0x10
jne 0x101b8bfb
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x101b8d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x101b8db3
mov edx, dword [esp + 0x10]
test edx, edx
je 0x101b8db3
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov eax, dword [ebx + 0xc]
cmp edx, eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x101b8d83
push esi
mov esi, ebp
lea ecx, [ebx + 0x10]
nop dword [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub edi, 1
jne 0x101b8d70
mov eax, dword [ebx + 0xc]
pop esi
cmp edx, eax
jbe 0x101b8db1
sub edx, eax
cmp edx, 0x10
jbe 0x101b8d95
mov edx, 0x10
jmp 0x101b8d99
test edx, edx
je 0x101b8db1
xor ecx, ecx
nop dword [eax + eax]
mov eax, dword [ebx + 0xc]
add eax, ecx
mov al, byte [eax + ebp]
xor byte [ebx + ecx + 0x30], al
inc ecx
cmp ecx, edx
jb 0x101b8da0
pop edi
pop ebx
pop ebp
ret
Function at 0x101beb10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.1024ebc0
mov eax, dword [0x103e1bc0]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xb0]
push ebx
mov ebx, dword [esp + 0xac]
push ebp
mov ebp, dword [esp + 0xac]
push esi
mov esi, dword [esp + 0xac]
push edi
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov dword [esp + 0x10], 0
test edi, edi
je 0x101beb7d
cmp edi, eax
je 0x101beb71
test ebp, ebp
je 0x101bebf0
test ebx, ebx
js 0x101bebf0
mov dword [esp + 0x10], 1
mov dword [esi], edi
jmp 0x101beb83
test eax, eax
je 0x101bebf0
mov edi, eax
push edi
call fcn.10134120
add esp, 4
test al, 2
jne 0x101bebf0
test ebp, ebp
je 0x101becfb
push edi
mov dword [esp + 0x14], 1
call fcn.101536a0
add esp, 4
cmp eax, 0x90
jg 0x101bebf0
cmp eax, ebx
jge 0x101bec0b
push dword [esp + 0x14]
push edi
push dword [esi + 4]
call fcn.10159fb0
add esp, 0xc
test eax, eax
je 0x101bebf0
push ebx
push ebp
push dword [esi + 4]
call fcn.1015a160
add esp, 0xc
test eax, eax
je 0x101bebf0
lea ebp, [esi + 0x10]
push ebp
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.10159f10
add esp, 0xc
test eax, eax
jne 0x101bec27
xor eax, eax
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1024d940
add esp, 0x9c
ret
cmp ebx, 0x90
ja 0x101bebf0
push ebx
lea eax, [esi + 0x14]
push ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
lea ebp, [esi + 0x10]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x90
je 0x101bec4a
mov eax, 0x90
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x101bec50
mov ebp, dword [esp + 0x14]
push ebp
push edi
push dword [esi + 8]
call fcn.10159fb0
add esp, 0xc
test eax, eax
je 0x101bed08
push edi
call fcn.101536a0
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.1015a160
add esp, 0x10
test eax, eax
je 0x101bed08
xor ecx, ecx
nop dword [eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x101beca0
push ebp
push edi
push dword [esi + 0xc]
call fcn.10159fb0
add esp, 0xc
test eax, eax
je 0x101bed08
push edi
call fcn.101536a0
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.1015a160
add esp, 0x10
test eax, eax
je 0x101bed08
push dword [esi + 8]
push dword [esi + 4]
call fcn.1015a2f0
xor ebp, ebp
add esp, 8
test eax, eax
mov ecx, 1
cmovne ebp, ecx
jmp 0x101bed0a
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x101becdf
jmp 0x101bec4e
xor ebp, ebp
test ebx, ebx
je 0x101bed20
lea eax, [esp + 0x18]
push 0x90
push eax
call fcn.10001320
add esp, 8
mov eax, ebp
jmp 0x101bebf2
Function at 0x101fb2c0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x101fb2d4
mov dword [esp + 0x18], fcn.101f9aa0
jmp fcn.101f3000
mov dword [esp + 0x18], fcn.101f8d40
jmp fcn.101f2d00
Function at 0x1023fdc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.1024ebc0
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
inc ebp
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x30], 1
je 0x1023fe4a
mov edx, dword [esp + 0x24]
lea eax, [edx + ebp]
cmp eax, ecx
ja 0x1023fe4e
add dword [edi + 0x14], edx
sub ecx, edx
add dword [edi + 0x18], edx
sub dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov eax, dword [edi + 0x14]
push ebx
push dword [esi + 0x3cc]
mov al, byte [eax + ecx - 1]
movzx ebx, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebx
call fcn.10157a70
push eax
call fcn.101536b0
mov esi, dword [edi + 8]
add esp, 8
mov dword [esp + 0x18], esi
and eax, 0x200000
je 0x1023fe57
sub esi, ebx
mov eax, 1
dec esi
pop ebx
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
cmp ebp, ecx
jbe 0x1023fe02
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
lea ecx, [ebx + ebp]
mov eax, esi
mov ebx, esi
xor eax, ecx
sub ebx, ecx
xor ebx, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor ebp, ebp
mov dword [esp + 0x10], eax
test eax, eax
je 0x1023fed3
mov edx, dword [esp + 0x20]
dec esi
mov edi, dword [edi + 0x14]
shr edx, 0x1f
add edi, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov eax, esi
lea edi, [edi - 1]
sub eax, ebp
mov ecx, ebp
shr ecx, 0x1f
inc ebp
shr eax, 0x1f
xor al, cl
xor cl, dl
or al, cl
movzx ecx, byte [esp + 0x2c]
dec al
movzx edx, al
movzx eax, byte [edi + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x14]
cmp ebp, dword [esp + 0x10]
jb 0x1023fe95
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
not ebx
movzx ecx, bl
inc eax
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov dword [edi + 8], esi
mov dword [esp + 0x2c], ecx
not ecx
pop ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
and ecx, 1
pop edi
pop esi
or eax, ecx
pop ebp
add esp, 0xc
ret
Function at 0x10015b30
Capabilities:
Get geographical location

Disassembly:
push 0xa0
mov eax, 0x1011283d
call fcn.1011094a
mov ebx, ecx
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x2c]
and dword [ebp - 4], 0
push 6
mov dword [ebp - 0xa4], eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xac], ebx
call fcn.10082bd8
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.100826dd
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.100859e0
mov esi, eax
mov dword [ebp - 0xa8], esi
mov eax, dword [ebp - 0xa4]
mov ecx, eax
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x10015bb4
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
lea edx, [ebp - 0x44]
mov edi, dword [esi]
add eax, ecx
push edx
lea edx, [ebp - 0x2c]
push edx
mov edi, dword [edi + 4]
push eax
push ecx
mov ecx, edi
call dword [0x1014488c]
mov ecx, esi
call edi
test al, al
je 0x10015d5a
push str.userId
lea ecx, [ebp - 0x2c]
call fcn.1003a3c0
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.10083ffb
push eax
lea ecx, [ebx + 4]
call fcn.1003a3c0
lea ecx, [ebp - 0xa0]
call fcn.1001524d
push str.authId
lea ecx, [ebp - 0x2c]
call fcn.1003a3c0
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.10083ffb
push eax
lea ecx, [ebx + 0x1c]
call fcn.1003a3c0
lea ecx, [ebp - 0xa0]
call fcn.1001524d
push str.firstName
lea ecx, [ebp - 0x2c]
call fcn.1003a3c0
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.10083ffb
push eax
lea ecx, [ebx + 0x34]
call fcn.1003a3c0
lea ecx, [ebp - 0xa0]
call fcn.1001524d
push str.lastName
lea ecx, [ebp - 0x2c]
call fcn.1003a3c0
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.10083ffb
push eax
lea ecx, [ebx + 0x4c]
call fcn.1003a3c0
lea ecx, [ebp - 0xa0]
call fcn.1001524d
push str.email
lea ecx, [ebp - 0x2c]
call fcn.1003a3c0
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.10083ffb
push eax
lea ecx, [ebx + 0x64]
call fcn.1003a3c0
lea ecx, [ebp - 0xa0]
call fcn.1001524d
push str.countryCode
lea ecx, [ebp - 0x2c]
call fcn.1003a3c0
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.10083ffb
push eax
lea ecx, [ebx + 0x7c]
call fcn.1003a3c0
lea ecx, [ebp - 0xa0]
call fcn.1001524d
push str.displayName
lea ecx, [ebp - 0x2c]
call fcn.1003a3c0
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.10083ffb
push eax
lea ecx, [ebx + 0x94]
call fcn.1003a3c0
lea ecx, [ebp - 0xa0]
call fcn.1001524d
push str.accountType
lea ecx, [ebp - 0x2c]
call fcn.1003a3c0
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.10083ffb
push eax
lea ecx, [ebx + 0xac]
call fcn.1003a3c0
lea ecx, [ebp - 0xa0]
call fcn.1001524d
test esi, esi
je 0x10015d6a
push esi
lea ecx, [ebp - 0xa8]
call fcn.1003a3c0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x10015d7e
inc eax
push eax
push dword [ebp - 0x44]
call fcn.1003a3c0
pop ecx
pop ecx
and dword [ebp - 0x34], 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.10082df3
lea ecx, [ebp - 0x2c]
call fcn.10082ec8
call fcn.10110897
ret 4
Function at 0x100189ed
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x10112f4e
call fcn.101108a8
mov edi, ecx
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.1003a3c0
pop ecx
xor edx, edx
pop ecx
mov ebx, dword [eax]
mov dword [eax], edx
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
test ecx, ecx
je 0x10018a25
push 1
call fcn.1003a3c0
xor edx, edx
lea esi, [edi + 4]
push esi
push edx
push ebx
push 0x100185f0
push edx
push edx
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 0x10018a49
call fcn.10110871
ret 4
and dword [esi], 0
push 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x100362e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x101d9548]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x10036306
xor eax, eax
jmp 0x100363c3
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x10036328
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, dword [eax]
cmp dword [eax], edx
jae 0x10036328
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
mov eax, ebx
jmp 0x100363c3
cmp dword [esi + 0x4c], 0
je 0x100363c1
call fcn.10034db6
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x10036352
push dword [esi + 0x4c]
push eax
call fcn.1003a3c0
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x100363c1
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 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]
sub eax, 0
je 0x1003638f
sub eax, 1
je 0x1003638f
dec eax
sub eax, 1
jne 0x100363c1
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x10036344
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x100363b3
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x100363c1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
mov eax, ebx
jne 0x100363c3
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10110860
leave
ret 4
Function at 0x10037080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
push esi
mov esi, ecx
mov dword [ebp - 8], esi
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x100370ab
jl 0x100370a2
test edi, edi
jne 0x100370ab
xor eax, eax
xor edx, edx
jmp 0x1003715e
cmp dword [esi + 0x38], 0
je 0x100370bf
push eax
push edi
push edx
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 0x1003715e
mov eax, dword [esi + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100370f9
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x100370f9
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
push esi
push ecx
push edx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 8]
sub ebx, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
mov ecx, ebx
je 0x10037153
mov ecx, esi
call fcn.10034db6
mov edx, dword [ebp - 4]
mov ecx, ebx
jmp 0x10037132
push dword [esi + 0x4c]
push eax
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [ebp - 4]
sub ebx, eax
add edx, eax
add esp, 0x10
mov dword [ebp - 4], edx
mov ecx, ebx
cmp eax, 0xfff
jne 0x10037164
mov eax, 0xfff
cmp ebx, eax
ja 0x1003710f
test ecx, ecx
je 0x10037153
push dword [esi + 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
mov edx, dword [ebp + 0x10]
mov eax, edi
sbb edx, 0
pop ebx
pop edi
pop esi
leave
ret 0xc
sub edi, ebx
jmp 0x10037155
Function at 0x10037170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10037193
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
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 0x10037241
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100371b4
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x100371b6
xor eax, eax
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x10037235
jg 0x100371c9
test esi, esi
je 0x10037235
test ecx, ecx
jl 0x10037217
jg 0x100371d3
test eax, eax
je 0x10037217
cmp edi, ecx
jg 0x100371e5
jl 0x100371dd
cmp esi, eax
jae 0x100371e5
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
sbb edi, dword [ebp - 8]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
mov eax, dword [ebp + 8]
add eax, ecx
test edi, edi
jl 0x10037235
jg 0x1003721a
test esi, esi
je 0x10037235
jmp 0x1003721a
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x10037235
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 [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1003a3c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1003a3cf
pop dword [ebp - 0x24]
mov eax, 0x645e904
add eax, 0x9bdbacb
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x1cbc812f
sub dword [ebp - 0x34], 0xce6a3be4
mov dword [ebp - 0x30], 0x9965407d
sub dword [ebp - 0x30], 0x6731f438
mov dword [ebp - 0x2c], 0x22f84962
sub dword [ebp - 0x2c], 0xd6ac0534
mov dword [ebp - 0x28], 0xf931d16c
sub dword [ebp - 0x28], 0xf931d16c
lea eax, [ebp - 0x34]
push eax
mov eax, 0x104a628f
add eax, 0xffc9dee5
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xeeef86e7
add dword [ebp - 0x34], 0x8582e26f
mov dword [ebp - 0x30], 0x88da6aa1
add dword [ebp - 0x30], 0xb891f6d4
mov dword [ebp - 0x2c], 0x45ad71d3
add dword [ebp - 0x2c], 0x1dc1fa99
mov dword [ebp - 0x28], 0x545b3ae2
sub dword [ebp - 0x28], 0x545b3ae2
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xcf9940a1
sub eax, 0xbf84ff25
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0xac45b
push 0
call eax
mov ecx, 0xc828acae
add ecx, 0x37d79fc6
xor esi, esi
add esi, eax
mov edx, 0xd1a1251a
add edx, 0x3e7ef6e6
add edx, dword [ebp - 0x24]
mov ebx, 0x77b3dd1c
mov edi, dword [edx]
xor edi, ebx
xor dword [ebp - 0x20], 0xc435021e
mov dword [esi], edi
xor dword [ebp - 8], ecx
add esi, 4
add edx, 0x84f56fe9
sub edx, 0x84f56fe5
loop 0x1003a4ed
add eax, 0xce455678
add eax, 0x31bbce2b
xor ebx, ebx
add ebx, eax
add eax, 0xa864ebdd
add eax, 0x579b1428
mov ecx, 0x10000000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x10040e2e
Capabilities:
Encode data using xor

Disassembly:
push 4
mov eax, 0x1011814c
call fcn.101108a8
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
push 0x16
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
call fcn.1003a3c0
xor edx, edx
mov ecx, 0x10e
mov eax, ebx
div ecx
mov al, byte [edx + 0x1014d958]
xor al, byte [ebx + edi]
movzx ecx, al
push ecx
push 1
mov ecx, esi
call fcn.1003a3c0
inc ebx
cmp ebx, 0x16
jb 0x10040e63
mov eax, esi
call fcn.10110871
ret 4