joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001466a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0xc], 0xad59e57a
push ebx
mov dword [ebp - 0x14], 0xfffffffa
mov ebx, ecx
push esi
mov dword [ebp - 8], 0xbbde
xor ecx, ecx
mov dword [ebp - 0x1c], 0xffffffff
xor esi, esi
mov dword [ebp - 0x18], 0x30bca0be
inc esi
push edi
mov dword [ebp - 0x10], ecx
jmp 0x100146b0
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x20], 0x28ea388
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
jl 0x100146a2
dec dword [ebp - 8]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], ecx
jg 0x10014800
mov edi, 0xba6dad3f
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], ecx
jl 0x100147f4
mov dword [ebp - 0x28], 0xffffffff
mov byte [ebp - 1], cl
cmp byte [ebp - 1], 0
je 0x1001471e
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], ecx
jl 0x100147eb
mov dword [ebp - 0x24], 0x3604
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], ecx
jl 0x100147e2
mov dword [ebp - 0x18], ecx
jmp 0x100147c9
mov dword [ebp - 0x10], 0x6d9de360
mov dword [ebp - 0x10], ecx
jmp 0x1001477a
mov dword [ebp - 0x24], 6
xor edx, edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + eax*4 - 0x20]
mov eax, dword [ebp - 0x24]
cmp eax, ecx
mov eax, dword [ebp - 0xc]
setle dl
xor ecx, ecx
mov dword [ebp + eax*4 - 0x20], edx
cmp dword [ebp - 0x10], ecx
jne 0x1001477f
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], ecx
jle 0x10014751
cmp dword [ebp - 0x24], ecx
jne 0x1001478e
mov dword [ebp - 0x20], edi
mov edx, ecx
cmp dword [ebp - 0x10], edi
jg 0x10014790
mov edx, esi
mov eax, dword [ebp - 0x24]
xor ecx, ecx
cmp edx, eax
setle cl
xor eax, eax
cmp ecx, 5
setge al
cmp dword [ebp - 0x10], eax
jge 0x100147c1
push 0x2e3a
lea eax, [ebp - 0x2c]
push eax
push 0x2c73
push 0
call fcn.100163d9
add esp, 0x10
jmp 0x100147c4
dec dword [ebp - 0x28]
inc dword [ebp - 0x18]
xor ecx, ecx
cmp dword [ebp - 0x18], ecx
jle 0x10014745
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp + eax*4 - 0x20]
dec dword [ebp - 0x14]
jns 0x1001473d
dec dword [ebp - 0x1c]
jns 0x1001472a
dec dword [ebp - 0xc]
jns 0x10014705
inc dword [ebp - 8]
cmp dword [ebp - 8], ecx
jle 0x100146f6
lea eax, [ebp - 0x44]
push eax
call fcn.1000b016
mov esi, eax
lea edi, [ebp - 0x38]
pop ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1001390d
mov ecx, eax
mov eax, dword [ebp - 0x30]
pop edi
pop esi
pop ebx
mov eax, dword [eax + ecx*8 + 4]
mov esp, ebp
pop ebp
ret
Function at 0x10018483
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100184b5
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x100184b3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_HideCaret]
jmp 0x100184cf
push 0x1d79
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret
Function at 0x1001f811
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001f83a
push 0x71a
push 0x23b9
push 0x219e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_CheckRadioButton]
jmp 0x1001f854
push 0x1d79
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret
Function at 0x1002f8e1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002f905
xor eax, eax
jmp 0x1002fa29
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002f923
xor eax, eax
jmp 0x1002fa29
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1002f309
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x1002f942
xor eax, eax
jmp 0x1002fa29
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
push 1
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1002f1d7
add esp, 0x18
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.100287e9
add esp, 0xc
push 0x6962
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1002f375
add esp, 0x14
cmp dword [ebp - 0x14], 0
je 0x1002f9ac
lea eax, [ebp - 4]
push eax
push 0x2d68
push 0x506f
lea eax, [ebp - 0x14]
push eax
push 1
call fcn.1002f3d6
add esp, 0x14
push dword [ebp - 4]
call fcn.1002ef9c
pop ecx
test eax, eax
jne 0x1002f9bd
xor eax, eax
jmp 0x1002fa29
push 1
push dword [ebp - 4]
push 0x26ec
call fcn.1002a6a4
add esp, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002fa11
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1002f9ee
xor eax, eax
jmp 0x1002fa29
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002fa07
xor eax, eax
jmp 0x1002fa29
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002fa22
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1002fa26
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10045163
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100451b0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov eax, dword [eax + 0x14]
add eax, dword [ecx + 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push dword [eax + 0x14]
call fcn.10041699
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x100451bd
push 0x4d8
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esp, ebp
pop ebp
ret

Function at 0x1004563f
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1004568a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
shl eax, 2
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
sub ecx, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [eax + 0x20], ecx
jmp 0x10045694
push 0
push 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esp, ebp
pop ebp
ret

Function at 0x10045a5d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10045ab5
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x1c]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
mov byte [ecx + eax], 0
jmp 0x10045acf
push 0x1d79
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret
Function at 0x10071b71
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008138c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10068c7c
mov dword [ebp - 0x14], eax
cmp dword [0x14b18708], esi
jne 0x10071c64
push 0x800
push esi
push 0x10006f34
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10071bf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10071d44
push esi
push esi
push 0x10006f34
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10071d44
push 0x10006f4c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10071d44
push eax
call ebx
push 0x10006f58
push edi
mov dword [0x14b18708], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10006f68
push edi
mov dword [0x14b1870c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10006f7c
push edi
mov dword [0x14b18710], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x14b18718], eax
test eax, eax
je 0x10071c61
push 0x10006f98
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x14b18714], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10071c89
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10071c7c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10071c9e
push 4
pop eax
jmp 0x10071d46
cmp dword [ebp - 0x14], esi
je 0x10071c9e
push dword [0x14b18708]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10071c83
mov eax, dword [0x14b18714]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10071cfc
cmp dword [0x14b18718], edi
je 0x10071cfc
push eax
call ebx
push dword [0x14b18718]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10071cfc
test eax, eax
je 0x10071cfc
call ecx
test eax, eax
je 0x10071cf1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10071cf1
test byte [ebp - 8], 1
jne 0x10071cfc
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10071d2c
mov eax, dword [0x14b1870c]
cmp eax, edi
je 0x10071d29
push eax
call ebx
test eax, eax
je 0x10071d29
call eax
mov esi, eax
test esi, esi
je 0x10071d29
mov eax, dword [0x14b18710]
cmp eax, edi
je 0x10071d29
push eax
call ebx
test eax, eax
je 0x10071d29
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x14b18708]
call ebx
test eax, eax
je 0x10071d44
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10071d46
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10064955
mov esp, ebp
pop ebp
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x42bb102c
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x20595d4a
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x418dc6
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x45b0d0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x45b428], 0
push esi
push edi
mov esi, edx
je 0x418f5c
xor eax, eax
lea edi, [ebp - 0x41c]
stosd dword es:[edi], eax
mov ecx, 0x4041ee
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 4]
dec eax
cmp eax, 0x10
ja case.0x418e05.16
jmp dword [eax*4 + 0x418f6a]
mov ecx, 0x402ed4
jmp case.0x418e05.16
mov ecx, 0x402ee0
jmp case.0x418e05.16
mov ecx, 0x402eec
jmp case.0x418e05.16
mov ecx, 0x402ef8
jmp case.0x418e05.16
mov ecx, 0x402f08
jmp case.0x418e05.16
mov ecx, 0x402f14
jmp case.0x418e05.16
mov ecx, 0x402f20
jmp case.0x418e05.16
mov ecx, 0x402f30
jmp case.0x418e05.16
mov ecx, 0x402f44
jmp case.0x418e05.16
mov ecx, 0x402f50
jmp case.0x418e05.16
mov ecx, 0x402f5c
jmp case.0x418e05.16
mov ecx, 0x402f68
jmp case.0x418e05.16
mov ecx, 0x402f78
jmp case.0x418e05.16
mov ecx, 0x402f88
jmp case.0x418e05.16
mov ecx, 0x402f9c
jmp case.0x418e05.16
mov ecx, 0x402fb0
push ecx
push dword [esi + 8]
lea eax, [ebp - 0x408]
push dword [esi + 0xc]
push dword [esi]
push 0x8f5
push dword [0x45b424]
push dword [0x45b420]
push 0x402fc0
push 0x400
push eax
call dword [sym.imp.ntdll.dll_sprintf_s]
add esp, 0x28
lea ecx, [esi + 0x10]
lea edx, [ebp - 0x41c]
mov edi, eax
call fcn.0045247a
or dword [ebp - 0x410], 0xffffffff
or dword [ebp - 0x40c], 0xffffffff
cmp edi, 0xffffffff
je 0x418f48
xor esi, esi
lea eax, [ebp - 0x410]
push esi
push eax
push edi
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x424]
push eax
push esi
push esi
push esi
push dword [0x45b428]
call dword [sym.imp.ntdll.dll_NtWriteFile]
push esi
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x41c]
lea eax, [ebp - 0x424]
push dword [ebp - 0x414]
push eax
push esi
push esi
push esi
push dword [0x45b428]
call dword [sym.imp.ntdll.dll_NtWriteFile]
push esi
lea eax, [ebp - 0x410]
push eax
push 2
push 0x402fe0
lea eax, [ebp - 0x424]
push eax
push esi
push esi
push esi
push dword [0x45b428]
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp dword [ebp - 0x414], 0
je 0x418f5c
lea ecx, [ebp - 0x41c]
call fcn.00454740
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045a80a
leave
ret

Function at 0x418fae
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45b0d0]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x45b428], 0
mov eax, dword [ebp + 8]
push esi
je 0x419019
push eax
push edx
push ecx
push dword [0x45b424]
mov esi, 0x45b550
push dword [0x45b420]
push 0x402fe4
push 0x400
push esi
call dword [sym.imp.ntdll.dll_sprintf_s]
add esp, 0x20
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x14]
xor edx, edx
push edx
push ecx
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push edx
push edx
push edx
push dword [0x45b428]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.0045a80a
leave
ret 4
Function at 0x419028
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45b0d0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x45b428], 0
push esi
mov esi, ecx
je 0x419094
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_NtQuerySystemTime]
push esi
push dword [ebp - 0xc]
mov esi, 0x45b950
push dword [ebp - 0x10]
push 0x403004
push 0x400
push esi
call dword [sym.imp.ntdll.dll_sprintf_s]
add esp, 0x18
or dword [ebp - 0x18], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x18]
xor edx, edx
push edx
push ecx
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push edx
push edx
push edx
push dword [0x45b428]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045a80a
leave
ret

Function at 0x4190a1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45b0d0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x45b428], 0
push esi
mov esi, ecx
je 0x419115
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_NtQuerySystemTime]
push dword [esi + 4]
movzx eax, word [esi]
mov esi, 0x45bd50
shr eax, 1
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x403020
push 0x400
push esi
call dword [sym.imp.ntdll.dll_sprintf_s]
add esp, 0x1c
or dword [ebp - 0x18], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x18]
xor edx, edx
push edx
push ecx
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push edx
push edx
push edx
push dword [0x45b428]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045a80a
leave
ret

Function at 0x419122
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x45b0d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
movzx eax, word [esi]
cmp eax, 0x1f4
ja 0x41921a
push eax
push dword [esi + 4]
push 0x45c15c
call sub.ntdll.dll_memcpy
movzx eax, word [esi]
add esp, 0xc
shr eax, 1
push 0x2e
lea ecx, [eax*2 + 0x45c15c]
pop eax
mov word [ecx], ax
add ecx, 2
mov edx, dword [0x45b420]
xor ebx, ebx
mov edi, dword [0x45b424]
cmp ecx, 0x45c350
jae 0x4191a3
mov eax, edi
shr eax, 0x1c
shld edi, edx, 4
shl edx, 4
movsx ax, byte [eax + 0x404200]
mov word [ecx], ax
add ecx, 2
inc ebx
cmp ebx, 0x10
jb 0x41917b
movzx eax, word [esi]
add eax, 0x22
mov byte [0x45c150], 1
mov dword [0x45c158], eax
xor eax, eax
push 0x4060
mov dword [0x45c154], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push 7
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x18
push eax
push 0x100100
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 0x40
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
js 0x41921a
push 0xb
push 0x200
push 0x45c150
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a80a
leave
ret
Function at 0x41ac6f
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x45b0d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ecx + 4]
lea eax, [ebp - 0x14]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push 0x60
push 1
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0xc], ebx
push eax
push 0x120089
lea eax, [ebp - 0xc]
mov dword [ebp - 0x44], 0x18
push eax
push dword [ecx + 0x50]
mov ecx, esi
mov dword [ebp - 0x40], ebx
push 1
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call dword [0x45d240]
call esi
mov esi, eax
test esi, esi
js 0x41ad70
push 5
push 0x18
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
test esi, esi
js 0x41ad70
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
cmp eax, ebx
jg 0x41ad1d
jl 0x41ad04
cmp ecx, ebx
jae 0x41ad12
mov dword [ebp - 0x4c], 0x73a
mov esi, 0xc00000e5
jmp 0x41ad29
cmp eax, ebx
jl 0x41ad45
jg 0x41ad1d
cmp ecx, 0xffffffff
jbe 0x41ad45
mov dword [ebp - 0x4c], 0x742
mov esi, 0xc000042b
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x50], 0x403a10
mov dword [ebp - 0x54], 0x402ea8
call fcn.0045365a
jmp 0x41ad70
mov edx, edi
call fcn.004546d5
mov esi, eax
test esi, esi
js 0x41ad70
push ebx
push ebx
push dword [edi + 4]
lea eax, [ebp - 0x14]
push dword [edi + 8]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtReadFile]
mov esi, eax
test esi, esi
jns 0x41ad8a
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41ad86
cmp eax, 0xffffffff
je 0x41ad86
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
jmp 0x41ada7
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41ada5
cmp eax, 0xffffffff
je 0x41ada5
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a80a
leave
ret 4
Function at 0x41d52a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0x28]
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x2c]
push esi
mov esi, dword [ebp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x24], eax
mov ebx, ecx
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0xc], ecx
push edi
mov edi, dword [ebp + 0x1c]
mov dword [esp + 0x3c], edi
test esi, esi
je 0x41d589
mov dword [esi], ecx
push dword [ebp + 0x24]
mov dword [edi], ecx
push ecx
push eax
mov dword [edi + 4], ecx
call sub.ntdll.dll_memset
add esp, 0xc
push dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [ebp + 0x24]
push dword [esp + 0x30]
push edi
push dword [esp + 0x3c]
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esp + 0x54]
call dword [sym.imp.ntdll.dll_NtReadFile]
mov edi, eax
test edi, edi
jns 0x41d68a
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x41d65f
mov ecx, dword [esp + 0x10]
mov eax, ebx
or eax, ecx
jne 0x41d649
mov edx, dword [0x7ffe0004]
mov ebx, 0x7ffe0324
mov dword [esp + 0x10], edx
mov ecx, dword [ebx]
lea eax, [ebx - 4]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
lea eax, [ebx + 4]
mov eax, dword [eax]
cmp ecx, eax
je 0x41d623
lea edx, [ebx - 4]
lea esi, [ebx + 4]
pause
mov ecx, dword [ebx]
mov eax, dword [edx]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
cmp ecx, eax
jne 0x41d60b
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
mov eax, ecx
mul edx
mov ebx, eax
mov ecx, edx
mov eax, dword [esp + 0x14]
mul dword [esp + 0x10]
shld ecx, ebx, 8
shrd eax, edx, 0x18
shl ebx, 8
shr edx, 0x18
add ebx, eax
adc ecx, edx
mov dword [esp + 0x10], ecx
push ecx
push ecx
mov ecx, dword [esp + 0x20]
push ebx
push edi
call fcn.0041cf9a
mov edi, dword [esp + 0x3c]
jmp 0x41d59b
and dword [esp + 0x4c], 0
lea ecx, [esp + 0x40]
push edi
mov dword [esp + 0x44], 0x40451c
mov dword [esp + 0x48], 0x4045e4
mov dword [esp + 0x4c], 0x188
call fcn.0045365a
mov eax, edi
jmp 0x41d696
test esi, esi
je 0x41d694
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c