joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b850
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x65000]
push edi
jmp 0x46b86a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46b871
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46b860
mov eax, 1
add ebx, ebx
jne 0x46b883
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46b878
jne 0x46b894
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46b878
xor ecx, ecx
sub eax, 3
jb 0x46b8a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46b91a
mov ebp, eax
add ebx, ebx
jne 0x46b8b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x46b8c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x46b8e4
inc ecx
add ebx, ebx
jne 0x46b8d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46b8c5
jne 0x46b8e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46b8c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46b904
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46b8f5
jmp 0x46b866
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46b904
add edi, ecx
jmp 0x46b866
pop esi
mov edi, esi
mov ecx, 0x256
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46b922
cmp byte [edi], 1
jne 0x46b922
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46b927
lea edi, [esi + 0x69000]
mov eax, dword [edi]
or eax, eax
je 0x46b99f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7e764]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7e830]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46b954
mov ecx, edi
jns 0x46b983
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7e838]
or eax, eax
je 0x46b999
mov dword [ebx], eax
add ebx, 4
jmp 0x46b971
call dword [esi + 0x7e834]
mov ebp, dword [esi + 0x7e83c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46b9d3
sub esp, 0xffffff80
jmp 0x403391
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x10002326
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx ecx, word [eax + 0x14]
and dword [ebp - 8], 0
push ebx
mov ebx, dword [0xc3064]
push esi
push edi
mov edi, dword [0xc41c0]
lea esi, [ecx + eax + 0x18]
movzx ecx, word [eax + 6]
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0xc], ecx
lea ecx, [edi - 0x416f0520]
push ecx
push dword [eax + 0x54]
push dword [ebp + 8]
call ebx
and dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
jbe 0x100023fd
cmp dword [ebp - 8], 0
jne 0x100023fd
lea eax, [edi - 0x416f0507]
bt dword [esi + 0x24], eax
jae 0x100023a1
lea eax, [edi - 0x416f0505]
bt dword [esi + 0x24], eax
jae 0x10002399
lea ecx, [edi - 0x416f04e4]
jmp 0x100023c5
lea ecx, [edi - 0x416f0504]
jmp 0x100023c5
lea eax, [edi - 0x416f0506]
bt dword [esi + 0x24], eax
jae 0x100023bf
lea eax, [edi - 0x416f0505]
bt dword [esi + 0x24], eax
lea ecx, [edi - 0x416f0522]
jae 0x100023c5
lea ecx, [edi - 0x416f0520]
mov eax, dword [esi + 0xc]
add eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push ecx
push dword [esi + 8]
push eax
call ebx
test eax, eax
jne 0x100023e3
call dword [0xc302c]
mov dword [ebp - 8], eax
lea eax, [edi - 0x16f0523]
imul eax, eax, 0x28
add esi, eax
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x1000236f
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401bd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x401be1
jmp dword [eax*4 + 0x403310]
cmp dword [0x404088], 0
je 0x401cf0
push 0x40408c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4040a4]
test edi, edi
je 0x401ce5
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401c2b
mov edi, dword [edi + 8]
test edi, edi
je 0x401ce5
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x401c20
test esi, esi
je 0x401c20
mov ecx, dword [edi + 4]
call dword [0x4033e0]
push esi
call ecx
add esp, 4
jmp 0x401c20
call fcn.00401570
jmp case.default.0x401be1
cmp dword [0x404088], 0
je case.default.0x401be1
push 0x40408c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4040a4]
test edi, edi
je 0x401cd8
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401c97
mov edi, dword [edi + 8]
test edi, edi
je 0x401cd8
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x401c90
test esi, esi
je 0x401c90
mov ecx, dword [edi + 4]
call dword [0x4033e0]
push esi
call ecx
add esp, 4
jmp 0x401c90
cmp dword [0x404088], 0
jne 0x401ccc
push 0x40408c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x404088], 1
jmp case.default.0x401be1
push 0x40408c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x401be1
push 0x40408c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x404088]
cmp eax, 1
jne case.default.0x401be1
mov eax, dword [0x4040a4]
test eax, eax
je 0x401d22
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, esi
test esi, esi
jne 0x401d10
mov dword [0x4040a4], 0
mov dword [0x404088], 0
push 0x40408c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401e60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x403004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x401ec6
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x401ec6
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x401ec6
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x401ec6
mov edx, dword [esp + 0xc]
sub edx, dword [0x403004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x401eb6
add esi, 0x28
dec ecx
je 0x401ec6
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x401eb0
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x401eb0
mov eax, esi
pop esi
pop edi
ret
Function at 0x10050600
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10284b50
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10349380]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.102554a4
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10254365
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10050ac0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005bc80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10285715
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10349380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1034eef0]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1034f7c0]
cmp eax, dword [ecx + 4]
jle 0x1005bd1b
push 0x1034f7c0
call fcn.10255b81
add esp, 4
cmp dword [0x1034f7c0], 0xffffffff
jne 0x1005bd1b
xorps xmm0, xmm0
mov dword [0x1034f7d4], 0
xor eax, eax
mov dword [0x1034f7d8], 7
movups xmmword [0x1034f7c4], xmm0
push 0x10287d10
mov word [0x1034f7c4], ax
call fcn.102559db
push 0x1034f7c0
call fcn.10255b30
add esp, 8
sub dword [ebp + 0xc], 1
jne 0x1005bd7a
push esi
call dword [0x1028816c]
push 4
call fcn.102554a4
mov dword [ebp - 0x14], eax
mov dword [eax], fcn.1005b8d0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x1006a350
push 0
push 0
call fcn.102664ef
add esp, 0x1c
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1005bda2
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1005bd9b
push ecx
push eax
call fcn.10254cb6
add esp, 8
test eax, eax
jne 0x1005bd9b
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10255465
mov esp, ebp
pop ebp
ret 0xc
push 1
call fcn.10254c58
push 6
mov dword [ebp - 0x18], 0
call fcn.10254c58
int3
Function at 0x1005c3c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x1005c3f2
jl 0x1005c3e5
test ecx, ecx
jne 0x1005c3f2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1005c4b2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.1004fc70
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1005c45e
jg 0x1005c41d
test esi, esi
je 0x1005c45e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x1005c435
mov eax, dword [esp + 0x10]
jl 0x1005c42f
cmp eax, esi
jae 0x1005c435
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.102574c0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1005c47f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1005c49b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x1005c404
jl 0x1005c49b
test ecx, ecx
jne 0x1005c404
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x1005c4f6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x1005c4f6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.102574c0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x1005c567
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1005c51c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x1005c552
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.102662d9
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1005c567
cmp edi, eax
ja 0x1005c530
test edi, edi
je 0x1005c567
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.102662d9
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10066640
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028624c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10349380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
push 0x28
call fcn.102554a4
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], 0
push esi
mov cl, byte [ecx]
mov byte [ebx], cl
lea ecx, [ebx + 4]
mov dword [ebp - 0x14], ecx
call fcn.1004eac0
lea esi, [ebx + 0x1c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.102554a4
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 2
mov ecx, esi
push eax
mov eax, dword [edi]
push dword [eax + 4]
call fcn.1006e0c0
mov ecx, dword [esi]
mov dword [ecx + 4], eax
mov edx, dword [esi]
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edx + 4]
cmp byte [ecx + 0xd], 0
jne 0x10066730
mov eax, dword [ecx]
cmp byte [eax + 0xd], 0
jne 0x1006670d
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0xd], 0
je 0x10066703
mov dword [edx], ecx
mov edx, dword [esi]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x1006672b
nop dword [eax]
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x10066720
mov dword [edx + 8], ecx
jmp 0x10066737
mov dword [edx], edx
mov eax, dword [esi]
mov dword [eax + 8], eax
lea ecx, [ebp - 0x14]
mov dword [ebx + 0x24], 0x10059450
mov dword [ebp - 0x14], 0
call fcn.10069210
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 3
call fcn.10069210
mov edi, dword [ebp - 0x20]
lea esi, [edi + 4]
push esi
push 0
push ebx
push 0x1006a2d0
push 0
push 0
call fcn.102664ef
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x100667b4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.10069210
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10255465
mov esp, ebp
pop ebp
ret 0x10
push 6
mov dword [esi], 0
call fcn.10254c58
int3
Function at 0x10072c50
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102873cd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10349380]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x24]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
call fcn.10050b30
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x10072cc7
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x10072cc7
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
push eax
push 0x270f
push 0
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.10074980
or dword [ebx], eax
add esp, 0x1c
test al, 2
jne 0x10072d22
cmp dword [ebp - 0x10], 2
jg 0x10072d16
mov eax, dword [ebp - 0x14]
cmp eax, 0x45
jge 0x10072d0c
add eax, 0x64
mov dword [esi + 0x14], eax
jmp 0x10072d22
cmp eax, 0x64
jge 0x10072d22
mov dword [esi + 0x14], eax
jmp 0x10072d22
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffff894
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov eax, edi
mov edx, dword [ebp + 0x10]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x10083870
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
je 0x10083888
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x1008388d
mov ebx, 0x10289ec8
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x10083965
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
inc edi
movzx eax, byte [edi - 1]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
cmp esi, 3
jb 0x100838f9
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
mov ecx, eax
shr ecx, 6
and ecx, 0x3f
and eax, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 2], cl
mov cl, byte [eax + ebx]
lea eax, [edx + 3]
jmp 0x10083945
shl eax, 0x10
cmp esi, 2
jne 0x10083909
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x1008392c
mov al, 0x3d
jmp 0x10083935
shr eax, 6
and eax, 0x3f
mov al, byte [eax + ebx]
mov ecx, dword [esp + 0x18]
mov byte [ecx + 2], al
mov cl, 0x3d
mov eax, dword [esp + 0x14]
add eax, 3
sub esi, 3
mov byte [eax], cl
add ebp, 4
lea edx, [eax + 1]
add edi, 3
test esi, esi
jg 0x100838a3
pop edi
pop esi
mov eax, ebp
mov byte [edx], 0
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x14]
pop esi
mov byte [eax], 0
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x10097e10
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
lea edx, [eax - 1]
not eax
shr edx, 0x1f
shr eax, 0x1f
and edx, eax
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 4]
dec edx
xor eax, ecx
mov dword [esp + 0x10], edx
and eax, edx
xor ecx, eax
mov dword [ebp + 4], ecx
xor dword [ebx + 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
xor eax, ecx
movd xmm0, edx
and eax, edx
pshufd xmm4, xmm0, 0
xor ecx, eax
mov dword [ebp + 0xc], ecx
xor dword [ebx + 0xc], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
xor eax, ecx
and eax, edx
and eax, 4
xor ecx, eax
mov dword [ebp + 0x10], ecx
xor dword [ebx + 0x10], eax
xor eax, eax
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x10097f26
push edi
cmp esi, 4
jb 0x10097f01
mov ecx, dword [ebp]
lea edi, [esi - 1]
mov edx, dword [ebx]
lea ebp, [esi - 1]
lea ebp, [ecx + ebp*4]
cmp edx, ebp
lea edi, [edx + edi*4]
mov ebp, dword [esp + 0x18]
ja 0x10097ea4
cmp edi, ecx
jae 0x10097f01
cmp edx, ebx
ja 0x10097eac
cmp edi, ebx
jae 0x10097f01
cmp edx, ebp
ja 0x10097eb4
cmp edi, ebp
jae 0x10097f01
lea edi, [esi - 1]
lea edi, [ecx + edi*4]
cmp ecx, ebx
ja 0x10097ec2
cmp edi, ebx
jae 0x10097f01
cmp ecx, ebp
ja 0x10097eca
cmp edi, ebp
jae 0x10097f01
mov edi, esi
and edi, 0xfffffffc
nop
movups xmm3, xmmword [edx + eax*4]
movups xmm2, xmmword [ecx + eax*4]
movaps xmm1, xmm3
xorps xmm1, xmm2
andps xmm1, xmm4
movaps xmm0, xmm1
xorps xmm1, xmm3
xorps xmm0, xmm2
movups xmmword [ecx + eax*4], xmm0
movups xmmword [edx + eax*4], xmm1
add eax, 4
cmp eax, edi
jl 0x10097ed0
mov dword [esp + 0x18], eax
cmp eax, esi
jge 0x10097f25
mov ecx, dword [ebp]
mov edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
mov ecx, dword [ebx]
mov edi, dword [ecx + eax*4]
xor edi, edx
and edi, dword [esp + 0x14]
xor edx, edi
mov dword [esi], edx
mov ecx, dword [ebx]
xor dword [ecx + eax*4], edi
inc eax
cmp eax, dword [esp + 0x20]
jl 0x10097f01
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10098260
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.10255f50
mov eax, dword [esp + 0x10]
push ebx
push esi
test byte [eax + 0x10], 4
mov esi, dword [eax + 4]
lea ebx, [esi - 1]
je 0x10098307
mov ecx, dword [eax + 8]
xor edx, edx
push ebp
xor ebp, ebp
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x100982f0
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
push edi
push dword [ecx]
mov eax, ebp
xor eax, ebx
lea edi, [eax - 1]
not eax
shr edi, 0x1f
shr eax, 0x1f
and edi, eax
neg edi
mov esi, edi
or esi, dword [esp + 0x14]
call fcn.10098330
mov ecx, dword [esp + 0x18]
mov edx, esi
not edx
mov dword [esp + 0x14], esi
and edx, 0x20
and eax, edi
add edx, dword [esp + 0x24]
inc ebp
add edx, eax
add ecx, 4
add esp, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
cmp ebp, dword [esp + 0x18]
jl 0x100982a3
pop edi
mov eax, ebx
shr ebx, 0x1f
not eax
dec eax
shr eax, 0x1f
and eax, ebx
pop ebp
dec eax
pop esi
and eax, edx
pop ebx
add esp, 0xc
ret
test esi, esi
jne 0x10098313
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [eax]
push dword [eax + esi*4 - 4]
call fcn.10098330
add esp, 4
shl esi, 5
add esi, 0xffffffe0
add eax, esi
pop esi
pop ebx
add esp, 0xc
ret