joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa54580
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
shr eax, 0x10
xor eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x85ebca6b
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
shr edx, 0xd
xor edx, dword [ebp + 8]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
imul eax, eax, 0xc2b2ae35
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
shr ecx, 0x10
xor ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 8]
pop ebp
ret

Function at 0xa545d0
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00a55150
add esp, 8
movzx edx, al
test edx, edx
jne 0xa545f4
xor eax, eax
jmp 0xa5473c
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0xcc9e2d51
mov dword [ebp - 0x10], 0x1b873593
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
neg edx
mov dword [ebp - 0x28], edx
jmp 0xa5463e
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0xa5469b
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00a54570
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0xcc9e2d51
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
rol ecx, 0xf
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
imul edx, edx, 0x1b873593
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
rol ecx, 0xd
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
imul edx, edx, 5
sub edx, 0x19ab949c
mov dword [ebp - 4], edx
jmp 0xa54635
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + eax*4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0xc]
and eax, 3
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 1
je 0xa546eb
cmp dword [ebp - 0x30], 2
je 0xa546db
cmp dword [ebp - 0x30], 3
je 0xa546cb
jmp 0xa54721
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor edx, dword [ebp - 0x20]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 1]
shl ecx, 8
xor ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0xcc9e2d51
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
rol edx, 0xf
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x1b873593
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
xor edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
call fcn.00a54580
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xa54f80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov eax, dword [ebp + 0x14]
mov cl, byte [eax + 0x100]
mov byte [ebp - 2], cl
mov edx, dword [ebp + 0x14]
mov al, byte [edx + 0x101]
mov byte [ebp - 1], al
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0xa54fb7
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jae 0xa55057
movzx ecx, byte [ebp - 2]
add ecx, 1
and ecx, 0xff
mov byte [ebp - 2], cl
movzx edx, byte [ebp - 2]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
movzx edx, byte [ebp - 1]
add ecx, edx
and ecx, 0xff
mov byte [ebp - 1], cl
movzx eax, byte [ebp - 2]
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + eax]
mov byte [ebp - 3], dl
movzx eax, byte [ebp - 1]
movzx ecx, byte [ebp - 2]
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 8]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp - 8]
mov al, byte [ebp - 3]
mov byte [edx + ecx], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
movzx eax, byte [ebp - 2]
mov ecx, dword [ebp - 8]
movzx eax, byte [ecx + eax]
movzx ecx, byte [ebp - 1]
mov esi, dword [ebp - 8]
movzx ecx, byte [esi + ecx]
add eax, ecx
and eax, 0xff
mov ecx, dword [ebp - 8]
movzx eax, byte [ecx + eax]
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0xc]
mov byte [ecx], dl
jmp 0xa54fae
mov edx, dword [ebp + 0x14]
mov al, byte [ebp - 2]
mov byte [edx + 0x100], al
mov ecx, dword [ebp + 0x14]
mov dl, byte [ebp - 1]
mov byte [ecx + 0x101], dl
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xa577b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
push eax
push 0x40
push 5
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 5
mov edx, dword [ebp + 8]
push edx
call fcn.00a55190
add esp, 8
movzx eax, al
test eax, eax
je 0xa57819
mov byte [ebp - 0x10], 0xe9
mov ecx, dword [ebp + 8]
add ecx, 5
mov edx, dword [ebp + 0xc]
sub edx, ecx
mov dword [ebp - 0xf], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov dl, byte [ebp - 0xc]
mov byte [eax + 4], dl
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 5
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0xa578b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov dword [ebp - 8], 0
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
jne 0xa578ce
jmp 0xa579d9
cmp dword [ebp + 0xc], 0
jne 0xa578d9
jmp 0xa579d9
push 0x24
call fcn.00a63570
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xa578f1
jmp 0xa579d9
mov eax, dword [ebp - 8]
mov dword [eax], 1
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
push 0x19
call fcn.00a63770
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0xa57924
jmp 0xa579d9
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x14], eax
push 0x2e
call fcn.00a63770
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0xa57945
jmp 0xa579d9
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov ecx, 0xb
mov esi, 0xa67754
mov edi, dword [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [eax + 7], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov dword [edx + 0x1d], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xc], 0xa535a0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x22], 0xa53540
lea eax, [ebp - 0x10]
push eax
push 0x40
push 0x2e
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 8]
add edx, 0x18
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00a57110
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0xa579b9
jmp 0xa579d9
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00a57860
add esp, 4
mov byte [ebp - 1], al
xor edx, edx
jne 0xa578c3
movzx eax, byte [ebp - 1]
test eax, eax
jne 0xa579f4
mov ecx, dword [ebp - 8]
push ecx
call fcn.00a57820
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xa57a00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0x40
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call fcn.00a55190
add esp, 8
movzx eax, al
test eax, eax
jne 0xa57a43
jmp 0xa57aaa
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov byte [ebp - 1], 1
xor ecx, ecx
jne 0xa57a0a
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0xa58ce0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0x14], 0
jne 0xa58cf1
jmp 0xa58ea4
xor eax, eax
mov word [ebp - 0x10], ax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 8
div ecx
test edx, edx
je 0xa58d41
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 8
div ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
shr edx, 3
mov eax, dword [ebp + 8]
movzx cx, byte [eax + edx]
mov word [ebp - 0x10], cx
movzx edx, word [ebp - 0x10]
mov ecx, 8
sub ecx, dword [ebp - 0x14]
sar edx, cl
mov word [ebp - 0x10], dx
mov eax, dword [ebp + 0xc]
shr eax, 3
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
add ecx, 7
shr ecx, 3
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0xa58d68
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jge 0xa58ea4
mov ecx, dword [ebp - 8]
sub ecx, 1
cmp dword [ebp - 4], ecx
je 0xa58da0
movzx edx, word [ebp - 0x10]
shl edx, 8
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
xor edx, ecx
mov word [ebp - 0x10], dx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
jmp 0xa58df9
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, 8
div ecx
test edx, edx
jne 0xa58db9
mov dword [ebp - 0x24], 8
jmp 0xa58dc8
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, 8
div ecx
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
movzx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
shl eax, cl
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
mov ecx, 8
sub ecx, dword [ebp - 0x18]
sar edx, cl
or eax, edx
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
sub ecx, 1
xor edx, edx
cmp dword [ebp - 4], ecx
setne dl
xor eax, eax
cmp dword [ebp - 0x14], 8
setge al
and edx, eax
jne 0xa58e2f
mov ecx, dword [ebp - 8]
sub ecx, 1
xor edx, edx
cmp dword [ebp - 4], ecx
sete dl
xor eax, eax
cmp dword [ebp - 0x14], 0
setg al
and edx, eax
je 0xa58e9f
cmp dword [ebp - 0x14], 8
jle 0xa58e3e
mov dword [ebp - 0x28], 8
jmp 0xa58e44
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
movzx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
sar eax, cl
mov byte [ebp - 0x1d], al
movzx edx, byte [ebp - 0x1d]
mov ecx, 8
sub ecx, dword [ebp - 0x1c]
shl edx, cl
mov byte [ebp - 0x1d], dl
mov eax, 0xff00
mov ecx, dword [ebp - 0x1c]
sar eax, cl
movzx ecx, byte [ebp - 0x1d]
and ecx, eax
mov byte [ebp - 0x1d], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov al, byte [ebp - 0x1d]
mov byte [edx], al
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
jmp 0xa58df9
jmp 0xa58d5f
mov esp, ebp
pop ebp
ret
Function at 0xa5e340
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00a5f8c0
add esp, 8
mov dword [ebp + 0xc], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00a5e080
add esp, 8
movzx ecx, al
test ecx, ecx
je 0xa5e4de
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax + 0x108]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
je 0xa5e4de
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00a5e290
add esp, 8
movzx edx, al
test edx, edx
je 0xa5e4de
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00a5e120
add esp, 8
movzx edx, ax
and edx, 0xd
jne 0xa5e4de
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00a5f9e0
add esp, 0x14
mov eax, dword [ebp - 4]
push eax
call fcn.00a5e4f0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0xa5e454
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0xa5e472
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x30]
and eax, 0x400
jne 0xa5e4de
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x778]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0xa5e2e0
mov eax, dword [ebp + 0xc]
push eax
push 0xa670a0
push 0
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x778]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x108], edx
push 3
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esp, ebp
pop ebp
ret
Function at 0xa5faa0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 0xa0743ab4
push 0xd
push 0xa64e18
call fcn.00a517f0
add esp, 0xc
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00a56d40
add esp, 0xc
cmp dword [ebp - 4], 0
je 0xa5fb9e
mov dword [ebp - 0x258], 0
push 0x24c
push 0
lea edx, [ebp - 0x254]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
je 0xa5fb9c
mov edx, dword [ebp - 0x258]
and edx, 0x10
jne 0xa5fb33
jmp 0xa5fb77
movzx eax, word [ebp - 0x22c]
cmp eax, 0x2e
jne 0xa5fb41
jmp 0xa5fb77
lea ecx, [ebp - 0x22c]
push ecx
push 0xe09d886a
push 0xb
push 0xa64e28
call fcn.00a517f0
add esp, 0xc
push eax
lea edx, [ebp - 8]
push edx
call fcn.00a56d40
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0xa5fb77
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0xa5fb26
mov edx, dword [ebp - 0x25c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0xa5fba6
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
push eax
call fcn.00a63970
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0xa5fbc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0
je 0xa5fbe6
cmp dword [ebp + 0x10], 0
jne 0xa5fbed
xor eax, eax
jmp 0xa5fc6d
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
je 0xa5fc5d
push 0
lea edx, [ebp - 8]
push edx
push 1
lea eax, [ebp - 0xd]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xa5fc18
cmp dword [ebp - 8], 1
je 0xa5fc1a
jmp 0xa5fc5d
movsx edx, byte [ebp - 0xd]
cmp edx, 0xa
jne 0xa5fc2d
cmp dword [ebp - 4], 0
je 0xa5fc2b
jmp 0xa5fc5d
jmp 0xa5fc5b
movsx eax, byte [ebp - 0xd]
cmp eax, 0xd
jne 0xa5fc40
cmp dword [ebp - 4], 0
je 0xa5fc3e
jmp 0xa5fc5d
jmp 0xa5fc5b
mov dword [ebp - 4], 1
movsx cx, byte [ebp - 0xd]
mov edx, dword [ebp - 0xc]
mov word [edx], cx
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
jmp 0xa5fbed
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov word [edx], cx
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
sar eax, 1
mov esp, ebp
pop ebp
ret
Function at 0xa601f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov byte [ebp - 5], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0xa60224
jmp 0xa6033f
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0xc], 0
je 0xa6023e
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
lea ecx, [eax + edx + 0x1b]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
shl edx, 1
push edx
call fcn.00a63770
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0xa6026f
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xa6033f
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0xa6028f
jmp 0xa6033f
cmp dword [ebp + 0xc], 0
je 0xa602a3
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0xfbda1361
push 6
push 0xa64ec8
call fcn.00a517f0
add esp, 0xc
push eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0xf6efd142
push 9
push 0xa64ed0
call fcn.00a517f0
add esp, 0xc
push eax
lea edx, [ebp - 4]
push edx
call fcn.00a56d40
add esp, 0x10
push 0xfbda1361
push 6
push 0xa64ec8
call fcn.00a517f0
add esp, 0xc
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x5c21e4eb
push 9
push 0xa64ba0
call fcn.00a517f0
add esp, 0xc
push eax
call fcn.00a625e0
add esp, 0xc
test eax, eax
setne al
mov byte [ebp - 5], al
xor ecx, ecx
jne 0xa60208
mov edx, dword [ebp - 4]
push edx
call fcn.00a63970
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.00a63970
add esp, 4
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0xa619f0
Capabilities:
Clear file content
Delete file
Print debug messages
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x58], 0
push 0x30
push 0
lea eax, [ebp - 0x54]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0x80
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x60], 0
xor edx, edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0xa61a60
mov edx, dword [ebp - 0x58]
mov dword [ebp - 4], edx
push 0
push 0x80
push 2
push 0
push 0
push 0x120116
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0xa61aac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push str.__CopyFileW___luCreateFileW__ws__n
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0xc
mov eax, dword [ebp - 0x20]
jmp 0xa61b89
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, 1
test ecx, ecx
je 0xa61b4c
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 0
jne 0xa61b06
jmp 0xa61b4c
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0xa61b43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push str.__CopyFileByHandleW___luWriteFile__ws__n
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0xc
jmp 0xa61b4c
mov dword [ebp - 0x10], 0
jmp 0xa61ada
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0
je 0xa61b86
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret
Function at 0xa61b90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0x2000080
mov dword [ebp - 0xc], 0
push 0
mov eax, dword [ebp - 4]
push eax
push 3
push 0
push 7
push 0x120089
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0xa61c1c
mov edx, dword [ebp - 4]
and edx, 0xfdffffff
mov dword [ebp - 4], edx
push 0
mov eax, dword [ebp - 4]
push eax
push 3
push 0
push 7
push 0x120089
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0xa61c1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
push str.__CopyFileW___luCreateFileW__ws__n
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0xa61c44
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00a619f0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret