joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439442
Capabilities:
Read file on windows

Disassembly:
cmp byte [ecx + 0x88], 0
je 0x439420
push dword [ecx + 0x9c]
mov dword [ecx + 0x84], 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
ret
mov eax, dword [ecx + 0x84]
dec eax
cmp eax, 9
ja case.default.0x43942c
jmp dword [eax*4 + 0x439470]
jmp 0x439610
jmp 0x439670
jmp fcn.00439390
jmp fcn.00439300
jmp fcn.00439960
jmp fcn.00439700
jmp fcn.00439a60
jmp fcn.004399d0
jmp fcn.00439890
jmp 0x4394a0
mov dword [ecx + 0x84], 1
ret
push esi
mov esi, ecx
push dword [esi + 0x9c]
mov dword [esi + 0xcc], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x94], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x4394fd
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esi + 0x84], 1
pop esi
ret
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x4394e5
cmp byte [esi + 0x88], 0
jne 0x439537
push dword [esi + 0x9c]
mov dword [esi + 0x84], 2
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x439537
mov dword [esi + 0x84], 1
pop esi
ret
push esi
mov esi, ecx
cmp byte [esi + 0x88], 0
jne 0x439661
mov eax, dword [esi + 0x40]
test eax, eax
je 0x439631
push eax
call dword [sym.imp.KERNEL32.dll_UnregisterWait]
mov dword [esi + 0x40], 0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x439646
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3c], 0
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x439661
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x9c], 0
pop esi
ret
push esi
mov esi, ecx
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x4396dd
lea eax, [esi + 0x8c]
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4396dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x4396b7
cmp eax, 0x3e5
jne 0x4396dd
mov dword [esi + 0x84], 3
pop esi
ret
push dword [esi + 0x9c]
mov dword [esi + 0x84], 4
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4396f3
mov dword [esi + 0x84], 1
pop esi
ret
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esi + 0x84], 1
pop esi
ret
Function at 0x439c60
Capabilities:
Create pipe

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x84], 0
jne 0x439d04
push 0
push 1
push 0
mov dword [esi + 0x84], 2
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x439d04
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x439d04
push 4
push 0xffffffffffffffff
push esi
push 0x439b10
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x439d04
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x439cc9
mov eax, dword [eax]
push dword [esi + 0x38]
push 0
push 0x40
push 0x40
push 1
push 6
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x439d04
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x439d08
mov dword [esi + 0x84], 1
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x43b020
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e8a2
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4995b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x418], esi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push 0x1c
push 0
mov dword [ebp - 0x414], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x43b0ce
cmp word [ebp - 0x410], 0
jne 0x43b0a6
xor ecx, ecx
jmp 0x43b0bf
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43b0b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.0040c1f0
cmp dword [esi + 0x10], 0
je 0x43b0e2
push 0x13
push 0x482304
mov ecx, esi
call fcn.004250c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458fb5
mov esp, ebp
pop ebp
ret
Function at 0x43b330
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e8a2
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4995b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x418], esi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push 0x1c
push 0
mov dword [ebp - 0x414], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x43b3de
cmp word [ebp - 0x410], 0
jne 0x43b3b6
xor ecx, ecx
jmp 0x43b3cf
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43b3c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.0040c1f0
cmp dword [esi + 0x10], 0
je 0x43b3f2
push 8
push str.NetEase
mov ecx, esi
call fcn.004250c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458fb5
mov esp, ebp
pop ebp
ret

Function at 0x43b620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e958
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4995b0]
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
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x43b745
cmp byte [ebx + 0x45], 0
je 0x43b745
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x43b674
xor al, al
jmp 0x43b747
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x43b6de
dec eax
je 0x43b6e2
sub eax, 2
je 0x43b72e
xor bl, bl
jmp 0x43b730
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x43b714
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00458938
add esp, 0x10
cmp esi, eax
jne 0x43b6da
cmp byte [ebx + 0x45], 0
je 0x43b72e
test esi, esi
jne 0x43b6a4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00409f20
jmp 0x43b6a4
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x43b741
push dword [ebp - 0x28]
call fcn.00454c01
add esp, 4
mov al, bl
jmp 0x43b747
mov al, 1
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.00458fb5
mov esp, ebp
pop ebp
ret
Function at 0x43bbd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e9e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4995b0]
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
mov ebx, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x43bc0c
xor eax, eax
jmp 0x43bd9c
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x43bc3a
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x43bc3a
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
jmp 0x43bd9c
cmp dword [ebx + 0x50], 0
jne 0x43bc48
or eax, 0xffffffff
jmp 0x43bd9c
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [esi], eax
jne 0x43bc69
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov dword [esi], ecx
sub edx, ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [eax], edx
cmp dword [ebx + 0x40], 0
jne 0x43bc8e
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.0045a0cd
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov eax, ecx
jmp 0x43bd9c
mov byte [ebp - 0x2c], cl
lea eax, [ebp - 0x28]
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x30]
mov esi, dword [ebx + 0x40]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edi, dword [esi]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebx + 0x48]
push eax
call dword [edi + 0x1c]
test eax, eax
js 0x43bd86
cmp eax, 1
jg 0x43bd66
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub esi, eax
je 0x43bd37
push dword [ebx + 0x50]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.00458938
add esp, 0x10
cmp esi, eax
jne 0x43bd86
lea eax, [ebp - 0x2c]
mov byte [ebx + 0x45], 1
cmp dword [ebp - 0x34], eax
jne 0x43bd61
test esi, esi
jne 0x43bcc1
cmp dword [ebp - 0x18], 0x20
jae 0x43bd86
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00409f20
jmp 0x43bcc1
mov ebx, dword [ebp + 8]
jmp 0x43bd89
cmp eax, 3
jne 0x43bd86
push dword [ebx + 0x50]
push dword [ebp - 0x2c]
call fcn.0043a0e0
or ecx, 0xffffffff
add esp, 8
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x43bd89
or ebx, 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x43bd9a
push dword [ebp - 0x28]
call fcn.00454c01
add esp, 4
mov eax, ebx
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.00458fb5
mov esp, ebp
pop ebp
ret 4
Function at 0x440130
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f150
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4995b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0043aa00
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0043a900
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0043a630
add esp, 0xc
test al, al
je 0x4401d5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0043a630
add esp, 4
test al, al
je 0x4401b7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [ebp - 0x14], 8
jb 0x4401e6
push dword [ebp - 0x28]
call fcn.00454c01
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x44020b
push dword [ebp - 0x40]
call fcn.00454c01
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458fb5
mov esp, ebp
pop ebp
ret
Function at 0x446610
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4995b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x49c280], 0
je 0x446639
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458fb5
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.00454bb0
add esp, 4
test eax, eax
je 0x446657
push 0
mov ecx, eax
call fcn.00445c90
mov dword [0x49c280], eax
jmp 0x446661
mov dword [0x49c280], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040c2f0
mov ecx, dword [0x49c280]
lea eax, [ebp - 0x1c]
push eax
call fcn.00446b60
cmp dword [ebp - 8], 8
jb 0x446690
push dword [ebp - 0x1c]
call fcn.00454c01
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.00458fb5
mov esp, ebp
pop ebp
ret

Function at 0x446b60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4995b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], cx
lea ecx, [ebp - 0x1c]
push ecx
push 3
push eax
mov dword [ebp - 0xc], 0
call fcn.0044d460
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x446bd9
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x20]
call fcn.004467e0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
cmp dword [ebp - 8], 8
pop edi
jb 0x446beb
push dword [ebp - 0x1c]
call fcn.00454c01
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458fb5
mov esp, ebp
pop ebp
ret 4
Function at 0x447b50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x4995b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
push edi
lea edi, [esi + 0x10]
je 0x447cc4
cmp byte [0x49c2a3], 0
je 0x447cc4
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0045c4ef
add esp, 8
test eax, eax
je 0x447bb1
xor ecx, ecx
mov word [eax + 2], cx
push str.debug_message.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0045ab68
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x447bd2
mov esi, dword [esi]
mov eax, dword [edi]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], esi
push eax
call fcn.0044d910
add esp, 8
cmp dword [ebp - 0x214], 0
je 0x447cad
push 0x44
lea eax, [ebp - 0x280]
push 0
push eax
call fcn.00456fa0
add esp, 0xc
mov dword [ebp - 0x280], 0x44
cmp dword [ebp - 0x210], 8
lea ecx, [ebp - 0x23c]
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x280]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x447c86
push 0xffffffffffffffff
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x238]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x23c]
call esi
jmp 0x447cad
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
push 0x40010
cmovae eax, dword [ebp - 0x224]
push str.Fatal_error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x210], 8
jb 0x447cc4
push dword [ebp - 0x224]
call fcn.00454c01
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00458fb5
mov esp, ebp
pop ebp
ret
Function at 0x44a8f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4995b0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x44a9a5
cmp eax, 0x104
ja 0x44a9a5
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
call fcn.0040c2f0
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x254]
call fcn.004483f0
mov ecx, eax
call fcn.00449790
push eax
mov ecx, esi
call fcn.00408e90
lea ecx, [ebp - 0x23c]
call fcn.00408f70
lea ecx, [ebp - 0x254]
call fcn.00408f70
cmp dword [ebp - 0x210], 8
jb 0x44a994
push dword [ebp - 0x224]
call fcn.00454c01
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458fb5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00458fb5
mov esp, ebp
pop ebp
ret

Function at 0x44aa80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x4995b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x44ab29
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.0040c2f0
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x258]
call fcn.004483f0
mov ecx, eax
call fcn.00449790
push eax
mov ecx, esi
call fcn.00408e90
lea ecx, [ebp - 0x240]
call fcn.00408f70
lea ecx, [ebp - 0x258]
call fcn.00408f70
cmp dword [ebp - 0x214], 8
jb 0x44ab18
push dword [ebp - 0x228]
call fcn.00454c01
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458fb5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00458fb5
mov esp, ebp
pop ebp
ret

Function at 0x44ad90
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 0x44ad9e
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 0x44af50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x44af66
mov eax, dword [eax]
push esi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 8], 0
test esi, esi
je 0x44afd7
lea ecx, [ebp + 8]
call fcn.0044a4e0
cmp esi, 0xffffffff
je 0x44afb1
mov dword [ebp + 8], esi
call fcn.0044e590
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.0044ea60
add esp, 0x10
mov eax, dword [ebp + 8]
test eax, eax
je 0x44afd7
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44afd7
mov esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
je 0x44afda
or esi, 0xffffffff
lea ecx, [ebp + 8]
call fcn.0044a4e0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44b070
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.00449580
test al, al
jne 0x44b091
mov ecx, dword [ebp + 0xc]
call fcn.00449580
test al, al
jne 0x44b091
pop ebp
jmp fcn.0044ac20
xor al, al
pop ebp
ret
Function at 0x44f010
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
mov eax, dword [0x4995b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x124], ebx
push edi
mov dword [esi], ebx
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44f082
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x124], ebx
push ecx
push edi
call eax
test eax, eax
jne 0x44f077
mov eax, 2
jmp 0x44f082
xor eax, eax
cmp dword [ebp - 0x124], eax
setne al
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x11c]
push pe_nt_image_headers32
push 0
mov dword [esi + 0x3c], 0xf
mov dword [esi + 0x38], ebx
mov byte [esi + 0x28], bl
push eax
mov dword [ebp - 0x120], 0x11c
call fcn.00456fa0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x114]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
cmp edx, 5
jne 0x44f0f7
test ecx, ecx
jle 0x44f1d6
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x44f1d6
cmp edx, 6
jne 0x44f170
sub ecx, ebx
je 0x44f168
dec ecx
je 0x44f160
dec ecx
je 0x44f158
call fcn.004482e0
cmp eax, 1
jne 0x44f150
call fcn.00447dc0
cmp eax, 3
jg 0x44f150
push str.version_number_.minor__3
push 3
push dword [esi + 8]
call fcn.0044f270
add esp, 0xc
test eax, eax
je 0x44f150
push eax
push 3
push 0x3b
push str.winwindows_version.cc
lea ecx, [ebp - 0x1f8]
call fcn.00447130
lea ecx, [ebp - 0x1f8]
call fcn.00447270
mov dword [esi], 6
jmp 0x44f1d6
mov dword [esi], 5
jmp 0x44f1d6
mov dword [esi], 4
jmp 0x44f1d6
mov dword [esi], 3
jmp 0x44f1d6
cmp edx, 0xa
jne 0x44f17d
mov dword [esi], 7
jmp 0x44f1d6
cmp edx, 6
jle 0x44f1d6
call fcn.004482e0
cmp eax, 1
jne 0x44f1c0
call fcn.00447dc0
cmp eax, 3
jg 0x44f1c0
push 3
push 0x44
push str.winwindows_version.cc
lea ecx, [ebp - 0x1f8]
mov ebx, 1
call fcn.00447070
add eax, 8
push str.Check_failed:_false.
push eax
call fcn.0040ed00
add esp, 8
test bl, 1
je 0x44f1d0
lea ecx, [ebp - 0x1f8]
call fcn.00447270
mov dword [esi], 8
movzx eax, word [ebp - 0xc]
xorps xmm0, xmm0
mov dword [esi + 0x10], eax
movzx eax, word [ebp - 0xa]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 0x148], 0
movdqu xmmword [ebp - 0x144], xmm0
movdqu xmmword [ebp - 0x134], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x148]
test eax, eax
je 0x44f235
cmp eax, 6
je 0x44f22c
cmp eax, 9
jne 0x44f23c
mov dword [esi + 0x18], 1
jmp 0x44f23c
mov dword [esi + 0x18], 2
jmp 0x44f23c
mov dword [esi + 0x18], 0
mov ecx, dword [ebp - 0x134]
mov eax, esi
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x12c]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00458fb5
mov esp, ebp
pop ebp
ret