joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x419d52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419d48
mov eax, 1
add ebx, ebx
jne 0x419d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419d60
jne 0x419d7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419d60
xor ecx, ecx
sub eax, 3
jb 0x419d90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419e02
mov ebp, eax
add ebx, ebx
jne 0x419d9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419dcc
inc ecx
add ebx, ebx
jne 0x419db8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419dad
jne 0x419dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419dad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419dec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419ddd
jmp 0x419d4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419dec
add edi, ecx
jmp 0x419d4e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419e0a
cmp byte [edi], 5
jne 0x419e0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x419e0f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419e87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419e3c
mov ecx, edi
jns 0x419e6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x419e81
mov dword [ebx], eax
add ebx, 4
jmp 0x419e59
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x419ebb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403cf8
nop
nop
sub eax, 0x403c9e
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x402060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.00416240
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x2000
lea eax, [ebp - 0x2010]
mov dword [ebp - 0xc], 0xa000d
push 0
push eax
mov edi, edx
mov dword [ebp - 8], 0
mov esi, ecx
call fcn.0042d530
add esp, 0xc
mov ecx, esi
call fcn.00402d00
test al, al
jne 0x4020b3
mov ecx, esi
call fcn.00402ee0
push edi
lea eax, [ebp - 0x2010]
push 0x1000
push eax
call fcn.00434f1a
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2010]
push 0x1000
push eax
call fcn.00434f7e
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402147
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x2010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402116
sub ecx, edx
lea eax, [ebp - 0x2014]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x2010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00414edc
mov esp, ebp
pop ebp
ret
Function at 0x4027a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x48]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0xd0], ebx
call fcn.0042d530
add esp, 0xc
lea eax, [ebp - 0xc8]
push 0x80
push 0
push eax
call fcn.0042d530
mov ecx, ebx
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4027f0
sub ecx, edx
sar ecx, 1
je 0x402977
push 0x800
call fcn.004154c4
add esp, 4
mov esi, eax
push 0x800
call fcn.004154c4
add esp, 4
mov ebx, eax
xor eax, eax
mov ecx, 0x200
mov edi, ebx
rep stosd dword es:[edi], eax
push dword [ebp - 0xd0]
push 0x45cd34
push 0x400
push esi
call fcn.004011f0
movzx eax, word [esi]
push eax
push str._c:_
lea eax, [ebp - 0x48]
push 0x20
push eax
call fcn.004011f0
movzx eax, word [esi]
push eax
call fcn.00435346
add esp, 0x24
test eax, eax
je 0x40288d
push 0
push 0
push 0
push 0
push 0
push 0x40
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x402977
mov edx, ebx
mov ecx, esi
sub edx, esi
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x402893
push 0x45cd3c
push esi
call fcn.0042c3db
add esp, 8
mov edx, 0x45cd48
push 0x400
test eax, eax
je 0x4028c8
lea eax, [ebx + 8]
push eax
push ecx
lea ecx, [esi + 8]
jmp 0x4028cc
push ebx
push ecx
mov ecx, esi
call fcn.00402fb0
add esp, 0xc
mov edx, 0x45cd50
push 0x400
push ebx
push ecx
mov ecx, esi
call fcn.00402fb0
add esp, 0xc
push ebx
push 0x400
push esi
call fcn.00434f1a
add esp, 0xc
push 0
push esi
call fcn.004302ce
add esp, 8
mov byte [ebp - 0xc9], 1
cmp eax, 0xffffffff
lea eax, [ebp - 0xf0]
push 1
push 0
push 0
push 0
push eax
jne 0x402926
mov byte [ebp - 0xc9], 0
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40294a
lea eax, [ebp - 0xf0]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xf0]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
call fcn.00414eed
add esp, 4
test ebx, ebx
je 0x402960
push ebx
call fcn.00414eed
add esp, 4
mov al, byte [ebp - 0xc9]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414edc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414edc
mov esp, ebp
pop ebp
ret
Function at 0x402d00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40ec
call fcn.00416240
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x48]
mov esi, ecx
push 0
push eax
call fcn.0042d530
add esp, 0xc
lea eax, [ebp - 0xc8]
push 0x80
push 0
push eax
call fcn.0042d530
add esp, 0xc
lea eax, [ebp - 0x20c8]
push 0x2000
push 0
push eax
call fcn.0042d530
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402d60
sub ecx, edx
sar ecx, 1
je 0x402ec2
push esi
push 0x45cd34
lea eax, [ebp - 0x20c8]
push 0x1000
push eax
call fcn.004011f0
movzx eax, word [ebp - 0x20c8]
push eax
push str._c:_
lea eax, [ebp - 0x48]
push 0x20
push eax
call fcn.004011f0
push dword [ebp - 0x20c8]
call fcn.00435346
add esp, 0x24
test eax, eax
je 0x402ddb
push 0
push 0
push 0
push 0
push 0
push 0x40
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x402ec2
xor eax, eax
lea edi, [ebp - 0x40c8]
mov ecx, 0x800
mov edx, 0x45cd50
rep stosd dword es:[edi], eax
push 0x1000
lea eax, [ebp - 0x40c8]
push eax
push ecx
lea ecx, [ebp - 0x20c8]
call fcn.00402fb0
add esp, 0xc
lea eax, [ebp - 0x40c8]
push eax
lea eax, [ebp - 0x20c8]
push 0x1000
push eax
call fcn.00434f1a
add esp, 0xc
lea eax, [ebp - 0x20c8]
push 0
push eax
call fcn.004302ce
add esp, 8
cmp eax, 0xffffffff
lea eax, [ebp - 0x40e8]
push 1
push 0
push 0
push 0
push eax
je 0x402e83
mov bl, 1
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x402eaf
lea eax, [ebp - 0x40e8]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x40e8]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414edc
mov esp, ebp
pop ebp
ret
xor bl, bl
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x402ea9
lea eax, [ebp - 0x40e8]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x40e8]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414edc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414edc
mov esp, ebp
pop ebp
ret
Function at 0x402ee0
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
call fcn.00402d00
test al, al
jne 0x402fa8
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push edi
mov dword [ebp - 8], 0xfeff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [ebp - 0x10]
push 0
push eax
push 2
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0xffffffff
je 0x402f51
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 5
jge 0x402fa8
mov ecx, edi
call fcn.00402d00
test al, al
jne 0x402fa8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor esi, esi
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x1f4
jae 0x402f93
call fcn.00403470
push 0xa
add esi, 0xa
call ebx
cmp esi, 0x1f4
jl 0x402f70
mov edi, dword [ebp - 0xc]
mov ecx, edi
inc dword [ebp - 4]
call fcn.00402d00
test al, al
je 0x402f10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4034e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x80
lea eax, [ebp - 0x84]
mov esi, ecx
push 0
push eax
xor bl, bl
call fcn.0042d530
add esp, 0xc
lea eax, [ebp - 0x84]
push 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x403534
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414edc
mov esp, ebp
pop ebp
ret
mov ax, word [ebp - 0x84]
mov word [esi], ax
cmp ax, 0x58
je 0x40354a
cmp ax, 0x78
jne 0x40354c
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00414edc
mov esp, ebp
pop ebp
ret
Function at 0x403560
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x45cf8c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x10], eax
mov ax, word [0x45cf90]
mov word [ebp - 0xc], ax
mov al, byte [0x45cf92]
push edi
mov byte [ebp - 0xa], al
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push eax
mov word [ebp - 9], ax
mov byte [ebp - 7], al
lea eax, [ebp - 0x10]
mov dword [ebx], 0xffffffff
push eax
mov dword [esi], 0xffffffff
mov byte [ebp - 0xc], cl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4035d6
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414edc
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x20]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x403600
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
pop edi
shr eax, 0x1f
xor ecx, ebp
pop esi
xor al, 1
pop ebx
call fcn.00414edc
mov esp, ebp
pop ebp
ret
Function at 0x4095e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c3d2
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x46706c]
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]
lea eax, [ebp - 0x90]
push 0x80
push 0
mov dword [ebp - 0x98], esi
push eax
mov dword [ebp - 0x94], 0
call fcn.0042d530
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
add esp, 0xc
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x90]
push 0x40
push eax
mov dword [ebp - 0x94], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, esi
test eax, eax
jne 0x409677
push eax
push 0x45cc3c
call fcn.00403ae0
jmp 0x409696
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 1
jb 0x409686
mov ecx, dword [esi]
mov ax, word [ebp - 0x90]
mov word [ecx], ax
xor eax, eax
mov word [ecx + 2], ax
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.00414edc
mov esp, ebp
pop ebp
ret 4
Function at 0x40a570
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c4b8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
movups xmm0, xmmword [ebx + 8]
sub esp, 0x28
mov eax, esp
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebx + 0x18]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebx + 0x28]
movq qword [eax + 0x20], xmm0
call fcn.004096c0
test al, al
jne 0x40a5e1
mov eax, 1
jmp 0x40a710
mov ecx, esi
call fcn.00409b30
test al, al
je 0x40a5d7
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push str.systemCurrentControlSet_services_stornvme
push esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40a677
push esi
call edi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
test eax, eax
jne 0x40a677
push ecx
lea ecx, [ebp - 0x20]
call fcn.00411760
push eax
push str._INF__CDiskManager::StartClone__reg1_del_:__ld
call fcn.00410b80
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push eax
push str._INF__CDiskManager::StartClone__reg1_flush_:__ld
call fcn.00410b80
add esp, 8
test esi, esi
je 0x40a670
push esi
call edi
xor esi, esi
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x2001f
push 0
push str.systemCurrentControlSet_services_secnvme
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a6ea
test esi, esi
je 0x40a6a4
push esi
call edi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
test eax, eax
jne 0x40a6ea
push ecx
lea ecx, [ebp - 0x20]
call fcn.00411760
push eax
push str._INF__CDiskManager::StartClone__reg2_del_:__ld
call fcn.00410b80
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push eax
push str._INF__CDiskManager::StartClone__reg2_flush_:__ld
call fcn.00410b80
add esp, 8
test esi, esi
je 0x40a6ea
push esi
call edi
xor esi, esi
lea eax, [ebp - 0x24]
push eax
push 0
push dword [0x46d6a8]
push 0x40a730
push 0
push 0
call fcn.00437f4f
add esp, 0x18
test esi, esi
je 0x40a70e
push esi
call edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00414edc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x28
Function at 0x40caa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44be10
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46706c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004150ee
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00413138
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410b80
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push 0x800
lea eax, [ebp - 0xa14]
mov dword [ebp - 0xa2c], 0
push 0
push eax
call fcn.0042d530
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x410c5b
cmp word [eax], 0
je 0x410c5b
lea eax, [ebp - 0xa24]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xa18]
push eax
movzx eax, word [ebp - 0xa1a]
push eax
movzx eax, word [ebp - 0xa1c]
push eax
movzx eax, word [ebp - 0xa1e]
push eax
movzx eax, word [ebp - 0xa22]
push eax
movzx eax, word [ebp - 0xa24]
push eax
push str._04u__02u__02u__02u:_02u:_02u
lea eax, [ebp - 0xa14]
push 0x400
push eax
call fcn.00410d50
add esp, 0x24
lea ecx, [ebp + 0xc]
mov edx, 0x400
sub edx, eax
push ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0xa14]
push 0xffffffffffffffff
lea ecx, [ecx + eax*2]
call fcn.00410a90
add esp, 0x10
mov dword [ebp - 0xa2c], eax
lea eax, [ebp - 0xa14]
push 0x45f4ec
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x410c6d
push 0x45f4ec
lea eax, [ebp - 0xa14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.0042d530
add esp, 0xc
lea ecx, [ebp - 0x214]
call fcn.00410ad0
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x410d3f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x4c4b40
jbe 0x410cef
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x20
push 2
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x410d3f
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xa28]
push eax
lea eax, [ebp - 0xa14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0xa14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xa2c]
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00414edc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00414edc
mov esp, ebp
pop ebp
ret
Function at 0x411500
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x46706c]
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 esi, edx
mov edi, ecx
call fcn.00411360
test al, al
jne 0x41153f
xor al, al
jmp 0x41160d
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x411538
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004154c4
add esp, 4
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push dword [ebp - 0x24]
push eax
call fcn.00411230
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4115da
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x45cce8
push dword [ebp - 0x18]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4115da
mov eax, dword [ebp - 0x24]
mov bl, 1
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, ecx
shr eax, 0x10
mov dword [esi], eax
movzx eax, cx
mov dword [esi + 4], eax
mov eax, edx
shr eax, 0x10
mov dword [esi + 8], eax
movzx eax, dx
mov dword [esi + 0xc], eax
jmp 0x4115dc
xor bl, bl
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x41160b
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41160b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x41160b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov al, bl
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.00414edc
mov esp, ebp
pop ebp
ret

Function at 0x4116c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41174b
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x41170d
cmp eax, 2
jne 0x411729
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x411745
test ecx, ecx
je 0x411740
test cl, 1
jne 0x411729
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x411745
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414edc
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00414edc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418068
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