joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4039c4
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
call fcn.00403950
lea edx, [ebp - 0x400]
movzx ecx, word [ebp + 0x14]
dec ecx
xor esi, esi
jmp 0x4039fc
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov word [edx + 2], ax
mov eax, dword [ebp + 0x18]
movzx eax, byte [eax]
mov word [edx], ax
inc dword [ebp + 0x18]
add edx, 4
inc esi
cmp ecx, esi
jge 0x4039e2
mov ax, word [ebp + 0x14]
mov word [ebp - 0x404], ax
mov word [ebp - 0x402], 1
mov word [ebp - 0x408], 0
mov word [ebp - 0x406], 0
mov ax, word [ebp + 0x10]
mov word [ebp - 0x410], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40e], ax
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0x14]
add ecx, eax
dec ecx
mov word [ebp - 0x40c], cx
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40a], ax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
push dword [ebp - 0x404]
lea eax, [ebp - 0x400]
push eax
push dword [0x407ebc]
call sub.kernel32.dll_WriteConsoleOutputA
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x403da4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x403dc4
mov al, byte [ebp - 4]
jmp 0x403dc7
mov al, byte [ebp + 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405e00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
or edi, 0xffffffff
or eax, 0xffffffff
mov dword [ebp - 0x24], 0
xor esi, esi
mov edx, dword [0x4082b4]
add edx, 0x24
mov esi, edx
cmp dword [edx], 0xffffffff
je 0x405e3e
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405e39
mov ecx, dword [edx + 8]
cmp ecx, dword [esi + 8]
jbe 0x405e39
mov esi, edx
add edx, 0x10
jmp 0x405e22
mov edx, esi
cmp dword [edx], 0xffffffff
je 0x405f52
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405f52
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405f50
mov ecx, dword [edx + 8]
sub dword [ebp + 0x10], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 0xc]
test edx, edx
je 0x405f50
mov cl, byte [edx]
sub cl, 0x3c
jne 0x405e86
jmp 0x405f50
sub cl, 3
jne 0x405ea0
inc edx
mov dword [ebp - 0xc], edx
movzx ecx, byte [edx]
inc ecx
add edx, ecx
mov byte [ebp - 0x25], 1
jmp 0x405f4b
inc cl
jne 0x405eb4
movzx ecx, word [edx + 1]
add edi, ecx
add edx, 3
jmp 0x405f4b
inc cl
jne 0x405ec8
movzx ecx, word [edx + 1]
add edi, ecx
mov ecx, dword [edx + 3]
add eax, ecx
add edx, 7
jmp 0x405edb
movzx ecx, byte [edx]
shr ecx, 6
add edi, ecx
mov cl, byte [edx]
and cl, 0x3f
movzx ecx, cl
add eax, ecx
inc edx
cmp eax, dword [ebp + 0x10]
jne 0x405ee5
mov esi, eax
mov dword [ebp - 0x24], edi
cmp eax, dword [ebp + 0x10]
jl 0x405f42
sub eax, dword [ebp + 0x10]
cmp eax, 0xa
jle 0x405ef8
cmp byte [ebp - 0x25], 0
jne 0x405f40
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp eax, dword [ebp - 0x14]
jle 0x405f2e
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov dl, byte [eax + ecx]
xor dl, 0xaa
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], dl
jmp 0x405f09
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add esi, dword [ebp - 0x18]
mov eax, esi
jmp 0x405f52
jmp 0x405f50
mov esi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x25], 0
jmp 0x405e78
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406428
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
cld
push ecx
call fcn.00406404
call fcn.0040354c
mov dword [0x4082b4], eax
lea edx, [eax + 0x18]
mov dword [0x408314], edx
pop edx
call fcn.00406284
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x4082e0], eax
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4082f4], eax
mov dword [0x40831c], eax
call fcn.0040317c
cmp eax, 3
setb byte [0x4082bd]
call fcn.0040419c
lea eax, [esp]
xor edx, edx
mov ecx, dword fs:[edx]
mov dword fs:[edx], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x4066b4
mov dword [eax + 8], ebp
jmp dword [esp + 0x10]
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219

Function at 0x1051058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.010511a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x105107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105106a
add dl, dl
jne 0x1051089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10510dc
xor eax, eax
add dl, dl
jne 0x1051096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105117d
add dl, dl
jne 0x10510a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10510b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10510bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10510c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10510d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1051075
mov eax, 1
add dl, dl
jne 0x10510ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10510f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10510e1
sub eax, ebx
mov ebx, 1
jne 0x1051128
mov ecx, 1
add dl, dl
jne 0x105110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1051119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1051105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1051075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x105113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1051136
cmp eax, 0x7d00
jae 0x105116d
cmp eax, 0x500
jb 0x1051168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1051075
cmp eax, 0x7f
ja 0x1051170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1051075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1051075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x480a17c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x10]
sub edi, ecx
sub edi, dword [esi + 4]
add dword [esi + 0x14], eax
cmp eax, edi
jbe 0x480a17e3
mov ebx, eax
sub ebx, edi
jmp 0x480a17e7
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x480a1800
mov eax, dword [esi + 4]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.480b6e40
mov eax, dword [ebp + 0xc]
add esp, 0xc
test ebx, ebx
je 0x480a1867
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
add edi, dword [ebp + 8]
cmp ebx, eax
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
jae 0x480a184a
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
push eax
mov eax, dword [esi + 0x18]
push dword [esi + 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push dword [esi + 4]
push edi
call fcn.480b6e40
add esp, 0xc
mov dword [esi + 0x10], ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 0x18]
push ebx
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
pop edi
mov dword [esi + 0x10], eax
pop esi
pop ebx
pop ebp
ret 8
add dword [esi + 0x10], eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x480a1cc0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480c71b6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x480d40c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CMxIniFile.0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], 0
mov word [edi + 0x20], ax
mov byte [ebp - 4], 1
mov eax, 0x66666667
mov word [edi + 4], 0x100
mov ecx, dword [edi + 0x1c]
sub ecx, dword [edi + 0x14]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x64
jae 0x480a1d66
push 0x64
lea ecx, [edi + 0x14]
call fcn.480a5170
mov eax, 4
jmp 0x480a1d70
add eax, eax
cmp eax, 0x64
jb 0x480a1d70
mov edx, dword [edi + 0xc]
sub edx, dword [edi + 8]
sar edx, 2
cmp edx, eax
jae 0x480a1d8d
push eax
lea ecx, [edi + 8]
call fcn.480a4800
mov eax, edi
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 0x480a1ed0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, 0x480cf8fc
test eax, eax
push esi
cmovne edx, eax
push edi
mov edi, ecx
cmp word [edx], 0
jne 0x480a1eee
xor ecx, ecx
jmp 0x480a1f02
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x480a1ef3
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [edi + 0x20]
push edx
mov ecx, esi
call fcn.480a3de0
cmp dword [edi + 0x30], 0
je 0x480a1f36
cmp dword [esi + 0x14], 8
jb 0x480a1f1c
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x480a1f36
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0xc]
call eax
pop edi
pop esi
pop ebp
ret 4
pop edi
xor al, al
pop esi
pop ebp
ret 4
Function at 0x480a1f40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x480c71f0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x480d40c0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x480d40c0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 4], 0
jne 0x480a2105
cmp dword [edi + 0x30], 0
je 0x480a2105
cmp dword [edi + 0x34], 8
lea eax, [edi + 0x20]
mov byte [esp + 0x13], 1
jb 0x480a1f9d
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x480a2105
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x480a20fe
test esi, esi
je 0x480a20fe
push esi
lea ecx, [esp + 0x20]
call fcn.480a4120
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x6c], 0
push eax
push esi
mov esi, dword [esp + 0x28]
push esi
push ebx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esi], 0xff
jne 0x480a2038
cmp byte [esi + 1], 0xfe
jne 0x480a2038
mov eax, dword [esp + 0x14]
mov ecx, edi
mov edx, dword [edi]
add eax, 0xfffffffe
shr eax, 1
push eax
lea eax, [esi + 2]
mov byte [edi + 5], 1
push eax
call dword [edx + 0x68]
jmp 0x480a20e0
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
mov byte [esp + 0x68], 1
mov byte [edi + 5], al
cmp byte [esi], 0xef
jne 0x480a2083
cmp byte [esi + 1], 0xbb
jne 0x480a2083
cmp byte [esi + 2], 0xbf
jne 0x480a2083
mov eax, dword [esp + 0x20]
lea edx, [esi + 3]
sub eax, esi
lea ecx, [esp + 0x40]
sub eax, 3
push eax
call fcn.480aab20
add esp, 4
jmp 0x480a2099
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x40]
sub eax, esi
xor edx, edx
push eax
push esi
call fcn.480aae10
add esp, 8
push eax
lea ecx, [esp + 0x2c]
call fcn.480a3d20
lea ecx, [esp + 0x40]
call fcn.480a3d60
mov edx, dword [esp + 0x38]
test edx, edx
je 0x480a20d2
cmp dword [esp + 0x3c], 8
lea ecx, [esp + 0x28]
mov eax, dword [edi]
cmovae ecx, dword [esp + 0x28]
push edx
push ecx
mov ecx, edi
call dword [eax + 0x68]
mov byte [esp + 0x13], 1
jmp 0x480a20d7
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x28]
call fcn.480a3d60
push ebx
mov byte [edi + 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
call fcn.480a3ee0
cmp byte [esp + 0x13], 0
setne al
jmp 0x480a2107
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.480b6e24
mov esp, ebp
pop ebp
ret
Function at 0x480a25c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x480c72f0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x480d40c0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x480d40c0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
cmp dword [esi + 0x10], 0
jne 0x480a260a
xor al, al
jmp 0x480a272f
xor eax, eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
mov dword [esp + 0x60], eax
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], eax
mov byte [esp + 0x20], al
mov bl, byte [ebp + 0xc]
mov byte [esp + 0x60], 1
mov eax, dword [ecx]
push edx
test bl, bl
je 0x480a2662
lea edx, [esp + 0x3c]
push edx
call dword [eax + 0x50]
cmp dword [esp + 0x4c], 8
lea edi, [esp + 0x38]
mov eax, dword [esp + 0x48]
cmovae edi, dword [esp + 0x38]
add eax, eax
jmp 0x480a267c
lea edx, [esp + 0x24]
push edx
call dword [eax + 0x58]
cmp dword [esp + 0x34], 0x10
lea edi, [esp + 0x20]
mov eax, dword [esp + 0x30]
cmovae edi, dword [esp + 0x20]
mov dword [esp + 0x18], eax
test edi, edi
je 0x480a26f0
cmp dword [esi + 0x14], 8
jb 0x480a268c
mov esi, dword [esi]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x480a26f0
test bl, bl
mov dword [esp + 0x1c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x480a26d6
push 0
lea eax, [esp + 0x20]
mov word [esp + 0x18], 0xfeff
push eax
push 2
lea eax, [esp + 0x20]
push eax
push esi
call ebx
push 0
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
push edi
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x480a26f2
xor bl, bl
cmp dword [esp + 0x34], 0x10
jb 0x480a2705
push dword [esp + 0x20]
call fcn.480b6e1f
add esp, 4
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
jb 0x480a272d
push dword [esp + 0x38]
call fcn.480b6e1f
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.480b6e24
mov esp, ebp
pop ebp
ret 0xc
Function at 0x480a35c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x480c7438
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x480d40c0]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov eax, dword [0x480d40c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
mov dword [esp + 0x30], eax
mov eax, dword [ecx]
push edx
lea edx, [esp + 0xc]
push edx
call dword [eax + 0x50]
cmp dword [esp + 0x1c], 8
lea ecx, [esp + 8]
mov edx, esi
cmovae ecx, dword [esp + 8]
call fcn.480a1890
cmp dword [esp + 0x1c], 8
jb 0x480a3649
push dword [esp + 8]
call fcn.480b6e1f
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.480b6e24
mov esp, ebp
pop ebp
ret 8

Function at 0x480a6fb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x480d40c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
cmp eax, dword [edx + 0x10]
je 0x480a70cf
mov ecx, dword [ecx]
mov ebx, 0x811c9dc5
mov dword [ebp - 0x24], ebx
movzx eax, word [ecx]
test ax, ax
je 0x480a7009
lea esp, [esp]
imul ebx, ebx, 0x1000193
lea ecx, [ecx + 2]
movzx eax, ax
xor ebx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x480a6ff0
mov dword [ebp - 0x24], ebx
mov esi, dword [edx]
mov eax, ebx
mov ecx, dword [edx + 4]
xor edx, edx
sub ecx, esi
sar ecx, 2
div ecx
mov edi, dword [esi + edx*4]
cmp edi, 0xffffffff
je 0x480a70cf
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov edx, dword [eax]
xor eax, eax
mov word [ebp - 0x20], ax
cmp word [edx], ax
je 0x480a705f
mov eax, edx
lea esi, [eax + 2]
jmp 0x480a7050
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x480a7050
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x20]
call fcn.480a3de0
mov ecx, dword [ebp - 0x28]
lea esi, [edi*8]
sub esi, edi
shl esi, 3
mov ecx, dword [ecx + 0xc]
add ecx, esi
cmp dword [ecx + 0x18], ebx
jne 0x480a70a2
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
push dword [ebp - 0x10]
cmovae eax, dword [ebp - 0x20]
push eax
push dword [ecx + 0x10]
push ecx
call fcn.480a6c10
test eax, eax
jne 0x480a70a2
mov bl, 1
jmp 0x480a70a4
xor bl, bl
cmp dword [ebp - 0xc], 8
jb 0x480a70b5
push dword [ebp - 0x20]
call fcn.480b6e1f
add esp, 4
test bl, bl
jne 0x480a70e5
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
mov edi, dword [esi + eax + 0x34]
cmp edi, 0xffffffff
jne 0x480a7025
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.480b6e24
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.480b6e24
mov esp, ebp
pop ebp
ret 4
Function at 0x480a74a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x480d40c0]
xor eax, esp
mov dword [esp + 0x28], eax
mov edx, ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [edx + 0xc]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
cmp eax, dword [edx + 0x10]
je 0x480a75ca
mov ecx, dword [ecx]
mov ebx, 0x811c9dc5
mov dword [esp + 0x10], ebx
movzx eax, word [ecx]
test ax, ax
je 0x480a74fd
imul ebx, ebx, 0x1000193
lea ecx, [ecx + 2]
movzx eax, ax
xor ebx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x480a74e3
mov dword [esp + 0x10], ebx
mov esi, dword [edx]
mov eax, ebx
mov ecx, dword [edx + 4]
xor edx, edx
sub ecx, esi
sar ecx, 2
div ecx
mov edi, dword [esi + edx*4]
cmp edi, 0xffffffff
je 0x480a75ca
lea esp, [esp]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov edx, dword [eax]
xor eax, eax
mov word [esp + 0x1c], ax
cmp word [edx], ax
je 0x480a7556
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x480a7547
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.480a3de0
mov ecx, dword [esp + 0x14]
lea esi, [edi + edi*4]
shl esi, 4
mov ecx, dword [ecx + 0xc]
add ecx, esi
cmp dword [ecx + 0x18], ebx
jne 0x480a7599
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
push dword [esp + 0x2c]
cmovae eax, dword [esp + 0x20]
push eax
push dword [ecx + 0x10]
push ecx
call fcn.480a6c10
test eax, eax
jne 0x480a7599
mov bl, 1
jmp 0x480a759b
xor bl, bl
cmp dword [esp + 0x30], 8
jb 0x480a75ae
push dword [esp + 0x1c]
call fcn.480b6e1f
add esp, 4
test bl, bl
jne 0x480a75e1
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
mov edi, dword [esi + eax + 0x4c]
cmp edi, 0xffffffff
jne 0x480a7520
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.480b6e24
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.480b6e24
mov esp, ebp
pop ebp
ret 4

Function at 0x480a7eb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
push 0xffffffffffffffff
push eax
push esi
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
call fcn.480a4620
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x480a7ee2
mov ecx, dword [esi]
jmp 0x480a7ee4
mov ecx, esi
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
cmp edx, 8
jb 0x480a7ef1
mov esi, dword [esi]
mov edx, 0x811c9dc5
cmp esi, eax
je 0x480a7f12
lea ebx, [ebx]
movzx ecx, word [esi]
add esi, 2
imul edx, edx, 0x1000193
xor edx, ecx
cmp esi, eax
jne 0x480a7f00
mov eax, edi
mov dword [edi + 0x18], edx
pop edi
pop esi
pop ebp
ret 4
Function at 0x480a7f20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [esi], ax
jne 0x480a7f46
xor ecx, ecx
jmp 0x480a7f5f
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x480a7f50
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x480a7f50
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.480a3de0
movzx eax, word [esi]
mov ecx, 0x811c9dc5
test ax, ax
je 0x480a7f96
jmp 0x480a7f80
imul ecx, ecx, 0x1000193
lea esi, [esi + 2]
movzx eax, ax
xor ecx, eax
movzx eax, word [esi]
test ax, ax
jne 0x480a7f80
mov eax, edi
mov dword [edi + 0x18], ecx
pop edi
pop esi
pop ebp
ret 4

Function at 0x480a7fb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp esi, 8
jb 0x480a7fbd
mov edx, dword [ecx]
jmp 0x480a7fbf
mov edx, ecx
mov eax, dword [ecx + 0x10]
lea eax, [edx + eax*2]
cmp esi, 8
jb 0x480a7fcc
mov ecx, dword [ecx]
mov esi, 0x811c9dc5
cmp ecx, eax
je 0x480a7ff2
jmp 0x480a7fe0
movzx edx, word [ecx]
add ecx, 2
imul esi, esi, 0x1000193
xor esi, edx
cmp ecx, eax
jne 0x480a7fe0
mov eax, esi
pop esi
ret

Function at 0x480a83d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmp edx, 8
push ebx
mov ebx, dword [ebp + 8]
cmovae ecx, ebx
push esi
lea esi, [ebp + 8]
push edi
lea edi, [ecx + eax*2]
cmovae esi, ebx
mov ecx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp esi, edi
je 0x480a8472
jmp 0x480a8400
movzx eax, word [esi]
cmp eax, 0x2f
je 0x480a840d
cmp eax, 0x5c
jne 0x480a8416
add esi, 2
cmp esi, edi
jne 0x480a8400
jmp 0x480a8472
cmp esi, edi
je 0x480a8472
lea ebx, [ebx]
movzx eax, word [esi]
cmp eax, 0x2f
je 0x480a842d
cmp eax, 0x5c
jne 0x480a8465
xor eax, eax
lea ebx, [ebp + 8]
mov word [esi], ax
cmp dword [ebp + 0x1c], 8
cmovae ebx, dword [ebp + 8]
push ebx
call ecx
cmp eax, 0xffffffff
je 0x480a8449
test al, 0x10
jne 0x480a8457
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
jne 0x480a8495
mov ecx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, 0x5c
mov word [esi], ax
add esi, 2
cmp esi, edi
jne 0x480a8420
mov edx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 8]
cmp edx, 8
lea esi, [ebp + 8]
cmovae esi, ebx
push esi
call ecx
cmp eax, 0xffffffff
je 0x480a8487
test al, 0x10
jne 0x480a8499
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
je 0x480a8499
xor bl, bl
jmp 0x480a849b
mov bl, 1
cmp dword [ebp + 0x1c], 8
jb 0x480a84ac
push dword [ebp + 8]
call fcn.480b6e1f
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret