joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10073902
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1009a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.10066809
pop ecx
test eax, eax
je 0x10073937
push esi
push esi
push esi
push esi
push esi
call fcn.100688c2
add esp, 0x14
push 4
pop eax
call fcn.10062090
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10073a53
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x100739cc
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1000d210
call esi
test eax, eax
jne 0x100739a3
push 0x1000d1f4
call esi
test eax, eax
je 0x100739cc
push 0x1000dd88
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100739cc
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x100739cc
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x100739cc
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.10067461
add esp, 0xc
test eax, eax
jl 0x10073a53
not esi
and dword [ebp - 8], esi
je 0x100739fe
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.10067461
add esp, 0xc
test eax, eax
jl 0x10073a53
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x10073a09
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x10073a1d
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x10073a53
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10073a53
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10073a53
xor eax, eax
inc eax
jmp 0x10073a55
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10062074
leave
ret
Function at 0x10073f49
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10066ade
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x1009cdd0], ebx
jne 0x10074022
push ebx
push ebx
push 0x1000e534
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x10073f8d
xor eax, eax
jmp 0x100740e6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1000e528
push edi
call esi
cmp eax, ebx
je 0x10073f86
push eax
call fcn.10066a66
mov dword [esp], 0x1000e518
push edi
mov dword [0x1009cdd0], eax
call esi
push eax
call fcn.10066a66
mov dword [esp], 0x1000e504
push edi
mov dword [0x1009cdd4], eax
call esi
push eax
call fcn.10066a66
mov dword [0x1009cdd8], eax
lea eax, [ebp - 8]
push eax
call fcn.10066809
pop ecx
pop ecx
test eax, eax
je 0x10073ff0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100688c2
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10074022
push 0x1000e4e8
push edi
call esi
push eax
call fcn.10066a66
pop ecx
mov dword [0x1009cde0], eax
cmp eax, ebx
je 0x10074022
push 0x1000e4d0
push edi
call esi
push eax
call fcn.10066a66
pop ecx
mov dword [0x1009cddc], eax
mov eax, dword [0x1009cddc]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1007409b
cmp dword [0x1009cde0], esi
je 0x1007409b
push eax
call fcn.10066aec
pop ecx
call eax
cmp eax, ebx
je 0x10074068
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1009cde0]
call fcn.10066aec
pop ecx
call eax
test eax, eax
je 0x10074068
test byte [ebp - 0x18], 1
jne 0x1007409b
lea eax, [ebp - 0xc]
push eax
call fcn.1006684a
pop ecx
test eax, eax
je 0x10074083
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100688c2
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x10074092
or dword [ebp + 0x10], 0x200000
jmp 0x100740cc
or dword [ebp + 0x10], 0x40000
jmp 0x100740cc
mov eax, dword [0x1009cdd4]
cmp eax, esi
je 0x100740cc
push eax
call fcn.10066aec
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x100740cc
mov eax, dword [0x1009cdd8]
cmp eax, esi
je 0x100740cc
push dword [ebp - 4]
push eax
call fcn.10066aec
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1009cdd0]
call fcn.10066aec
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1007a917
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
push 0
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [esi]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1007a94f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1007a976
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1007a947
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x3e4
pop esi
leave
ret 0x14

Function at 0x1007c006
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, eax
test edx, edx
jle 0x1007c03f
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
shr esi, 8
xor esi, edi
shl eax, 8
and esi, 0xff
xor ax, word [esi*2 + 0x1009b470]
dec edx
inc ecx
movzx eax, ax
test edx, edx
jg 0x1007c019
pop edi
pop esi
pop ebp
ret 8

Function at 0x1007f6b5
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007f6c5

Function at 0x1007f7ec
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
push edi
lea eax, [esi + 0x810]
mov dword [ebp - 0xc], 0x2b
and dword [ebp - 8], 0
and dword [ebp - 4], 0
mov ecx, esi
mov edx, 0x1300
movzx edi, byte [ecx]
add edi, edx
mov di, word [edi*2 + 0x1000f880]
xor word [ebp - 4], di
inc ecx
movzx edi, byte [ecx]
add edi, edx
mov di, word [edi*2 + 0x1000f880]
xor word [ebp - 8], di
add edx, 0x100
add ecx, 0x55
cmp edx, 0x2b00
jl 0x1007f814
mov ecx, dword [ebp - 4]
shr ecx, 8
mov byte [eax], cl
mov cl, byte [ebp - 4]
mov byte [eax + 0x56], cl
mov ecx, dword [ebp - 8]
shr ecx, 8
mov byte [eax + 1], cl
mov cl, byte [ebp - 8]
mov byte [eax + 0x57], cl
inc eax
inc eax
inc esi
inc esi
dec dword [ebp - 0xc]
jne 0x1007f805
pop edi
xor eax, eax
pop esi
leave
ret

Function at 0x1007f909
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
lea esi, [eax + edx]
mov eax, dword [ebp + 0x10]
sub eax, edx
xor ecx, ecx
inc eax
cdq
and edx, 3
add eax, edx
sar eax, 2
dec eax
js 0x1007f97e
mov edx, 0xff
push edi
movzx edi, byte [esi]
xor edi, ecx
and edi, edx
shr ecx, 8
xor ecx, dword [edi*4 + 0x1009b670]
inc esi
movzx edi, byte [esi]
xor edi, ecx
and edi, edx
shr ecx, 8
xor ecx, dword [edi*4 + 0x1009b670]
inc esi
movzx edi, byte [esi]
xor edi, ecx
and edi, edx
shr ecx, 8
xor ecx, dword [edi*4 + 0x1009b670]
inc esi
movzx edi, byte [esi]
xor edi, ecx
and edi, edx
shr ecx, 8
xor ecx, dword [edi*4 + 0x1009b670]
inc esi
dec eax
jns 0x1007f932
pop edi
mov eax, ecx
pop esi
pop ebp
ret 0xc
Function at 0x10080d29
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, eax
cmp dword [esi + 0x114], 0
je 0x10080edd
push ebx
mov ebx, dword [ebp + 8]
shr ebx, 1
mov eax, 0x45e
cmp bx, ax
movzx eax, bx
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x10], ebx
cdq
jae 0x10080d6a
push 0x2b
pop edi
idiv edi
sub eax, edx
add eax, 0x34
movzx eax, ax
cdq
push 0x1a
pop edi
idiv edi
mov eax, 0x45e
cmp bx, ax
mov eax, dword [ebp - 4]
mov edi, edx
cdq
jae 0x10080d88
push 0x2b
pop ebx
idiv ebx
mov eax, edx
jmp 0x10080d8d
push 0x1a
pop ebx
idiv ebx
and dword [ebp - 0xc], 0
mov ebx, ecx
imul ebx, ebx, 0x1a
add edi, ebx
mov edx, edi
movzx edi, byte [edi + esi + 0x134e]
imul edx, edx, 0x2d
lea edx, [edx + esi + 0x9d4]
mov dword [ebp - 8], edx
test edi, edi
jbe 0x10080dcd
add eax, 0xd2
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
cmp edx, eax
jne 0x10080dc5
inc dword [ebp - 0xc]
dec edi
inc dword [ebp - 8]
test edi, edi
ja 0x10080db8
mov edx, dword [ebp + 8]
mov edi, dword [esi + 0x114]
lea eax, [edx + ecx]
add eax, edi
xor byte [eax], 1
cmp edx, 0x8bc
jae 0x10080e4d
mov eax, dword [ebp - 4]
imul ecx, ecx, 0x2b
cdq
push 0x2b
pop edi
idiv edi
mov edi, edx
lea edx, [eax + 0xe5]
lea eax, [ecx + edi]
mov ecx, eax
imul ecx, ecx, 0x1a
lea edi, [eax + esi + 0x12f8]
movzx eax, byte [edi]
lea ecx, [ecx + esi + 0x118]
jmp 0x10080e21
movzx ecx, byte [ecx]
cmp ecx, edx
mov ecx, dword [ebp + 8]
je 0x10080e28
dec eax
inc ecx
mov dword [ebp + 8], ecx
test eax, eax
ja 0x10080e15
cmp eax, 1
jbe 0x10080e3e
dec eax
push eax
lea eax, [ecx + 1]
push eax
push ecx
call fcn.10062770
add esp, 0xc
jmp 0x10080e43
jne 0x10080e43
mov byte [ecx], 0
mov al, byte [edi]
test al, al
jbe 0x10080e4d
dec al
mov byte [edi], al
mov edi, 0x45e
mov eax, edi
cmp word [ebp - 0x10], ax
mov eax, dword [ebp - 4]
cdq
jae 0x10080e6c
push 0x2b
pop ecx
idiv ecx
sub eax, edx
add eax, 0x34
movzx eax, ax
cdq
push 0x1a
pop ecx
idiv ecx
add ebx, edx
mov eax, ebx
imul eax, eax, 0x2d
lea ecx, [eax + esi + 0x9d4]
mov eax, dword [ebp - 4]
cdq
cmp word [ebp - 0x10], di
jae 0x10080e92
push 0x2b
pop edi
idiv edi
mov eax, edx
jmp 0x10080e97
push 0x1a
pop edi
idiv edi
lea esi, [ebx + esi + 0x134e]
lea edx, [eax + 0xd2]
movzx eax, byte [esi]
jmp 0x10080eb2
movzx edi, byte [ecx]
cmp edi, edx
je 0x10080eb6
dec eax
inc ecx
test eax, eax
ja 0x10080ea9
pop edi
pop ebx
cmp eax, 1
jbe 0x10080ece
dec eax
push eax
lea eax, [ecx + 1]
push eax
push ecx
call fcn.10062770
add esp, 0xc
jmp 0x10080ed3
jne 0x10080ed3
mov byte [ecx], 0
mov al, byte [esi]
test al, al
jbe 0x10080edd
dec al
mov byte [esi], al
pop esi
leave
ret 4

Function at 0x100820db
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
lea edx, [eax + esi]
sub ecx, esi
xor eax, eax
inc ecx
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x1009ba70]
inc edx
dec ecx
jne 0x100820f2
pop esi
pop ebp
ret 0xc
Function at 0x100821b8
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0xac
lea esi, [edi + 0x810]
push 0
push esi
call fcn.100620c0
add esp, 0xc
and dword [ebp + 8], 0
xor edx, edx
movzx eax, byte [edi]
inc edi
movzx ecx, byte [edi]
add eax, edx
mov bl, byte [eax + 0x10020000]
xor byte [esi], bl
add ecx, edx
mov bl, byte [ecx + 0x10020000]
inc edi
inc esi
xor byte [esi], bl
mov al, byte [eax + 0x10020100]
add esi, 0x55
xor byte [esi], al
mov al, byte [ecx + 0x10020100]
inc esi
xor byte [esi], al
add edx, 0x200
sub esi, 0x55
cmp edx, 0x5400
jle 0x100821df
movzx eax, byte [edi]
mov dl, byte [eax + 0x10025600]
inc edi
movzx ecx, byte [edi]
xor byte [esi], dl
mov dl, byte [ecx + 0x10025600]
add eax, 0x5600
add ecx, 0x5600
inc edi
inc esi
xor byte [esi], dl
mov al, byte [eax + 0x10020100]
add esi, 0x55
xor byte [esi], al
mov al, byte [ecx + 0x10020100]
inc esi
xor byte [esi], al
sub esi, 0xab
cmp dword [ebp + 8], 0x17
jge 0x1008226d
inc dword [ebp + 8]
jmp 0x100821dd
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4

Function at 0x10082684
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
push 0x10091fe8
call fcn.100647f4
mov dword [ebp - 0x28], 0x78
mov dword [ebp - 0x1c], 4
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x20]
push eax
push 0x20019
push ebx
push 0x10024534
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x10082736
lea eax, [ebp - 0x1c]
push eax
push 0x100adaec
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x10024528
push dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
lea eax, [ebp - 0x1c]
push eax
push 0x100adaf0
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x10002928
push dword [ebp - 0x20]
call esi
mov eax, 0x104
mov dword [ebp - 0x1c], eax
push eax
push ebx
mov edi, 0x1009bf40
push edi
call fcn.100620c0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x10002918
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
call fcn.1008274d
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x28]
jmp 0x10082769
call fcn.10064839
ret
Function at 0x100827f2
Capabilities:
Read file on windows

Disassembly:
push 0x14c
push 0x10092038
call fcn.10063360
mov esi, dword [ebp + 8]
mov dword [ebp - 0x124], 0x78
or dword [ebp - 0x128], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x12c], ebx
mov byte [ebp - 0x120], bl
push 0x103
push ebx
lea eax, [ebp - 0x11f]
push eax
call fcn.100620c0
add esp, 0xc
mov dword [ebp - 4], ebx
xor eax, eax
inc eax
mov dword [ebp - 4], eax
push ebx
push 0x80
push 3
push ebx
push eax
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x128], eax
cmp eax, 0xffffffff
jne 0x10082873
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x124], eax
jmp 0x10082927
push 0x104
push ebx
lea eax, [ebp - 0x120]
push eax
call fcn.100620c0
add esp, 0xc
mov edx, esi
lea ecx, [ebp - 0x120]
mov al, byte [edx]
mov byte [ecx], al
inc edx
inc ecx
cmp al, bl
jne 0x10082890
lea eax, [ebp - 0x120]
push eax
call fcn.1006250e
mov dword [esp], 0x10024560
lea eax, [ebp - 0x120]
push eax
call fcn.100621e0
pop ecx
pop ecx
test eax, eax
jne 0x10082921
push 0x2c
push ebx
lea eax, [ebp - 0x15c]
push eax
call fcn.100620c0
add esp, 0xc
push ebx
lea eax, [ebp - 0x12c]
push eax
push 0x2c
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10082862
cmp dword [ebp - 0x12c], 0x2c
je 0x1008290b
mov dword [ebp - 0x124], 0x3e4
jmp 0x10082927
lea eax, [ebp - 0x15c]
push eax
call fcn.10083ebc
mov dword [ebp - 0x124], eax
cmp eax, ebx
jne 0x10082927
mov dword [ebp - 0x124], ebx
mov dword [ebp - 4], ebx
call fcn.1008293e
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x124]
jmp 0x10082975
call fcn.100633a8
ret 4
Function at 0x10082982
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10092060
push 0x100633c0
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x111c
call fcn.10062090
mov eax, dword [0x1009a008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1130], eax
mov dword [ebp - 0x1124], 0x78
or dword [ebp - 0x1128], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x112c], ebx
mov byte [ebp - 0x120], bl
push 0x103
push ebx
lea eax, [ebp - 0x11f]
push eax
call fcn.100620c0
add esp, 0xc
mov dword [ebp - 4], ebx
xor eax, eax
inc eax
mov dword [ebp - 4], eax
push ebx
push 0x80
push 3
push ebx
push eax
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1128], eax
cmp eax, 0xffffffff
jne 0x10082a41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1124], eax
jmp 0x10082afd
push 0x104
push ebx
lea eax, [ebp - 0x120]
push eax
call fcn.100620c0
add esp, 0xc
lea ecx, [ebp - 0x120]
mov al, byte [esi]
mov byte [ecx], al
inc esi
inc ecx
cmp al, bl
jne 0x10082a5c
lea eax, [ebp - 0x120]
push eax
call fcn.1006250e
mov dword [esp], 0x10024560
lea eax, [ebp - 0x120]
push eax
call fcn.100621e0
pop ecx
pop ecx
test eax, eax
jne 0x10082af7
mov esi, 0x1000
push esi
push ebx
lea eax, [ebp - 0x1120]
push eax
call fcn.100620c0
add esp, 0xc
push ebx
lea eax, [ebp - 0x112c]
push eax
push esi
lea eax, [ebp - 0x1120]
push eax
push dword [ebp - 0x1128]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10082a30
cmp dword [ebp - 0x112c], esi
je 0x10082ad9
mov dword [ebp - 0x1124], 0x3e4
jmp 0x10082afd
push dword [ebp - 0x1130]
push edi
push esi
lea eax, [ebp - 0x1120]
push eax
call fcn.10083f45
mov dword [ebp - 0x1124], eax
cmp eax, ebx
jne 0x10082afd
mov dword [ebp - 0x1124], ebx
mov dword [ebp - 4], ebx
call fcn.10082b14
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1124]
jmp 0x10082b4b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10062074
leave
ret 0xc
Function at 0x10082b6c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10092088
push 0x100633c0
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x1220
call fcn.10062090
mov eax, dword [0x1009a008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1234], eax
mov dword [ebp - 0x1228], 0x78
or dword [ebp - 0x122c], 0xffffffff
xor edi, edi
mov dword [ebp - 0x1230], edi
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
push edi
lea eax, [ebp - 0x222]
push eax
call fcn.100620c0
add esp, 0xc
mov dword [ebp - 4], edi
xor eax, eax
inc eax
mov dword [ebp - 4], eax
push edi
push 0x80
push 3
push edi
push eax
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x122c], eax
cmp eax, 0xffffffff
jne 0x10082c2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1228], eax
jmp 0x10082cef
push 0x208
push edi
lea eax, [ebp - 0x224]
push eax
call fcn.100620c0
add esp, 0xc
lea ecx, [ebp - 0x224]
movzx eax, word [esi]
mov word [ecx], ax
inc esi
inc esi
inc ecx
inc ecx
cmp ax, di
jne 0x10082c49
lea eax, [ebp - 0x224]
push eax
call fcn.10086eac
mov dword [esp], 0x10024568
lea eax, [ebp - 0x224]
push eax
call fcn.10086c1e
pop ecx
pop ecx
test eax, eax
jne 0x10082ce9
mov esi, 0x1000
push esi
push edi
lea eax, [ebp - 0x1224]
push eax
call fcn.100620c0
add esp, 0xc
push edi
lea eax, [ebp - 0x1230]
push eax
push esi
lea eax, [ebp - 0x1224]
push eax
push dword [ebp - 0x122c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10082c1d
cmp dword [ebp - 0x1230], esi
je 0x10082ccb
mov dword [ebp - 0x1228], 0x3e4
jmp 0x10082cef
push dword [ebp - 0x1234]
push ebx
push esi
lea eax, [ebp - 0x1224]
push eax
call fcn.10083f45
mov dword [ebp - 0x1228], eax
cmp eax, edi
jne 0x10082cef
mov dword [ebp - 0x1228], edi
mov dword [ebp - 4], edi
call fcn.10082d06
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1228]
jmp 0x10082d3d
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10062074
leave
ret 0xc
Function at 0x10082dec
Capabilities:
Print debug messages

Disassembly:
push 0x414
push 0x100920d8
call fcn.10063360
mov dword [ebp - 0x420], 0x78
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 4], 1
push 0x400
push ebx
lea eax, [ebp - 0x41c]
push eax
call fcn.100620c0
push 0x20100110
push 0x100016d8
push 0x10024574
lea eax, [ebp - 0x41c]
push eax
call fcn.10062ada
add esp, 0x1c
lea edi, [ebp - 0x41c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10082e48
push 0x12
pop ecx
mov esi, 0x10001650
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x41c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10082e61
push 0x10
pop ecx
mov esi, 0x10001608
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.10082684
push dword [0x100adaec]
call fcn.1008401a
push dword [0x100adaf0]
call fcn.10084030
push 0x1009bf40
call fcn.10084046
call fcn.10082d5e
mov dword [ebp - 0x420], eax
cmp eax, ebx
jne 0x10082ebc
mov dword [ebp - 0x420], ebx
mov dword [ebp - 4], ebx
call fcn.10082ed3
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x420]
jmp 0x10082ef5
call fcn.100633a8
ret
Function at 0x10086439
Capabilities:
Write file on windows

Disassembly:
push 0x20
push 0x100924d8
call fcn.100647f4
mov esi, ecx
mov dword [ebp - 0x1c], 0x80004021
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10086bf0
lea ecx, [ebp - 0x2c]
call fcn.10086c10
mov dword [ebp - 4], ebx
xor eax, eax
inc eax
mov dword [ebp - 4], eax
cmp byte [esi + 0x22c], al
jne 0x100864d2
push ebx
lea eax, [ebp - 0x24]
push eax
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
push dword [esi + 0x244]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100864b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100864ae
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x1c], eax
jmp 0x100865a8
cmp dword [ebp - 0x24], edi
je 0x100864c7
mov dword [ebp - 0x1c], 0x800703e4
jmp 0x100865a8
add dword [esi + 0x240], edi
jmp 0x100865a5
cmp dword [esi + 0x20], ebx
jne 0x100864e3
mov dword [ebp - 0x1c], 0x80070548
jmp 0x100865a8
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x10086500
mov dword [ebp - 0x1c], 0x80070057
jmp 0x100865a8
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push edi
push eax
call dword [ecx + 0x34]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jl 0x100865a8
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jl 0x100865a8
push edi
push dword [ebp + 8]
push dword [ebp - 0x28]
call fcn.10062770
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x10]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jl 0x100865a8
mov edi, dword [esi + 0x20]
push dword [ebp - 0x20]
push ebx
push ebx
push 0x2710
push dword [esi + 0x23c]
push dword [esi + 0x238]
call fcn.10063910
push edx
push eax
push dword [esi + 0x230]
push edi
mov eax, dword [edi]
call dword [eax + 0x38]
mov dword [ebp - 0x1c], eax
xor ebx, ebx
cmp eax, ebx
jl 0x100865a8
mov eax, dword [ebp + 0xc]
mov ecx, 0x3e8
mul ecx
push ebx
push 0x2b110
push edx
push eax
call fcn.10063260
add dword [esi + 0x238], eax
adc dword [esi + 0x23c], edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call fcn.100865b4
jmp 0x100865ec
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.10064839
ret 8
Function at 0x10086603
Capabilities:
Write file on windows

Disassembly:
push 0x3c
push 0x10092500
call fcn.100647f4
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [esi], 0x100246bc
xor edi, edi
mov dword [ebp - 0x1c], edi
cmp byte [esi + 0x22c], 1
jne 0x1008667f
mov dword [ebp - 4], edi
push edi
push edi
push edi
push dword [esi + 0x244]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1008666d
cmp eax, edi
jne 0x10086673
push dword [esi + 0x240]
lea eax, [ebp - 0x4c]
push eax
call fcn.10083e48
push edi
lea eax, [ebp - 0x1c]
push eax
push 0x2c
lea eax, [ebp - 0x4c]
push eax
push dword [esi + 0x244]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10086673
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0xfffffffe
call fcn.100866ac
mov ecx, esi
call fcn.1008544d
mov eax, dword [esi + 0x248]
cmp eax, edi
je 0x10086697
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esi, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.10064839
ret