joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001bde0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x102beb54]
xor eax, esp
mov dword [esp + 0x110], eax
push esi
push 0x104
lea eax, [esp + 0xc]
mov esi, ecx
push 0
push eax
call fcn.102010e0
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.jkcache_
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x1001be4e
push eax
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
push str.cache.db
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.1020e01a
add esp, 0xc
lea ecx, [esp + 8]
mov edx, esi
push 0
push 6
call fcn.10098e10
add esp, 8
test eax, eax
je 0x1001be8d
push 0
push 6
mov edx, esi
lea ecx, [esp + 0x10]
call fcn.10098e10
add esp, 8
mov eax, dword [esi]
test eax, eax
je 0x1001beef
push 0
push 0
push 0
push str.CREATE_TABLE_IF_NOT_EXISTS__task_cache______________________________________________________________________________________________________________________________________________________________________________src_path__CHAR_256__NOT_NULL____________________________________________________________________________task_key__CHAR_512______________________________________________________________________________________page_start__INT_DEFAULT_1_______________________________________________________________________________page_end__INT___________________________________________________________________________________________state__INT_DEFAULT_0____________________________________________________________________________________dest_path__CHAR_256_____________________________________________________________________________________dest_suffix__CHAR_128__DEFAULT_.docx__________________________________________________________________task_date__DATETIME_DEFAULT__datetime_now_localtime________________________________________________CONSTRAINT_TASK_CONDITION_PRIMARY_KEY___src_path__page_start__page_end__dest_suffix_________________
push eax
call fcn.10071280
add esp, 0x14
test eax, eax
je 0x1001becd
mov ecx, dword [esi]
xor edx, edx
call fcn.10096d30
mov dword [esi], 0
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.101e95a5
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x1001beef
push 0
push 0
push 0
push str.CREATE_TRIGGER_IF_NOT_EXISTS_delete_out_of_data_AFTER_INSERT_ON_task_cache_FOR_EACH_ROW________________BEGIN_DELETE_FROM_task_cache_where_SELECT_count_task_date__FROM_task_cache____100_AND_task_date_IN__SELECT_task_date_FROM_task_cache_ORDER_BY_task_date_desc_limit_SELECT_______________count_task_date__FROM_task_cache__offset_100___________________________________OR___julianday_datetime_now__localtime_____julianday_task_cache.task_date____24____________________5_END_
push eax
call fcn.10071280
add esp, 0x14
test eax, eax
jne 0x1001beef
mov byte [esi + 4], 1
mov ecx, dword [esp + 0x114]
pop esi
xor ecx, esp
call fcn.101e95a5
mov esp, ebp
pop ebp
ret
Function at 0x1004e820
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
push 0
push 0x14
mov dword [ebx], 0
call fcn.1001fa90
mov esi, eax
add esp, 8
test esi, esi
jne 0x1004e850
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x102bf57c], 0
mov edi, dword [ebp + 8]
je 0x1004e89a
mov eax, dword [0x102bf680]
test eax, eax
je 0x1004e873
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x1004e89a
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x100225f0
push 0
push 0
mov dword [esi + 0xc], edi
call fcn.1020e323
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x1004e8a7
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x1004e8c0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100535d0
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov ebx, ecx
xor esi, esi
mov dword [esp + 8], ebx
push edi
test edx, edx
je 0x100536ec
nop word [eax + eax]
mov esi, dword [edx + 4]
mov al, byte [edx]
test esi, 0x200
jne 0x100536ea
cmp al, 0x25
je 0x100536df
cmp al, 0x9c
je 0x100536df
cmp al, 0x5e
je 0x1005361f
cmp al, 0x9d
jne 0x10053672
cmp byte [edx + 0x26], 0x5e
jne 0x10053682
mov eax, dword [ebx]
mov ecx, ebx
push dword [edx + 8]
push 0
mov dl, byte [eax + 0x42]
call fcn.100657a0
add esp, 8
mov esi, eax
test esi, esi
je 0x100536ec
cmp dword [esi + 0xc], 0
jne 0x100536ec
mov eax, dword [ebx]
mov ecx, ebx
push dword [esi]
push esi
mov dl, byte [eax + 0x42]
call fcn.100657a0
add esp, 8
test eax, eax
jne 0x100536ec
mov ecx, 1
test ecx, ecx
cmove eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 0x9a
je 0x10053682
cmp al, 0x98
je 0x10053682
cmp al, 0x9d
je 0x10053682
cmp al, 0x3d
jne 0x10053689
mov eax, dword [edx + 0x2c]
test eax, eax
jne 0x100536fc
test esi, 0x100
je 0x100536ea
mov eax, dword [edx + 0xc]
test eax, eax
je 0x100536a5
test dword [eax + 4], 0x100
je 0x100536a5
mov edx, eax
jmp 0x100536e2
mov ecx, dword [edx + 0x14]
mov edi, dword [edx + 0x10]
test ecx, ecx
je 0x100536db
test esi, 0x800
jne 0x100536db
mov esi, dword [ecx]
xor eax, eax
test esi, esi
jle 0x100536db
add ecx, 8
mov edx, dword [ecx]
test dword [edx + 4], 0x100
jne 0x100536d9
inc eax
add ecx, 0x18
cmp eax, esi
jl 0x100536c2
mov edx, edi
jmp 0x100536e2
mov edi, edx
mov edx, edi
jmp 0x100536e2
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x100535f0
xor esi, esi
xor ecx, ecx
xor eax, eax
test ecx, ecx
pop edi
cmove eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx ecx, word [edx + 0x20]
test ecx, ecx
js 0x100536ea
mov eax, dword [eax + 4]
add ecx, ecx
mov edi, dword [ebx]
mov edx, dword [eax + ecx*8 + 8]
mov bl, byte [edi + 0x42]
test edx, edx
je 0x1005372b
push 0
lea ecx, [edi + 0x16c]
call fcn.100243f0
add esp, 4
mov esi, dword [eax + 8]
jmp 0x1005372e
mov esi, dword [edi + 8]
test esi, esi
je 0x1005373e
movzx eax, bl
lea eax, [eax + eax*4]
lea esi, [esi + eax*4]
add esi, 0xffffffec
mov ebx, dword [esp + 0xc]
jmp 0x10053635
Function at 0x1005ef30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, edx
mov edx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 8], edx
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [edx + 0x14], eax
jle 0x1005efc9
mov ebx, eax
xor ebx, 1
cmp eax, 2
cmovge ebx, eax
test edi, edi
je 0x1005f014
mov eax, dword [edx + 0x10]
mov ecx, ebx
add ecx, ecx
mov esi, edi
mov edx, dword [eax + ecx*8]
mov al, byte [edi]
movzx ecx, al
movzx edi, byte [ecx + 0x102a7588]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x102a7588]
sub edi, ecx
jne 0x1005efb4
sub edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
nop
test al, al
je 0x1005f00a
movzx ecx, byte [edx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x102a7588]
mov al, byte [esi]
movzx ecx, al
movzx edi, byte [ecx + 0x102a7588]
sub edi, edx
mov edx, dword [ebp - 0x10]
je 0x1005ef90
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
inc eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
cmp eax, dword [edx + 0x14]
jl 0x1005ef50
mov dl, byte [esi]
movzx eax, dl
cmp byte [eax + 0x102a7588], 0x73
jne 0x1005f001
mov edi, str.sqlite_master
sub edi, esi
nop
test dl, dl
je 0x1005f035
movzx eax, byte [edi + esi + 1]
inc esi
movzx ecx, byte [eax + 0x102a7588]
mov dl, byte [esi]
movzx eax, dl
movzx eax, byte [eax + 0x102a7588]
sub eax, ecx
je 0x1005efe0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x1005efb4
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
add ebx, ebx
push 0
mov edx, esi
mov ecx, dword [eax + ebx*8 + 0xc]
add ecx, 8
call fcn.100243f0
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
jne 0x1005f003
jmp 0x1005efb7
mov edx, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 0x10]
test edi, edi
jne 0x1005f04b
neg eax
sbb eax, eax
jmp 0x1005f05b
test eax, eax
je 0x1005f001
mov edx, eax
mov ecx, edi
call fcn.10022fb0
mov edx, dword [ebp - 8]
test eax, eax
jne 0x1005f001
mov esi, str.sqlite_temp_master
mov dword [ebp - 4], esi
jmp 0x1005ef46
Function at 0x1005f380
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
mov dword [ebp - 0xc], edx
xor edx, edx
mov dword [ebp - 0x10], eax
push edi
xor edi, edi
mov dword [ebp - 4], edx
cmp dword [eax + 0x14], edx
jle 0x1005f439
push ebx
push esi
mov eax, dword [eax + 0x10]
mov ecx, edi
xor ecx, 1
cmp edi, 2
cmovge ecx, edi
add ecx, ecx
mov edx, dword [eax + ecx*8 + 0xc]
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
test edx, edx
je 0x1005f41a
mov ebx, dword [eax + ecx*8]
mov esi, edx
mov al, byte [edx]
movzx ecx, byte [ebx]
movzx edx, byte [ecx + 0x102a7588]
movzx ecx, al
movzx ecx, byte [ecx + 0x102a7588]
sub ecx, edx
jne 0x1005f401
sub ebx, esi
test al, al
je 0x1005f416
movzx ecx, byte [ebx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x102a7588]
mov al, byte [esi]
movzx ecx, al
movzx ecx, byte [ecx + 0x102a7588]
sub ecx, edx
je 0x1005f3e0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
inc edi
cmp edi, dword [eax + 0x14]
jl 0x1005f3a1
pop esi
pop ebx
mov eax, edx
pop edi
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x1005f401
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
add ecx, 0x18
push 0
call fcn.100243f0
add esp, 4
mov edx, dword [eax + 8]
mov dword [ebp - 4], edx
test edx, edx
jne 0x1005f40d
jmp 0x1005f404
mov eax, edx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100799f0
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, edx
mov edx, dword [edi + 0x30]
test edx, edx
je 0x10079a16
push esi
call fcn.100799f0
add esp, 4
test eax, eax
je 0x10079a18
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [edi]
cmp esi, dword [ecx]
jge 0x10079a11
lea edx, [esi + esi*2]
mov edx, dword [ecx + edx*8 + 8]
mov ecx, ebx
pop edi
pop esi
pop ebx
pop ebp
jmp fcn.100535d0
Function at 0x100a3990
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x100a39b7
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x100a39a6
pop edi
movzx eax, dl
pop esi
ret

Function at 0x100a7e30
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.101ea500
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x34]
mov edi, dword [edi]
mov dword [esp + 0x14], edi
test edi, edi
je 0x100a7e79
mov ecx, dword [esp + 0x30]
nop dword [eax]
test esi, esi
je 0x100a7e79
mov al, byte [edi + ecx]
dec esi
xor al, byte [ebp]
inc edi
mov byte [ebx], al
inc ebp
inc ebx
and edi, 0xf
mov dword [esp + 0x14], edi
jne 0x100a7e60
mov ecx, dword [esp + 0x2c]
movzx edx, byte [ecx + 0xc]
movzx eax, byte [ecx + 0xd]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xe]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xf]
shl edx, 8
or edx, eax
mov dword [esp + 0x24], edx
cmp esi, 0x10
jb 0x100a7f48
mov edi, ecx
nop dword [eax + eax]
mov ecx, esi
shr ecx, 4
push edi
push dword [esp + 0x2c]
lea eax, [ecx + edx]
neg edx
cmp eax, ecx
cmovae edx, ecx
mov dword [esp + 0x18], edx
xor edx, edx
push dword [esp + 0x18]
cmp eax, ecx
push ebx
cmovae edx, eax
push ebp
mov dword [esp + 0x38], edx
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, edx
mov byte [edi + 0xf], dl
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, edx
shr eax, 8
mov byte [edi + 0xe], al
test edx, edx
jne 0x100a7f26
mov edx, 0xc
mov eax, 1
nop dword [eax]
movzx ecx, byte [edx + edi - 1]
dec edx
add eax, ecx
mov byte [edx + edi], al
shr eax, 8
test edx, edx
jne 0x100a7f10
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
shl eax, 4
sub esi, eax
add ebx, eax
add ebp, eax
cmp esi, 0x10
jae 0x100a7eb0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
test esi, esi
je 0x100a7fb6
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
push ecx
push dword [esp + 0x2c]
push 1
push eax
push eax
movups xmmword [eax], xmm0
call dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
add esp, 0x14
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, ecx
shr eax, 0x18
mov byte [edx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edx + 0xe], al
mov byte [edx + 0xf], cl
test ecx, ecx
jne 0x100a7f97
push edx
call fcn.100a8000
add esp, 4
mov eax, dword [esp + 0x30]
sub ebp, eax
sub ebx, eax
lea ecx, [edi + eax]
add edi, esi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub esi, 1
jne 0x100a7fa4
mov eax, dword [esp + 0x34]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100a85d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.101ea500
push ebp
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp + 0x38]
or eax, dword [ebp + 0x3c]
je 0x100a85ef
mov eax, 0xfffffffe
pop ebp
pop ecx
ret
push esi
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov eax, esi
add eax, dword [ebp + 0x30]
adc ecx, dword [ebp + 0x34]
cmp ecx, 0x20000000
ja 0x100a86b9
jb 0x100a8614
test eax, eax
jne 0x100a86b9
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [ebp + 0x16c]
mov dword [ebp + 0x34], ecx
lea ecx, [ebp + 0x40]
mov dword [ebp + 0x30], eax
test edi, edi
je 0x100a8665
nop dword [eax]
test esi, esi
je 0x100a864a
mov al, byte [ebx]
lea ecx, [ebp + 0x40]
xor byte [ecx + edi], al
inc ebx
inc edi
mov dword [esp + 0x18], ecx
dec esi
and edi, 0xf
jne 0x100a8630
jmp 0x100a8652
mov dword [esp + 0x18], ecx
test edi, edi
jne 0x100a86ab
lea eax, [ebp + 0x60]
push eax
push ecx
call fcn.100a9ce0
mov ecx, dword [esp + 0x20]
add esp, 8
jmp 0x100a8669
mov dword [esp + 0x18], ecx
mov eax, esi
lea edx, [ebp + 0x60]
and eax, 0xfffffff0
mov dword [esp + 0x10], eax
je 0x100a868b
push eax
push ebx
push edx
push ecx
call fcn.100a9ab0
add ebx, dword [esp + 0x20]
add esp, 0x10
sub esi, dword [esp + 0x10]
test esi, esi
je 0x100a86ab
xor ecx, ecx
mov edi, esi
test esi, esi
je 0x100a86ab
mov edx, dword [esp + 0x18]
nop dword [eax + eax]
mov al, byte [ecx + ebx]
xor byte [edx + ecx], al
inc ecx
cmp ecx, esi
jb 0x100a86a0
mov dword [ebp + 0x16c], edi
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret
pop esi
or eax, 0xffffffff
pop ebp
pop ecx
ret
Function at 0x100a9880
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.101ea500
push ebx
mov ebx, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
cmp ebx, 0xc
jne 0x100a98ec
mov eax, dword [esp + 0x20]
mov ebx, 1
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x1000000
jmp 0x100a9a29
mov dword [esi + 0x40], 0
lea edx, [esi + 0x60]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esp + 0x14], ebx
mov dword [esi + 0x4c], 0
mov dword [esp + 0xc], edx
push ebp
mov ebp, dword [esp + 0x24]
push edi
lea edi, [esi + 0x40]
cmp ebx, 0x10
jb 0x100a998f
mov eax, ebx
lea ecx, [esi + 0x41]
shr eax, 4
mov esi, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], eax
mov eax, ecx
lea edx, [ebp + 1]
mov edi, 4
nop dword [eax]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor byte [eax - 2], cl
sub edi, 1
jne 0x100a9940
push dword [esp + 0x14]
push esi
call fcn.100a9ce0
mov ecx, dword [esp + 0x20]
add esp, 8
add ebp, 0x10
sub ebx, 0x10
sub dword [esp + 0x2c], 1
jne 0x100a9933
mov esi, dword [esp + 0x24]
lea edi, [esi + 0x40]
lea edx, [esi + 0x60]
test ebx, ebx
je 0x100a99b5
xor ecx, ecx
test ebx, ebx
je 0x100a99ab
nop dword [eax]
mov al, byte [ecx + ebp]
xor byte [edi + ecx], al
inc ecx
cmp ecx, ebx
jb 0x100a99a0
push edx
push edi
call fcn.100a9ce0
add esp, 8
mov edx, dword [esp + 0x1c]
xor ebx, ebx
shld ebx, edx, 3
xor byte [esi + 0x4b], bl
mov eax, ebx
shl edx, 3
xor byte [esi + 0x4f], dl
mov ecx, edx
shrd ecx, eax, 0x18
xor byte [esi + 0x4c], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
xor byte [esi + 0x4d], cl
shrd eax, ebx, 8
xor byte [esi + 0x4e], al
lea eax, [esi + 0x60]
push eax
push edi
call fcn.100a9ce0
movzx ebx, byte [esi + 0x4c]
add esp, 8
movzx eax, byte [esi + 0x4d]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x4e]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x4f]
shl ebx, 8
or ebx, eax
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x4c]
pop edi
mov dword [esi + 0xc], eax
pop ebp
mov dword [esi + 0x40], 0
lea eax, [esi + 0x20]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
push dword [esi + 0x174]
push eax
mov eax, dword [esi + 0x170]
push esi
call eax
inc ebx
add esp, 0xc
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x100adcf0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x100add39
mov al, byte [esi]
push eax
call fcn.100ac6f0
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x100add17
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x100b63f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.100b6430
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.10214e29

Function at 0x100bc810
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.101ea500
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.100a6010
mov ebx, eax
push ebx
push esi
call fcn.100a5ef0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x100bc899
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100bc873
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.100a5f60
push esi
call fcn.100a60b0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x100bc899
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.100a6010
mov ebx, eax
push ebx
push esi
call fcn.100a5ef0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x100bc908
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100bc8ee
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.100a5f60
push esi
call fcn.100a60b0
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x100bc891
push esi
call fcn.100a60b0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x100bdb30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x600], 0
je 0x100bdb74
push esi
push 1
push edi
call fcn.100d5c30
push dword [edi + 0x594]
mov eax, dword [edi + 0x600]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.100d5c30
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x100bdbaa
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x1024354c
push 2
push eax
call fcn.1020dd46
push dword [edi + 0x590]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1020dd46
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret
Function at 0x100bdf40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x102beb54]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx + eax*4 + 0x420]
push edi
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 0x108], ecx
call fcn.100be460
add esp, 8
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x100bdffa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x100bdfbc
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101e95a5
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.100fee90
push eax
mov eax, dword [ebp - 0x108]
push str.Send_failure:__s
push dword [eax]
call fcn.100bdbb0
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov eax, dword [eax]
mov dword [eax + 0xd8c], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101e95a5
mov esp, ebp
pop ebp
ret

Function at 0x100be460
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
lea esi, [ebx + 0x448]
add esi, eax
mov eax, dword [ebx + 0x558]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x100be528
cmp dword [ebx + ecx*4 + 0x438], 0x100bde50
jne 0x100be528
cmp dword [esi], 0
je 0x100be4a9
test edi, edi
je 0x100be528
mov eax, dword [ebx + ecx*4 + 0x420]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov dword [ebp + 0xc], eax
call fcn.100e05e0
add esp, 0x14
cmp eax, 0xffffffff
je 0x100be528
test al, 1
je 0x100be528
mov ecx, dword [esi]
test ecx, ecx
jne 0x100be503
mov eax, dword [ebx]
mov eax, dword [eax + 0x91c]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x102bb374]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x100be521
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x100be528
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
pop ebp
ret