joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403351
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
push edi
mov esi, str.KERNEL32.DLL
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40336a
push esi
call fcn.0040218e
pop ecx
mov edi, eax
test edi, edi
je 0x4034d2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x40b50c], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x40b510], eax
call esi
push str.FlsFree
push edi
mov dword [0x40b514], eax
call esi
cmp dword [0x40b50c], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x40b518], eax
je 0x4033d3
cmp dword [0x40b510], 0
je 0x4033d3
cmp dword [0x40b514], 0
je 0x4033d3
test eax, eax
jne 0x4033f7
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x40b510], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x40b50c], 0x403034
mov dword [0x40b514], esi
mov dword [0x40b518], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x40a124], eax
cmp eax, 0xffffffff
je 0x4034d7
push dword [0x40b510]
push eax
call esi
test eax, eax
je 0x4034d7
call fcn.0040249a
push dword [0x40b50c]
call fcn.00402f4d
push dword [0x40b510]
mov dword [0x40b50c], eax
call fcn.00402f4d
push dword [0x40b514]
mov dword [0x40b510], eax
call fcn.00402f4d
push dword [0x40b518]
mov dword [0x40b514], eax
call fcn.00402f4d
add esp, 0x10
mov dword [0x40b518], eax
call fcn.004037e2
test eax, eax
je 0x4034d2
push 0x403222
push dword [0x40b50c]
call fcn.00402fc5
pop ecx
call eax
mov dword [0x40a120], eax
cmp eax, 0xffffffff
je 0x4034d2
push 0x214
push 1
call fcn.00404cab
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4034d2
push esi
push dword [0x40a120]
push dword [0x40b514]
call fcn.00402fc5
pop ecx
call eax
test eax, eax
je 0x4034d2
push 0
push esi
call fcn.004030ac
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x4034d9
call fcn.0040306f
xor eax, eax
pop edi
pop esi
ret
Function at 0x403993
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x2a4], eax
and dword [ebp - 0x80], 0
push ebx
push 0x4c
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00405d50
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x84], ecx
mov dword [ebp + 0x80], edx
mov dword [ebp + 0x7c], ebx
mov dword [ebp + 0x78], esi
mov dword [ebp + 0x74], edi
mov word [ebp + 0xa0], ss
mov word [ebp + 0x94], cs
mov word [ebp + 0x70], ds
mov word [ebp + 0x6c], es
mov word [ebp + 0x68], fs
mov word [ebp + 0x64], gs
pushfd
pop dword [ebp + 0x98]
mov eax, dword [ebp + 0x2ac]
lea ecx, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov dword [ebp + 0x90], eax
mov dword [ebp + 0x9c], ecx
mov ecx, dword [ecx - 4]
mov dword [ebp + 0x8c], ecx
mov dword [ebp - 0x80], 0xc0000417
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x403a72
test ebx, ebx
jne 0x403a72
push 2
call fcn.00403790
pop ecx
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
xor ecx, ebp
pop ebx
call fcn.004017bd
add ebp, 0x2a8
leave
ret

Function at 0x403a9a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [0x40b678]
call fcn.00402fc5
pop ecx
test eax, eax
je 0x403ab0
pop ebp
jmp eax
push 2
call fcn.00403790
pop ecx
pop ebp
jmp fcn.00403993

Function at 0x403c70
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x403c81
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403c7e
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
ret

Function at 0x403ca0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x403cda
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x403cd2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x403cdc
inc edx
add eax, 0x28
cmp edx, esi
jb 0x403cc2
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x404060
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402fbc
and dword [ebp - 4], 0
cmp dword [0x40b6a8], 0
mov ebx, eax
jne 0x40410f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4041c0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4041c0
push eax
call fcn.00402f4d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b6a8], eax
call esi
push eax
call fcn.00402f4d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b6ac], eax
call esi
push eax
call fcn.00402f4d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b6b0], eax
call esi
push eax
call fcn.00402f4d
pop ecx
mov dword [0x40b6b8], eax
test eax, eax
je 0x40410f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402f4d
pop ecx
mov dword [0x40b6b4], eax
mov eax, dword [0x40b6b4]
cmp eax, ebx
je 0x404167
cmp dword [0x40b6b8], ebx
je 0x404167
push eax
call fcn.00402fc5
push dword [0x40b6b8]
mov esi, eax
call fcn.00402fc5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404167
test edi, edi
je 0x404167
call esi
test eax, eax
je 0x40415e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40415e
test byte [ebp - 0xc], 1
jne 0x404167
or dword [ebp + 0x10], 0x200000
jmp 0x4041a0
mov eax, dword [0x40b6ac]
cmp eax, ebx
je 0x4041a0
push eax
call fcn.00402fc5
pop ecx
test eax, eax
je 0x4041a0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4041a0
mov eax, dword [0x40b6b0]
cmp eax, ebx
je 0x4041a0
push eax
call fcn.00402fc5
pop ecx
test eax, eax
je 0x4041a0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b6a8]
call fcn.00402fc5
pop ecx
test eax, eax
je 0x4041c0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4041c2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x42a044]
xor eax, ebp
mov dword [ebp - 0x28], eax
push 0x64
push 0x42c648
push 0x67
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x42c580
push 0x6d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [ebp + 8]
push edx
call fcn.00401280
add esp, 4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x238], 0x42d158
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x23c], ecx
mov edx, dword [ebp - 0x234]
mov ax, word [edx]
mov word [ebp - 0x23e], ax
mov ecx, dword [ebp - 0x238]
mov dx, word [ebp - 0x23e]
mov word [ecx], dx
mov eax, dword [ebp - 0x234]
add eax, 2
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x238]
add ecx, 2
mov dword [ebp - 0x238], ecx
cmp word [ebp - 0x23e], 0
jne 0x401064
call fcn.00404660
mov dword [0x42b060], eax
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401960
test eax, eax
je 0x4010d7
call fcn.00404b20
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401300
add esp, 8
test eax, eax
jne 0x4010f2
xor eax, eax
jmp 0x401264
xor ecx, ecx
mov word [ebp - 0x230], cx
push 0x206
push 0
lea edx, [ebp - 0x22e]
push edx
call fcn.004157d0
add esp, 0xc
cmp dword [0x42cd98], 0
jbe 0x401147
movzx eax, word [0x42cd9c]
test eax, eax
jle 0x401147
push 0x42b5f8
mov ecx, dword [0x42cd98]
push ecx
call fcn.004045b0
add esp, 8
mov dx, word [0x42cd9c]
mov word [0x42b608], dx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
push edx
push 0x428000
push 0x42d360
call fcn.00403c10
add esp, 0xc
call fcn.00402b40
lea eax, [ebp - 0x230]
push eax
call fcn.00403cc0
add esp, 4
push 0x428018
push 0x104
lea ecx, [ebp - 0x230]
push ecx
call fcn.004105bb
add esp, 0xc
push 0x42d360
push 0x104
lea edx, [ebp - 0x230]
push edx
call fcn.004105bb
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4011f5
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x42801c
lea ecx, [ebp - 0x230]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call fcn.00402fe0
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.004105ac
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402c60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x42a044]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov dword [ebp - 0x430], 0
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00407f50
add esp, 8
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
je 0x402caa
mov eax, dword [ebp - 0x430]
jmp 0x402f09
xor edx, edx
mov word [ebp - 0x418], dx
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.004157d0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.004157d0
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call fcn.00403cc0
add esp, 4
push 0x4283f0
push 0x104
lea ecx, [ebp - 0x418]
push ecx
call fcn.004105bb
add esp, 0xc
mov byte [ebp - 0x42c], 0
xor edx, edx
mov dword [ebp - 0x42b], edx
mov dword [ebp - 0x427], edx
mov dword [ebp - 0x423], edx
mov dword [ebp - 0x41f], edx
mov word [ebp - 0x41b], dx
mov byte [ebp - 0x419], dl
mov dword [ebp - 4], 0
mov dword [ebp - 0x434], 0
jmp 0x402d60
mov eax, dword [ebp - 0x434]
add eax, 1
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 5
jge 0x402e2d
mov ecx, dword [ebp - 0x434]
imul ecx, ecx, 0x118
movzx edx, word [ecx + 0x42c720]
test edx, edx
jne 0x402d86
jmp 0x402d51
lea eax, [ebp - 0x418]
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.00410664
add esp, 0xc
mov edx, dword [ebp - 0x434]
imul edx, edx, 0x118
add edx, 0x42c720
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.004105bb
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x42c]
push edx
call fcn.004071c0
add esp, 8
test eax, eax
je 0x402e1f
mov ecx, 5
mov edi, dword [ebp - 0x434]
imul edi, edi, 0x118
add edi, 0x42c824
lea esi, [ebp - 0x42c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x402e1f
mov ecx, dword [ebp - 0x434]
imul ecx, ecx, 0x118
xor edx, edx
mov word [ecx + 0x42c720], dx
jmp 0x402d51
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x402d51
mov dword [ebp - 0x438], 0
jmp 0x402e48
mov ecx, dword [ebp - 0x438]
add ecx, 1
mov dword [ebp - 0x438], ecx
cmp dword [ebp - 0x438], 5
jge 0x402e6c
mov edx, dword [ebp - 0x438]
imul edx, edx, 0x118
movzx eax, word [edx + 0x42c720]
test eax, eax
jne 0x402e6a
jmp 0x402e39
jmp 0x402e39
mov dword [ebp - 0x43c], 0
jmp 0x402e87
mov ecx, dword [ebp - 0x43c]
add ecx, 1
mov dword [ebp - 0x43c], ecx
cmp dword [ebp - 0x43c], 5
jge 0x402ece
mov edx, dword [ebp - 0x43c]
imul edx, edx, 0x118
movzx eax, word [edx + 0x42c720]
test eax, eax
jne 0x402ea9
jmp 0x402e78
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x43c]
imul eax, eax, 0x118
add eax, 0x42c720
push eax
call fcn.004081e0
add esp, 0xc
jmp 0x402e78
push 0x42d360
push 0x104
lea ecx, [ebp - 0x418]
push ecx
call fcn.004105bb
add esp, 0xc
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402f03
mov dword [ebp - 0x430], 2
mov eax, dword [ebp - 0x430]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004105ac
mov esp, ebp
pop ebp
ret
Function at 0x403480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x40349a
mov eax, dword [ebp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x4034bf
push 0x104
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x428614
push 0x104
mov edx, dword [ebp + 8]
push edx
call fcn.004105bb
add esp, 0xc
pop ebp
ret

Function at 0x4034d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x428618
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00410aaf
add esp, 0xc
test eax, eax
je 0x403504
xor eax, eax
jmp 0x4035d3
mov dword [ebp - 0x14], 0
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00410b8c
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.00410dae
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00410b8c
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
push edx
call fcn.00410891
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004110bc
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.00411150
add esp, 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
push edx
call fcn.00404a40
add esp, 8
push 0x428620
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00410aaf
add esp, 0xc
test eax, eax
je 0x40359e
xor eax, eax
jmp 0x4035d3
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041132e
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.00411150
add esp, 4
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x403ae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, dword [0x42d150]
mov ecx, dword [eax + 0x1fc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403b40
mov eax, dword [ebp + 8]
push eax
call fcn.00404770
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0xc]
jne 0x403b40
mov dword [ebp - 8], 1
mov dword [ebp - 4], 1
cmp dword [ebp - 8], 0
jne 0x403c04
push 0x100000
call fcn.00410891
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x100000
push 0x428684
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [0x42d150]
add edx, 0x200
push edx
call fcn.00408cd0
add esp, 0x14
test eax, eax
je 0x403bf8
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004106d3
add esp, 4
push 0xc8
push 0x32
call fcn.00403d30
add esp, 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x1c]
push ecx
call fcn.00404a40
add esp, 8
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00408b10
add esp, 0xc
cmp eax, 1
jne 0x403bf1
mov dword [ebp - 4], 1
jmp 0x403bf8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
push eax
call fcn.0041095b
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x404660
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x42a044]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0x134], ax
mov dword [ebp - 0x130], 0
push 0x118
push 0
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004157d0
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40475a
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 8], ecx
mov dx, word [ebp - 0x1c]
mov word [ebp - 0x134], dx
cmp dword [ebp - 0xc], 5
jne 0x40470c
cmp dword [ebp - 8], 0
jne 0x40470c
movzx eax, word [ebp - 0x134]
cmp eax, 4
jl 0x40470c
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 5
jne 0x40471f
cmp dword [ebp - 8], 2
jne 0x40471f
mov dword [ebp - 4], 2
cmp dword [ebp - 0xc], 5
jne 0x404738
cmp dword [ebp - 8], 2
jae 0x404731
cmp dword [ebp - 8], 1
jne 0x404738
mov dword [ebp - 4], 3
cmp dword [ebp - 0xc], 6
jne 0x40475a
cmp dword [ebp - 8], 0
jne 0x40474d
mov dword [ebp - 4], 4
jmp 0x40475a
cmp dword [ebp - 8], 1
jne 0x40475a
mov dword [ebp - 4], 5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004105ac
mov esp, ebp
pop ebp
ret

Function at 0x404770
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
push 0
push 0
push 3
push 0
push 3
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4047ae
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x4047dd
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x4047cd
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x404990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42a044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004157d0
add esp, 0xc
cmp dword [0x42b060], 3
jne 0x4049f8
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x427fc8
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.004105bb
add esp, 0xc
jmp 0x404a0a
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x210]
push eax
push 0x427fcc
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004105ac
mov esp, ebp
pop ebp
ret
Function at 0x404e70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x404ea3
jmp 0x404ef4
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
push 0
push 0x200
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00417f80
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
shl eax, 9
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x405100
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x40514f
jmp 0x405237
mov dword [ebp - 8], 0xb69
mov eax, dword [ebp - 8]
push eax
call fcn.004107d2
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x24], ecx
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0
push 0x70050
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40519a
jmp 0x405237
mov dword [ebp - 4], 0
jmp 0x4051ac
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x40521a
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x89
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x34]
cmp edx, dword [ebp - 0xc]
jl 0x405218
jg 0x4051e4
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x30]
cmp edx, dword [ebp - 0x10]
jbe 0x405218
mov eax, dword [ebp - 4]
imul eax, eax, 0x89
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax + 0x30]
mov dword [ebp - 0x10], edx
mov eax, dword [ecx + eax + 0x34]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x89
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + ecx + 0x38]
mov dword [ebp - 0x20], eax
mov ecx, dword [edx + ecx + 0x3c]
mov dword [ebp - 0x1c], ecx
jmp 0x4051a3
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
adc eax, dword [ebp - 0x1c]
push 0
push 0x200
push eax
push edx
call fcn.0041d3f0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x405256
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00410837
add esp, 4
mov dword [ebp - 0x24], 0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret