joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401230
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x3e4
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x3e0], eax
mov eax, dword [esp + 0x3e8]
push edi
push 0
push eax
push 0
push 0
push 0
push closesocket
push 0
push closesocket
push 0xcf0000
push 0x424648
push 0x424580
push 0
mov dword [0x424710], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x401404
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e2]
push ecx
mov word [esp + 0x1e4], ax
call fcn.0040f900
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
mov edi, 0x424ed0
call fcn.00406260
add esp, 4
test eax, eax
jne 0x4013b9
push 0x3a
push eax
lea ecx, [esp + 0x1a6]
push ecx
mov word [esp + 0x1a8], ax
call fcn.0040f900
add esp, 0xc
lea edi, [esp + 0x19c]
call fcn.004015e0
xor eax, eax
jmp 0x401300
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x425078], cx
add eax, 2
test cx, cx
jne 0x401300
push 0x41dc54
push 0x40
push 0x424ed4
call fcn.0040a794
add esp, 0xc
push str.AAAA
mov edx, 0x51
push 0x10
push 0x424f56
mov word [0x424f54], dx
call fcn.0040a794
add esp, 0xc
push 0x41dc7c
push 0x40
push 0x424f76
call fcn.0040a794
mov eax, 0x2b66
add esp, 0xc
mov word [0x424ff6], ax
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x425058], cx
add eax, 2
test cx, cx
jne 0x401370
mov eax, 0x425058
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401390
mov ecx, dword [0x41dc98]
mov dx, word [0x41dc9c]
mov dword [eax], ecx
mov word [eax + 4], dx
mov dword [0x425098], 5
call fcn.00402ab0
lea edi, [esp + 0x1d8]
call fcn.004015e0
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x1d8]
mov word [eax + 0x4250d0], cx
add eax, 2
test cx, cx
jne 0x4013d0
push 0x4250d0
push 0
push 0x20000
call dword [sym.imp.KERNEL32.DLL_OpenEventW]
test eax, eax
je 0x40141c
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.0040a6dc
add esp, 0x3e4
ret
push 0x4250d0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
test eax, eax
je 0x401404
mov ecx, 0x425568
call fcn.00402920
mov eax, dword [0x42509c]
push 0
push 0
push 0
push 0x402b60
push 0
push 0
mov dword [0x425570], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ecx, dword [esp + 0x3e4]
pop edi
mov dword [0x42360c], eax
xor ecx, esp
mov eax, 1
call fcn.0040a6dc
add esp, 0x3e4
ret
Function at 0x402340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x434
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x42c], eax
mov eax, dword [esp + 0x43c]
push ebx
push ebp
mov ebp, dword [esp + 0x440]
push esi
push edi
push eax
mov ecx, ebp
call fcn.00405ac0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4024f3
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x32]
push edx
mov word [esp + 0x34], cx
call fcn.0040f900
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x23a]
push ecx
mov word [esp + 0x23c], ax
call fcn.0040f900
add esp, 0xc
lea esi, [esp + 0x28]
call fcn.00402d60
push 0x41dc50
mov edx, esi
push 0x104
push edx
call fcn.0040a6eb
xor eax, eax
lea ebx, [esp + 0x20]
add esp, 0xc
mov byte [esp + 0x14], 0
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
mov esi, 0x424720
sub ebx, 0x424824
cmp word [esi], 0
je 0x402477
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x234]
push 0x104
push ecx
call fcn.0040a794
add esp, 0xc
push esi
lea edx, [esp + 0x234]
push 0x104
push edx
call fcn.0040a6eb
lea eax, [esp + 0x23c]
add esp, 0xc
push eax
lea edi, [esp + 0x18]
call fcn.00405150
add esp, 4
test eax, eax
je 0x402477
mov ecx, 0x14
lea eax, [esi + 0x104]
lea ecx, [ecx]
mov edx, dword [ebx + eax]
cmp edx, dword [eax]
jne 0x402477
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x402460
xor eax, eax
mov word [esi], ax
add esi, 0x118
sub ebx, 0x118
cmp esi, 0x424c98
jl 0x402404
mov edi, dword [esp + 0x44c]
mov esi, 0x424720
jmp 0x4024a0
cmp word [esi], 0
je 0x4024b2
push edi
push ebp
mov ecx, esi
call fcn.00405cd0
add esp, 8
add esi, 0x118
cmp esi, 0x424c98
jl 0x4024a0
push 0x425360
lea ecx, [esp + 0x2c]
push 0x104
push ecx
call fcn.0040a6eb
add esp, 0xc
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4024ef
mov dword [esp + 0x10], 2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a6dc
add esp, 0x434
ret
Function at 0x402850
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x41dda0
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.0040abdf
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.0040acbc
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040aede
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.0040acbc
lea ebp, [esi + 0x32]
push ebp
call fcn.0040a9c1
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.0040b1ec
mov eax, dword [esp + 0x40]
push eax
call fcn.0040b280
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.004037e0
mov ecx, dword [esp + 0x4c]
push 0x41dda8
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0040abdf
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.0040b45e
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0040b280
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x402c20
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
mov eax, dword [0x425150]
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [eax + 0x1fc]
push edi
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402c5a
mov eax, ebx
call fcn.004035b0
cmp eax, esi
jne 0x402c5a
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x100000
call fcn.0040a9c1
mov ecx, dword [0x425150]
add esp, 4
mov ebp, eax
add ecx, 0x200
push ebp
push ecx
lea edx, [esp + 0x18]
mov ecx, esi
mov dword [esp + 0x18], 0x100000
call fcn.00406410
add esp, 8
test eax, eax
je 0x402d2d
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.0040a803
add esp, 4
call fcn.0040a815
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x41ffb0]
fmul qword [0x41ffd8]
fadd qword [0x41ffd0]
call fcn.00417620
mov esi, dword [esp + 0x10]
lea ebx, [esi + ebp]
mov edi, eax
call fcn.004037e0
add edi, esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
call fcn.004063a0
mov esi, eax
cmp esi, 0xffffffff
je 0x402d2b
push ebx
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0x14]
cmp eax, edi
jne 0x402d0a
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp ebx, 1
jne 0x402d2b
push ebp
mov edi, ebx
call fcn.0040aa8b
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor edi, edi
push ebp
call fcn.0040aa8b
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x402dc0
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.0040a815
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x41ffb0]
fadd qword [0x41ffc8]
call fcn.00417620
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x402ee0
call fcn.0040a815
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x41ffb0]
fmul qword [0x41ffc0]
fadd qword [0x41ffb8]
call fcn.00417620
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x402ec8
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x402eb9
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x402eb0
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 0x402e77
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
Function at 0x403070
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
push ebx
push ebp
push esi
mov esi, edx
mov dword [esp + 0x18], eax
xor eax, eax
xor edx, edx
push 0x288
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], 0xffffffff
mov word [esp + 0x28], dx
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov word [esp + 0x46], ax
xor ebx, ebx
call fcn.0040a9c1
mov ebp, eax
add esp, 4
lea eax, [esp + 0x10]
push eax
push ebp
mov dword [esp + 0x18], 0x288
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x403103
push ebp
call fcn.0040aa8b
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040a9c1
add esp, 8
mov ebp, eax
lea edx, [esp + 0x10]
push edx
push ebp
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4031e7
mov eax, ebp
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x4031e7
push edi
jmp 0x403134
mov eax, dword [esp + 0x18]
inc dword [esp + 0x10]
test esi, esi
je 0x40314f
mov ecx, dword [eax + 0x194]
mov dword [esi], ecx
mov dx, word [eax + 0x198]
mov word [esi + 4], dx
lea edi, [eax + 0x1ac]
test edi, edi
je 0x4031d4
lea esp, [esp]
lea edx, [edi + 4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403168
sub eax, esi
mov ecx, eax
cmp ecx, 0x10
jle 0x40317d
mov ecx, 0x10
xor eax, eax
test ecx, ecx
jl 0x40319d
cmp eax, ecx
jne 0x40318e
xor esi, esi
mov word [esp + eax*2 + 0x28], si
movsx si, byte [edx + eax]
mov word [esp + eax*2 + 0x28], si
inc eax
cmp eax, ecx
jle 0x403185
lea eax, [esp + 0x28]
push eax
call fcn.004032b0
add esp, 4
test eax, eax
je 0x4031c5
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ebx*4]
lea ecx, [esp + 0x28]
push ecx
push 0x10
push eax
call fcn.0040a794
add esp, 0xc
mov edi, dword [edi]
inc ebx
test edi, edi
jne 0x403160
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
test ebx, ebx
jg 0x4031e6
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x403130
pop edi
mov ecx, dword [esp + 0x1c]
mov dword [ecx], ebx
test ebp, ebp
je 0x4031fa
push ebp
call fcn.0040aa8b
add esp, 4
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a6dc
add esp, 0x3c
ret
Function at 0x4034b0
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.0040f900
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 0x403589
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x403555
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40352e
cmp word [esp + 0x118], 4
jb 0x403589
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040a6dc
add esp, 0x120
ret
cmp eax, 2
jae 0x403538
cmp eax, 1
jne 0x403589
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040a6dc
add esp, 0x120
ret
cmp eax, 6
jne 0x403589
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40357f
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040a6dc
add esp, 0x120
ret
cmp eax, 1
jne 0x403589
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040a6dc
add esp, 0x120
ret

Function at 0x4035b0
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push closesocket
or edi, 0xffffffff
push eax
or ebx, edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, edi
jne 0x4035e2
or eax, edi
or edx, edi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
cmp eax, 1
jne 0x4035fb
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
add esp, 0x10
ret

Function at 0x403740
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.0040f900
add esp, 0xc
cmp dword [0x423060], 3
jne 0x4037a0
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x41dc50
lea eax, [esp + 4]
push 0x104
push eax
call fcn.0040a6eb
add esp, 0xc
jmp 0x4037af
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push str._s_s.exe
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.0040a6dc
add esp, 0x20c
ret
Function at 0x403870
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x314
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x310], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
push str._uinsey.bat
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.0040bcab
add esp, 0xc
push 0x104
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
call fcn.0040ba30
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.0040bc60
add esp, 0x14
test eax, eax
je 0x4038fb
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4039f7
mov eax, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403930
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403947
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403960
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.0040a902
push edi
mov esi, eax
push 0
push esi
call fcn.0040f900
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
push edi
push esi
call fcn.0040bc8d
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4039b0
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x4039f5
push esi
call fcn.0040a967
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.0040a6dc
add esp, 0x314
ret

Function at 0x403a10
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 0x403a61
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 0x403c40
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 0x403d5e
push 0xb69
call fcn.0040a902
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 0x403d51
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
test eax, eax
jl 0x403cb9
jg 0x403cad
test ecx, ecx
jbe 0x403cb9
mov ebx, dword [esi + 0x38]
mov ebp, dword [esi + 0x3c]
mov edx, ecx
mov edi, eax
jmp 0x403cbd
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xbd]
cmp eax, edi
mov ecx, dword [esi + 0xb9]
jl 0x403ce7
jg 0x403cd3
cmp ecx, edx
jbe 0x403ce7
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 0x403d11
jg 0x403cfd
cmp ecx, edx
jbe 0x403d11
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 0x403d3b
jg 0x403d27
cmp ecx, edx
jbe 0x403d3b
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.004174f0
mov dword [esp + 0x10], eax
test esi, esi
je 0x403d5e
push esi
call fcn.0040a967
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 0x403da0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push esi
push 0
push 0
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp esi, 0xffffffff
jne 0x403dce
xor eax, eax
pop esi
add esp, 8
ret
push edi
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
test edi, edi
jne 0x403df0
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 8
ret
push ebp
push edi
call fcn.0040a902
add esp, 4
push 0
lea edx, [esp + 0x10]
push edx
push edi
mov ebp, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esp + 0xc], edi
je 0x403e2b
push ebp
call fcn.0040a967
add esp, 4
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 8
ret
lea esi, [edi - 1]
mov edi, edi
cmp byte [esi + ebp], 0x3c
lea ecx, [esi + ebp]
jne 0x403e80
mov eax, 1
cmp ebx, eax
jbe 0x403e52
mov dl, byte [ecx + eax]
cmp dl, byte [eax + str._Embed_File_Info_]
jne 0x403e80
inc eax
cmp eax, ebx
jb 0x403e42
mov ecx, dword [esp + 0x18]
push 0x6422e
lea eax, [esi + ebp]
push eax
push ecx
call fcn.00410490
mov edx, dword [esp + 0x28]
push ebp
mov dword [edx], esi
call fcn.0040a967
add esp, 0x10
pop ebp
pop edi
mov eax, 1
pop esi
add esp, 8
ret
dec esi
jmp 0x403e30

Function at 0x403f60
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.0040f900
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.00403b30
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00403a70
cmp eax, 0xffffffff
jne 0x403fe2
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040a6dc
add esp, 0x218
ret
push esi
call fcn.00403e90
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.0040a6dc
add esp, 0x218
ret
Function at 0x405150
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
mov eax, 0x1068
call fcn.00415880
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x1064], eax
mov eax, dword [esp + 0x106c]
push ebx
push ebp
push 0x41dda0
push eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
xor ebp, ebp
call fcn.0040abdf
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x4051bb
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
pop ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.0040a6dc
add esp, 0x1068
ret
push esi
push 2
push ebx
push eax
call fcn.0040acbc
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040aede
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov dword [esp + 0x2c], eax
call fcn.0040acbc
mov eax, dword [esp + 0x28]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push 1
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
mov dword [esp + 0x58], 0xc3d2e1f0
call fcn.0040b1ec
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jbe 0x405266
lea edx, [esp + 0x70]
push esi
push edx
lea ebx, [esp + 0x1c]
call fcn.00404fc0
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
add ebp, esi
call fcn.0040b1ec
mov esi, eax
add esp, 0x18
test esi, esi
ja 0x405231
xor ebx, ebx
push edi
lea esi, [esp + 0x18]
call fcn.00405060
mov edx, dword [esp + 0x10]
push edx
call fcn.0040b280
add esp, 8
pop esi
cmp ebp, dword [esp + 0xc]
jb 0x405194
mov ecx, dword [esp + 0x106c]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040a6dc
add esp, 0x1068
ret