joyce8/EMBER2024-capa huggingface dataset:
Function at 0x68029164
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0x14]
push esi
push edi
xor eax, eax
lea esi, [ecx + 0x1f]
lea edi, [ecx + 7]
inc eax
shr edi, 3
xor edx, edx
shr esi, 5
cmp ecx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
je 0x680292bb
push ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, edx
je 0x680292a9
cmp dword [ebp + 8], edx
je 0x680292a9
mov eax, esi
shl eax, 2
push eax
push edx
push ebx
call sub._Cmvrt.DLL_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
sub eax, 0xb
je 0x68029241
dec eax
dec eax
je 0x680291d5
push dword [ebp + 0x18]
and dword [ebp - 8], 0
push 0
push 6
jmp 0x680292b2
test esi, esi
je 0x68029294
mov edx, dword [ebp + 8]
and dword [ebp - 4], 0
sub edx, ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
jmp 0x680291f1
mov edi, dword [ebp - 0x10]
mov eax, edi
sub eax, dword [ebp - 4]
push 4
pop ecx
cmp eax, ecx
mov dword [ebp + 0x18], ecx
ja 0x68029203
mov dword [ebp + 0x18], eax
xor edi, edi
cmp dword [ebp + 0x18], edi
mov dword [ebp + 0xc], edi
je 0x6802922b
and dword [ebp + 8], edi
add edx, ebx
movzx eax, byte [edx + edi]
mov ecx, dword [ebp + 8]
add dword [ebp + 8], 8
shl eax, cl
xor dword [ebp + 0xc], eax
inc edi
cmp edi, dword [ebp + 0x18]
jne 0x68029212
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
add dword [ebp - 4], 4
mov dword [ebx], eax
add ebx, 4
dec dword [ebp - 0xc]
jne 0x680291ee
mov ebx, dword [ebp + 0x10]
jmp 0x68029294
test esi, esi
je 0x68029294
and dword [ebp + 0x10], 0
mov dword [ebp - 0xc], esi
mov eax, edi
sub eax, dword [ebp + 0x10]
push 4
pop edx
cmp eax, edx
ja 0x6802925a
mov edx, eax
and dword [ebp + 0x18], 0
test edx, edx
je 0x68029282
mov edi, dword [ebp + 8]
xor ecx, ecx
lea eax, [eax + edi - 1]
mov dword [ebp + 0xc], edx
movzx edx, byte [eax]
shl edx, cl
add ecx, 8
xor dword [ebp + 0x18], edx
dec eax
dec dword [ebp + 0xc]
jne 0x6802926e
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
add dword [ebp + 0x10], 4
dec dword [ebp - 0xc]
mov dword [ecx + ebx], eax
jne 0x6802924c
mov ecx, esi
shl ecx, 5
sub ecx, dword [ebp + 0x14]
or edx, 0xffffffff
shr edx, cl
lea eax, [ebx + esi*4 - 4]
and dword [eax], edx
jmp 0x680292b7
push dword [ebp + 0x18]
mov dword [ebp - 8], edx
push edx
push 0xc
call fcn.6801458f
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
leave
ret 0x14
Function at 0x6802d935
Capabilities:
Access pe header
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp._Cntl.DLL_RtlImageNtHeader]
mov ecx, eax
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x30]
cmp byte [edx + 2], 0
mov eax, 0xdeadbeef
jne 0x6802d97f
test ecx, ecx
je 0x6802d974
mov edx, dword [ecx + 0x60]
sub edx, dword [ecx + 0x64]
cmp edx, 0x2000
jb 0x6802d97f
mov edx, dword [ebp + 8]
cmp edx, eax
jne 0x6802d98b
test ecx, ecx
jne 0x6802d988
and dword [0x68032010], 0
jmp 0x6802d991
mov edx, dword [ecx + 0x64]
mov dword [0x68032010], edx
cmp dword [ebp + 0xc], eax
jne 0x6802d9a4
test ecx, ecx
jne 0x6802d99f
or eax, 0xffffffff
jmp 0x6802d9a7
mov eax, dword [ecx + 0x64]
jmp 0x6802d9a7
mov eax, dword [ebp + 0xc]
mov dword [0x68032014], eax
add eax, 8
cmp eax, 8
jae 0x6802d9be
mov dword [0x68032014], 0xfffffff7
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [0x68032018], 0x6802d88c
je 0x6802d9d4
mov dword [0x68032018], eax
mov eax, dword [ebp + 0x14]
test eax, eax
mov dword [0x6803201c], 0x6802d8b1
je 0x6802d9ea
mov dword [0x6803201c], eax
pop ebp
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x10003837
Capabilities:
Terminate process

Disassembly:
jmp 0x1013b04f
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1013b060
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.10005f38
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x10003959
Capabilities:
Query environment variable

Disassembly:
jmp 0x10152681
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10152695
xor edi, edi
jmp 0x101526cc
push ebx
push esi
call fcn.1015258b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1000430e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x101526bc
push ebx
push esi
push edi
call fcn.10005d03
add esp, 0xc
push 0
call fcn.10006910
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x10015000
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
jmp 0x10015018
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x1001508b
push 8
mov ecx, dword [ebp - 8]
push ecx
call fcn.10014fa0
add esp, 8
shl eax, 0x18
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x10015047
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x10015071
mov eax, dword [ebp - 4]
and eax, 0x80000000
je 0x10015067
mov ecx, dword [ebp - 4]
shl ecx, 1
xor ecx, 0x4c11db7
mov dword [ebp - 4], ecx
jmp 0x1001506f
mov edx, dword [ebp - 4]
shl edx, 1
mov dword [ebp - 4], edx
jmp 0x1001503e
push 0x20
mov eax, dword [ebp - 4]
push eax
call fcn.10014fa0
add esp, 8
mov ecx, dword [ebp - 8]
mov dword [ecx*4 + 0x101c8660], eax
jmp 0x1001500f
mov dword [0x101c8658], 1
mov esp, ebp
pop ebp
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 - 0x414], ax
lea eax, [ebp - 0x412]
push eax
xor esi, esi
call fcn.00408730
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408730
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 - 0x410], ax
push 0x416610
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x416654
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 0x416660
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
mov ecx, 1
push 0x416654
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 0x4166a8
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x416654
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401105
or esi, 4
push 0x4166f8
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x416654
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401136
or esi, 0x100
push 0x416750
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x416654
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401167
or esi, 0x200
push 0x4167a8
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x416654
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.00404b4a
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.00408730
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x24e]
push eax
call fcn.00408730
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.00405699
mov esi, eax
xor eax, eax
mov word [esi], ax
add esi, 2
push 0x2e
push esi
call fcn.00405699
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.00404b4a
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.00401e30
test eax, eax
jne 0x401660
xor ecx, ecx
mov edi, edi
movzx eax, word [ecx + 0x41685c]
mov word [ecx + 0x41acc8], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4015d0
push 0x416868
push 0x40
push 0x41ab24
call fcn.00404c8f
add esp, 0xc
push 0x416884
push 0x10
push 0x41aba6
call fcn.00404c8f
add esp, 0xc
push 0x416890
push 0x40
push 0x41abc6
call fcn.00404c8f
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 + 0x4168ac]
mov word [ecx + 0x41aca8], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401640
mov dword [0x41ace8], 5
call fcn.004037b0
mov ecx, 0x416890
call fcn.00403850
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.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x401a90
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.00401c20
push 0
push edi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x419eb8
push 0x419df0
push 0
mov dword [0x419f80], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401b22
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00404b4a
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.00402ca0
call fcn.004021a0
test eax, eax
je 0x401b53
call fcn.00403510
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004014b0
test eax, eax
je 0x401b0a
call fcn.004017f0
mov ecx, dword [0x41ae20]
test ecx, ecx
je 0x401b8b
cmp word [0x41ae24], 0
jbe 0x401b8b
mov edx, 0x418ef8
call fcn.00403c70
mov ax, word [0x41ae24]
mov word [0x418ef4], ax
xor ecx, ecx
lea ecx, [ecx]
movzx eax, word [ecx + 0x416968]
mov word [ecx + 0x41a1a0], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401b90
call fcn.00403cf0
xor eax, eax
push 0x206
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.00408730
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.00404ceb
add esp, 0xc
push 0x1f4
call esi
push 1
push 0
push 0x41684c
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 0x401ed0
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 0x401ff3
test esi, esi
je 0x401ff3
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f00
sub ecx, edx
xor eax, eax
sar ecx, 1
je 0x401ff5
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408730
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x401f6f
cmp dword [0x418f08], 3
jne 0x401f6f
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41699c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404ceb
add esp, 0xc
jmp 0x401f81
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.00404ceb
push 0x4169a0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], 0
call fcn.00404ee2
mov eax, dword [ebp - 0x210]
add esp, 0x18
test eax, eax
je 0x401ff3
push eax
push 1
push 0x200
push edi
call fcn.004051b4
push dword [ebp - 0x210]
call fcn.004052cc
add esp, 0x14
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00404b4a
mov esp, ebp
pop ebp
ret

Function at 0x4020b0
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 0x4020d0
not byte [esi + edx]
inc edx
cmp edx, 0x200
jb 0x4020d0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408730
add esp, 0xc
mov dword [ebp - 0x214], 0
test esi, esi
je 0x402185
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x416980
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404ceb
push 0x4169c0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00404ee2
mov eax, dword [ebp - 0x214]
add esp, 0x18
test eax, eax
je 0x402171
push eax
push 1
push 0x200
push esi
call fcn.0040549a
push dword [ebp - 0x214]
call fcn.004052cc
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x402b30
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 - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408730
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x200
push 0
push eax
call fcn.00408730
add esp, 0xc
lea ecx, [ebp - 0x410]
call fcn.00402010
test eax, eax
je 0x402c86
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ecx + 0x416890]
mov word [ecx + 0x41a018], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402b90
xor ecx, ecx
jmp 0x402bb0
movzx eax, word [ebp + ecx - 0x38a]
mov word [ecx + 0x41a120], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402bb0
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ebp + ecx - 0x40c]
mov word [ecx + 0x41a0a0], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402bd0
cmp dword [0x418f08], 3
movzx eax, word [ebp - 0x38c]
mov word [0x41a098], ax
movzx eax, word [ebp - 0x2ea]
mov word [0x41a010], ax
mov dword [0x41a00c], 5
lea eax, [ebp - 0x210]
je 0x402c28
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402c4d
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41699c
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404ceb
add esp, 0xc
push 0x4169a8
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404ceb
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.00404b4a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00404b4a
mov esp, ebp
pop ebp
ret

Function at 0x402ca0
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 [0x418f08], 0
call fcn.00408730
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 0x402d5d
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x402d21
mov eax, dword [ebp - 0x118]
cmp eax, 2
jae 0x402d09
cmp eax, 1
jne 0x402d5d
mov dword [0x418f08], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x402d5d
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x402d48
mov dword [0x418f08], 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
mov eax, dword [0x418f08]
mov edx, 5
cmp ecx, 1
cmove eax, edx
mov dword [0x418f08], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x402d70
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 - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov edi, edx
mov esi, ecx
call fcn.00408730
add esp, 0xc
cmp dword [0x418f08], 3
lea eax, [ebp - 0x20c]
jne 0x402ddd
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41699c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404ceb
add esp, 0xc
jmp 0x402de9
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x416a20
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.00404b4a
mov esp, ebp
pop ebp
ret

Function at 0x402ed0
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 0x402fed
push 0x400
call fcn.00405b57
add esp, 4
mov ebx, eax
push 0x400
push 0
push ebx
call fcn.00408730
add esp, 0xc
mov ecx, esi
call fcn.004030a0
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 0x402fe4
cmp dword [ebx + 4], 0x5042475f
jne 0x402fab
lea ecx, [ebx + 0x10e]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402f70
sub ecx, edx
sar ecx, 1
je 0x402fab
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.00405be9
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
push ebx
push 2
mov edx, 0x1e
mov ecx, esi
call fcn.00403180
add esp, 8
test eax, eax
je 0x402fe4
cmp dword [ebx + 4], 0x5042475f
jne 0x402fe4
lea ecx, [ebx + 0x10e]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402fd3
sub ecx, edx
sar ecx, 1
jne 0x402f81
push ebx
call fcn.00405be9
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x4033d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x4169a0
push ecx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
call fcn.00404ee2
add esp, 0xc
test eax, eax
je 0x403415
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 2
push 0
push dword [ebp - 8]
call fcn.00405cb0
push dword [ebp - 8]
call fcn.00406088
push 0
push 0
push dword [ebp - 8]
mov esi, eax
call fcn.00405cb0
lea eax, [edi + esi]
push eax
mov dword [ebp - 0x10], eax
call fcn.00405b57
push dword [ebp - 8]
mov ebx, eax
push 1
push esi
push ebx
mov dword [ebp - 0x14], ebx
call fcn.004051b4
push dword [ebp - 8]
call fcn.004052cc
push edi
add ebx, esi
push 0
push ebx
call fcn.00408730
mov eax, edi
cdq
and edx, 3
add esp, 0x40
lea edi, [edx + eax]
sar edi, 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00406113
add esp, 4
xor esi, esi
test edi, edi
jle 0x40349d
lea ecx, [ecx]
call fcn.004060f0
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jl 0x403490
push 0x4169c0
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00404ee2
add esp, 0xc
test eax, eax
je 0x4034c8
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
mov esi, dword [ebp - 0x14]
push 1
push dword [ebp - 0x10]
push esi
call fcn.0040549a
push dword [ebp - 8]
call fcn.004052cc
add esp, 0x14
test esi, esi
je 0x4034f1
push esi
call fcn.00405be9
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
mov eax, 1
pop edi
call fcn.00404b4a
mov esp, ebp
pop ebp
ret