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

Disassembly:
push 0xffffffffffffffff
push 0x426d19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebp
push esi
push edi
lea eax, [esp + 0x60]
push 0x104
push eax
mov esi, ecx
push 0
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x38]
call fcn.00402390
mov edi, 0x428230
mov dword [esp + 0x30], edi
push 0xffffffffffffffff
push str.classpath
lea ecx, [esp + 0x14]
mov dword [esp + 0x174], 1
call fcn.00402390
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x30]
push 0
push ecx
lea edx, [esp + 0x14]
push 0x409b40
lea eax, [esp + 0x4c]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x180], 2
call fcn.004085e0
lea ecx, [esp + 0x40]
call fcn.00402270
lea ecx, [esp + 0xc]
mov byte [esp + 0x16c], 1
call fcn.00402270
push str.CLASSPATH
call fcn.0040dc05
push str.CLASS_PATH
mov esi, eax
call fcn.0040dc05
lea ecx, [esp + 0x38]
mov ebp, eax
lea edx, [esp + 0x68]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.00402890
add esp, 0x14
test esi, esi
mov byte [esp + 0x16c], 3
je 0x409984
push 0xffffffffffffffff
push 0x42f700
lea ecx, [esp + 0x14]
call fcn.00402390
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x50]
push esi
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], 4
call fcn.00404560
mov esi, eax
mov eax, dword [esi + 8]
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x170], 5
call dword [edx + 4]
mov esi, dword [esi + 4]
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x48]
call fcn.004024c0
lea ecx, [esp + 0x40]
mov byte [esp + 0x16c], 6
push ecx
lea ecx, [esp + 0x24]
call fcn.0040a020
lea ecx, [esp + 0x50]
mov byte [esp + 0x16c], 4
call fcn.00402270
mov dword [esp + 0xc], 0x428228
lea ecx, [esp + 0xc]
mov byte [esp + 0x16c], 7
call fcn.0040b850
mov byte [esp + 0x16c], 3
test ebp, ebp
je 0x409a23
push 0xffffffffffffffff
push 0x42f700
lea ecx, [esp + 0x14]
call fcn.00402390
mov dword [esp + 0xc], edi
lea edx, [esp + 0x50]
push ebp
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], 8
call fcn.00404560
mov esi, eax
mov ecx, dword [esi + 8]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov byte [esp + 0x170], 9
call dword [eax + 4]
mov esi, dword [esi + 4]
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x48]
call fcn.004024c0
lea edx, [esp + 0x40]
lea ecx, [esp + 0x20]
push edx
mov byte [esp + 0x170], 0xa
call fcn.0040a020
lea ecx, [esp + 0x50]
mov byte [esp + 0x16c], 8
call fcn.00402270
mov dword [esp + 0xc], 0x428228
lea ecx, [esp + 0xc]
mov byte [esp + 0x16c], 0xb
call fcn.0040b850
mov byte [esp + 0x16c], 3
mov esi, dword [esp + 0x174]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0040a2f0
mov dword [esi], edi
mov dword [esp + 0x1c], 1
mov edi, 0x428228
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x16c], 0xc
call fcn.0040b850
mov dword [esp + 0x20], 0x428238
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x16c], 0xd
call fcn.0040b850
mov ecx, dword [esp + 0x164]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x164
ret 4
Function at 0x40a3d0
Capabilities:
Access peb ldr_data
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x426e7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x190
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0040a570
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x1b0]
add edx, eax
mov eax, dword [esp + 0x14]
xor ebx, ebx
mov dword [esp + 0x1b0], edx
cmp eax, ebx
mov dword [esp + 0x10], 0x428228
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
je 0x40a432
push eax
call fcn.0040cb32
add esp, 4
lea eax, [esp + 0x9c]
push 0x104
push eax
push ebx
mov dword [esp + 0x1c], 0x428238
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push 0x80
push 3
push ebx
push 3
lea ecx, [esp + 0xb0]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push ebx
mov ebp, eax
push ebx
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esp + 0x1b0]
mov ebx, eax
sub esi, ecx
lea ecx, [esp + 0x40]
sub esi, 0x10
call fcn.00418390
push esi
push ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x1b0], 0
call fcn.00418490
mov edx, dword [esp + 0x1b0]
add esi, ebx
push edx
lea ecx, [esp + 0x44]
lea eax, [esi + 0x10]
push eax
call fcn.00418490
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x44]
call fcn.00418420
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0xc]
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
mov ecx, 4
lea edi, [esp + 0x30]
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
pop edi
pop esi
sete al
pop ebp
mov ecx, dword [esp + 0x194]
pop ebx
mov dword fs:[0], ecx
add esp, 0x19c
ret
Function at 0x40a570
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x426ea6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, ecx
push edi
push edi
mov dword [esp + 0x1c], ebp
call fcn.00402b10
push edi
push edi
mov ecx, ebp
mov dword [esp + 0x13c], edi
mov dword [ebp], 0x428228
mov dword [ebp + 0xc], edi
call fcn.00402b30
push edi
push edi
mov ecx, ebp
mov dword [esp + 0x13c], 1
mov dword [ebp], 0x42826c
call fcn.00402b30
lea eax, [esp + 0x28]
push 0x104
push eax
push edi
mov dword [ebp], 0x4283cc
mov byte [esp + 0x1c], 0x50
mov byte [esp + 0x1d], 0x4b
mov byte [esp + 0x1e], 5
mov byte [esp + 0x1f], 6
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
push 0x80
push 3
push edi
push 3
lea ecx, [esp + 0x3c]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push edi
push 2
push edi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push edi
push edi
push 4
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
lea eax, [esi - 0x816]
cmp eax, edi
mov dword [esp + 0x18], ecx
jge 0x40a655
xor eax, eax
sub esi, eax
add ecx, eax
mov dword [esp + 0x20], ecx
lea edi, [esi - 0x16]
test edi, edi
jl 0x40a6ef
lea eax, [ecx + edi]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
cmp ecx, dword [edx]
je 0x40a67d
dec edi
dec eax
test edi, edi
jge 0x40a66b
jmp 0x40a6ef
mov ecx, dword [ebp + 0xc]
sub esi, edi
sub esi, 0x16
lea eax, [esi + 1]
cmp eax, ecx
jle 0x40a6ca
cmp ecx, 8
jge 0x40a698
mov dword [ebp + 0xc], 8
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jle 0x40a6a5
lea edx, [ecx + ecx]
mov dword [ebp + 0xc], edx
cmp eax, dword [ebp + 0xc]
jle 0x40a6b7
add eax, 0xb
mov ecx, eax
and ecx, 7
sub eax, ecx
mov dword [ebp + 0xc], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 4]
push edx
push eax
call fcn.0040d00f
add esp, 8
mov dword [ebp + 4], eax
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x20]
mov byte [ecx + esi], 0
mov ecx, esi
mov dword [ebp + 8], esi
mov eax, ecx
lea esi, [edx + edi + 0x16]
mov edi, dword [ebp + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
push ebx
call esi
mov ecx, dword [esp + 0x12c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x40be60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4271b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.0041a4b0
mov esi, dword [esp + 0x34]
push 0
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0
call fcn.0041a560
mov edi, dword [esp + 0x18]
mov ecx, esi
mov esi, dword [esp + 0x30]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x20]
lea ecx, [esp + 0x14]
test eax, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov edi, 0x40bd60
jne 0x40bed7
mov edi, 0x40bde0
mov esi, dword [ebx + 8]
mov edx, dword [ebx]
push esi
mov ecx, ebx
call dword [edx + 4]
mov ebx, dword [ebx + 4]
push edi
push 8
push esi
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.0040e1c4
add esp, 0x14
test eax, eax
je 0x40bf25
mov esi, dword [eax + 4]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041a520
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041a520
mov ecx, dword [esp + 0x20]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x40c600
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push esi
push 0x14
call fcn.0040d7b0
mov esi, eax
add esp, 4
test esi, esi
je 0x40c64f
push 0
push 0
lea eax, [esp + 0xc]
push 1
push eax
mov dword [esi], 0x428464
mov dword [esi + 8], 0
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 4], eax
jmp 0x40c651
xor esi, esi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push esi
push 0
push 0x40c220
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
call fcn.0040e250
mov eax, dword [esi + 4]
add esp, 0xc
push 0x7530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x410075
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42fed8
cmp edx, dword [eax]
je 0x410097
add eax, 8
inc ecx
cmp eax, 0x42ff68
jl 0x410088
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42fed8]
jne 0x4101c5
mov eax, dword [0x433084]
cmp eax, 1
je 0x41019f
test eax, eax
jne 0x4100c8
cmp dword [0x42f788], 1
je 0x41019f
cmp edx, 0xfc
je 0x4101c5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4100ff
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004131f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040e3c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x410142
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040e3c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x428a00
push edi
call fcn.00413d60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004131f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413200
lea eax, [ebp - 0xa0]
push 0x4289e0
push eax
call fcn.00413200
push dword [esi + 0x42fedc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413200
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004150e0
add esp, 0x2c
pop edi
jmp 0x4101c5
lea eax, [ebp + 8]
lea esi, [esi + 0x42fedc]
push 0
push eax
push dword [esi]
call fcn.0040e3c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x419a20
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
mov ecx, dword [esi + 0x194]
push ecx
mov ecx, esi
call fcn.00419b90
mov edx, dword [esi + 0x198]
mov dword [esi + 0x194], eax
and eax, 0xff
mov ecx, esi
add eax, edx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x198], eax
shr eax, 0x18
mov byte [esp + 8], al
mov eax, dword [esi + 0x19c]
mov edx, dword [esp + 8]
push edx
push eax
call fcn.00419b90
mov dword [esi + 0x19c], eax
pop esi
ret 4

Function at 0x419f90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4274bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
lea eax, [esp + 0x14]
push esi
xor ebp, ebp
mov esi, ecx
push eax
mov dword [esp + 0xc], ebp
call fcn.0041a100
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 1
push ecx
mov ecx, esi
call fcn.00419e00
mov eax, dword [esp + 0x30]
mov byte [esp + 0x40], 2
cmp eax, ebp
je 0x41a062
mov edx, dword [esp + 0x20]
push ebx
mov bl, byte [0x428d10]
push 1
push edx
lea ecx, [esp + 0x24]
call fcn.00402c70
mov byte [eax], bl
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x30]
call dword [edx + 4]
mov eax, dword [esp + 0x30]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x18]
call fcn.00402b10
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 0x428274
cmp eax, 0xffffffff
pop ebx
jne 0x41a04a
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, ebp
mov dword [esp + 0x14], eax
je 0x41a04a
cmp byte [ecx], 0
je 0x41a04a
inc eax
mov dword [esp + 0x14], eax
cmp byte [ecx + eax], 0
jne 0x41a03f
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 3
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040a020
mov byte [esp + 0x40], 2
mov esi, dword [esp + 0x48]
push ebp
push ebp
mov ecx, esi
call fcn.00402200
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x48], 4
mov dword [esi], 0x42826c
call fcn.00402b30
mov dword [esi], 0x428230
mov dword [esp + 8], 1
mov dword [esp + 0x28], 0x428228
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 5
call fcn.00402380
cmp eax, ebp
je 0x41a0bc
push eax
call fcn.0040cb32
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], 0x428238
cmp eax, ebp
mov dword [esp + 0x18], 0x428228
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
je 0x41a0e9
push eax
call fcn.0040cb32
add esp, 4
mov ecx, dword [esp + 0x38]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
Function at 0x41c2d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4277f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x10], ebp
lea ecx, [ebp + 8]
call fcn.00422e10
lea ebx, [ebp + 0x24]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ebx
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
push eax
push eax
mov ecx, ebx
mov byte [esp + 0x34], 1
mov dword [ebx], 0x428228
mov dword [ebx + 0xc], eax
call fcn.00402c70
xor ecx, ecx
xor esi, esi
mov edi, eax
mov eax, dword [ebx + 8]
push esi
push eax
mov ecx, ebx
mov byte [esp + 0x34], 2
mov dword [ebx], 0x42826c
call fcn.00402c70
xor ecx, ecx
mov edi, eax
mov dword [ebx], 0x428230
lea ecx, [ebp + 0x40]
mov byte [esp + 0x2c], 3
call fcn.0041a4b0
mov dword [ebp], 0x428d0c
mov byte [ebp + 0x5a], 0
mov dword [ebp + 0x1c], esi
mov dword [ebp + 4], 0x10000
mov dword [ebp + 0x54], 0xffffffff
mov dword [ebp + 0x14], esi
mov edx, dword [ebx]
push esi
mov ecx, ebx
mov byte [esp + 0x30], 4
call dword [edx + 4]
mov eax, 0x43282c
mov dword [esp + 0x1c], 0x43282c
test eax, eax
mov dword [esp + 0x18], 0x428274
mov dword [esp + 0x20], esi
je 0x41c3b9
mov al, byte [0x43282c]
test al, al
je 0x41c3b9
mov al, byte [esi + 0x43282d]
inc esi
test al, al
jne 0x41c3aa
mov dword [esp + 0x20], esi
mov ecx, dword [ebx + 8]
push esi
push ecx
mov ecx, ebx
mov byte [esp + 0x34], 5
call fcn.00402c70
mov ecx, esi
mov esi, 0x43282c
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x41c900
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4278d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
lea edx, [esp + 0x14]
push edi
mov ecx, dword [esi + 0x14]
xor ebx, ebx
push edx
mov dword [esp + 0x14], esi
mov eax, dword [ecx]
mov dword [esp + 0x18], ebx
call dword [eax + 0x24]
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x30], ebx
mov eax, dword [ecx]
call dword [eax + 4]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x24], esp
mov dword [esp + 0x24], ebp
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
push ebx
push ebx
mov ecx, ebp
mov byte [esp + 0x48], 1
mov dword [ebp], 0x428228
mov dword [ebp + 0xc], ebx
call fcn.00402b30
mov ecx, dword [ebp + 8]
mov dword [ebp], 0x42826c
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x48], 2
mov esi, eax
call fcn.00402c70
mov ecx, esi
mov esi, edi
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0xffffffffffffffff
and ecx, 3
mov byte [esp + 0x44], bl
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov dword [ebp], 0x428230
call fcn.0041d560
mov ebp, dword [esp + 0x38]
push ebx
push ebx
mov ecx, ebp
call fcn.00402b10
push ebx
push ebx
mov ecx, ebp
mov byte [esp + 0x38], 3
mov dword [ebp], 0x428228
mov dword [ebp + 0xc], ebx
call fcn.00402b30
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov esi, eax
push eax
mov eax, dword [ebp + 8]
mov ecx, ebp
push eax
mov byte [esp + 0x38], 4
mov dword [ebp], 0x42826c
call fcn.00402c70
mov ecx, esi
mov esi, edi
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [ebp], 0x428230
cmp eax, ebx
mov dword [esp + 0x18], 0x428228
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
je 0x41ca3f
push eax
call fcn.0040cb32
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 4
Function at 0x41dfe0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x427c68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push esi
push edi
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x3c]
call fcn.00402390
mov esi, 0x428230
mov dword [esp + 0x34], esi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x94], edi
call fcn.00402390
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x54]
mov byte [esp + 0x8c], 1
call fcn.00409aa0
lea ecx, [esp + 0x64]
mov byte [esp + 0x8c], 2
call fcn.00409aa0
lea ecx, [esp + 0x74]
mov byte [esp + 0x8c], 3
call fcn.00409aa0
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x30]
push eax
mov byte [esp + 0x90], 4
mov dword [esp + 0x34], 0x428cd4
call fcn.00422ee0
lea ecx, [esp + 0x20]
mov dword [esp + 0x8c], 5
push ecx
lea ecx, [esp + 0x34]
call fcn.0041e220
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x90], 6
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
call esi
test eax, eax
jne 0x41e1b1
mov eax, dword [esp + 0x28]
cmp eax, edi
jle 0x41e105
mov ecx, dword [esp + 0x24]
mov dl, byte [ecx + eax - 1]
push edx
push 0x432804
call fcn.0040a3b0
add esp, 8
test al, al
mov eax, dword [esp + 0x28]
je 0x41e105
dec eax
cmp eax, edi
mov dword [esp + 0x28], eax
jg 0x41e0de
push ebx
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x28]
call dword [eax + 4]
mov ecx, dword [esp + 0x2c]
mov bl, byte [0x428d10]
push 1
push ecx
lea ecx, [esp + 0x2c]
call fcn.00402c70
mov byte [eax], bl
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x28]
call dword [eax + 4]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
call esi
test eax, eax
pop ebx
jne 0x41e1b1
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], 0x428228
cmp eax, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
je 0x41e17f
push eax
call fcn.0040cb32
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0x428238
mov dword [esp + 0x8c], 0xffffffff
call fcn.00422e20
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
add esp, 0x88
ret
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x24]
imul esi, dword [esp + 0xc]
imul esi, dword [esp + 0x10]
cmp eax, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 0x428228
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
je 0x41e1e8
push eax
call fcn.0040cb32
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0x428238
mov dword [esp + 0x8c], 0xffffffff
call fcn.00422e20
mov ecx, dword [esp + 0x84]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x88
ret
Function at 0x41e2e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0
push 0
call ebp
mov esi, eax
test esi, esi
jne 0x41e2f9
pop esi
xor al, al
pop ebp
ret
push ebx
push edi
push esi
call fcn.0040d7b0
add esp, 4
mov edi, eax
mov bl, 1
push edi
push esi
call ebp
test eax, eax
jne 0x41e322
push edi
xor bl, bl
call fcn.0040c6d0
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
ret
mov ecx, dword [esp + 0x14]
push edi
call fcn.00419d50
push edi
call fcn.0040c6d0
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x41e340
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x41e3f0
Capabilities:
Access peb ldr_data
Get disk information
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x427cd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x28]
call fcn.00402390
mov esi, 0x428230
mov dword [esp + 0x20], esi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x80], edi
call fcn.00402390
mov dword [esp + 0x30], esi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x48]
mov byte [esp + 0x80], 1
call fcn.00402390
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 2
call fcn.00409aa0
lea ecx, [esp + 0x60]
mov byte [esp + 0x78], 3
call fcn.00409aa0
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x7c], 4
mov dword [esp + 0x20], 0x428cd4
call fcn.00422ee0
lea ecx, [esp + 0xc]
mov dword [esp + 0x78], 5
push ecx
lea ecx, [esp + 0x20]
call fcn.0041e220
mov esi, eax
mov eax, dword [esi + 8]
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x7c], 6
call dword [edx + 4]
mov esi, dword [esi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
mov eax, dword [esp + 0x10]
sete bl
cmp eax, edi
mov dword [esp + 0xc], 0x428228
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
je 0x41e4e8
push eax
call fcn.0040cb32
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc], 0x428238
mov dword [esp + 0x78], 0xffffffff
call fcn.00422e20
mov ecx, dword [esp + 0x70]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret