joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x4229f4], esi
push edi
jne 0x405eb6
mov ecx, 0x4229f0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405e92
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422df0
jl 0x405e8d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405eeb
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4229f0]
xor eax, esi
inc ecx
dec edx
jne 0x405ece
pop edi
pop esi
not eax
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x22f03181
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..rsrc
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x52425a3b
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x200
lea eax, [esp]
push ebx
push esi
mov esi, dword [esp + 0x20c]
push edi
push 0x200
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401034
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x200
ret 0x10
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.00401110
mov edx, eax
mov eax, dword [str.Adobe_]
mov edi, edx
add esp, 8
mov dword [edx], eax
mov ecx, dword [0x404028]
mov dword [edx + 4], ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x20c]
add edx, ecx
sub eax, edx
push eax
push edx
push 0x64
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x40108a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x200
ret 0x10
mov edi, 0x404020
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x21c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x200
ret 0x10
Function at 0x401140
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403088
push 0x402158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4064c4], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4064c0], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4064bc], ecx
shr eax, 0x10
mov dword [0x4064b8], eax
call fcn.00402020
test eax, eax
jne 0x4011aa
push 0x1c
call fcn.004012e0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00401e20
call fcn.00401e10
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x406890], eax
call fcn.004019e0
mov dword [0x4064a0], eax
test eax, eax
je 0x4011dd
mov eax, dword [0x406890]
test eax, eax
jne 0x4011e7
push 0xffffffffffffffff
call fcn.00401340
add esp, 4
call fcn.00401730
call fcn.00401640
call fcn.00401310
mov esi, dword [0x406890]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4012c6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40122e
test al, al
je 0x40122e
and eax, 0xff
push eax
call fcn.004015e0
add esp, 4
test eax, eax
je 0x401208
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401208
cmp byte [esi], 0x22
jne 0x401237
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401247
cmp al, 0x20
ja 0x401247
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401237
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401268
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40126d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00401340
jmp 0x4012ab
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401237
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4012c6

Function at 0x401380
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4064f4]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40139f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x4064f0], 1
mov byte [0x4064ec], bl
jne 0x4013f9
mov ecx, dword [0x406888]
test ecx, ecx
je 0x4013e7
mov esi, dword [0x406884]
sub esi, 4
cmp esi, ecx
jb 0x4013e7
mov eax, dword [esi]
test eax, eax
je 0x4013e0
call eax
mov ecx, dword [0x406888]
sub esi, 4
cmp esi, ecx
jae 0x4013d2
push 0x404014
push 0x404010
call fcn.00401430
add esp, 8
push 0x40401c
push 0x404018
call fcn.00401430
add esp, 8
test ebx, ebx
jne 0x401420
push ebp
mov dword [0x4064f4], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4019e0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x406608]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x401a22
call edi
mov esi, eax
test esi, esi
je 0x401a0c
mov eax, 1
jmp 0x401a1d
call ebp
mov ebx, eax
test ebx, ebx
je 0x401b2f
mov eax, 2
mov dword [0x406608], eax
cmp eax, 1
jne 0x401ac2
test esi, esi
jne 0x401a3b
call edi
mov esi, eax
test esi, esi
je 0x401b2f
cmp word [esi], 0
mov eax, esi
je 0x401a55
add eax, 2
cmp word [eax], 0
jne 0x401a43
add eax, 2
cmp word [eax], 0
jne 0x401a43
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x401ab4
push edi
call fcn.004024a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401ab4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x401aa6
push ebx
call fcn.00402450
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x401b2f
test ebx, ebx
jne 0x401ad3
call ebp
mov ebx, eax
test ebx, ebx
je 0x401b2f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x401aeb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401adb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401adb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004024a0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x401b0d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x402270
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4041d8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x402294
add eax, 8
inc ebp
cmp eax, 0x404268
jb 0x402285
cmp ecx, dword [ebp*8 + 0x4041d8]
jne 0x40243b
mov eax, dword [0x4064a8]
cmp eax, 1
je 0x4023fd
test eax, eax
jne 0x4022c0
cmp dword [0x404034], 1
je 0x4023fd
cmp ecx, 0xfc
je 0x40243b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4022fb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x402344
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x403368
add ebx, ecx
push ebx
call fcn.00402d00
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x403348
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4041dc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00402c70
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x406780]
test eax, eax
je 0x40240e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x402418
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4041dc]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x10bf2157
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x69c87eb1
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
jmp loc.00401219

Function at 0x43b634
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
and esi, esi
dec edi
call fcn.0043b671
add edi, edi
sub esi, 0xeae2135d
xor dword [eax], ebx
sub edi, 1
sub edi, edi
inc eax
mov esi, edi
sub esi, edi
cmp eax, edx
jne fcn.0043b634
add edi, 0x55ceb15
add esi, 0x2a97261a
add edi, 1
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x4014b0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov eax, 0x2460
call fcn.004045e0
push esi
push edi
mov ecx, 8
mov esi, 0x40a1a4
lea edi, [esp + 0x68]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x78
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x68]
push eax
push ecx
push 0x80000002
mov dword [esp + 0x1c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4016d1
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
lea eax, [esp + 0x268]
push edx
push eax
push 0
push 0
push 0x40a1a0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4016d1
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x268]
lea ecx, [esp + 0x468]
push eax
push 0x40a190
push ecx
mov dword [esp + 0x30], 0x44
call fcn.00404580
lea edx, [esp + 0x474]
push 0
push edx
call fcn.00408146
add esp, 0x14
cmp eax, 0xffffffff
je 0x4016d1
lea eax, [esp + 0x268]
lea ecx, [esp + 0x468]
push eax
push 0x40a180
push ecx
call fcn.00404580
mov eax, dword [0x40f154]
add esp, 0xc
test eax, eax
jle 0x401678
push ebx
push ebp
xor edx, edx
mov dword [esp + 0x10], eax
lea ebp, [edx + 0x40b154]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [edx + ecx + 0x40b152], 0x5c
jne 0x4015d5
mov byte [edx + ecx + 0x40b152], 0
or ecx, 0xffffffff
mov edi, 0x40a0bc
xor eax, eax
lea ebx, [esp + 0x470]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add edx, 0x200
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [esp + 0x470]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebx, [esp + 0x470]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40a0b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebp
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], eax
jne 0x4015b1
pop ebp
pop ebx
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x484]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4016d1
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x2460
ret
pop edi
xor eax, eax
pop esi
add esp, 0x2460
ret
Function at 0x404390
Capabilities:
Get disk information
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x88
cmp ecx, 0x1f
mov eax, 0x20
jg 0x4043a6
mov eax, ecx
push ebx
push ebp
push esi
cmp ecx, 2
push edi
jge 0x4043b6
push 0
call fcn.0040474b
mov ecx, dword [esp + 0xa0]
mov edi, dword [ecx + 4]
lea edx, [ecx + 4]
mov cl, byte [edi]
cmp cl, 0x2f
je 0x404427
cmp cl, 0x2d
je 0x404427
cmp eax, 1
jle 0x4044f1
lea ecx, [eax - 1]
mov ebx, 0x40b154
mov dword [esp + 0x10], ecx
lea ebp, [eax - 1]
mov edi, dword [edx]
or ecx, 0xffffffff
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
add ebx, 0x200
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
dec ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [0x40f154], ecx
jne 0x4043e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
inc edi
mov esi, 0x40a8b4
push edi
call fcn.00408222
add esp, 4
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40445e
test cl, cl
je 0x40445a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40445e
add eax, 2
add esi, 2
test cl, cl
jne 0x404436
xor eax, eax
jmp 0x404463
sbb eax, eax
sbb eax, 0xffffffff
xor esi, esi
cmp eax, esi
jne 0x4044f1
lea eax, [esp + 0x18]
mov dword [0x40b150], 1
push eax
push 0x80
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov ebp, 0x40b154
lea ebx, [esp + 0x18]
cmp byte [ebx], 0
je 0x4044e8
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x4044d7
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
inc ecx
add ebp, 0x200
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x10]
add ebx, 4
inc eax
cmp eax, 0x20
mov dword [esp + 0x10], eax
jl 0x404498
mov eax, dword [esp + 0x14]
mov dword [0x40f154], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
Function at 0x405c15
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a978
cmp edx, dword [eax]
je 0x405c37
add eax, 8
inc ecx
cmp eax, 0x40aa08
jl 0x405c28
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a978]
jne 0x405d65
mov eax, dword [0x40f1ac]
cmp eax, 1
je 0x405d3f
test eax, eax
jne 0x405c68
cmp dword [0x40a8c4], 1
je 0x405d3f
cmp edx, 0xfc
je 0x405d65
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405c9f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004062f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004060e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405ce2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004060e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40945c
push edi
call fcn.00407450
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004062f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406300
lea eax, [ebp - 0xa0]
push 0x40943c
push eax
call fcn.00406300
push dword [esi + 0x40a97c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406300
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004073be
add esp, 0x2c
pop edi
jmp 0x405d65
lea eax, [ebp + 8]
lea esi, [esi + 0x40a97c]
push 0
push eax
push dword [esi]
call fcn.004060e0
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 0x408146
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408166
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040754e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x408187
test byte [esp + 8], 2
je 0x408187
mov dword [0x40f158], 0xd
mov dword [0x40f15c], 5
jmp 0x408162
xor eax, eax
ret