joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4111db
Capabilities:
Resolve dns

Disassembly:
jmp 0x415450
mov al, byte [0x42ed40]
test al, al
je 0x415494
sub al, 0x30
cmp al, 9
ja 0x415494
push 0x42ed40
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x42ed04], eax
mov eax, 2
mov word [0x42ed00], ax
movzx eax, word [0x42ed2c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [0x42ed02], ax
mov eax, 1
ret
push esi
push 0x42ed40
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
xorps xmm0, xmm0
movdqu xmmword [0x42ed00], xmm0
movsx ecx, word [esi + 0xa]
push ecx
mov ecx, dword [esi + 0xc]
push dword [ecx]
push 0x42ed04
call fcn.00411186
mov ax, word [esi + 8]
add esp, 0xc
mov word [0x42ed00], ax
movzx eax, word [0x42ed2c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [0x42ed02], ax
mov eax, 1
pop esi
ret

Function at 0x416050
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x41fda4], 0
mov dword [ebp + 0x14], eax
je 0x41612a
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
push 0x42ece0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x41fd9c]
cmp eax, dword [0x41fda0]
jne 0x4160b3
push 0x42ece0
call ebx
xor eax, eax
jmp 0x41611d
mov ecx, dword [esi]
mov al, byte [eax + 0x4201e0]
mov byte [edi + ecx], al
xor ecx, ecx
mov eax, dword [0x41fd9c]
inc eax
cmp eax, 0xc3b4
cmovge eax, ecx
mov dword [0x41fd9c], eax
mov eax, dword [esi]
cmp byte [eax + edi], 2
je 0x41610c
inc eax
mov dword [esi], eax
cmp eax, dword [ebp + 0xc]
jge 0x4160fe
mov eax, dword [0x41fd9c]
cmp eax, dword [0x41fda0]
jne 0x4160b3
push 0x42ece0
call ebx
mov eax, 1
jmp 0x41611d
push 0x42ece0
call ebx
mov eax, 3
jmp 0x41611d
mov byte [edi + eax], cl
inc dword [esi]
push 0x42ece0
call ebx
mov eax, 2
sub eax, 0
je 0x416133
sub eax, 2
je 0x41618e
dec eax
jne 0x416178
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [ebp + 0x14]
jne 0x416151
mov dword [ebp - 4], 1
jmp 0x416175
cmp dword [ebp - 4], 2
je 0x416168
cmp ecx, 0x2710
jbe 0x416168
mov dword [ebp - 4], 2
jmp 0x416175
mov edx, dword [ebp - 8]
add edx, ecx
mov dword [ebp - 8], edx
cmp edx, dword [ebp + 0x10]
jae 0x41612a
mov dword [ebp + 0x14], eax
cmp dword [0x41fda4], 0
jne 0x416090
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7003197
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x70031a6
pop dword [ebp - 0x28]
mov eax, 0x3e2da9e4
add eax, 0xc8d287c2
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x85038a82
sub dword [ebp - 0x38], 0x36b14537
mov dword [ebp - 0x34], 0x7d55d26
sub dword [ebp - 0x34], 0xd5a210e1
mov dword [ebp - 0x30], 0x1cfd32cd
sub dword [ebp - 0x30], 0xd0b0ee9f
mov dword [ebp - 0x2c], 0xfb88cf53
add dword [ebp - 0x2c], 0x47730ad
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x66944695
sub dword [ebp - 0x38], 0xf221dd3f
mov dword [ebp - 0x34], 0xab17b5d3
sub dword [ebp - 0x34], 0x69ab545e
mov dword [ebp - 0x30], 0x29b985c2
sub dword [ebp - 0x30], 0xc64a1956
mov dword [ebp - 0x2c], 0x61777e7e
sub dword [ebp - 0x2c], 0x61777e7e
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3bb7f
push 0
call eax
mov ecx, 0xaf78f975
add ecx, 0x508752fc
mov ebx, eax
mov edx, 0xe7546295
add edx, 0x1fad9f6b
add edx, dword [ebp - 0x28]
mov edi, 0xb158c646
sub edi, 0x65e31093
add dword [ebp - 0xc], 0x9b80d266
mov esi, dword [edx]
xor esi, edi
add dword [ebp - 0x1c], 0x779218ff
mov dword [ebx], esi
add ebx, 0xc8e7a5ce
add ebx, 0x37185a36
add edx, 4
loop 0x70032be
add eax, 0x9dbdb31a
sub eax, 0x9dbc8e83
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7000000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x700d29f
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x70120f1
call fcn.07001cf8
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700d491
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700dd8a
lea ecx, [ebp - 0x10]
call fcn.0700d23c
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700d30c
mov eax, dword [eax + 0x14]
jmp 0x700d311
mov eax, 0x70138c2
push 0x7015240
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700d343
mov ecx, dword [edi + 4]
call fcn.070076d1
lea ecx, [ebp - 0x10]
mov dword [edi + 8], eax
call fcn.07003197
mov eax, edi
call fcn.07001ea7
ret 4
push str.file_does_not_exist
push ebx
call fcn.07003197
int3
Function at 0x62397760
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x62397924
pushal
mov esi, 0x62394015
lea edi, [esi - 0x13015]
push edi
or ebp, 0xffffffff
jmp 0x6239778a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x62397791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x62397780
mov eax, 1
add ebx, ebx
jne 0x623977a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x62397798
jne 0x623977b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x62397798
xor ecx, ecx
sub eax, 3
jb 0x623977c8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6239783a
mov ebp, eax
add ebx, ebx
jne 0x623977d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x623977e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x62397804
inc ecx
add ebx, ebx
jne 0x623977f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x623977e5
jne 0x62397801
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x623977e5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x62397824
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x62397815
jmp 0x62397786
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x62397824
add edi, ecx
jmp 0x62397786
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x62397842
cmp byte [edi], 0
jne 0x62397842
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 0x62397847
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x623978b6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17090]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x170e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x62397874
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x170e4]
or eax, eax
je 0x623978b0
mov dword [ebx], eax
add ebx, 4
jmp 0x62397891
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x623978e7
cmp al, 0xef
ja 0x623978da
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x623978bc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x623978c9
mov ebp, dword [esi + 0x170e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x6239791b
sub esp, 0xffffff80
jmp 0x62381210
Function at 0x1000e83c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
push esi
mov dword [ebp - 8], esi
call fcn.101f4b08
pop ecx
test eax, eax
jne 0x1000e8df
push 2
push eax
push esi
call fcn.101f583f
push esi
call fcn.101f11aa
push 0
push 0
push esi
mov edi, eax
call fcn.101f583f
mov eax, dword [ebx + 4]
add esp, 0x1c
mov edx, dword [ebx]
mov ecx, eax
sub ecx, edx
mov dword [ebp - 4], eax
cmp edi, ecx
jae 0x1000e88e
lea eax, [edx + edi]
jmp 0x1000e8be
jbe 0x1000e8c1
mov eax, dword [ebx + 8]
sub eax, edx
cmp edi, eax
jbe 0x1000e8a4
push ecx
push edi
mov ecx, ebx
call fcn.10021914
jmp 0x1000e8c1
mov esi, edi
sub esi, ecx
push esi
push 0
push dword [ebp - 4]
call fcn.101ed310
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, esi
mov esi, dword [ebp - 8]
mov dword [ebx + 4], eax
push esi
push edi
push 1
push dword [ebx]
call fcn.101fdb6a
add esp, 0x10
cmp eax, edi
jne 0x1000e8df
push esi
call fcn.101f52f4
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push str.error_reading_from_file
lea ecx, [ebp - 0x14]
call fcn.100017f1
push 0x102c560c
lea eax, [ebp - 0x14]
push eax
call fcn.101edaa7
int3

Function at 0x1000ecb3
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
cmp dword [ecx + 0x14], 0xf
mov eax, ecx
push esi
push edi
mov esi, 0x811c9dc5
jbe 0x1000ecc8
mov eax, dword [ecx]
mov edi, eax
jmp 0x1000ecca
mov edi, ecx
mov ecx, dword [ecx + 0x10]
mov edx, eax
add ecx, edi
cmp eax, ecx
je 0x1000ece5
movsx eax, byte [edx]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
cmp edx, ecx
jne 0x1000ecd5
pop edi
mov eax, esi
pop esi
ret
Function at 0x10012824
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10012848
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
push eax
push eax
push eax
push 0x100130e0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
pop ebp
ret 0xc

Function at 0x1001284f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x102cf440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], edx
push esi
push edi
mov dword [ebp - 8], ebx
mov edi, ebx
mov dword [ebp - 8], ebx
xor eax, eax
push 0x2531
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
call fcn.1001d3f2
mov esi, eax
mov dword [esp], 0x2531
push edi
mov dword [ebx], esi
push esi
lea eax, [esi + 0x2531]
mov dword [ebx + 8], eax
call fcn.101ed310
lea eax, [esi + 0x2531]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 7
jbe 0x100128ba
mov eax, dword [eax]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push edi
mov esi, eax
push 0x120e2
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push 0x2531
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101eafcd
leave
ret
Function at 0x10013e39
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
test esi, esi
jg 0x10013e63
jl 0x10013e5a
test ebx, ebx
jne 0x10013e63
xor eax, eax
xor edx, edx
jmp 0x10013f1b
cmp dword [ecx + 0x38], 0
je 0x10013e76
push esi
push ebx
push edx
call fcn.100155a6
jmp 0x10013f1b
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10013eb6
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x10013eb6
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call fcn.101ecd90
mov ecx, dword [ebp - 8]
sub edi, 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, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x10013f11
call fcn.10016de6
mov ecx, dword [ebp - 4]
mov edx, edi
cmp edi, 0xfff
jbe 0x10013ef9
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push 0xfff
push 1
push ecx
call fcn.101fdb6a
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x10013f11
jmp 0x10013ec6
test edx, edx
je 0x10013f11
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push edi
push 1
push ecx
call fcn.101fdb6a
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1002e888
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 0xc], ecx
lea ecx, [eax - 1]
mov ebx, ecx
mov dword [ebp - 0x10], eax
sar ebx, 1
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], ecx
cmp edx, ebx
jge 0x1002e8ea
lea edx, [esi + esi]
lea ecx, [edi + 0x10]
lea ecx, [ecx + edx*8]
lea eax, [ecx - 8]
push eax
push ecx
call fcn.1002e866
movzx esi, al
xor esi, 1
inc esi
add esi, edx
lea eax, [edi + esi*8]
push eax
mov eax, dword [ebp - 4]
lea ecx, [edi + eax*8]
call fcn.100132ca
mov dword [ebp - 4], esi
cmp esi, ebx
jl 0x1002e8b5
mov eax, dword [ebp - 0x10]
mov edx, esi
cmp esi, ebx
jne 0x1002e904
test al, 1
jne 0x1002e904
dec eax
lea ecx, [edi + esi*8]
lea eax, [edi + eax*8]
push eax
call fcn.100132ca
mov edx, dword [ebp - 0x14]
cmp dword [ebp - 8], edx
jge 0x1002e92e
push dword [ebp - 0xc]
lea esi, [edx - 1]
sar esi, 1
lea ebx, [edi + esi*8]
push ebx
call fcn.1002e866
test al, al
je 0x1002e92e
push ebx
lea ecx, [edi + edx*8]
call fcn.100132ca
mov edx, esi
cmp dword [ebp - 8], esi
jl 0x1002e909
push dword [ebp - 0xc]
lea ecx, [edi + edx*8]
call fcn.100132ca
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100358eb
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x102275e6
call fcn.101ec3fa
mov edi, edx
push 0x10
call fcn.101eb095
mov ecx, dword [ebp + 0x14]
mov esi, eax
mov dword [ebp - 0x14], esi
mov ecx, dword [ecx]
mov dword [esi], ecx
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esi + 0xc], eax
xor eax, eax
lea ebx, [edi + 4]
push ebx
push eax
push esi
push 0x1003b244
push eax
push eax
mov dword [ebp - 4], eax
call fcn.101f5480
add esp, 0x1c
mov dword [edi], eax
test eax, eax
je 0x1003594a
call fcn.101ec3a9
ret
and dword [ebx], 0
push 6
call fcn.101e9f33
int3
Function at 0x10038d47
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ecx + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x18], eax
push edi
mov edi, edx
test ebx, ebx
je 0x10038d85
mov ecx, dword [ebp + 0xc]
mov edx, ebx
add ecx, 0xfffffffe
test ecx, ecx
je 0x10038d6f
add esi, ecx
mov eax, esi
sub edx, 1
jne 0x10038d69
test esi, esi
je 0x10038d85
cmp eax, 0x2aaaaaaa
jg 0x10038e73
mov eax, dword [edi + 8]
imul eax, dword [edi + 4]
imul ecx, esi, 3
mov dword [ebp - 8], ecx
cmp ecx, eax
je 0x10038db8
mov eax, dword [edi]
test eax, eax
je 0x10038da8
push dword [eax - 4]
call fcn.101fd0fd
pop ecx
mov ecx, dword [ebp - 8]
test ecx, ecx
jle 0x10038db5
call fcn.1001d0c0
mov dword [edi], eax
jmp 0x10038db8
and dword [edi], 0
and dword [ebp - 4], 0
mov dword [edi + 4], esi
mov dword [edi + 8], 3
test ebx, ebx
je 0x10038e6c
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add edx, 0xfffffffe
xor eax, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], eax
xor esi, esi
and dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
test edx, edx
je 0x10038e5b
add eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
movzx eax, byte [eax]
mov ecx, dword [edi]
mov edx, dword [ebp - 4]
mov dword [ecx + edx*4], eax
mov eax, dword [edi + 4]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [edi]
movzx ecx, byte [ecx + esi + 1]
mov dword [edx + eax*4], ecx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
xor ecx, 1
mov edx, dword [edi + 4]
add eax, ebx
mov esi, dword [edi]
add eax, ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [eax + ecx + 1]
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
lea eax, [eax + edx*2]
mov edx, dword [ebp - 0x1c]
mov dword [esi + eax*4], ecx
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
inc eax
inc dword [ebp - 0xc]
cmp eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
jb 0x10038df4
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
add eax, ecx
sub ebx, 1
mov dword [ebp - 8], eax
mov dword [ebp + 8], ebx
jne 0x10038ddf
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
call fcn.10002301
int3
Function at 0x10039029
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ecx + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
push edi
mov edi, edx
test ebx, ebx
je 0x10039067
mov ecx, dword [ebp + 0xc]
mov edx, ebx
add ecx, 0xfffffffe
test ecx, ecx
je 0x10039051
add esi, ecx
mov eax, esi
sub edx, 1
jne 0x1003904b
test esi, esi
je 0x10039067
cmp eax, 0x2aaaaaaa
jg 0x1003916d
mov eax, dword [edi + 4]
imul eax, dword [edi + 8]
imul ecx, esi, 3
mov dword [ebp - 8], ecx
cmp ecx, eax
je 0x1003909a
mov eax, dword [edi]
test eax, eax
je 0x1003908a
push dword [eax - 4]
call fcn.101fd0fd
pop ecx
mov ecx, dword [ebp - 8]
test ecx, ecx
jle 0x10039097
call fcn.1001d0c0
mov dword [edi], eax
jmp 0x1003909a
and dword [edi], 0
and dword [ebp - 4], 0
mov dword [edi + 4], esi
mov dword [edi + 8], 3
test ebx, ebx
je 0x10039166
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
lea edx, [eax + eax]
lea esi, [eax - 2]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x24], esi
mov dword [ebp - 8], edx
and dword [ebp - 0xc], 0
and dword [ebp - 0x14], 0
test esi, esi
je 0x1003914f
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], edx
movzx eax, word [edx]
mov ecx, dword [edi]
mov edx, dword [ebp - 4]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov esi, dword [edi]
movzx ecx, word [ecx + eax*2 + 2]
mov eax, edx
add eax, dword [edi + 4]
mov dword [esi + eax*4], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
xor eax, 1
mov edx, dword [edi + 4]
mov esi, dword [edi]
mov dword [ebp - 0xc], eax
add eax, ebx
add eax, dword [ebp - 0x14]
movzx ecx, word [ecx + eax*2 + 2]
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
lea eax, [eax + edx*2]
mov edx, dword [ebp - 0x20]
mov dword [esi + eax*4], ecx
add edx, 2
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
inc eax
inc dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], edx
cmp eax, esi
jb 0x100390df
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x28]
add ecx, eax
sub ebx, 1
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp + 8], ebx
jne 0x100390ca
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
call fcn.10002301
int3
Function at 0x10039305
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ecx + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
push edi
mov edi, edx
test ebx, ebx
je 0x10039343
mov ecx, dword [ebp + 0xc]
mov edx, ebx
add ecx, 0xfffffffe
test ecx, ecx
je 0x1003932d
add esi, ecx
mov eax, esi
sub edx, 1
jne 0x10039327
test esi, esi
je 0x10039343
cmp eax, 0x2aaaaaaa
jg 0x10039449
mov eax, dword [edi + 8]
imul eax, dword [edi + 4]
imul ecx, esi, 3
mov dword [ebp - 8], ecx
cmp ecx, eax
je 0x10039376
mov eax, dword [edi]
test eax, eax
je 0x10039366
push dword [eax - 4]
call fcn.101fd0fd
pop ecx
mov ecx, dword [ebp - 8]
test ecx, ecx
jle 0x10039373
call fcn.1001d0c0
mov dword [edi], eax
jmp 0x10039376
and dword [edi], 0
mov dword [edi + 4], esi
xor esi, esi
mov dword [edi + 8], 3
mov dword [ebp - 4], esi
test ebx, ebx
je 0x10039442
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, eax
mov dword [ebp - 0x20], ecx
shl edx, 2
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x10]
lea esi, [eax - 2]
mov dword [ebp - 0x24], esi
mov dword [ebp - 8], edx
and dword [ebp - 0xc], 0
and dword [ebp - 0x14], 0
test esi, esi
je 0x1003942b
mov eax, edx
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
mov ecx, dword [edi]
add dword [ebp - 0x1c], 4
mov dword [ecx + edx*4], eax
add edx, dword [edi + 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x18]
mov esi, dword [edi]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ecx*4 + 4]
mov dword [esi + edx*4], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
xor eax, 1
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov dword [ebp - 0xc], eax
add eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x14]
lea ecx, [esi + ecx*2]
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + eax*4 + 4]
mov esi, dword [ebp - 0x24]
mov dword [edx + ecx*4], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
inc edx
inc eax
mov dword [ebp - 4], edx
inc dword [ebp - 0x18]
cmp eax, esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
jb 0x100393c0
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x28]
add ecx, eax
sub ebx, 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp + 8], ebx
jne 0x100393a9
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
call fcn.10002301
int3