joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423d20
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ecx + 0x4c], 8
push esi
lea esi, [ecx + 0x38]
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 8], 4
mov dword [ebp - 0x10], 4
jb 0x423d4a
mov eax, dword [esi]
jmp 0x423d4c
mov eax, esi
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push str.laststtm
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x423d73
cmp dword [ebp - 8], 4
je 0x423d7a
mov dword [ebp - 4], 0
push 0
call fcn.005458d1
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [esi + 0x14], 8
jb 0x423d8f
mov esi, dword [esi]
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push str.laststtm
push esi
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [ebp - 4]
xor edi, edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x14], edi
call fcn.0054718a
add esp, 4
test eax, eax
je 0x423dc6
mov edi, dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
xor esi, esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], esi
call fcn.0054718a
add esp, 4
test eax, eax
je 0x423de4
mov esi, dword [eax + 0xc]
xor eax, eax
cmp edi, esi
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4242b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x78], 0
jne 0x424314
cmp dword [ecx + 0x7c], 8
lea eax, [ecx + 0x68]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0xc], 4
jb 0x4242dc
mov eax, dword [eax]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push str.ucount
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x424314
cmp dword [ebp - 4], 4
jne 0x424314
mov eax, dword [ebp - 8]
mov ecx, 0x7fff
cmp eax, ecx
cmova eax, ecx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x424760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572592
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5bb250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xa0], edi
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov dword [ebp - 4], eax
push 0x7e
push eax
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x8e]
push eax
mov dword [ebp - 0x9c], 1
call fcn.0053ca90
add esi, 0x38
mov dword [ebp - 0x94], 1
add esp, 0xc
mov dword [ebp - 0x98], 0x7e
cmp dword [esi + 0x14], 8
jb 0x4247fc
mov eax, dword [esi]
jmp 0x4247fe
mov eax, esi
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push 0x596648
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x424850
cmp word [ebp - 0x90], ax
je 0x424850
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424840
jmp 0x4248db
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.0053ca90
add esp, 0xc
mov dword [ebp - 0x94], 1
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x98], 0x7e
jb 0x424882
mov esi, dword [esi]
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x94]
push eax
push 0x596648
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4248b7
cmp word [ebp - 0x90], ax
je 0x4248c1
jmp 0x4248ee
cmp word [ebp - 0x90], 0
jne 0x4248c5
xor ecx, ecx
jmp 0x4248df
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4248d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x90]
mov ecx, edi
push eax
call fcn.004203d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret 4
Function at 0x424fb0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5bb250]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x5c40a0]
jne 0x4250eb
push 0x208
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0053ca90
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x5c13bc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00420550
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push str.Excption
cmovae eax, dword [ebp - 0x230]
push eax
push 0x5c40a0
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.excpt.dat
push 0x5c40a0
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 5
push 0x5c40a0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHPathPrepareForWriteW]
test eax, eax
je 0x42509e
xor eax, eax
cmp dword [ebp - 0x21c], 8
mov word [0x5c40a0], ax
jb 0x42508e
push dword [ebp - 0x230]
call fcn.0053ba8c
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push str.Excption
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x21c], 8
jb 0x4250eb
push dword [ebp - 0x230]
call fcn.0053ba8c
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 0x5c40a0
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret

Function at 0x425100
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x5c1450], 0
push edi
jne 0x4251d9
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x425124
lea eax, [edi + 2]
pop edi
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SymInitialize
push edi
call esi
push str.SymSetOptions
push edi
mov dword [0x5c1450], eax
call esi
push str.StackWalk
push edi
mov dword [0x5c144c], eax
call esi
push str.SymFunctionTableAccess
push edi
mov dword [0x5c145c], eax
call esi
push str.MiniDumpWriteDump
push edi
mov dword [0x5c1458], eax
call esi
push str.SymGetModuleBase
push edi
mov dword [0x5c1448], eax
call esi
push 0x597b40
push str.psapi.dll
mov dword [0x5c1454], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call esi
cmp dword [0x5c1450], 0
mov dword [0x5c1444], eax
pop esi
je 0x4251dd
mov ecx, dword [0x5c144c]
test ecx, ecx
je 0x4251dd
cmp dword [0x5c145c], 0
je 0x4251dd
cmp dword [0x5c1458], 0
je 0x4251dd
cmp dword [0x5c1448], 0
je 0x4251dd
test eax, eax
je 0x4251dd
push 0x12
call ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x5c1450]
xor eax, eax
pop edi
ret
mov dword [0x5c1450], 0
mov eax, 6
pop edi
ret
Function at 0x425630
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov esi, 0x824
mov ecx, 0x5c1460
lea edx, [edi + 0x454]
sub ecx, edx
lea ebx, [ebx]
lea eax, [esi + 0x7ffff7da]
test eax, eax
je 0x42566e
movzx eax, word [ecx + edx]
test ax, ax
je 0x42566e
mov word [edx], ax
add edx, 2
dec esi
jne 0x425650
jmp 0x425672
test esi, esi
jne 0x425675
sub edx, 2
xor eax, eax
push ebx
mov word [edx], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [edi + 0x330]
mov esi, eax
push ecx
push 0x597b8c
push esi
call fcn.00413b10
add esp, 0xc
push str.IsWow64Process
push 0x5946b0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
xor ecx, ecx
mov dword [ebp - 4], ecx
test ebx, ebx
je 0x4256d2
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
jne 0x4256cf
xor ecx, ecx
jmp 0x4256d2
mov ecx, dword [ebp - 4]
mov eax, dword [0x5c27b0]
push 0
mov dword [edi + 0x32c], ecx
mov dword [edi + 0x334], 0
mov dword [edi + 0x338], 0
mov dword [edi + 0x33c], eax
mov dword [edi + 0x340], 0
call fcn.005458d1
add esp, 4
mov dword [edi + 0x348], eax
mov dword [edi + 0x34c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x350], eax
pop ebx
test esi, esi
je 0x42576b
lea ecx, [edi + 0x149e]
mov edx, 0x825
sub esi, ecx
lea eax, [edx + 0x7ffff7d9]
test eax, eax
je 0x42575f
movzx eax, word [esi + ecx]
test ax, ax
je 0x42575f
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x425735
sub ecx, 2
xor eax, eax
pop edi
pop esi
mov word [ecx], ax
mov esp, ebp
pop ebp
ret
test edx, edx
jne 0x425766
sub ecx, 2
xor eax, eax
mov word [ecx], ax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x426210
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x5bb250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
push esi
push edi
mov edi, ecx
mov eax, dword [ebx + 0x50]
shr eax, 0x1f
not al
test al, 1
jne 0x426252
cmp dword [0x5c27b0], 1
jbe 0x426252
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
call fcn.00424fb0
mov esi, eax
test esi, esi
je 0x426478
cmp word [esi], 0
je 0x426478
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0053ca90
lea ecx, [ebp - 0x218]
add esp, 0xc
mov eax, ecx
mov edx, 0x104
sub esi, eax
jmp 0x4262a0
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4262be
movzx eax, word [esi + ecx]
test ax, ax
je 0x4262be
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x4262a0
jmp 0x4262c2
test edx, edx
jne 0x4262c5
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, 0x104
lea eax, [ebp - 0x218]
cmp word [eax], 0
je 0x4262fe
add eax, 2
dec ecx
jne 0x4262f0
jmp 0x426322
test ecx, ecx
je 0x426322
push ecx
mov edx, 0x104
mov eax, edx
sub eax, ecx
push str..dmp
push ecx
lea ecx, [ebp - 0x218]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.00427870
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x238], xmm0
mov dword [ebp - 0x23c], 0xb
movdqu xmmword [ebp - 0x228], xmm0
mov dword [ebp - 0x234], ebx
lea edx, [ecx + 2]
mov dword [ebp - 0x238], 0x2568
mov dword [ebp - 0x230], 0xb
mov dword [ebp - 0x228], ecx
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426372
sub ecx, edx
mov dword [ebp - 0x224], 0xb
sar ecx, 1
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x21c], ecx
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4263a0
push 0
push 0x80
push 2
push 0
push 2
sub ecx, edx
lea eax, [ebp - 0x218]
push 0x40000000
sar ecx, 1
push eax
mov dword [ebp - 0x220], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x426478
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x250], 3
mov dword [ebp - 0x24c], eax
xorps xmm0, xmm0
lea eax, [ebx + 0x50]
movq qword [ebp - 0x244], xmm0
mov dword [ebp - 0x254], eax
mov eax, dword [ebx + 0x328]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x258]
push 0
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x258], ebx
push eax
push 0
push edi
push dword [ebx + 0x324]
mov dword [ebp - 0x240], 0
push dword [ebx + 0x31c]
call dword [0x5c1448]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
Function at 0x426680
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
inc dword [0x5c27b0]
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x4267dc
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 8
push ebx
call esi
test eax, eax
jne 0x4267dc
push 0x50
push dword [ebx]
call esi
test eax, eax
jne 0x4267dc
push 0x50
push dword [ebx + 4]
call esi
test eax, eax
jne 0x4267dc
push edi
push 0x2568
call fcn.0053bae5
push 0x2568
mov esi, eax
push 0
push esi
mov dword [ebp + 8], esi
call fcn.0053ca90
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x324], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, esi
mov ecx, 0xb3
mov dword [edx + 0x328], eax
lea edi, [edx + 0x50]
mov esi, dword [ebx + 4]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
movdqu xmm0, xmmword [eax]
movdqu xmmword [edx], xmm0
movdqu xmm0, xmmword [eax + 0x10]
movdqu xmmword [edx + 0x10], xmm0
movdqu xmm0, xmmword [eax + 0x20]
movdqu xmmword [edx + 0x20], xmm0
movdqu xmm0, xmmword [eax + 0x30]
movdqu xmmword [edx + 0x30], xmm0
movdqu xmm0, xmmword [eax + 0x40]
lea eax, [ebp - 4]
push eax
push 0
push edx
push 0x426540
push 0
movdqu xmmword [edx + 0x40], xmm0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0x493e0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x42677e
mov esi, dword [ebp + 8]
push esi
call fcn.0053ba8c
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, 1
pop edi
cmp dword [eax], 0xc00000fd
jne 0x4267d2
xor eax, eax
cmp eax, fcn.00547429
je 0x4267ab
call fcn.00547429
or ecx, 0xffffffff
test eax, eax
cmovne esi, ecx
mov eax, dword [0x5c1440]
test eax, eax
je 0x4267d2
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
call eax
add dword [ebp + 8], 0x200000
lea eax, [ebp + 8]
push eax
call dword [0x5c1440]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x427f80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572978
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x5bb250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xffffffffffffffff
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
call fcn.00407180
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
cmp ecx, eax
je 0x427fe9
push 0xffffffffffffffff
push 0
push eax
call fcn.00407180
mov byte [ebp - 4], 1
cmp dword [ebp - 0x10], 0x10
jb 0x427ffe
push dword [ebp - 0x24]
call fcn.0053ba8c
add esp, 4
push dword [ebp + 0x38]
lea eax, [ebp + 0x20]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00407180
mov ecx, dword [esi + 8]
call fcn.00440490
lea eax, [esi + 0x10]
push eax
push 0
push esi
push 0x427970
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp + 0x1c], 0x10
mov dword [esi + 0xc], eax
jb 0x428056
push dword [ebp + 8]
call fcn.0053ba8c
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x428079
push dword [ebp + 0x20]
call fcn.0053ba8c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x34
Function at 0x430a90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
push edi
mov edi, 0x5c42e8
test esi, esi
jne 0x430aaf
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add edi, ecx
sub esi, ecx
add ebx, ecx
test eax, eax
je 0x430ae0
test ecx, ecx
je 0x430ae0
mov eax, dword [ebp - 4]
test esi, esi
jne 0x430ab2
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x431150
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5bb250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test esi, esi
je 0x43121e
cmp word [esi], 0
je 0x43121e
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x43119e
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0053ca90
push esi
push 0x594340
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00544ed3
add esp, 0x1c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x43121e
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x431203
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.00431150
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0053e21c
mov esp, ebp
pop ebp
ret 4

Function at 0x431610
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5bb250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x431652
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
push 0x5943ec
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push esi
push eax
call fcn.00545087
add esp, 0xc
test eax, eax
jne 0x43172c
push 2
push eax
push dword [ebp - 0x18]
call fcn.00543369
push dword [ebp - 0x18]
call fcn.0054377c
push 0
push 0
push dword [ebp - 0x18]
mov edi, eax
call fcn.00543369
add esp, 0x1c
cmp edi, 0x10
jb 0x431721
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push 1
xorps xmm0, xmm0
mov dword [ebp - 8], ebx
push 0x10
push eax
movq qword [ebp - 0x10], xmm0
call fcn.0054322e
add esp, 0x10
cmp dword [ebp - 0x14], 0x10
jne 0x431721
mov esi, dword [ebp - 0xc]
lea eax, [esi + 0x10]
cmp edi, eax
jne 0x431721
lea eax, [esi + 2]
push eax
call fcn.00520986
mov edi, eax
add esp, 4
test edi, edi
je 0x431721
lea eax, [esi + 2]
push eax
push 0
push edi
call fcn.0053ca90
push dword [ebp - 0x18]
push esi
push 1
push edi
call fcn.0054322e
push dword [ebp - 0x24]
mov edx, esi
mov ecx, edi
call fcn.00431880
add esp, 0x20
mov ecx, edi
call fcn.00431980
cmp eax, dword [ebp - 8]
jne 0x431721
mov eax, dword [ebp - 0x1c]
mov ebx, 1
mov dword [eax], edi
mov eax, dword [ebp - 0x20]
mov dword [eax], esi
push dword [ebp - 0x18]
call fcn.00542ad9
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
Function at 0x431880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
movsx eax, bl
push esi
mov esi, ecx
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
test esi, esi
je 0x4318fb
test edx, edx
je 0x4318fb
xor eax, eax
test edx, edx
je 0x4318fb
cmp edx, 0x20
jb 0x4318e7
push edi
mov ecx, edx
mov edi, edx
and ecx, 0x1f
sub edi, ecx
lea ecx, [esi + 0x10]
mov edi, edi
movdqu xmm0, xmmword [ecx - 0x10]
add eax, 0x20
lea ecx, [ecx + 0x20]
pxor xmm0, xmm1
movdqu xmmword [ecx - 0x30], xmm0
movdqu xmm0, xmmword [ecx - 0x20]
pxor xmm0, xmm1
movdqu xmmword [ecx - 0x20], xmm0
cmp eax, edi
jb 0x4318c0
pop edi
cmp eax, edx
jae 0x4318fb
jmp 0x4318f0
xor byte [eax + esi], bl
lea ecx, [eax + esi]
inc eax
cmp eax, edx
jb 0x4318f0
pop esi
pop ebx
pop ebp
ret

Function at 0x431920
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, ecx
test edi, edi
je 0x431970
push esi
mov esi, 0x7bd3b105
xor eax, eax
nop
imul esi, esi, 0xdd548
mov ecx, eax
and ecx, 0x1f
add esi, 0x92fb05
mov edx, esi
shr edx, 0x10
and edx, 0x7fff
add edx, 0x67183d
xor edx, dword [ecx*4 + 0x58ec80]
xor edx, dword [eax + edi]
xor edx, 0xd6312bda
mov dword [eax + edi], edx
add eax, 4
cmp eax, 0x1060
jl 0x431930
pop esi
pop edi
ret

Function at 0x431980
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x5bb250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x431a92
test edi, edi
je 0x431a92
push 0x3fc
lea eax, [ebp - 0x400]
mov dword [ebp - 0x404], 0
push 0
push eax
call fcn.0053ca90
add esp, 0xc
xor ecx, ecx
jmp 0x4319d0
mov eax, ecx
shr eax, 1
test cl, 1
je 0x4319de
xor eax, 0xedb88320
test al, 1
je 0x4319eb
shr eax, 1
xor eax, 0xedb88320
jmp 0x4319ed
shr eax, 1
test al, 1
je 0x4319fa
shr eax, 1
xor eax, 0xedb88320
jmp 0x4319fc
shr eax, 1
test al, 1
je 0x431a09
shr eax, 1
xor eax, 0xedb88320
jmp 0x431a0b
shr eax, 1
test al, 1
je 0x431a18
shr eax, 1
xor eax, 0xedb88320
jmp 0x431a1a
shr eax, 1
test al, 1
je 0x431a27
shr eax, 1
xor eax, 0xedb88320
jmp 0x431a29
shr eax, 1
test al, 1
je 0x431a36
shr eax, 1
xor eax, 0xedb88320
jmp 0x431a38
shr eax, 1
test al, 1
je 0x431a45
shr eax, 1
xor eax, 0xedb88320
jmp 0x431a47
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], eax
inc ecx
cmp ecx, 0x100
jb 0x4319d0
push esi
or edx, 0xffffffff
xor esi, esi
test edi, edi
je 0x431a7d
movzx ecx, byte [esi + ebx]
inc esi
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ebp + ecx*4 - 0x404]
cmp esi, edi
jb 0x431a65
pop esi
not edx
pop edi
mov eax, edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.0053e21c
mov esp, ebp
pop ebp
ret