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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x4034db
pop dword [ebp - 0x40]
mov eax, 0x892cea94
sub eax, 0x88ecb5b9
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xec1df134
add dword [ebp - 0x50], 0x62345417
mov dword [ebp - 0x4c], 0x20a275f7
add dword [ebp - 0x4c], 0x1190d64e
mov dword [ebp - 0x48], 0x5c30f797
add dword [ebp - 0x48], 0xf01b4c97
mov dword [ebp - 0x44], 0x7de9cdee
add dword [ebp - 0x44], 0x82163212
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x9a3cf2b6
add dword [ebp - 0x50], 0xda3576a0
mov dword [ebp - 0x4c], 0x333e60f8
add dword [ebp - 0x4c], 0xe2e007d
mov dword [ebp - 0x48], 0x85484f9
sub dword [ebp - 0x48], 0xa4e5188d
mov dword [ebp - 0x44], 0x9f556853
sub dword [ebp - 0x44], 0x9f556853
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xb1f6cf2c
sub eax, 0xb1b68edc
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3555c
push 0
call eax
mov ecx, 0x234c501a
add ecx, 0xdcb3f1b2
xor edi, edi
add edi, eax
mov ebx, 0x408400
add ebx, dword [ebp - 0x40]
mov esi, 0x4f55c50
sub esi, 0xc11fce7e
xor dword [ebp - 0x3c], 0xd7a87c4e
mov edx, dword [ebx]
add dword [ebp - 0x30], 0x58bc3503
xor edx, esi
add dword [ebp - 0x28], 0x1c79db03
mov dword [edi], edx
sub dword [ebp - 0x18], 0x7e71370d
add edi, 4
add ebx, 0x3083deee
add ebx, 0xcf7c2116
loop 0x4035f4
add eax, 0x51a2c79
sub eax, 0x5193276
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x403655
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.0040df30
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [0x441af8], 0x594
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jne 0x4036a5
push 0x402e30
push 0x402e40
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0x402e5c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4373c8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4373cc]
mov dword [ebp - 0x30], eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.0040364e
mov eax, dword [0x4373d0]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4373d4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4036e4
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x441af8], 0xc
mov dword [ebp - 4], eax
jne 0x403746
push ebx
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x104c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x441af8]
cmp eax, 0xfa9
jne 0x403762
mov dword [0x441094], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40376f
mov dword [0x440a40], ebx
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, esi
shr edx, cl
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov dword [0x441090], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x441af8], 0x213
mov dword [ebp - 0x18], edx
jne 0x4037af
push 0x402e78
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00403648
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0x10], 0x61c88647
mov eax, edx
shr eax, cl
lea esi, [edi + edx]
add eax, dword [ebp - 0x30]
xor eax, esi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
dec dword [ebp - 0x20]
jne 0x4036e1
cmp dword [0x441af8], 0xa6d
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov dword [esi], eax
pop edi
jne 0x403819
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [ebp - 8]
mov dword [esi + 4], edx
pop esi
pop ebx
leave
ret 4
Function at 0x403822
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x441af8]
mov ecx, dword [0x440a48]
sub esp, 0x544
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x403895
mov edi, ecx
mov ebx, eax
cmp dword [0x441af8], 0x959
jne 0x403889
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402eb0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
call fcn.00403655
add edi, 8
dec ebx
jne 0x403846
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403be6
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x441af8], 0x400
push edi
jne 0x403c38
push esi
push esi
call fcn.0040407b
push esi
push esi
call fcn.0040407b
push esi
push esi
push esi
call fcn.00404663
add esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.004035c3
fstp st(0)
push esi
call fcn.00404719
pop ecx
push esi
call fcn.0040447a
pop ecx
mov eax, dword [0x437a54]
mov dword [0x441af8], eax
mov eax, dword [0x437a2c]
mov dword [0x441afc], eax
call fcn.004038b4
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x403c9f
cmp dword [esp + 0x18], 0x785074d5
jne 0x403cad
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x403c5a
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x40331c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x403358
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x403cdc
cmp dword [esp + 0x18], 0x785074d5
jne 0x403ce5
inc edi
cmp edi, 0x11915
jl 0x403caf
mov eax, dword [0x440a48]
mov dword [0x44108c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405090
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4360f8]
jne 0x40509a
repz ret
jmp fcn.00408eb2
Function at 0x408bd5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004066ea
and dword [ebp - 4], 0
cmp dword [0x438300], 0
mov ebx, eax
jne 0x408c86
push 0x401b58
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408d37
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b4c
push edi
call esi
test eax, eax
je 0x408d37
push eax
call fcn.00406678
mov dword [esp], 0x401b3c
push edi
mov dword [0x438300], eax
call esi
push eax
call fcn.00406678
mov dword [esp], 0x401b28
push edi
mov dword [0x438304], eax
call esi
push eax
call fcn.00406678
mov dword [esp], 0x401b0c
push edi
mov dword [0x438308], eax
call esi
push eax
call fcn.00406678
pop ecx
mov dword [0x438310], eax
test eax, eax
je 0x408c86
push 0x401af4
push edi
call esi
push eax
call fcn.00406678
pop ecx
mov dword [0x43830c], eax
mov eax, dword [0x43830c]
cmp eax, ebx
je 0x408cde
cmp dword [0x438310], ebx
je 0x408cde
push eax
call fcn.004066f3
push dword [0x438310]
mov esi, eax
call fcn.004066f3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408cde
test edi, edi
je 0x408cde
call esi
test eax, eax
je 0x408cd5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408cd5
test byte [ebp - 0xc], 1
jne 0x408cde
or dword [ebp + 0x10], 0x200000
jmp 0x408d17
mov eax, dword [0x438304]
cmp eax, ebx
je 0x408d17
push eax
call fcn.004066f3
pop ecx
test eax, eax
je 0x408d17
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408d17
mov eax, dword [0x438308]
cmp eax, ebx
je 0x408d17
push eax
call fcn.004066f3
pop ecx
test eax, eax
je 0x408d17
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x438300]
call fcn.004066f3
pop ecx
test eax, eax
je 0x408d37
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408d39
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0040dea0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4010d9
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x4010a5
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40107e
cmp word [esp + 0x118], 4
jb 0x4010d9
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040a5f6
add esp, 0x120
ret
cmp eax, 2
jae 0x401088
cmp eax, 1
jne 0x4010d9
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040a5f6
add esp, 0x120
ret
cmp eax, 6
jne 0x4010d9
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4010cf
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040a5f6
add esp, 0x120
ret
cmp eax, 1
jne 0x4010d9
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040a5f6
add esp, 0x120
ret
Function at 0x401ca0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.0040dea0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x401d6f
mov eax, 0x41ff28
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401ce5
sub eax, edx
sar eax, 1
je 0x401d6f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41ff28
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0040a605
push 0x41ff5c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040ab5b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401d6f
push eax
push 1
push 0x200
push esi
call fcn.0040ae4e
mov eax, dword [esp + 0x14]
push eax
call fcn.0040aee2
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040a5f6
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040a5f6
add esp, 0x214
ret

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

Disassembly:
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.0040dea0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x401e95
mov eax, 0x41ff44
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401dd5
sub eax, edx
sar eax, 1
je 0x401e95
cmp dword [0x42306c], 3
jne 0x401e1c
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41ff64
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0040a605
add esp, 0xc
jmp 0x401e2c
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41ff44
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0040a605
push 0x41ff68
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040ab5b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401e95
push eax
push 1
push 0x200
push esi
call fcn.0040ae4e
mov edx, dword [esp + 0x14]
push edx
call fcn.0040aee2
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040a5f6
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040a5f6
add esp, 0x214
ret
Function at 0x401eb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x422044]
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.0040dea0
add esp, 0xc
cmp dword [0x42306c], 3
jne 0x401f10
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41ff70
lea eax, [esp + 4]
push 0x104
push eax
call fcn.0040a605
add esp, 0xc
jmp 0x401f1f
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x41ff74
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.0040a5f6
add esp, 0x20c
ret

Function at 0x4020f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0040dea0
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 8]
sub eax, 0x41
push eax
lea ebx, [esp + 8]
call fcn.00402340
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00402450
cmp eax, 0xffffffff
jne 0x402172
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040a5f6
add esp, 0x218
ret
push esi
call fcn.00402020
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.0040a5f6
add esp, 0x218
ret
Function at 0x4021a0
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
je 0x4022be
push 0xb69
call fcn.0040b029
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xb69
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4022b1
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
test eax, eax
jl 0x402219
jg 0x40220d
test ecx, ecx
jbe 0x402219
mov ebx, dword [esi + 0x38]
mov ebp, dword [esi + 0x3c]
mov edx, ecx
mov edi, eax
jmp 0x40221d
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xbd]
cmp eax, edi
mov ecx, dword [esi + 0xb9]
jl 0x402247
jg 0x402233
cmp ecx, edx
jbe 0x402247
mov ebx, dword [esi + 0xc1]
mov ebp, dword [esi + 0xc5]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x146]
cmp eax, edi
mov ecx, dword [esi + 0x142]
jl 0x402271
jg 0x40225d
cmp ecx, edx
jbe 0x402271
mov ebx, dword [esi + 0x14a]
mov ebp, dword [esi + 0x14e]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1cf]
cmp eax, edi
mov ecx, dword [esi + 0x1cb]
jl 0x40229b
jg 0x402287
cmp ecx, edx
jbe 0x40229b
mov ebx, dword [esi + 0x1d3]
mov ebp, dword [esi + 0x1d7]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
push 0
add ebx, edx
push 0x200
adc ebp, edi
push ebp
push ebx
call fcn.004173f0
mov dword [esp + 0x10], eax
test esi, esi
je 0x4022be
push esi
call fcn.0040b08e
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4022e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp], eax
cmp esi, 0xffffffff
je 0x402331
mov eax, dword [esp + 0x1c]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
ret
Function at 0x402590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.0040a703
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x420390]
fadd qword [0x4203a8]
call fcn.00417340
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x4026b0
call fcn.0040a703
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x420390]
fmul qword [0x4203a0]
fadd qword [0x420398]
call fcn.00417340
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x402698
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x402689
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x402680
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x402647
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

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

Disassembly:
sub esp, 0x214
mov eax, dword [0x422044]
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.0040dea0
add esp, 0xc
cmp edi, esi
je 0x402838
mov eax, 0x41fffc
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402795
sub eax, edx
sar eax, 1
je 0x4027bf
push 0x420000
lea edx, [esp + 8]
push 0x41fffc
push edx
call fcn.0040ab5b
add esp, 0xc
jmp 0x4027fa
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x420008
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.0040a605
push 0x420024
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0040ab5b
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x40281d
push eax
push 1
push 0x200
push edi
call fcn.0040b1fb
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040aee2
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040a5f6
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040a5f6
add esp, 0x214
ret
Function at 0x402850
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x42002c
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.0040ab5b
add esp, 0xc
test eax, eax
je 0x402874
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.0040b307
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040b529
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.0040b307
lea ebp, [esi + 0x32]
push ebp
call fcn.0040b5e6
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.0040ae4e
mov eax, dword [esp + 0x40]
push eax
call fcn.0040aee2
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.00402920
mov ecx, dword [esp + 0x4c]
push 0x420034
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0040ab5b
add esp, 0x40
test eax, eax
je 0x4028f2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.0040b1fb
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0040aee2
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret