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

Disassembly:
push 0x23c
mov eax, 0x622bf1
call fcn.0040d3e4
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.004ab0d3
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4ab1ea
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x6351f0
call fcn.00403348
push 0x6351f4
mov ecx, esi
call fcn.00403348
push 0x69fa44
mov ecx, esi
call fcn.00403348
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.004032ea
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4ab23f
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ab2d7
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004d7fc0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004ab045
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4ab296
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00403348
push 0x69fa44
mov ecx, esi
call fcn.00403348
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.004032ea
cmp dword [esi + 0x14], 8
jb 0x4ab2df
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4ab2f7
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x6351f0
call fcn.00403348
push 0x6351f4
mov ecx, esi
call fcn.00403348
push 0x69fa44
mov ecx, esi
call fcn.00403348
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.004ab132
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00407085
lea ecx, [ebp - 0x248]
call fcn.0040283b
lea ecx, [ebp - 0x230]
call fcn.0040283b
call fcn.0040d38e
ret
Function at 0x4ab853
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
mov byte [ebp - 1], dl
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x4ab868
push dword [ebp + 8]
sub edi, ecx
sar edi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ab88a
mov al, 1
jmp 0x4ab91b
push esi
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054cb51
push esi
mov ebx, eax
push 0
push ebx
call fcn.00403c87
push dword [ebp + 8]
push esi
push ebx
call fcn.004e6fcb
add esp, 0x1c
xor esi, esi
movzx eax, word [ebx + esi*2]
cmp eax, 0x5c
je 0x4ab8c9
cmp eax, 0x2f
jne 0x4ab905
mov dword [ebp - 8], eax
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ab8fe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4ab90c
mov eax, dword [ebp + 0xc]
mov byte [ebp - 1], 1
cmp dword [eax + 0x24], 0
je 0x4ab8fe
push ebx
mov ecx, eax
call fcn.004ab836
mov eax, dword [ebp - 8]
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jbe 0x4ab8bb
jmp 0x4ab910
mov byte [ebp - 1], 0
push ebx
call fcn.0040cb85
mov al, byte [ebp - 1]
pop ecx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x4ab9b5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6b306c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.004d7fc0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x8000
cmp byte [ebp + 0x10], 0
push edi
cmove eax, dword [ebp + 0xc]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4aba20
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x4aba2e
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00402a25
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040c879
leave
ret

Function at 0x4aba3e
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x622cc3
call fcn.0040d3e4
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
xor edi, edi
mov dword [ebp - 0x220], esi
push 0x208
push edi
push eax
mov dword [ebp - 0x21c], edi
call fcn.004d7fc0
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
add esp, 0xc
mov word [esi], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
mov edi, 0x104
mov dword [ebp - 0x21c], 1
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004029b0
mov eax, esi
call fcn.0040d38e
ret
Function at 0x4abc58
Capabilities:
Create process on windows

Disassembly:
push 0x8c
mov eax, 0x622cfb
call fcn.0040d3e4
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
push 0x44
pop edi
push edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.004d7fc0
mov dword [ebp - 0x98], edi
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x4abd06
push eax
lea ecx, [ebp - 0x40]
call fcn.004029fe
cmp dword [ebp - 0x30], esi
je 0x4abd06
push 0x69f730
lea ecx, [ebp - 0x28]
call fcn.004029fe
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403348
push 0x63534c
lea ecx, [ebp - 0x28]
call fcn.00403348
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.004032ea
jmp 0x4abd0f
push ebx
lea ecx, [ebp - 0x28]
call fcn.004029fe
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x98]
push ecx
push esi
push esi
push esi
push 1
push esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4abd40
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4abd6e
cmp byte [ebp + 0x10], 0
je 0x4abd5b
or eax, 0xffffffff
cmp dword [ebp + 0x14], 0
cmovg eax, dword [ebp + 0x14]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x50]
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x40]
call fcn.0040283b
lea ecx, [ebp - 0x28]
call fcn.0040283b
mov eax, esi
call fcn.0040d38e
ret

Function at 0x4abf6d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6b306c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4abff3
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.004d7fc0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4abff3
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4abfe8
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004e9855
pop ecx
pop ecx
test eax, eax
je 0x4ac003
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4abfc8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c879
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x4abff5
Function at 0x4ac1ae
Capabilities:
Check mutex on windows

Disassembly:
push 0x1c
mov eax, 0x622dbf
call fcn.0040d3b0
mov esi, ecx
lea ecx, [ebp - 0x28]
call fcn.004ae8b9
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004ae8d2
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0xc
call fcn.004ae8ce
push dword [ebp + 8]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
lea ecx, [ebp - 0x28]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
call fcn.004ae8c9
call fcn.0040d379
ret 4

Function at 0x4ad34d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x622df3
call fcn.0040d3b0
and dword [ebp - 0x20], 0
xor eax, eax
mov ebx, dword [ebp + 8]
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
and dword [ebp - 4], eax
push 0x208
mov dword [ebp - 0x20], 1
call fcn.0054cb51
mov edx, eax
xor eax, eax
pop ecx
mov ecx, 0x82
mov dword [ebp - 0x14], edx
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, 0x20019
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x18]
push eax
push edi
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4ad453
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4ad44a
cmp dword [ebp - 0x10], 0x104
jbe 0x4ad41b
push dword [ebp - 0x14]
call fcn.0040cb85
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054cb51
mov edi, eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x14], edi
push eax
push esi
push edi
call fcn.00403c87
add esp, 0x14
jmp 0x4ad41e
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov ecx, ebx
mov esi, eax
push edi
call fcn.004029b0
push edi
call fcn.0040cb85
mov edi, dword [ebp - 0x1c]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
pop eax
cmp esi, eax
jne 0x4ad475
cmp dword [ebp + 0xc], reloc.OLEAUT32.dll_SysReAllocString
jne 0x4ad475
cmp edi, 0x20019
jne 0x4ad475
mov edi, 0x20119
jmp 0x4ad39a
mov eax, ebx
call fcn.0040d379
ret
Function at 0x4ae668
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
cmp byte [edx + 4], 0
je 0x4ae698
push esi
xor esi, esi
cmp dword [edx + 0x3cc], esi
jle 0x4ae697
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, ecx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
inc esi
cmp esi, dword [edx + 0x3cc]
jl 0x4ae687
pop edi
pop esi
pop ebp
ret 8

Function at 0x4b2690
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x64]
mov al, byte [edx]
mov byte [ebp - 0x69], al
add dword [ebp - 0x64], 1
cmp byte [ebp - 0x69], 0
jne 0x4b26a8
mov ecx, dword [ebp - 0x64]
sub ecx, dword [ebp - 0x68]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 1
push eax
call fcn.0054cb51
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.004d7fc0
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
add edx, 1
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.004b3810
add esp, 0x10
mov byte [ebp - 9], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x4b272e
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
jg 0x4b2792
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x4b2790
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x15], cl
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov byte [eax], 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4b277c
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4b277c
mov byte [ebp - 9], 0
jmp 0x4b2792
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov cl, byte [ebp - 0x15]
mov byte [eax], cl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x4b2725
mov eax, dword [ebp - 8]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.0040cb85
add esp, 4
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b3680
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6235f0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x6b306c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x67
push 0x6f
push 0x6c
push 0x74
push 0x6e
push 0x65
push 0x74
push 0x6e
push 0x6f
push 0x43
push 0x70
push 0x74
push 0x74
push 0x48
push 0x77
push 0x6f
push 0x68
push 0x53
push str._c_c_c_c_c_c_c_c_c_c_c_c_c_c_c._c_c_c
lea eax, [ebp - 0x28]
push eax
call fcn.004a989e
add esp, 0x50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004026b2
mov byte [ebp - 4], 1
push 0x6351f0
lea ecx, [ebp - 0x40]
call fcn.00403348
push 0x6351f4
lea ecx, [ebp - 0x40]
call fcn.00403348
push 0x69fa44
lea ecx, [ebp - 0x40]
call fcn.00403348
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00407085
lea ecx, [ebp - 0x40]
call fcn.00402830
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b37a3
push 0x208
push 0
lea eax, [ebp - 0x248]
push eax
call fcn.004d7fc0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x248]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x40]
call fcn.004026c5
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403348
push 0x69fa44
lea ecx, [ebp - 0x40]
call fcn.00403348
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00407085
lea ecx, [ebp - 0x40]
call fcn.00402830
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b37bf
mov byte [ebp - 0x2ca], 1
jmp 0x4b37c6
mov byte [ebp - 0x2ca], 0
mov al, byte [ebp - 0x2ca]
mov byte [ebp - 0x2c9], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402869
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402869
mov al, byte [ebp - 0x2c9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c879
mov esp, ebp
pop ebp
ret
Function at 0x4b3f20
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
je 0x4b3f38
cmp dword [ebp + 0xc], 0
jne 0x4b3f42
mov eax, 1
jmp 0x4b403d
push 0
push 0x80
push 3
push 0
push 5
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4b3f72
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b403d
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4b3f9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b403d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jb 0x4b3fb1
mov eax, 8
jmp 0x4b403d
cmp dword [ebp + 0x10], 0
je 0x4b3fbf
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
call fcn.0054cb51
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x60]
mov dword [ecx], edx
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.004d7fc0
add esp, 0xc
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4b4022
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b403d
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
je 0x4b4031
mov eax, 1
jmp 0x4b403d
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b4610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
je 0x4b462c
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4b4633
mov eax, 1
jmp 0x4b4695
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4b4660
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b4695
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4b4689
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b4695
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4bbce0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [edx*4 + 0x6c2ea0], eax
inc edx
cmp edx, 0x100
jb 0x4bbce2
push esi
mov eax, 0x6c2ea4
mov esi, 0x1c0
mov edx, dword [eax - 4]
lea eax, [eax + 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x6c2ea0]
mov dword [eax + 0x3ec], edx
mov edx, dword [eax - 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x6c2ea0]
mov dword [eax + 0x3f0], edx
mov edx, dword [eax - 0xc]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x6c2ea0]
mov dword [eax + 0x3f4], edx
mov edx, dword [eax - 8]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x6c2ea0]
mov dword [eax + 0x3f8], edx
sub esi, 1
jne 0x4bbd87
mov dword [0x6c2e90], 0x4bd230
mov dword [0x6c2e88], 0x4bd230
mov dword [0x6c2e8c], 0x4bd2d0
call fcn.004bd040
mov ecx, dword [0x6c2e88]
test eax, eax
mov edx, 0x4bd2d0
cmove ecx, edx
mov dword [0x6c2e88], ecx
pop esi
ret

Function at 0x4bbf40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
je 0x4bbf93
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
push 0
mov ecx, 0x400000
mov dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
cmp esi, ecx
push eax
mov eax, esi
cmova eax, ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x4bbf9a
test ecx, ecx
je 0x4bbf93
test esi, esi
jne 0x4bbf58
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x4bbfb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
je 0x4bc003
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
push 0
mov ecx, 0x400000
mov dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
cmp esi, ecx
push eax
mov eax, esi
cmova eax, ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x4bc00a
test ecx, ecx
je 0x4bc003
test esi, esi
jne 0x4bbfc8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x4bd700
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x4bd720
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
mov ecx, dword [ebp + 8]
push ebx
lea ebx, [eax - 4]
add ebx, ecx
mov dword [ebp - 4], ebx
lea eax, [edi + ecx]
cmp eax, ebx
jae 0x4bd749
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x4bd746
inc eax
cmp eax, ebx
jb 0x4bd737
mov ecx, dword [ebp + 8]
mov edx, eax
sub edx, edi
mov edi, eax
sub edx, ecx
sub edi, ecx
cmp eax, ebx
jae 0x4bd84d
cmp edx, 2
jbe 0x4bd7d2
xor esi, esi
movzx edx, byte [eax + 4]
lea ecx, [edx + 1]
test cl, 0xfe
jne 0x4bd839
movzx ecx, byte [eax + 3]
mov ebx, dword [ebp + 0x10]
shl edx, 8
add ebx, edi
or edx, ecx
movzx ecx, byte [eax + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
add edx, ebx
sub ecx, ebx
cmp dword [ebp + 0x18], 0
cmove edx, ecx
mov dword [ebp + 0xc], edx
mov ebx, edx
test esi, esi
je 0x4bd809
and esi, 6
shl esi, 2
mov ecx, esi
shr edx, cl
inc edx
test dl, 0xfe
jne 0x4bd807
mov ebx, 0x100
shl ebx, cl
mov ecx, dword [ebp + 0x10]
dec ebx
xor ebx, dword [ebp + 0xc]
add ecx, edi
cmp dword [ebp + 0x18], 0
je 0x4bd805
add ebx, ecx
jmp 0x4bd807
mov ecx, edx
shr esi, cl
test esi, esi
je 0x4bd762
cmp esi, 4
ja 0x4bd7f7
cmp esi, 3
je 0x4bd7f7
mov ecx, esi
shr ecx, 1
movzx ecx, byte [ecx + eax + 1]
inc ecx
test cl, 0xfe
jne 0x4bd762
mov ecx, dword [ebp + 8]
or esi, 8
shr esi, 1
inc edi
jmp 0x4bd730
sub ebx, ecx
xor esi, esi
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ebx, 0x18
and bl, 1
shr ecx, 0x10
neg bl
mov byte [eax + 3], cl
mov ecx, dword [ebp + 8]
mov byte [eax + 4], bl
mov eax, 5
mov ebx, dword [ebp - 4]
add edi, eax
jmp 0x4bd730
mov ecx, dword [ebp + 8]
or esi, 8
mov eax, 1
shr esi, 1
add edi, eax
jmp 0x4bd730
mov eax, dword [ebp + 0x14]
mov ecx, edx
shr esi, cl
xor ecx, ecx
cmp edx, 2
pop ebx
cmovbe ecx, esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c221c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4f9a74
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f9734

Function at 0x4fdc93
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fd956

Function at 0x4fdc9e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fdad7