joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4177b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4b4810]
xor eax, esp
mov dword [esp + 0x18], eax
cmp dword [0x4ba120], 0
push esi
je 0x4177e0
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00492f61
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.0048f19b
add esp, 4
test eax, eax
je 0x4177fe
push 0
mov ecx, eax
call fcn.00417610
mov dword [0x4ba120], eax
jmp 0x417808
mov dword [0x4ba120], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [esp + 0x18], 7
xor eax, eax
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
cmp word [edx], ax
jne 0x417830
xor ecx, ecx
jmp 0x417844
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417835
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xc]
call fcn.0041a940
mov ecx, dword [0x4ba120]
lea eax, [esp + 4]
push eax
call fcn.004187d0
cmp dword [esp + 0x18], 8
jb 0x417872
push dword [esp + 4]
call fcn.0048f211
add esp, 4
mov ecx, dword [esp + 0x1c]
mov al, 1
pop esi
xor ecx, esp
call fcn.00492f61
mov esp, ebp
pop ebp
ret

Function at 0x4187d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x4b4810]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
mov dword [esp + 8], 0
mov ecx, 0x4138cc
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], eax
lea edx, [ecx + 2]
mov word [esp + 0x24], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418823
sub ecx, edx
sar ecx, 1
push ecx
push 0x4138cc
lea ecx, [esp + 0x2c]
call fcn.0041a940
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 3
lea edx, [esp + 0x2c]
call fcn.0042c3b0
add esp, 8
cmp dword [esp + 0x38], 8
jb 0x418869
push dword [esp + 0x24]
call fcn.0048f211
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x4188a7
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
cmovae eax, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [esp + 0xc]
call fcn.00417990
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x20], 8
jb 0x4188ba
push dword [esp + 0xc]
call fcn.0048f211
add esp, 4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.00492f61
mov esp, ebp
pop ebp
ret 4
Function at 0x4229d0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x260
mov eax, dword [0x4b4810]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
cmp eax, 0x104
jb 0x422a0f
xor al, al
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00492f61
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x422a29
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00492f61
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp + 0xc]
test bl, bl
jne 0x422a8b
lea ecx, [esp + 0x28]
call fcn.0042f150
mov edx, ecx
mov ecx, esi
call fcn.004238d0
test al, al
je 0x422a74
cmp byte [esp + 0x30], bl
je 0x422a74
cmp dword [esi + 0x14], 8
jb 0x422a54
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00492f61
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x422a7e
mov eax, dword [esi]
jmp 0x422a80
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x422a13
xor eax, eax
push 0x208
push eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push eax
call fcn.00447e70
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x422aad
mov esi, dword [esi]
lea ecx, [esp + 0x50]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x422ab1
mov word [esp + 0x24], ax
xorps xmm0, xmm0
mov dword [esp + 8], 0
lea eax, [esp + 0x50]
movq qword [esp + 0x1c], xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 0x10], eax
mov eax, 0x414
mov dword [esp + 0xc], 3
mov word [esp + 0x18], ax
test bl, bl
jne 0x422b06
mov eax, 0x1494
mov word [esp + 0x18], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [esp + 0x1a], 0
jne 0x4229f9
test eax, eax
je 0x422b47
cmp eax, 2
je 0x422b47
cmp eax, 0x402
je 0x422b47
cmp eax, 0x7c
je 0x422b47
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00492f61
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x264]
mov eax, 1
pop esi
pop ebx
xor ecx, esp
call fcn.00492f61
mov esp, ebp
pop ebp
ret
Function at 0x422f40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x422f4e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x422f60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x422f6e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x422f82
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x422f90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4b4810]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x218]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x4230ed
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.00418fd0
xor eax, eax
mov dword [ebp - 0x21c], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x260]
mov dword [ebp - 0x220], 0
push eax
call fcn.00419d40
push 1
push 0
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], 0
push eax
lea ecx, [ebp - 0x230]
call fcn.00419e60
cmp eax, 0xffffffff
je 0x42303b
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x230]
call fcn.0041ab10
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.0041dc50
cmp esi, eax
je 0x42305d
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00419d40
cmp dword [ebp - 0x234], 8
jb 0x423074
push dword [ebp - 0x248]
call fcn.0048f211
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jb 0x4230a8
push dword [ebp - 0x230]
call fcn.0048f211
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x4230dc
push dword [ebp - 0x260]
call fcn.0048f211
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492f61
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00492f61
mov esp, ebp
pop ebp
ret
Function at 0x423100
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4b4810]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x423171
cmp word [ebp - 0x210], 0
je 0x423171
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00418fd0
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
call fcn.0041d0e0
cmp dword [ebp - 0x214], 8
jb 0x42328f
push dword [ebp - 0x228]
jmp 0x423287
xor eax, eax
mov dword [ebp - 0x22c], 7
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
call fcn.00422f90
test al, al
je 0x4231c6
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp - 0x240]
push eax
call fcn.00419d40
jmp 0x423278
push 3
xor eax, eax
mov dword [ebp - 0x214], 7
push 0x412f1c
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call fcn.0041a940
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp - 0x228]
push eax
call fcn.00419d40
push 1
push 0
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
mov ecx, esi
call fcn.00419e60
cmp eax, 0xffffffff
je 0x423244
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0041ab10
cmp dword [ebp - 0x214], 8
jb 0x42325b
push dword [ebp - 0x228]
call fcn.0048f211
add esp, 4
xor eax, eax
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
cmp dword [ebp - 0x22c], 8
jb 0x42328f
push dword [ebp - 0x240]
call fcn.0048f211
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00492f61
mov esp, ebp
pop ebp
ret
Function at 0x423330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x4b4810]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x474], 0
cmp dword [ecx + 0x14], 8
push esi
mov esi, edx
jb 0x423358
mov ecx, dword [ecx]
lea eax, [ebp - 0x218]
push eax
push 0
push 0x412f24
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x423382
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492f61
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x104
ja 0x42342f
test eax, eax
je 0x42342f
xor ecx, ecx
mov dword [ebp - 0x45c], 7
push eax
lea eax, [ebp - 0x428]
mov word [ebp - 0x470], cx
push eax
lea ecx, [ebp - 0x470]
mov dword [ebp - 0x460], 0
call fcn.0041a940
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x458]
call fcn.0041d0e0
cmp esi, eax
je 0x423400
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00419d40
cmp dword [ebp - 0x444], 8
jb 0x423417
push dword [ebp - 0x458]
call fcn.0048f211
add esp, 4
cmp dword [ebp - 0x45c], 8
jb 0x42354a
push dword [ebp - 0x470]
jmp 0x423542
xor eax, eax
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x448], 0
mov word [ebp - 0x458], ax
cmp word [ebp - 0x218], ax
jne 0x423459
xor ecx, ecx
jmp 0x423471
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423462
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x458]
call fcn.0041a940
xor eax, eax
mov dword [ebp - 0x42c], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x440], ax
lea ecx, [ebp - 0x440]
lea eax, [ebp - 0x458]
mov dword [ebp - 0x430], 0
push eax
call fcn.00419d40
push 1
push 0
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0
push eax
lea ecx, [ebp - 0x440]
call fcn.00419e60
cmp eax, 0xffffffff
je 0x4234e9
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x440]
call fcn.0041ab10
lea eax, [ebp - 0x440]
cmp esi, eax
je 0x4234ff
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00419d40
cmp dword [ebp - 0x42c], 8
jb 0x423516
push dword [ebp - 0x440]
call fcn.0048f211
add esp, 4
xor eax, eax
mov dword [ebp - 0x42c], 7
cmp dword [ebp - 0x444], 8
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
jb 0x42354a
push dword [ebp - 0x458]
call fcn.0048f211
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00492f61
mov esp, ebp
pop ebp
ret
Function at 0x423560
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4b4810]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
mov dword [ebp - 0x54], eax
xor eax, eax
push edi
mov dword [ebp - 0x58], edx
xor edi, edi
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
jmp 0x4235a0
xor eax, eax
mov dword [ebp - 0xc], 7
push 0xffffffffffffffff
push eax
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
call fcn.00419d40
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.00424860
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.00419c70
cmp dword [ebp - 0x3c], 8
jb 0x4235f1
push dword [ebp - 0x50]
call fcn.0048f211
add esp, 4
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
cmovae ecx, dword [ebp - 0x20]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x20]
cmovae ecx, dword [ebp - 0x20]
test eax, eax
je 0x423611
sub eax, ecx
sar eax, 1
push 0x5f
push 1
push eax
lea ecx, [ebp - 0x20]
call fcn.0041aa40
mov edi, edi
lea ecx, [ebp - 0x64]
call fcn.0043b420
cmp dword [ebp - 0x60], 0xffffffff
ja 0x423620
mov edx, dword [ebp - 0x64]
jb 0x42363b
cmp edx, 0xffff7fff
ja 0x423620
and edx, 0x7fff
lea ecx, [ebp - 0x50]
call fcn.00424860
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.00419c70
cmp dword [ebp - 0x3c], 8
jb 0x42366a
push dword [ebp - 0x50]
call fcn.0048f211
add esp, 4
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0041d910
lea ecx, [ebp - 0x38]
cmp ecx, eax
je 0x42368b
push 0xffffffffffffffff
push 0
push eax
call fcn.00419d40
cmp dword [ebp - 0x3c], 8
jb 0x42369c
push dword [ebp - 0x50]
call fcn.0048f211
add esp, 4
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
call ebx
test eax, eax
jne 0x4236d2
cmp dword [ebp - 0xc], 8
jb 0x4236c1
push dword [ebp - 0x20]
call fcn.0048f211
add esp, 4
mov edx, dword [ebp - 0x58]
inc edi
cmp edi, 0x32
jl 0x4235a0
xor bl, bl
jmp 0x4236fb
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x38]
cmp eax, ecx
je 0x4236e8
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00419d40
cmp dword [ebp - 0xc], 8
jb 0x4236f9
push dword [ebp - 0x20]
call fcn.0048f211
add esp, 4
mov bl, 1
cmp dword [ebp - 0x24], 8
jb 0x42370c
push dword [ebp - 0x38]
call fcn.0048f211
add esp, 4
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00492f61
mov esp, ebp
pop ebp
ret
Function at 0x4237a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4b4810]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x4237cf
mov ebx, dword [edi]
jmp 0x4237d1
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x423813
test al, 0x10
je 0x4237f5
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00492f61
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4237ff
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00492f61
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0041d730
cmp dword [edi + 0x14], 8
jb 0x423829
mov eax, dword [edi]
jmp 0x42382b
mov eax, edi
push dword [edi + 0x10]
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x2c]
push 0
call fcn.0041abc0
test eax, eax
jne 0x423850
test esi, esi
je 0x42389d
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x4238a3
lea eax, [esp + 0x14]
push esi
push eax
call fcn.004237a0
add esp, 8
test al, al
jne 0x423866
xor bl, bl
jmp 0x4238a3
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4238a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x423890
push edi
call fcn.00422f60
add esp, 4
test al, al
jne 0x4238a1
test esi, esi
je 0x42389d
mov ecx, ebx
call fcn.0042f420
mov dword [esi], eax
xor bl, bl
jmp 0x4238a3
mov bl, 1
cmp dword [esp + 0x28], 8
jb 0x4238b6
push dword [esp + 0x14]
call fcn.0048f211
add esp, 4
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00492f61
mov esp, ebp
pop ebp
ret
Function at 0x423ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [esp + 0x10], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x423ae5
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor ecx, ecx
mov dword [esp + 0x10], ecx
test esi, esi
je 0x423b64
lea ecx, [esp + 0x10]
call fcn.004242a0
cmp esi, 0xffffffff
je 0x423b31
mov dword [esp + 0x10], esi
call fcn.004261b0
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00426300
add esp, 0x10
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x423b64
cmp ecx, 0xffffffff
je 0x423b64
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423b60
mov ebx, dword [esp + 0x14]
cmp ebx, edi
jne 0x423b60
mov ecx, dword [esp + 0x10]
jmp 0x423b67
mov ecx, dword [esp + 0x10]
or ebx, 0xffffffff
test ecx, ecx
je 0x423bb9
cmp ecx, 0xffffffff
je 0x423bb9
call fcn.004261b0
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
call fcn.004263d0
mov edi, dword [esp + 0x20]
add esp, 0x10
call fcn.00426550
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov byte [0x4ba164], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov byte [0x4ba164], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4b4810]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x424119
cmp eax, 0x104
ja 0x424119
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x240]
call fcn.00418fd0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x258]
call fcn.0041d0e0
mov ecx, eax
call fcn.0041dc50
cmp esi, eax
je 0x4240a6
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00419d40
cmp dword [ebp - 0x214], 8
jb 0x4240bd
push dword [ebp - 0x228]
call fcn.0048f211
add esp, 4
xor eax, eax
mov dword [ebp - 0x214], 7
cmp dword [ebp - 0x244], 8
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
jb 0x4240f1
push dword [ebp - 0x258]
call fcn.0048f211
add esp, 4
cmp dword [ebp - 0x22c], 8
jb 0x424108
push dword [ebp - 0x240]
call fcn.0048f211
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492f61
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00492f61
mov esp, ebp
pop ebp
ret

Function at 0x424150
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ecx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.0041dcb0
test al, al
jne 0x4241bc
mov ecx, esi
call fcn.0041dcb0
test al, al
jne 0x4241bc
cmp dword [edi + 0x10], 0x104
jae 0x4241bc
cmp dword [esi + 0x10], 0x104
jae 0x4241bc
cmp dword [esi + 0x14], 8
jb 0x424185
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x42418d
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4241bc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4241bc
test al, 1
je 0x4241b6
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret
Function at 0x4271a0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [esi + 0x18], ecx
ja 0x4271f2
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [esi + 8]
mov esi, dword [esi]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x42720a
mov ecx, esi
jmp 0x42720f
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x42723c
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x42721e
mov eax, dword [eax]
jmp 0x427202
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
jne 0x42722e
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4272d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul ecx, ecx, 0x1000193
and ecx, edx
cmp dword [ebx + 0x18], ecx
ja 0x427324
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov esi, dword [ebx]
lea edx, [ecx*8]
mov ecx, dword [ebx + 8]
mov dword [esp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x427353
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x427353
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x427397
cmp esi, eax
jne 0x427347
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x427381
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 8]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4273b3
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x4273d5
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.004273f0
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x4273bb
mov dword [ecx], edi
jmp 0x4273d5
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x4273d5
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.00427440
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc