joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56772f
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x56779d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x827c2c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x567794
cmp dword [ebp - 0xc], 4
jne 0x567794
cmp dword [ebp - 0x10], edi
je 0x567794
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x8575c0], edi
xor eax, eax
jmp 0x5677dc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x8575c0], edi
jge 0x5677d7
lea eax, [ebp - 0x34]
push eax
mov dword [0x8575c0], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x5677d7
cmp word [ebp - 0x14], 5
jb 0x5677d7
call fcn.0056770a
test eax, eax
je 0x5677d7
emms
mov dword [0x8575c0], 1
mov eax, dword [0x8575c0]
pop edi
leave
ret

Function at 0x58b479
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x58b4b1
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.00589506
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005894de
jmp 0x58b4bd
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x58cb6f
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 0x58cbb1
call fcn.00592927
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x58cbb1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x58cba8
xor eax, eax
jmp 0x58cbb9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0058cbbf
pop edi
pop esi
pop ebx
ret 4

Function at 0x592e57
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 0x592e85
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x592ea3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00592dbd
jmp 0x592ea3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x592ea3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00592dbd
test edi, edi
mov eax, edi
jne 0x592e8d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x43b63c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
sub eax, 0xd30b3e2
call fcn.0043b66e
add eax, eax
xor dword [edi], ecx
inc esi
dec eax
mov eax, 0x17b35850
add edi, 1
and esi, esi
dec eax
cmp edi, edx
jne fcn.0043b63c
or eax, eax
ret
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push esi
call fcn.00402ae0
push 0x200
lea eax, [esi + 4]
push 0
push eax
call fcn.0041a170
push 0x200
lea ecx, [esi + 0x204]
push 0
push ecx
call fcn.0041a170
push 0x80
lea edx, [esi + 0x408]
push 0
push edx
call fcn.0041a170
push 0x80
lea eax, [esi + 0x488]
push 0
push eax
call fcn.0041a170
push 0x80
lea ecx, [esi + 0x50a]
push 0
push ecx
call fcn.0041a170
xor eax, eax
mov dword [esi + 0x58c], eax
mov dword [esi + 0x590], eax
mov dword [esi + 0x594], eax
mov dword [esi + 0x598], eax
mov dword [esi + 0x59c], eax
mov dword [esi + 0x5a0], eax
mov dword [esi + 0x5a4], eax
mov dword [esi + 0x5a8], eax
mov dword [esi + 0x9bc], eax
mov dword [esi + 0x9c0], eax
mov dword [esi + 0x9c4], eax
mov dword [esi + 0x9c8], eax
add esp, 0x40
mov dword [esi + 0x9cc], eax
lea edx, [esi + 0x5ac]
mov dword [esi + 0x9d0], eax
push edx
mov dword [esi + 0x9d4], eax
push 0x104
mov dword [esi + 0x9d8], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x104
lea eax, [esi + 0x7b4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, esi
ret

Function at 0x4010f0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x438c20]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x12]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x18], ax
call fcn.0041a170
add esp, 0xc
mov dword [esp + 4], ebx
cmp edi, ebx
je 0x401211
cmp esi, ebx
je 0x401211
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401140
sub eax, edx
sar eax, 1
je 0x401211
cmp dword [esp + 0x220], ebx
je 0x401165
lea edx, [esp + 0xc]
push edx
jmp 0x40119f
mov eax, dword [esp + 0x21c]
cmp dword [eax], 3
jne 0x40119a
push 0x104
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x433fc0
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.00417d54
add esp, 0xc
jmp 0x4011aa
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.00417d54
push 0x433fc4
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00417e97
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, ebx
je 0x401211
push eax
push 1
push 0x200
push edi
call fcn.0041818a
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041821e
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00417d45
add esp, 0x214
ret 8
mov ecx, dword [esp + 0x214]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00417d45
add esp, 0x214
ret 8
Function at 0x4012b0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x438c20]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.0041a170
add esp, 0xc
cmp edi, esi
je 0x401398
mov eax, 0x433fd0
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4012f5
sub eax, edx
sar eax, 1
je 0x40131f
push 0x433fd4
lea edx, [esp + 8]
push 0x433fd0
push edx
call fcn.00417e97
add esp, 0xc
jmp 0x40135a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x433fdc
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.00417d54
push 0x433ff8
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00417e97
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x40137d
push eax
push 1
push 0x200
push edi
call fcn.004183fc
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041821e
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00417d45
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00417d45
add esp, 0x214
ret

Function at 0x4013b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x438c20]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.0041a170
mov edx, dword [esp + 0x21c]
add esp, 0xc
cmp dword [edx], 3
jne 0x401413
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x433fcc
lea ecx, [esp + 4]
push 0x104
push ecx
call fcn.00417d54
add esp, 0xc
jmp 0x401422
lea edx, [esp]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [esp + 4]
push eax
push 0x434000
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.00417d45
add esp, 0x20c
ret 4
Function at 0x401450
Capabilities:
Set registry value

Disassembly:
sub esp, 0x2d8
mov eax, dword [0x438c20]
xor eax, esp
mov dword [esp + 0x2d4], eax
xor eax, eax
push 0xc6
push eax
lea ecx, [esp + 0xe]
push ecx
mov dword [esp + 0xc], 0
mov word [esp + 0x10], ax
call fcn.0041a170
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xe2]
push eax
mov word [esp + 0xe4], dx
call fcn.0041a170
push 0x434014
lea ecx, [esp + 0x20]
push 0x64
push ecx
call fcn.0041847e
push 0x434028
lea edx, [esp + 0x2c]
push 0x64
push edx
call fcn.00417d54
push 0x434040
lea eax, [esp + 0x38]
push 0x64
push eax
call fcn.00417d54
push 0x434058
lea ecx, [esp + 0x44]
push 0x64
push ecx
call fcn.00417d54
add esp, 0x48
push 0x434078
lea edx, [esp + 8]
push 0x64
push edx
call fcn.00417d54
push esi
lea eax, [esp + 0xdc]
push 0x104
push eax
call fcn.0041847e
add esp, 0x18
lea ecx, [esp]
push ecx
push 3
push 0
lea edx, [esp + 0x10]
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401571
lea eax, [esp + 0xcc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401534
sub eax, edx
mov edx, dword [esp]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0xd0]
push ecx
push 1
push 0
push 0x434088
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401571
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2d4]
xor ecx, esp
xor eax, eax
call fcn.00417d45
add esp, 0x2d8
ret
Function at 0x4021e0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
sub esp, 0xbe8
mov eax, dword [0x438c20]
xor eax, esp
mov dword [esp + 0xbe4], eax
push esi
mov esi, dword [esp + 0xbf0]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x43cbf0
push 0x67
push esi
call edi
push 0x64
push 0x43cb28
push 0x6d
push esi
call edi
mov eax, esi
call fcn.004023d0
push 0
push esi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x43cbf0
push 0x43cb28
push 0
mov dword [0x43ccb8], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x402273
mov ecx, dword [esp + 0xbec]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00417d45
add esp, 0xbe8
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push 0x439fa0
call fcn.00402ae0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push 0x7d0
call edi
lea esi, [esp + 8]
call fcn.00401000
mov ecx, esi
call fcn.00401590
test eax, eax
je 0x4022b7
call fcn.004038f0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004027a0
test eax, eax
je 0x402258
mov eax, dword [0x43d340]
test eax, eax
jbe 0x4022ed
cmp word [0x43d344], 0
jbe 0x4022ed
push 0x439fac
push eax
call fcn.00404690
mov ax, word [0x43d344]
add esp, 8
mov word [0x439fbc], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push 0x433cd4
mov edx, 0x43d8b8
call fcn.00402a80
call fcn.00404740
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x9f6]
push eax
mov word [esp + 0x9f8], dx
call fcn.0041a170
lea ecx, [esp + 0x9f8]
push ecx
call fcn.00405990
push 0x433cec
lea edx, [esp + 0xa00]
push 0x104
push edx
call fcn.00417d54
push 0x43d8b8
lea eax, [esp + 0xa0c]
push 0x104
push eax
call fcn.00417d54
add esp, 0x30
lea ecx, [esp + 0x9e4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4023af
push 0x1f4
call edi
push 1
push 0
push 0x433cf0
lea edx, [esp + 0x9f0]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call edi
test byte [0x43d23c], 7
je 0x4023c4
call fcn.00401ee0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402460
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x438c20]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x21e]
push ecx
xor ebx, ebx
mov word [esp + 0x220], ax
call fcn.0041a170
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.0041a170
add esp, 0x18
push 0x104
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x433cf8
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
xor edx, edx
push 0x433d3c
push ecx
mov word [esp + 0x228], dx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x402506
mov ebx, 1
push 0x433d48
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x433d90
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x402531
or ebx, 2
push 0x433da0
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x433dec
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x40255c
or ebx, 4
push 0x433df8
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x433e4c
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x40258a
or ebx, 0x100
push 0x433e58
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x433eac
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4025b8
or ebx, 0x200
push 0x433eb8
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x433f18
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4025e6
or ebx, 0x400
mov ecx, dword [esp + 0x41c]
pop edi
mov eax, ebx
pop esi
pop ebx
xor ecx, esp
or eax, 0x2000000
call fcn.00417d45
add esp, 0x414
ret
Function at 0x4027a0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3e4
mov eax, dword [0x438c20]
xor eax, esp
mov dword [esp + 0x3e0], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e2]
push ecx
mov word [esp + 0x1e4], ax
call fcn.0041a170
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x43d4b8
push 1
call fcn.00402c00
add esp, 8
test eax, eax
jne 0x4028e9
push 0x3a
push eax
lea ecx, [esp + 0x1a6]
push ecx
mov word [esp + 0x1a8], ax
call fcn.0041a170
lea edx, [esp + 0x1a8]
add esp, 0xc
push edx
call fcn.00403d90
add esp, 4
xor eax, eax
nop
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x43d660], cx
add eax, 2
test cx, cx
jne 0x402830
push 0x433f24
push 0x40
push 0x43d4bc
call fcn.0041847e
add esp, 0xc
push 0x433f40
push 0x10
push 0x43d53e
call fcn.0041847e
add esp, 0xc
push 0x433f4c
push 0x40
push 0x43d55e
call fcn.0041847e
mov eax, 0x51
mov ecx, 0x2b70
add esp, 0xc
mov word [0x43d53c], ax
mov word [0x43d5de], cx
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x43d640], cx
add eax, 2
test cx, cx
jne 0x4028a0
mov eax, 0x43d640
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4028c0
mov edx, dword [0x433f68]
mov cx, word [0x433f6c]
mov dword [eax], edx
mov word [eax + 4], cx
mov dword [0x43d680], 5
call fcn.00403ea0
lea edx, [esp + 0x1d8]
push edx
call fcn.00403d90
add esp, 4
xor eax, eax
movzx ecx, word [esp + eax + 0x1d8]
mov word [eax + 0x43d478], cx
add eax, 2
test cx, cx
jne 0x402900
push 0x43d478
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402949
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.00417d45
mov esp, ebp
pop ebp
ret
push 0x43d478
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x402934
push 0x433f70
call fcn.00403fc0
add esp, 4
mov esi, 0x43d6b8
mov dword [0x43d340], eax
call fcn.00402610
mov eax, dword [0x43d684]
push 0
push 0
push 0
push 0x404540
push 0
push 0
mov dword [0x43d6c0], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x3e4]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00417d45
mov esp, ebp
pop ebp
ret
Function at 0x402ae0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x438c20]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
xor ecx, ecx
mov word [ebp - 0x134], cx
mov dword [ebp - 0x130], 0
push 0x118
push 0
lea edx, [ebp - 0x12c]
push edx
call fcn.0041a170
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402be6
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x128]
mov dword [ebp - 4], edx
mov ax, word [ebp - 0x1c]
mov word [ebp - 0x134], ax
cmp dword [ebp - 8], 5
jne 0x402b90
cmp dword [ebp - 4], 0
jne 0x402b90
movzx ecx, word [ebp - 0x134]
cmp ecx, 4
jl 0x402b90
mov edx, dword [ebp + 8]
mov dword [edx], 1
cmp dword [ebp - 8], 5
jne 0x402ba5
cmp dword [ebp - 4], 2
jne 0x402ba5
mov eax, dword [ebp + 8]
mov dword [eax], 2
cmp dword [ebp - 8], 5
jne 0x402bc0
cmp dword [ebp - 4], 2
jae 0x402bb7
cmp dword [ebp - 4], 1
jne 0x402bc0
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
cmp dword [ebp - 8], 6
jne 0x402be6
cmp dword [ebp - 4], 0
jne 0x402bd7
mov edx, dword [ebp + 8]
mov dword [edx], 4
jmp 0x402be6
cmp dword [ebp - 4], 1
jne 0x402be6
mov eax, dword [ebp + 8]
mov dword [eax], 5
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00417d45
mov esp, ebp
pop ebp
ret

Function at 0x402d20
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x438c20]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.0041a170
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x402d6f
cmp dword [ebp + 0xc], 0
jne 0x402d79
jmp 0x402e4a
cmp dword [ebp + 0x10], 0
je 0x402dce
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x402d97
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x402dd2
jmp 0x402e4a
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00417d54
add esp, 0xc
push 0x433994
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00417e97
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x402e1e
jmp 0x402e4a
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041818a
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.0041821e
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417d45
mov esp, ebp
pop ebp
ret
Function at 0x402e60
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x438c20]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.0041a170
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x402eaf
cmp dword [ebp + 0xc], 0
jne 0x402eb9
jmp 0x402fc6
cmp dword [ebp + 0x10], 0
je 0x402f0e
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x402ed7
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x402f18
jmp 0x402fc6
cmp dword [0x439fa0], 3
jne 0x402f4e
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x43399c
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00417d54
add esp, 0xc
jmp 0x402f60
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp + 0x10]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00417d54
add esp, 0xc
push 0x4339a0
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00417e97
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x402f9a
jmp 0x402fc6
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041818a
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.0041821e
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417d45
mov esp, ebp
pop ebp
ret

Function at 0x403190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x438c20]
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.0041a170
add esp, 0xc
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x214], 0xffffffff
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [ebp - 0x210]
sub eax, 0x41
mov dword [ebp - 0x218], eax
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x218]
push edx
call fcn.00403460
add esp, 8
mov eax, dword [ebp - 0x21c]
push eax
call fcn.00403580
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x40323a
xor eax, eax
jmp 0x40324d
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call fcn.00402fe0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d45
mov esp, ebp
pop ebp
ret
Function at 0x403260
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 0x4032af
jmp 0x403397
mov dword [ebp - 8], 0xc00
mov eax, dword [ebp - 8]
push eax
call fcn.0040d8e1
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 0x4032fa
jmp 0x403397
mov dword [ebp - 4], 0
jmp 0x40330c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x40337a
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x90
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 + 0x3c]
cmp edx, dword [ebp - 0xc]
jl 0x403378
jg 0x403344
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x38]
cmp edx, dword [ebp - 0x10]
jbe 0x403378
mov eax, dword [ebp - 4]
imul eax, eax, 0x90
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax + 0x38]
mov dword [ebp - 0x10], edx
mov eax, dword [ecx + eax + 0x3c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x90
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + ecx + 0x40]
mov dword [ebp - 0x20], eax
mov ecx, dword [edx + ecx + 0x44]
mov dword [ebp - 0x1c], ecx
jmp 0x403303
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.0041bf80
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x4033b6
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0040d910
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