joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10051766
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10051797
call fcn.1005169b
mov dword [eax], esi
call fcn.10051688
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.1004cebc
add esp, 0x14
push 0x16
pop eax
jmp 0x100517ec
test dword [ebp + 0xc], 0xfffffff9
jne 0x10051773
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100517c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100516ae
pop ecx
call fcn.10051688
mov eax, dword [eax]
jmp 0x100517ec
test al, 0x10
jne 0x100517ea
test al, 1
je 0x100517ea
test byte [ebp + 0xc], 2
je 0x100517ea
call fcn.1005169b
mov dword [eax], 5
call fcn.10051688
mov dword [eax], 0xd
jmp 0x100517bb
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10060d7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1005250a
and dword [ebp - 4], 0
cmp dword [0x100939d4], 0
mov ebx, eax
jne 0x10060e2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10060ee0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10060ee0
push eax
call fcn.10052498
mov dword [esp], 0x10073e70
push edi
mov dword [0x100939d4], eax
call esi
push eax
call fcn.10052498
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100939d8], eax
call esi
push eax
call fcn.10052498
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100939dc], eax
call esi
push eax
call fcn.10052498
pop ecx
mov dword [0x100939e4], eax
test eax, eax
je 0x10060e2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10052498
pop ecx
mov dword [0x100939e0], eax
mov eax, dword [0x100939e0]
cmp eax, ebx
je 0x10060e87
cmp dword [0x100939e4], ebx
je 0x10060e87
push eax
call fcn.10052513
push dword [0x100939e4]
mov esi, eax
call fcn.10052513
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10060e87
test edi, edi
je 0x10060e87
call esi
test eax, eax
je 0x10060e7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10060e7e
test byte [ebp - 0xc], 1
jne 0x10060e87
or dword [ebp + 0x10], 0x200000
jmp 0x10060ec0
mov eax, dword [0x100939d8]
cmp eax, ebx
je 0x10060ec0
push eax
call fcn.10052513
pop ecx
test eax, eax
je 0x10060ec0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10060ec0
mov eax, dword [0x100939dc]
cmp eax, ebx
je 0x10060ec0
push eax
call fcn.10052513
pop ecx
test eax, eax
je 0x10060ec0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100939d4]
call fcn.10052513
pop ecx
test eax, eax
je 0x10060ee0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10060ee2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40690c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406945
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040cc
jmp 0x40694e
mov eax, ebx
mov edx, esi
call fcn.00404030
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406958
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40697a
movzx eax, byte [esp]
jmp 0x40697c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40700c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406e84
mov eax, dword [0x42732c]
cmp byte [eax], 0
je 0x407088
mov eax, dword [0x427288]
call fcn.00402f34
call fcn.00402d9c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405dcc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4070d0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4070be
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x427268]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x42a7f0]
call fcn.00404644
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x4011a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
push str.Transmitting__d_bytes
push 0xcb
push str.tx_data
push 1
xor esi, esi
call fcn.00401d50
mov ebx, dword [ebp + 8]
add esp, 0x14
cmp dword [0x429038], 1
jle 0x4011e1
mov eax, dword [0x429028]
push eax
push edi
push ebx
call fcn.004025d0
add esp, 0xc
test edi, edi
je 0x401217
mov ecx, dword [0x429024]
mov eax, edi
sub eax, esi
cmp eax, ecx
jb 0x4011f5
mov eax, ecx
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
mov eax, dword [0x429004]
lea edx, [esi + ebx]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401247
add esi, dword [ebp + 0xc]
cmp esi, edi
jb 0x4011e5
mov eax, dword [0x429008]
add eax, esi
push eax
push str.Total_bytes_sent_so_far:__d
push 0xeb
push str.tx_data
push 1
mov dword [0x429008], eax
call fcn.00401d50
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
push str.Error_occurred_while_writing_to_COM_port
push 0xd5
push str.tx_data
push 0
call fcn.00401d50
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x401270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x429020]
cmp eax, ecx
jb 0x401282
mov eax, ecx
mov edx, dword [0x429004]
push esi
mov esi, dword [ebp + 8]
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4012bc
push str.Error_occurred_while_reading_from_COM_port
push 0xf6
push str.rx_data
push eax
call fcn.00401d50
add esp, 0x10
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
test ecx, ecx
je 0x4012c8
mov dword [ecx], eax
push eax
push str.Received__d_bytes
push 0x126
push str.rx_data
push 1
call fcn.00401d50
mov eax, dword [ebp + 0xc]
add dword [0x42900c], eax
add esp, 0x14
cmp dword [0x429038], 1
jle 0x401305
mov ecx, dword [0x429028]
push ecx
push eax
push esi
call fcn.004025d0
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
Function at 0x4037c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x429054]
push ebx
push esi
mov esi, dword [0x429040]
push eax
call fcn.00402540
xor ebx, ebx
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
cmp eax, 0xffffffff
jne 0x403809
push str.Could_not_get_file_info.
push 0x51d
push str.start_image_transfer
push ebx
call fcn.00401d50
add esp, 0x10
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
push ebx
push edi
push str.start_image_transfer:_Offset__ld
push 0x528
push str.start_image_transfer
push 1
call fcn.00401d50
push ebx
push edi
push str.start_image_transfer:_Offset_0x_X
push 0x529
push str.start_image_transfer
push 1
call fcn.00401d50
xor eax, eax
push eax
push esi
push str.start_image_transfer:_Length__ld
push 0x52a
push str.start_image_transfer
push 1
call fcn.00401d50
add esp, 0x48
xor eax, eax
push eax
push esi
push str.start_image_transfer:_Length_0x_X
push 0x52b
push str.start_image_transfer
push 1
call fcn.00401d50
add esp, 0x18
test esi, esi
jne 0x403886
xor eax, eax
je 0x4039ab
cmp dword [ebp - 8], 1
jne 0x4038bb
mov ecx, dword [0x429054]
push ecx
call fcn.00402160
add esp, 4
mov edx, esi
add edx, edi
mov ecx, ebx
adc ecx, ebx
mov dword [ebp - 0xc], eax
xor eax, eax
cmp ecx, eax
ja 0x4039ab
jb 0x4038bb
cmp edx, dword [ebp - 0xc]
ja 0x4039ab
mov edx, dword [0x429054]
push 0
push edi
push edx
call fcn.00407ca3
add esp, 0xc
test esi, esi
je 0x403921
mov ebx, dword [ebp - 4]
mov eax, esi
sub eax, ebx
mov edi, eax
cmp eax, 0x100000
jb 0x4038e6
mov edi, 0x100000
mov eax, dword [0x429044]
mov ecx, dword [0x429054]
push edi
push eax
push ecx
call fcn.0040e807
add esp, 0xc
test eax, eax
js 0x403933
cmp eax, edi
jne 0x403963
mov edx, dword [0x429044]
push edi
push edx
call fcn.004011a0
add esp, 8
test eax, eax
je 0x403989
add ebx, edi
mov dword [ebp - 4], ebx
cmp ebx, esi
jb 0x4038d1
add dword [0x429050], esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00406805
mov eax, dword [eax]
push eax
call fcn.00406706
push eax
push str.file_read_failed:__s
push 0x53f
push str.start_image_transfer
push 0
call fcn.00401d50
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push ecx
push esi
push eax
push str.Read__d_bytes__but_was_asked_for__ld_bytes
push 0x543
push str.start_image_transfer
push ecx
call fcn.00401d50
add esp, 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Tx_Sahara_Image_Failed
push 0x549
push str.start_image_transfer
push 0
call fcn.00401d50
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
push eax
push esi
push str.Invalid_length__ld_bytes_request_to_be_transmitted
push 0x532
push str.start_image_transfer
push eax
call fcn.00401d50
mov ecx, dword [0x429054]
push ecx
call fcn.00402160
push eax
push ebx
push edi
push str.File_offset__ld__file_size__d
push 0x533
push str.start_image_transfer
push 0
call fcn.00401d50
add esp, 0x38
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405815
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429084]
jne 0x40581f
repz ret
jmp fcn.00408ce4

Function at 0x4068da
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x406901
call fcn.00406818
mov dword [eax], esi
call fcn.00406805
push 0x16
pop esi
mov dword [eax], esi
call fcn.00409d8f
mov eax, esi
jmp 0x406956
test dword [ebp + 0xc], 0xfffffff9
jne 0x4068e7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40692e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040682b
pop ecx
call fcn.00406805
mov eax, dword [eax]
jmp 0x406956
test al, 0x10
jne 0x406954
test al, 1
je 0x406954
test byte [ebp + 0xc], 2
je 0x406954
call fcn.00406818
mov dword [eax], 5
call fcn.00406805
mov dword [eax], 0xd
jmp 0x406925
xor eax, eax
pop esi
pop ebp
ret
Function at 0x417eff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040cf13
and dword [ebp - 0x14], 0
cmp dword [0x42b9cc], 0
mov dword [ebp - 0x18], eax
jne 0x417fb2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41805a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41805a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42b9cc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42b9d0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42b9d4], eax
call edi
push eax
call esi
mov dword [0x42b9dc], eax
test eax, eax
je 0x417fb2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42b9d8], eax
mov eax, dword [0x42b9d8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41800b
cmp dword [0x42b9dc], ecx
je 0x41800b
push eax
call esi
push dword [0x42b9dc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41800b
test ebx, ebx
je 0x41800b
call edi
test eax, eax
je 0x418002
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x418002
test byte [ebp - 8], 1
jne 0x41800b
or dword [ebp + 0x10], 0x200000
jmp 0x41803e
mov eax, dword [0x42b9d0]
cmp eax, dword [ebp - 0x18]
je 0x41803e
push eax
call esi
test eax, eax
je 0x41803e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41803e
mov eax, dword [0x42b9d4]
cmp eax, dword [ebp - 0x18]
je 0x41803e
push eax
call esi
test eax, eax
je 0x41803e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42b9cc]
call esi
test eax, eax
je 0x41805a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41805c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405815
leave
ret
Function at 0x1244550
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x1244640
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x1244640
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x124459a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x12445a1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x1244580
jmp 0x12445a3
mov esi, 0x1505
jmp 0x12445a3
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x20]
mov edx, ebx
sub edx, 1
jb 0x1244640
mov ecx, esi
not ecx
or edx, ecx
mov eax, ebx
and eax, 0xfffffffe
add eax, eax
mov ecx, ebx
xor ecx, 1
sub eax, ecx
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
lea ebp, [esi + edx]
inc ebp
jmp 0x12445e4
inc ebp
dec ebx
je 0x124463e
mov eax, ebp
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x124463e
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x12445e0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp], eax
push eax
call fcn.0124c9c0
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x12445e0
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0124c9e0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x12445e0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x1244640
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1245890
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, 0xffffffff
cmp dword [esp + 0x28], 0
je 0x1245a8a
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x1245a8a
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x1245a8a
cmp dword [ecx], 0
jne 0x1245a8a
push esi
call fcn.0124c9c0
add esp, 4
test eax, eax
je 0x12458fa
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [esi + ebx]
test edx, edx
je 0x1245901
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, edx
inc ebx
mov ecx, edi
cmp eax, ebx
jne 0x12458e0
jmp 0x1245903
mov edi, 0x1505
jmp 0x1245903
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x20]
mov esi, edx
sub esi, 1
jae 0x12459cd
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x124595a
call fcn.01245b60
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov esi, dword [esp + 0x2c]
jne 0x1245a8a
push esi
call fcn.0124c9c0
add esp, 4
mov edx, esi
lea esi, [esp + 0x10]
mov ecx, dword [esp + 0x28]
push esi
push edi
push eax
call fcn.01245aa0
add esp, 0xc
mov ebp, eax
mov esi, dword [esp + 0x2c]
push esi
call fcn.0124c9c0
add esp, 4
mov ebx, eax
inc eax
push eax
call dword [fcn.01289008]
add esp, 4
test eax, eax
je 0x1245a85
mov byte [eax + ebx], 0
push ebx
push esi
push eax
mov esi, eax
call fcn.0124c8b0
add esp, 0xc
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov dword [eax + ebp*4], ecx
mov eax, dword [edx + 0x10]
mov esi, dword [esp + 0x30]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], ebp
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], edi
inc dword [edx + 0x18]
mov eax, dword [edx]
mov dword [esi], eax
xor eax, eax
jmp 0x1245a8a
mov dword [esp], eax
mov eax, edx
mov edx, edi
not edx
or esi, edx
mov ebx, eax
and ebx, 0xfffffffe
add ebx, ebx
mov edx, eax
xor edx, 1
sub ebx, edx
mov dword [esp + 0xc], ebx
mov edx, eax
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
lea ebx, [edi + esi]
inc ebx
jmp 0x1245a08
inc ebx
dec edx
je 0x1245915
mov ebp, ebx
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov esi, dword [eax + ebp*4]
cmp esi, 0xffffffff
je 0x124591a
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], edi
jne 0x1245a00
mov eax, dword [ecx + 0xc]
mov ebp, dword [eax + esi*4]
push ebp
mov dword [esp + 8], edx
call fcn.0124c9c0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp]
jne 0x1245a00
push dword [esp]
push ebp
push dword [esp + 0x34]
call fcn.0124c9e0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x1245a00
mov eax, dword [ecx + 0x10]
push dword [eax + esi*4]
call fcn.01244970
mov edx, dword [esp + 0x2c]
add esp, 4
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x30]
mov dword [eax + esi*4], ecx
mov esi, ecx
jmp 0x12459c2
mov eax, 0xffffffff
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1246b50
Capabilities:
Compute adler32 checksum
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x1246cf2
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x1246ceb
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, esi
sub edx, eax
jmp 0x1246be0
add ebp, dword [esp + 8]
mov esi, dword [esp + 4]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, dword [esp]
mov edx, 0x15b0
je 0x1246ceb
xor eax, eax
cmp edx, 8
mov dword [esp], edx
mov dword [esp + 4], esi
jb 0x1246c65
mov eax, edx
and eax, 0x1ff8
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ebx
movzx ebx, byte [ebp + ebx]
add ebx, edi
add ecx, ebx
movzx edi, byte [ebp + edx + 1]
add edi, ebx
add ecx, edi
movzx ebx, byte [ebp + edx + 2]
add ebx, edi
add ecx, ebx
movzx edi, byte [ebp + edx + 3]
add edi, ebx
add ecx, edi
movzx ebx, byte [ebp + edx + 4]
add ebx, edi
add ecx, ebx
movzx edi, byte [ebp + edx + 5]
add edi, ebx
mov ebx, ecx
xor ebx, edi
and ecx, edi
movzx esi, byte [ebp + edx + 6]
add esi, edi
movzx edi, byte [ebp + edx + 7]
add edi, esi
add esi, ebx
lea ecx, [esi + ecx*2]
lea ebx, [edx + 8]
add ecx, edi
add edx, 0xf
cmp edx, dword [esp]
mov edx, dword [esp]
jb 0x1246c00
add ebp, ebx
mov esi, dword [esp + 4]
mov ebx, edx
sub ebx, eax
mov dword [esp + 8], ebx
jbe 0x1246ba8
mov ebx, edx
mov edx, eax
or edx, 1
test bl, 1
jne 0x1246c90
mov ebx, ebp
cmp dword [esp], edx
je 0x1246ba0
jmp 0x1246cad
lea ebx, [ebp + 1]
movzx eax, byte [ebp]
add edi, eax
mov eax, edi
and eax, ecx
xor ecx, edi
lea ecx, [ecx + eax*2]
mov eax, edx
cmp dword [esp], edx
je 0x1246ba0
mov edx, dword [esp]
sub edx, eax
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [ebx + eax]
add esi, edi
mov edi, esi
and edi, ecx
xor ecx, esi
lea ecx, [ecx + edi*2]
movzx edi, byte [ebx + eax + 1]
add edi, esi
mov esi, edi
and esi, ecx
xor ecx, edi
lea ecx, [ecx + esi*2]
add eax, 2
cmp edx, eax
jne 0x1246cc0
jmp 0x1246ba0
shl ecx, 0x10
or ecx, edi
jmp 0x1246cf7
mov ecx, 1
mov eax, ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1246d10
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1246d3e
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x1246ddc
not eax
test bl, 1
jne 0x1246d45
mov edx, ebx
cmp ebx, 1
jne 0x1246d76
jmp 0x1246dda
xor eax, eax
jmp 0x1246ddc
lea edx, [ebx - 1]
movzx esi, byte [ecx]
mov edi, eax
shr edi, 4
xor eax, esi
and eax, 0xf
xor edi, dword [eax*4 + 0x1286c50]
inc ecx
mov eax, edi
shr eax, 4
and edi, 0xf
shr esi, 4
xor esi, edi
xor eax, dword [esi*4 + 0x1286c50]
cmp ebx, 1
je 0x1246dda
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0x1286c50]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x1286c50]
movzx edi, byte [ecx + esi + 1]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0x1286c50]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x1286c50]
add esi, 2
cmp edx, esi
jne 0x1246d80
not eax
pop esi
pop edi
pop ebx
ret