joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401260
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0xc]
mov al, byte [edx]
mov byte [ebp - 1], al
add dword [ebp - 0xc], 1
cmp byte [ebp - 1], 0
jne 0x401275
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x1c], edx
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00401cf1
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.00404e77
add esp, 0xc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + 0xc]
cmp ecx, dword [eax]
je 0x40137a
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov ax, word [edx]
mov word [ebp - 4], ax
mov ecx, dword [ebp - 0x18]
cmp ax, word [ecx]
jne 0x401351
cmp word [ebp - 4], 0
je 0x401348
mov edx, dword [ebp - 0x14]
mov ax, word [edx + 2]
mov word [ebp - 6], ax
mov ecx, dword [ebp - 0x18]
cmp ax, word [ecx + 2]
jne 0x401351
add dword [ebp - 0x14], 4
add dword [ebp - 0x18], 4
cmp word [ebp - 6], 0
jne 0x40130c
mov dword [ebp - 0x28], 0
jmp 0x401359
sbb edx, edx
or edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x40136d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x18]
jmp 0x40137c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
jmp 0x4012f0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402437
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402476
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402476
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402476
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402476
cmp dword [ecx + 0x74], 0xe
jbe 0x402476
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4084cb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x408568
push ebx
push esi
call fcn.00408494
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00408428
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x408515
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408567
push edi
push eax
call fcn.00406ef0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x408535
call fcn.0040704b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408566
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408428
add esp, 0x20
test eax, eax
jne 0x408554
push edi
call fcn.0040704b
jmp 0x40855c
push ebx
call fcn.0040704b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x409777
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411008
push 0x411000
push str.FlsAlloc
push 0x1f
call fcn.00409636
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4097ab
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f114]
call esi
jmp 0x4097b1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4097f5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411018
push 0x411010
push str.FlsGetValue
push 0x21
call fcn.00409636
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40982c
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f114]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x409834
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411020
push 0x411018
push str.FlsSetValue
push 0x22
call fcn.00409636
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40986e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f114]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40e9f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ea1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ea1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4011b3
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov cl, byte [0x403050]
mov edx, eax
mov edi, dword [0x403050]
sar edx, cl
mov ebx, eax
sub edi, edx
mov eax, 0x403054
mov edx, edi
call fcn.004010f0
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x402ac1
push edx
sub edi, fcn.0040226b
push edi
xor eax, eax
push fcn.0040226b
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x401229
mov eax, fcn.0040226b
mov ebx, esi
mov edx, edi
call fcn.004010f0
mov edx, 0x1c000
mov eax, 0x403054
mov ebx, esi
call fcn.00401a6f
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x402038
Capabilities:
Check if file exists
Get graphical window text
Initialize winsock library

Disassembly:
push ebx
push ecx
push edx
enter 0x6cc, 0
sub ebp, 0x82
lea ebx, [ebp - 0x1c2]
push ebx
xor eax, eax
push 2
mov word [ebp + 0x4e], ax
call dword [sym.imp.WS2_32.DLL_WSAStartup]
push 0x104
lea ebx, [ebp - 0x3ca]
push ebx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0
lea ebx, [ebp + 0x5e]
call dword [sym.imp.OLE32.DLL_CoInitialize]
push ebx
mov dword [ebp + 0x7e], 1
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
lea eax, [ebp + 0x7e]
push eax
lea eax, [ebp - 0x64a]
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov ebx, eax
xor eax, eax
mov word [ebp + 0x6e], ax
lea eax, [ebp + 0x6e]
push eax
lea eax, [ebp + 0x4e]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
call dword [sym.imp.WS2_32.DLL_WSACleanup]
call dword [sym.imp.OLE32.DLL_CoUninitialize]
push 0x80
lea eax, [ebp - 0x32]
push eax
push 0
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
push 0
sub ebx, 0x6f
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsW]
mov eax, ebx
lea esp, [ebp + 0x82]
pop ebp
pop edx
pop ecx
pop ebx
ret
Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, reloc.kernel32.dll_DeviceIoControl
nop
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x414428
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
lea eax, [ebp - 0x44]
mov ecx, 0x40
xor edx, edx
call fcn.00410114
mov ecx, dword [ebp + 8]
shl ecx, 2
lea eax, [ebx + 0x84]
xor edx, edx
call fcn.00410114
xor eax, eax
cmp eax, dword [ebp + 8]
jge 0x41439e
mov edx, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [edx + eax]
and ecx, 0xf
inc dword [ebp + ecx*4 - 0x44]
inc eax
cmp eax, dword [ebp + 8]
jl 0x414389
xor eax, eax
xor edx, edx
mov dword [ebp - 0x44], eax
mov dword [ebx + 4], edx
mov dword [ebx + 0x44], edx
mov dword [ebp - 0x84], edx
mov eax, 1
xor esi, esi
add esi, dword [ebp + eax*4 - 0x44]
add esi, esi
mov ecx, 0xf
sub ecx, eax
mov edx, esi
shl edx, cl
cmp edx, 0xffff
jle 0x4143d6
mov edx, 0xffff
mov dword [ebx + eax*4 + 4], edx
mov ecx, dword [ebp + eax*4 - 0x48]
add ecx, dword [ebx + eax*4 + 0x40]
mov dword [ebx + eax*4 + 0x44], ecx
mov dword [ebp + eax*4 - 0x84], ecx
inc eax
cmp eax, 0x10
jl 0x4143b8
xor eax, eax
cmp eax, dword [ebp + 8]
jge 0x41442b
mov edx, dword [ebp - 4]
mov dl, byte [edx + eax]
test dl, dl
je 0x414425
mov ecx, dword [ebp - 4]
and edx, 0xff
and edx, 0xf
mov ecx, dword [ebp + edx*4 - 0x84]
inc dword [ebp + edx*4 - 0x84]
mov dword [ebx + ecx*4 + 0x84], eax
inc eax
cmp eax, dword [ebp + 8]
jl 0x4143fa
mov eax, dword [ebp + 8]
mov dword [ebx], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406425
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
push ebx
xor ebx, ebx
cmp dword [ecx + 0x14], ebx
sete al
xor ecx, ecx
cmp dword [ebp + 0x14], ebx
sete cl
cmp eax, ecx
jne 0x4064d4
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x4064d3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x78], ebx
jne 0x40646e
mov bl, 1
jmp 0x4064d3
mov eax, dword [ebp - 4]
cmp eax, ebx
jbe 0x4064d3
add eax, 2
push esi
push eax
call fcn.004229ac
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4064d2
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x4064cb
mov eax, dword [ebp - 4]
mov byte [esi + eax], bl
mov eax, dword [ebp - 4]
mov byte [esi + eax + 1], bl
mov eax, dword [ebp + 8]
cmp dword [eax + 0x7c], 8
jb 0x4064b7
mov eax, dword [eax + 0x68]
jmp 0x4064ba
add eax, 0x68
push eax
push dword [ebp + 0x14]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004064db
mov bl, al
push esi
call fcn.004231e4
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret 0x10

Function at 0x406540
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x447394]
xor eax, ebp
mov dword [ebp + 0x94], eax
push esi
push edi
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
mov esi, ecx
call fcn.00427ce0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4065d7
cmp dword [esi + 0x28], 8
jb 0x406592
mov eax, dword [esi + 0x14]
jmp 0x406595
lea eax, [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x43cf7c
push eax
call edi
test eax, eax
jne 0x4065b0
cmp dword [ebp - 0x7c], 5
sete al
jmp 0x4065d9
cmp dword [esi + 0x28], 8
jb 0x4065bb
mov esi, dword [esi + 0x14]
jmp 0x4065be
add esi, 0x14
push 0x43cf84
push esi
call edi
test eax, eax
jne 0x4065d3
cmp dword [ebp - 0x7c], 5
setne al
jmp 0x4065d9
mov al, 1
jmp 0x4065d9
xor al, al
mov ecx, dword [ebp + 0x94]
pop edi
xor ecx, ebp
pop esi
call fcn.00422a42
add ebp, 0x98
leave
ret
Function at 0x4065f0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x5c], 0
push edi
je 0x40668e
cmp dword [esi + 0x44], 8
jb 0x406609
mov eax, dword [esi + 0x30]
jmp 0x40660c
lea eax, [esi + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x43cf8c
push eax
call edi
test eax, eax
jne 0x406657
cmp dword [esi + 0x60], 8
jb 0x406629
mov eax, dword [esi + 0x4c]
jmp 0x40662c
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406653
cmp dword [esi + 0x60], 8
jb 0x406642
mov esi, dword [esi + 0x4c]
jmp 0x406645
add esi, 0x4c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x406653
inc eax
jmp 0x406690
xor eax, eax
jmp 0x406690
cmp dword [esi + 0x44], 8
jb 0x406662
mov eax, dword [esi + 0x30]
jmp 0x406665
lea eax, [esi + 0x30]
push str.folder
push eax
call edi
test eax, eax
jne 0x40668e
cmp dword [esi + 0x60], 8
jb 0x40667c
mov esi, dword [esi + 0x4c]
jmp 0x40667f
add esi, 0x4c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x406690
xor al, al
pop edi
pop esi
ret

Function at 0x406d5b
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0xc68
lea ebp, [esp - 4]
mov eax, dword [0x447394]
xor eax, ebp
mov dword [ebp + 0xc68], eax
push 0x20
mov eax, 0x4369cc
call fcn.004250cd
push 0x43cfac
lea esi, [ebp + 0x1c]
mov ebx, ecx
call fcn.004052d9
and dword [ebp - 4], 0
push 0x43cfa8
lea esi, [ebp]
call fcn.004052d9
push 0
lea edi, [ebx + 0x18]
push edi
lea eax, [ebp + 0x1c]
mov byte [ebp - 4], 1
call fcn.004072af
mov esi, eax
lea eax, [ebp + 0x650]
push eax
push 0x30c
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp esi, 0xffffffff
je 0x406e3d
test eax, eax
je 0x406e6a
lea eax, [ebp + 0x650]
add ebx, 0x54
push eax
push ebx
mov dword [ebp - 0x10], ebx
call fcn.00405302
push esi
push edi
lea eax, [ebp]
call fcn.004072af
cmp eax, 0xffffffff
je 0x406e0e
mov ecx, dword [ebp + 0x30]
sub eax, ecx
sub eax, esi
push eax
lea ebx, [ecx + esi]
push edi
lea esi, [ebp - 0x2c]
call fcn.004072d2
mov byte [ebp - 4], 2
jmp 0x406e23
mov eax, dword [ebp + 0x30]
push 0xffffffffffffffff
lea ebx, [eax + esi]
push edi
lea esi, [ebp - 0x2c]
call fcn.004072d2
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x10]
push 0xffffffffffffffff
push 0
call fcn.00405f52
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00405329
jmp 0x406e6a
test eax, eax
je 0x406e6a
lea eax, [ebp + 0x38]
push eax
push 0
push 0x43cfc0
lea eax, [ebp + 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x406e6a
lea eax, [ebp + 0x38]
push eax
add ebx, 0x54
push ebx
call fcn.00405302
push 0
push 1
lea esi, [ebp]
call fcn.00405329
push 0
push 1
lea esi, [ebp + 0x1c]
call fcn.00405329
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc68]
xor ecx, ebp
call fcn.00422a42
add ebp, 0xc6c
leave
ret
Function at 0x406f63
Capabilities:
Create thread

Disassembly:
push 0x58
mov eax, 0x438c39
call fcn.00425136
mov eax, dword [ebp + 0xc]
mov esi, ecx
push 0
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x51], 0
lea ebx, [esi + 0x1d0]
call fcn.0041187b
mov edi, eax
call fcn.00411905
mov eax, dword [ebp - 0x60]
and dword [ebp - 0x64], 0
cmp dword [eax + 0x18], 8
jb 0x406fa4
mov edi, dword [eax + 4]
jmp 0x406fa7
lea edi, [eax + 4]
mov bl, byte [esi + 0x2a0]
add esi, 8
mov byte [ebp - 0x58], 0
call fcn.00406cc3
mov esi, eax
call fcn.004078f4
test al, al
mov al, 1
je 0x406fc9
mov al, byte [ebp - 0x58]
mov cl, byte [ebp + 8]
mov byte [ebp - 0x43], cl
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 0x3c], al
mov dword [ebp - 0x40], ecx
lea eax, [ebp - 0x64]
push edi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], edi
mov byte [ebp - 0x44], bl
mov dword [ebp - 0x38], eax
call fcn.00407c98
test al, al
je 0x407011
mov esi, dword [ebp - 0x5c]
push 0
lea ebx, [esi + 0x1ec]
call fcn.0041187b
mov edi, eax
call fcn.00411905
mov byte [ebp - 0x51], 1
jmp 0x407075
push 7
xor eax, eax
pop ecx
mov word [ebp - 0x34], ax
lea edi, [ebp - 0x32]
rep stosd dword es:[edi], eax
push 0xa
stosw word es:[edi], ax
push 0x10
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x64]
call fcn.00423eb7
mov eax, dword [ebp - 0x5c]
add esp, 0x10
add eax, 0x208
push eax
lea esi, [ebp - 0x50]
call fcn.0040728a
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
mov eax, esi
push eax
call fcn.00405c17
push 0
call fcn.0041187b
mov ebx, esi
mov edi, eax
call fcn.00411905
or dword [ebp - 4], 0xffffffff
push 0
push 1
call fcn.00405329
mov esi, dword [ebp - 0x5c]
push 0
lea ebx, [esi + 0x7c]
call fcn.0041187b
mov edi, eax
call fcn.00411905
push 0
lea ebx, [esi + 0x98]
call fcn.0041187b
mov edi, eax
call fcn.00411905
call fcn.0040675d
mov edi, eax
mov eax, dword [esi + 0x250]
sub eax, dword [esi + 0x24c]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x4070da
xor ebx, ebx
push ebx
push ebx
push esi
push 0x40679c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x60], eax
cmp eax, ebx
je 0x4070da
lea ebx, [ebp - 0x60]
mov eax, edi
call fcn.00406a1c
mov al, byte [ebp - 0x51]
call fcn.004251b9
ret
Function at 0x4075fb
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x447394]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x30b
lea eax, [ebp - 0x61c]
xor ebx, ebx
push eax
push ebx
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4076e4
push edi
push ebx
push ebx
push 3
push ebx
xor eax, eax
push 1
mov word [ebp - 6], ax
push 0x80000000
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4076e3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esi + 4], eax
jle 0x40766a
mov dword [esi + 4], eax
cmp dword [esi + 8], eax
jle 0x407672
mov dword [esi + 8], eax
xor eax, eax
cmp byte [esi], bl
setne al
dec eax
and eax, 2
push eax
push ebx
push dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4076e3
mov eax, dword [esi + 4]
cmp byte [esi + 0xc], bl
je 0x407697
inc eax
push eax
call fcn.004229ac
pop ecx
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x4076e3
push ebx
lea ecx, [ebp - 0x620]
push ecx
push dword [esi + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4076d5
mov eax, dword [ebp - 0x620]
cmp eax, dword [esi + 4]
jne 0x4076d5
push dword [esi + 0x10]
call fcn.004231e4
pop ecx
mov dword [esi + 0x10], ebx
jmp 0x4076e3
cmp byte [esi + 0xc], bl
je 0x4076e3
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov byte [eax + ecx], bl
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00422a42
leave
ret

Function at 0x4076f1
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
sub esp, 0xc
sub ecx, dword [eax + 0xc]
push ebx
push esi
push edi
je 0x407792
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407792
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.004229ac
pop ecx
mov dword [ebp - 4], eax
cmp eax, esi
je 0x40778b
push esi
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407782
cmp edi, dword [ebp - 8]
jne 0x407782
mov eax, dword [ebp + 0xc]
push edi
push dword [ebp - 4]
call fcn.004077e1
pop ecx
pop ecx
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call fcn.004231e4
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4078f4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x447394]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp byte [0x448583], 0
je 0x407952
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00427ce0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
mov byte [0x448583], 0
sbb al, al
inc al
mov byte [0x449bd8], al
jmp 0x407957
mov al, byte [0x449bd8]
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00422a42
add ebp, 0x98
leave
ret

Function at 0x407c48
Capabilities:
Get file size

Disassembly:
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407c79
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
jmp 0x407c85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test ebx, ebx
pop esi
setne al
pop ebx
ret 8