joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fe80
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41907c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x40febb
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040366e
mov esp, ebp
pop ebp
ret
push ebx
push 0xf01ff
push str.StiSvc
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x40feed
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebx + 1]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040366e
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40ff1f
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
push esi
call edi
pop edi
pop ebx
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040366e
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x40ff7a
cmp eax, 3
je 0x40ff47
lea ecx, [ebp - 0x20]
push ecx
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40ff7a
call esi
sub eax, edi
cmp eax, 0xc350
jae 0x40ff7a
lea edx, [ebp - 0x20]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40ffa8
cmp dword [ebp - 0x1c], 1
je 0x40ff7a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, edi
cmp eax, 0xc350
jb 0x40ff52
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
mov ecx, dword [ebp - 0x24]
push ecx
call ebx
call esi
sub eax, edi
mov edx, 0xc350
cmp edx, eax
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040366e
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
mov eax, dword [ebp - 0x24]
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040366e
mov esp, ebp
pop ebp
ret
Function at 0x40ffd0
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41907c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x41000b
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040366e
mov esp, ebp
pop ebp
ret
push ebx
push 0xf01ff
push str.StiSvc
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x41003d
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebx + 1]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040366e
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x41006f
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
push esi
call edi
pop edi
pop ebx
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040366e
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 1
jne 0x410080
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xc350
jae 0x4100bd
lea ecx, [ebp - 0x20]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4100eb
cmp dword [ebp - 0x1c], 4
je 0x4100bd
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, edi
cmp eax, 0xc350
jb 0x410095
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
mov eax, dword [ebp - 0x24]
push eax
call ebx
call esi
sub eax, edi
mov ecx, 0xc350
cmp ecx, eax
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040366e
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
mov edx, dword [ebp - 0x24]
push edx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040366e
mov esp, ebp
pop ebp
ret
Function at 0x410110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x41907c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [edx]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push esi
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x14]
dec eax
jne 0x410166
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jne 0x410186
mov esi, dword [ebp + 0xc]
push ebx
mov eax, 0x41637c
call fcn.004012f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.00401da0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [eax]
push edi
lea edx, [ebp - 0x14]
push edx
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x10]
push edx
push edi
call fcn.00403d51
mov esi, dword [ebp + 0xc]
add esp, 8
push eax
mov eax, edi
call fcn.004012f0
cmp edi, ebx
je 0x4101d9
push edi
call fcn.00403d7c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418f40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420de0], ecx
add edx, 1
cmp edx, 0x100
jb 0x418f42
cmp edx, 0x800
jae 0x41902b
mov edi, edi
mov eax, dword [edx*4 + 0x4209e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420de0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x420ddc], eax
jb 0x419000
mov dword [0x420dbc], 0x4196e0
call fcn.00419170
test eax, eax
jne 0x419048
mov dword [0x420dbc], 0x419600
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x438c8e
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
mov eax, dword [esp]
add esp, 4
sub ecx, ecx
call fcn.00438cd5
add ecx, 0x1500d984
and ecx, ecx
sub esi, esi
xor dword [edi], eax
add esi, ecx
or esi, esi
add edi, 1
add esi, 0xcf4d1f8f
add esi, ecx
cmp edi, edx
jne fcn.00438c8e
mov esi, esi
sub esi, 0x16d680b0
add ecx, 0x8158212b
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401ea0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x401ed1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401ed1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x401ed1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x4d033940
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push 0xffffffffffffffff
push 0x13a771f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 1
call fcn.4d0368de
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 2
call fcn.4d0368de
lea eax, [esp + 0x28]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x20], 3
call fcn.4d036968
mov eax, dword [esp + 0x28]
cmp dword [eax - 8], esi
jle 0x4d0339e5
push ebx
mov ebx, dword [esp + 0x30]
mov al, byte [esi + eax]
xor ecx, ecx
mov cl, bh
xor cl, al
push ecx
push esi
lea ecx, [esp + 0x14]
call fcn.4d036a94
mov edx, dword [esp + 0xc]
movzx ax, byte [esi + edx]
add eax, ebx
mov ebx, 0x58bf
lea ecx, [eax + eax*2]
shl ecx, 4
sub ecx, eax
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*8]
lea edx, [eax + ecx*2]
mov eax, dword [esp + 0x2c]
sub ebx, edx
inc esi
cmp esi, dword [eax - 8]
jl 0x4d0339a0
pop ebx
lea eax, [esp + 8]
lea ecx, [esp + 0x28]
push eax
call fcn.4d036968
lea ecx, [esp + 8]
call fcn.4d03699e
mov eax, dword [esp + 0x28]
xor edi, edi
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x4d033a79
mov cl, byte [edi + eax]
push 0x13ab480
mov byte [esp + 0x30], cl
lea ecx, [esp + 0x10]
mov esi, dword [esp + 0x30]
and esi, 0xff
call fcn.4d0368d8
mov eax, 0x4ec4ec4f
lea ecx, [esp + 0xc]
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
add dl, 0x41
push edx
push 0
call fcn.4d036a94
mov eax, esi
mov ecx, 0x1a
cdq
idiv ecx
lea ecx, [esp + 0xc]
add dl, 0x41
push edx
push 1
call fcn.4d036a94
lea edx, [esp + 0xc]
lea ecx, [esp + 8]
push edx
call fcn.4d036a8e
mov eax, dword [esp + 0x28]
inc edi
cmp edi, dword [eax - 8]
jl 0x4d033a09
mov esi, dword [esp + 0x24]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.4d03695c
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 2
call fcn.4d0368cc
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 1
call fcn.4d0368cc
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call fcn.4d0368cc
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xa81520
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0xab2c50
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00a95a07
add esp, 0xc
test eax, eax
je 0xa81544
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.00a95ae4
mov eax, dword [esp + 0x1c]
push eax
call fcn.00a95d06
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.00a95ae4
lea ebp, [esi + 0x32]
push ebp
call fcn.00a9565a
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.00a96014
mov eax, dword [esp + 0x40]
push eax
call fcn.00a960a8
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.00a83fc0
mov ecx, dword [esp + 0x4c]
push 0xab2c58
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00a95a07
add esp, 0x40
test eax, eax
je 0xa815c2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.00a96286
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00a960a8
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0xa82f70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x68c
mov eax, dword [0xab7c24]
xor eax, esp
mov dword [esp + 0x684], eax
push ebx
push ebp
push esi
push edi
push 0xab32d0
push 0xab32d4
call fcn.00a96400
mov esi, eax
add esp, 8
test esi, esi
je 0xa82fc8
push 0
push 0x2580
push esi
call fcn.00a95ae4
add esp, 0xc
push esi
push 5
push 1
push 0xab32e0
call fcn.00a96286
push esi
call fcn.00a960a8
add esp, 0x14
cmp byte [0xabc78b], 1
jne 0xa83146
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x492]
push ecx
mov word [esp + 0x494], ax
call fcn.00a97c50
mov esi, dword [fcn.00aab20c]
add esp, 0xc
push 0xab32e8
mov dword [esp + 0x18], 0
call esi
mov edi, dword [0xaab08c]
mov ebx, dword [0xaab1fc]
mov ebp, dword [fcn.00aab240]
cmp eax, 0xffffffff
je 0xa8304e
test al, 1
je 0xa83028
xor eax, 1
test al, 4
je 0xa8302f
xor eax, 4
test al, 2
je 0xa83036
xor eax, 2
test al, 0x20
je 0xa8303d
xor eax, 0x20
push eax
push 0xab32e8
call edi
push 0xab32e8
call ebx
call ebp
push 0xab3304
call esi
cmp eax, 0xffffffff
je 0xa83087
test al, 1
je 0xa83061
xor eax, 1
test al, 4
je 0xa83068
xor eax, 4
test al, 2
je 0xa8306f
xor eax, 2
test al, 0x20
je 0xa83076
xor eax, 0x20
push eax
push 0xab3304
call edi
push 0xab3304
call ebx
call ebp
push 0xab3330
call esi
cmp eax, 0xffffffff
je 0xa830c0
test al, 1
je 0xa8309a
xor eax, 1
test al, 4
je 0xa830a1
xor eax, 4
test al, 2
je 0xa830a8
xor eax, 2
test al, 0x20
je 0xa830af
xor eax, 0x20
push eax
push 0xab3330
call edi
push 0xab3330
call ebx
call ebp
push 0x104
lea edx, [esp + 0x48c]
push edx
call dword [fcn.00aab200]
movzx eax, word [esp + 0x488]
sub eax, 0x41
push eax
lea ebx, [esp + 0x18]
call fcn.00a84440
mov ebx, dword [esp + 0x18]
add esp, 4
call fcn.00a842c0
mov edi, eax
cmp edi, 0xffffffff
je 0xa83146
lea esi, [esp + 0x250]
call fcn.00a84780
test eax, eax
je 0xa83146
mov ecx, edi
call fcn.00a831c0
mov ecx, 0x8d
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x250]
push 0x236
lea edx, [esp + 0x1c]
push edx
movsw word es:[edi], word [esi]
push 0x1e
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0x5042475f
call fcn.00a84250
add esp, 0xc
mov ecx, dword [esp + 0x694]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00a955fc
add esp, 0x68c
ret
Function at 0xa83530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.00a9631a
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0xab34e8]
fadd qword [0xab3500]
call fcn.00a99970
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0xa83650
call fcn.00a9631a
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0xab34e8]
fmul qword [0xab34f8]
fadd qword [0xab34f0]
call fcn.00a99970
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0xa83638
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0xa83629
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0xa83620
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0xa835e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
Function at 0xa85b90
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
mov eax, 0x1068
call fcn.00a9a100
mov eax, dword [0xab7c24]
xor eax, esp
mov dword [esp + 0x1064], eax
mov eax, dword [esp + 0x106c]
push ebx
push ebp
push 0xab1cf8
push eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
xor ebp, ebp
call fcn.00a95a07
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0xa85bfb
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
pop ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.00a955fc
add esp, 0x1068
ret
push esi
push 2
push ebx
push eax
call fcn.00a95ae4
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00a95d06
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov dword [esp + 0x2c], eax
call fcn.00a95ae4
mov eax, dword [esp + 0x28]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push 1
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
mov dword [esp + 0x58], 0xc3d2e1f0
call fcn.00a96014
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jbe 0xa85ca6
lea edx, [esp + 0x70]
push esi
push edx
lea ebx, [esp + 0x1c]
call fcn.00a85a00
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
add ebp, esi
call fcn.00a96014
mov esi, eax
add esp, 0x18
test esi, esi
ja 0xa85c71
xor ebx, ebx
push edi
lea esi, [esp + 0x18]
call fcn.00a85aa0
mov edx, dword [esp + 0x10]
push edx
call fcn.00a960a8
add esp, 8
pop esi
cmp ebp, dword [esp + 0xc]
jb 0xa85bd4
mov ecx, dword [esp + 0x106c]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00a955fc
add esp, 0x1068
ret

Function at 0xa864a0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.00a9a100
mov eax, dword [0xab7c24]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [ebx]
mov eax, dword [esp + 0x1010]
push ebp
mov ebp, dword [0xaab3fc]
push edi
xor edi, edi
push edi
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0xa864f8
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00a955fc
add esp, 0x100c
ret
cmp dword [esp + 8], edi
jbe 0xa8653d
push esi
nop
mov ecx, dword [ebx]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0xa8653c
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00a96286
add edi, esi
add esp, 0x10
mov dword [0xabc204], edi
cmp edi, dword [esp + 0xc]
jb 0xa86500
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00a960a8
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp edi, dword [esp + 8]
pop edi
sbb eax, eax
pop ebp
xor ecx, esp
inc eax
call fcn.00a955fc
add esp, 0x100c
ret
Function at 0xa869e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0xab7c24]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.00a97c50
add esp, 0xc
cmp edi, esi
je 0xa86ac8
mov eax, 0xab17d4
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0xa86a25
sub eax, edx
sar eax, 1
je 0xa86a4f
push 0xab16f4
lea edx, [esp + 8]
push 0xab17d4
push edx
call fcn.00a95a07
add esp, 0xc
jmp 0xa86a8a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [fcn.00aab204]
push 0xab16fc
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.00a957f4
push 0xab1718
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00a95a07
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0xa86aad
push eax
push 1
push 0x200
push edi
call fcn.00a96286
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00a960a8
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00a955fc
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00a955fc
add esp, 0x214
ret

Function at 0xa86ae0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0xab7c24]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00a97c50
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0xa86be5
mov eax, 0xab1750
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0xa86b25
sub eax, edx
sar eax, 1
je 0xa86be5
cmp dword [0xab8f90], 3
jne 0xa86b6c
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [fcn.00aab200]
push 0xab1720
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00a957f4
add esp, 0xc
jmp 0xa86b7c
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [fcn.00aab204]
push 0xab1750
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.00a957f4
push 0xab1724
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00a95a07
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0xa86be5
push eax
push 1
push 0x200
push esi
call fcn.00a96014
mov edx, dword [esp + 0x14]
push edx
call fcn.00a960a8
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00a955fc
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00a955fc
add esp, 0x214
ret
Function at 0xa86c00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0xab7c24]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00a97c50
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0xa86ccf
mov eax, 0xab1734
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0xa86c45
sub eax, edx
sar eax, 1
je 0xa86ccf
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [fcn.00aab204]
push 0xab1734
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00a957f4
push 0xab172c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00a95a07
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0xa86ccf
push eax
push 1
push 0x200
push esi
call fcn.00a96014
mov eax, dword [esp + 0x14]
push eax
call fcn.00a960a8
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00a955fc
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00a955fc
add esp, 0x214
ret