joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466465
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46657d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46657d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0047fddd
mov esi, eax
test esi, esi
je 0x46657d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46657d
mov ecx, esi
call fcn.004663d0
cmp edi, eax
jge 0x46657d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x466503
mov dword [esp + 0x34], 1
jmp 0x46655e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46657d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004659a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x480781
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4807b9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047e835
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047e80d
jmp 0x4807c5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x481e74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x481eb6
call fcn.00487923
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x481eb6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x481ead
xor eax, eax
jmp 0x481ebe
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00481ec4
pop edi
pop esi
pop ebx
ret 4
Function at 0x487e53
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x487e81
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x487e9f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00487db9
jmp 0x487e9f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x487e9f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00487db9
test edi, edi
mov eax, edi
jne 0x487e89
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5001c48
Capabilities:
Create directory

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, edi
cmp byte [edi], 0
je 0x5001c7e
cmp byte [esi], 0x5c
jne 0x5001c78
and byte [esi], 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x5001c75
push edi
push 0x50010b8
call fcn.05001cf9
mov byte [esi], 0x5c
inc esi
cmp byte [esi], 0
jne 0x5001c55
pop edi
pop esi
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebp - 0x104]
mov eax, ecx
lea ecx, [eax + 1]
lea eax, [ebp + eax - 0x104]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [eax - 1], 0x5c
pop edi
pop esi
je 0x5001ccc
mov byte [eax], 0x5c
and byte [eax + 1], 0
lea eax, [ebp - 0x104]
push eax
call fcn.05001c48
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x5001cf3
test al, 0x10
je 0x5001cf3
xor eax, eax
inc eax
jmp 0x5001cf5
xor eax, eax
leave
ret 4

Function at 0x5001f1a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x5001f34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x5006208], 0
jne 0x5001f85
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.05001eb6
and byte [ebp - 0x80], 0
lea eax, [ebp - 0x80]
push 0x80
push eax
push 0x20000003
push 0
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x80]
push 0x10010
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x5016430]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.05001f9b
test esi, esi
jne 0x5001f8f
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x5002212
Capabilities:
Hash data with crc32

Disassembly:
xor edx, edx
mov ecx, 0x5016438
push esi
push 8
mov eax, edx
pop esi
test al, 1
je 0x500222c
shr eax, 1
xor eax, 0xedb88320
jmp 0x500222e
shr eax, 1
dec esi
jne 0x500221f
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x5016838
jl 0x500221a
pop esi
ret

Function at 0x5002241
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test edx, edx
je 0x500226d
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x5016438]
xor eax, esi
inc ecx
dec edx
jne 0x5002253
pop edi
pop esi
ret 0xc
Function at 0x5003478
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x50034bf
cmp edx, 0x10
jl 0x50034ab
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x5003498
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x50034bf
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x50034b7
and edx, 3
cmp edx, 3
jne 0x50034d3
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x50034d8
cmp edx, 2
jne 0x50034e4
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x50034e9
cmp edx, 1
jne 0x50034ef
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x401000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
lea eax, [ebp - 0x412]
push eax
xor esi, esi
call fcn.00408690
xor eax, eax
push 0x206
push eax
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408690
add esp, 0x18
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
push 0x416618
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x41665c
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
push 0x416668
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
mov ecx, 1
push 0x4166b0
push eax
cmovne esi, ecx
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4010d7
or esi, 2
push 0x4166c8
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x4166bc
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401105
or esi, 4
push 0x416720
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x416714
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401136
or esi, 0x100
push 0x416780
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x416774
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401167
or esi, 0x200
push 0x4167e0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x4167d4
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401198
or esi, 0x400
mov ecx, dword [ebp - 4]
or esi, 0x2000000
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
Function at 0x4014b0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e4
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x46]
push eax
call fcn.00408690
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
lea eax, [ebp - 0x24e]
push eax
call fcn.00408690
add esp, 0xc
lea eax, [ebp - 0x250]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x250]
push 0x5c
push eax
call fcn.004055f9
mov esi, eax
xor eax, eax
mov word [esi], ax
add esi, 2
push 0x2e
push esi
call fcn.004055f9
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x48]
add esp, 0x10
sub ecx, esi
jmp 0x401540
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x401540
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x48]
mov word [ecx + 0x419f88], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401551
push 0x419f88
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x401593
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
push 0x419f88
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x401582
lea eax, [ebp - 0x3e0]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x41ab20
call fcn.00401e40
test eax, eax
jne 0x401660
xor ecx, ecx
mov edi, edi
movzx eax, word [ecx + reloc.ntdll.dll_ZwClose]
mov word [ecx + 0x41acc8], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4015d0
push 0x4168a0
push 0x40
push 0x41ab24
call fcn.00404bef
add esp, 0xc
push 0x4168bc
push 0x10
push 0x41aba6
call fcn.00404bef
add esp, 0xc
push 0x4168c8
push 0x40
push 0x41abc6
call fcn.00404bef
mov eax, 0x51
mov word [0x41aba4], ax
mov eax, 0x2b8e
add esp, 0xc
mov word [0x41ac46], ax
xor ecx, ecx
lea ebx, [ebx]
movzx eax, word [ecx + reloc.ntdll.dll_ZwClose]
mov word [ecx + 0x41aca8], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401640
mov dword [0x41ace8], 5
call fcn.00403850
mov ecx, 0x4168f4
call fcn.004038f0
mov dword [0x41ae20], eax
call fcn.00401250
push 0
push 0
push 0
push 0x4013f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
Function at 0x4016b0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
call fcn.00403e40
mov dword [ebp - 0x41c], eax
test eax, eax
jne 0x4017d9
push 0x206
push eax
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408690
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
lea eax, [ebp - 0x416]
push eax
call fcn.00408690
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x41a3a8
mov edi, edi
cmp word [esi], 0
je 0x401766
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.00404bef
add esp, 0xc
lea eax, [ebp - 0x418]
push esi
push 0x104
push eax
call fcn.00404c4b
add esp, 0xc
add esi, 0x118
cmp esi, 0x41a920
jl 0x401730
mov esi, 0x41a3a8
lea esp, [esp]
cmp word [esi], 0
je 0x401794
push ecx
push edi
mov edx, ebx
mov ecx, esi
call fcn.00404750
add esp, 8
add esi, 0x118
cmp esi, 0x41a920
jl 0x401780
push 0x41a1a0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404c4b
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x41c]
mov ecx, 2
cmove eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
Function at 0x401aa0
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x418038]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x419eb8
push 0x67
push edi
call esi
push 0x64
push 0x419df0
push 0x6d
push edi
call esi
mov ecx, edi
call fcn.00401c30
push 0
push edi
push 0
push 0
push 0
push closesocket
push 0
push closesocket
push 0xcf0000
push 0x419eb8
push 0x419df0
push 0
mov dword [0x419f80], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401b32
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00404aaa
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
call fcn.00402d40
call fcn.004021b0
test eax, eax
je 0x401b63
call fcn.004035b0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004014b0
test eax, eax
je 0x401b1a
call fcn.004017f0
mov ecx, dword [0x41ae20]
test ecx, ecx
je 0x401b9b
cmp word [0x41ae24], 0
jbe 0x401b9b
mov edx, 0x418ef8
call fcn.00403d10
mov ax, word [0x41ae24]
mov word [0x418ef4], ax
xor ecx, ecx
lea ecx, [ecx]
movzx eax, word [ecx + reloc.ntdll.dll_ZwClose]
mov word [ecx + 0x41a1a0], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401ba0
call fcn.00403d90
xor eax, eax
push 0x206
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.00408690
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41a1a0
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00404c4b
add esp, 0xc
push 0x1f4
call esi
push 1
push 0
push 0x416a7c
lea eax, [esp + 0x14]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401ee0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test edi, edi
je 0x402003
test esi, esi
je 0x402003
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f10
sub ecx, edx
xor eax, eax
sar ecx, 1
je 0x402005
push 0x206
push eax
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408690
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x401f7f
cmp dword [reloc.ntdll.dll_ZwOpenProcess], 3
jne 0x401f7f
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x416a9c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404c4b
add esp, 0xc
jmp 0x401f91
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404c4b
push 0x416aa0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], 0
call fcn.00404e42
mov eax, dword [ebp - 0x210]
add esp, 0x18
test eax, eax
je 0x402003
push eax
push 1
push 0x200
push edi
call fcn.00405114
push dword [ebp - 0x210]
call fcn.0040522c
add esp, 0x14
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00404aaa
mov esp, ebp
pop ebp
ret

Function at 0x4020c0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor edx, edx
jmp 0x4020e0
not byte [esi + edx]
inc edx
cmp edx, 0x200
jb 0x4020e0
xor eax, eax
push 0x206
push eax
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408690
add esp, 0xc
mov dword [ebp - 0x214], 0
test esi, esi
je 0x402195
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x416ac0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404c4b
push 0x416adc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00404e42
mov eax, dword [ebp - 0x214]
add esp, 0x18
test eax, eax
je 0x402181
push eax
push 1
push 0x200
push esi
call fcn.004053fa
push dword [ebp - 0x214]
call fcn.0040522c
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
Function at 0x402bd0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408690
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x200
push 0
push eax
call fcn.00408690
add esp, 0xc
lea ecx, [ebp - 0x410]
call fcn.00402020
test eax, eax
je 0x402d26
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ecx + reloc.ntdll.dll_ZwClose]
mov word [ecx + 0x41a018], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402c30
xor ecx, ecx
jmp 0x402c50
movzx eax, word [ebp + ecx - reloc.ntdll.dll_ZwClose]
mov word [ecx + 0x41a120], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402c50
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ebp + ecx - reloc.ntdll.dll_ZwClose]
mov word [ecx + 0x41a0a0], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402c70
cmp dword [reloc.ntdll.dll_ZwOpenProcess], 3
movzx eax, word [ebp - reloc.ntdll.dll_ZwClose]
mov word [0x41a098], ax
movzx eax, word [ebp - reloc.ntdll.dll_ZwClose]
mov word [0x41a010], ax
mov dword [0x41a00c], 5
lea eax, [ebp - 0x210]
je 0x402cc8
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402ced
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x416d28
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404c4b
add esp, 0xc
push 0x416c88
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404c4b
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00404aaa
mov esp, ebp
pop ebp
ret

Function at 0x402d40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
mov dword [reloc.ntdll.dll_ZwOpenProcess], 0
call fcn.00408690
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402dfd
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x402dc1
mov eax, dword [ebp - 0x118]
cmp eax, 2
jae 0x402da9
cmp eax, 1
jne 0x402dfd
mov dword [reloc.ntdll.dll_ZwOpenProcess], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x402dfd
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x402de8
mov dword [reloc.ntdll.dll_ZwOpenProcess], 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
mov eax, dword [reloc.ntdll.dll_ZwOpenProcess]
mov edx, 5
cmp ecx, 1
cmove eax, edx
mov dword [reloc.ntdll.dll_ZwOpenProcess], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
Function at 0x402e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
lea eax, [ebp - 0x20a]
push eax
mov edi, edx
mov esi, ecx
call fcn.00408690
add esp, 0xc
cmp dword [reloc.ntdll.dll_ZwOpenProcess], 3
lea eax, [ebp - 0x20c]
jne 0x402e7d
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x416ca0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404c4b
add esp, 0xc
jmp 0x402e89
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x416ca4
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.00404aaa
mov esp, ebp
pop ebp
ret

Function at 0x402f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
je 0x40308d
push 0x400
call fcn.00405ab7
add esp, 4
mov ebx, eax
push 0x400
push 0
push ebx
call fcn.00408690
add esp, 0xc
mov ecx, esi
call fcn.00403140
xor ecx, ecx
shld ecx, eax, 9
xorps xmm0, xmm0
shl eax, 9
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push 0x400
push ebx
movq qword [ebp - 0x10], xmm0
push esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403084
cmp dword [ebx + 4], 0x5042475f
jne 0x40304b
lea ecx, [ebx + 0x10e]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403010
sub ecx, edx
sar ecx, 1
je 0x40304b
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.00405b49
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
push ebx
push 2
mov edx, 0x1e
mov ecx, esi
call fcn.00403220
add esp, 8
test eax, eax
je 0x403084
cmp dword [ebx + 4], 0x5042475f
jne 0x403084
lea ecx, [ebx + 0x10e]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403073
sub ecx, edx
sar ecx, 1
jne 0x403021
push ebx
call fcn.00405b49
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00404aaa
mov esp, ebp
pop ebp
ret