joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b726
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x412abc], ebx
push esi
push edi
jne 0x40b7a6
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40b7e1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4100e4
push edi
call esi
test eax, eax
mov dword [0x412abc], eax
je 0x40b7e1
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x412ac0], eax
call esi
cmp dword [0x412614], 2
mov dword [0x412ac4], eax
jne 0x40b7a6
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x412acc], eax
je 0x40b7a6
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x412ac8], eax
mov eax, dword [0x412ac8]
test eax, eax
je 0x40b7eb
call eax
test eax, eax
je 0x40b7d2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x412acc]
test eax, eax
je 0x40b7d2
test byte [ebp - 8], 1
jne 0x40b7eb
cmp dword [0x412620], 4
jb 0x40b7e5
or byte [ebp + 0x12], 0x20
jmp 0x40b80a
xor eax, eax
jmp 0x40b81a
or byte [ebp + 0x12], 4
jmp 0x40b80a
mov eax, dword [0x412ac0]
test eax, eax
je 0x40b80a
call eax
mov ebx, eax
test ebx, ebx
je 0x40b80a
mov eax, dword [0x412ac4]
test eax, eax
je 0x40b80a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x412abc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c08a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x40c25e
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x413d60]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x40c25e
test cl, 0x48
je 0x40c0f5
cmp byte [eax + 5], 0xa
je 0x40c0f5
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c147
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x40c12f
call fcn.004092d7
mov dword [eax], 9
call fcn.004092e0
mov dword [eax], esi
jmp 0x40c13f
cmp eax, 0x6d
je 0x40c25e
push eax
call fcn.004092e9
pop ecx
or eax, 0xffffffff
jmp 0x40c260
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x40c259
test eax, eax
je 0x40c16e
cmp byte [ebx], 0xa
jne 0x40c16e
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40c177
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x40c253
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x40c243
cmp al, 0xd
je 0x40c1a9
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x40c235
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x40c1c3
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x40c1be
add dword [ebp + 0x10], 2
jmp 0x40c217
mov dword [ebp + 0x10], eax
jmp 0x40c231
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c1eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40c231
cmp dword [ebp - 0xc], 0
je 0x40c231
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40c20c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40c217
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40c234
cmp ebx, dword [ebp + 0xc]
jne 0x40c21c
cmp byte [ebp - 1], 0xa
jne 0x40c21c
mov byte [ebx], 0xa
jmp 0x40c234
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040b015
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40c235
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x40c18d
jmp 0x40c253
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40c253
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x40c260
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ced8
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x40cef1
or eax, 0xffffffff
jmp 0x40cf52
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x40cf4e
push 0x3d
push esi
call fcn.0040d221
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x40cf4e
cmp esi, eax
je 0x40cf4e
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x412634]
sete cl
cmp eax, dword [0x412638]
mov dword [ebp - 8], ecx
jne 0x40cf34
mov edi, eax
call fcn.0040ce77
mov dword [0x412634], eax
cmp eax, ebx
jne 0x40cf8d
cmp dword [ebp + 0xc], ebx
je 0x40cf56
cmp dword [0x41263c], ebx
je 0x40cf56
call fcn.0040c770
test eax, eax
je 0x40cf8d
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x40cf5f
xor eax, eax
jmp 0x40cf51
push 4
call fcn.00404b1b
cmp eax, ebx
pop ecx
mov dword [0x412634], eax
je 0x40cf4e
mov dword [eax], ebx
cmp dword [0x41263c], ebx
jne 0x40cf8d
push 4
call fcn.00404b1b
cmp eax, ebx
pop ecx
mov dword [0x41263c], eax
je 0x40cf4e
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x412634]
call fcn.0040ce2a
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x40cfee
cmp dword [esi], ebx
je 0x40cfee
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004047ed
cmp dword [ebp - 8], ebx
pop ecx
jne 0x40cfd1
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x40d02f
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x40cfc8
mov eax, edi
shl eax, 2
push eax
push dword [0x412634]
call fcn.00405a5c
cmp eax, ebx
pop ecx
pop ecx
je 0x40d02f
jmp 0x40d02a
cmp dword [ebp - 8], ebx
jne 0x40d09a
cmp edi, ebx
jge 0x40cffd
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x412634]
call fcn.00405a5c
cmp eax, ebx
pop ecx
pop ecx
je 0x40cf4e
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x412634], eax
cmp dword [ebp + 0xc], ebx
je 0x40d084
push dword [ebp - 4]
call fcn.00404dd0
inc eax
inc eax
push eax
call fcn.00404b1b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x40d084
push dword [ebp - 4]
push esi
call fcn.00404160
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x40d07d
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004047ed
pop ecx
cmp dword [ebp - 8], ebx
je 0x40d092
push dword [ebp - 4]
call fcn.004047ed
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x40cf51
push dword [ebp - 4]
call fcn.004047ed
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x40cf5b
Function at 0x43c457
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10010aa8
push 0x10005554
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
mov eax, 0x10a8
call fcn.0043d7f0
push ebx
push esi
push edi
xor esi, esi
inc esi
mov dword [ebp - 0x3c], esi
push dword [ebp + 8]
call dword [0x1000f0c4]
test eax, eax
je 0x43ce68
push dword [ebp + 8]
call fcn.0043aa56
pop ecx
test eax, eax
je 0x43ce68
cmp dword [0x10013c80], 0
jne 0x43c51e
push 0x14
push 0x10013c6c
push 0x14
push 0x10013c58
call fcn.0043a81e
push 0x20
push 0x10013c38
call fcn.0043b5d8
lea eax, [ebp - 0x4c0]
push eax
call fcn.0043bcec
add esp, 0x1c
test eax, eax
je 0x43c504
push 0x1e
lea eax, [ebp - 0x4c0]
push eax
push 0x10013c18
call fcn.0043d830
add esp, 0xc
mov ebx, dword [0x1000f0d4]
jmp 0x43c516
push 0x10010538
push 0x10013c18
mov ebx, dword [0x1000f0d4]
call ebx
mov dword [0x10013c80], esi
jmp 0x43c524
mov ebx, dword [0x1000f0d4]
push 0x1001053b
lea eax, [ebp - 0x5c0]
push eax
call ebx
push 0x1001053c
lea eax, [ebp - 0xdc0]
push eax
call ebx
push 0x10010570
push 0x10010574
lea eax, [ebp - 0xdc0]
push eax
call fcn.0043ab1a
add esp, 0xc
push dword [ebp + 8]
call dword [0x1000f0c4]
mov dword [ebp - 0x34], eax
push 0x10010580
push dword [ebp + 8]
call fcn.0043d960
mov esi, eax
push 0x10010584
push 0x10010594
lea eax, [ebp - 0xa0]
push eax
mov edi, dword [0x1000f194]
call edi
add esp, 0x14
test esi, esi
je 0x43c5af
mov eax, esi
sub eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
inc esi
push esi
push 0x10010598
lea eax, [ebp - 0xa0]
push eax
call edi
add esp, 0xc
push 0x1001059c
lea eax, [ebp - 0xa0]
invalid
call dword [eax - 0x75]
xor eax, 0x1000f0d0
invalid
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43c5c0
Capabilities:
Check http status code

Disassembly:
call dword [eax - 0x75]
xor eax, 0x1000f0d0
invalid
call esi
test eax, eax
jne 0x43c5ca
and dword [ebp - 0x3c], eax
lea eax, [ebp - 0xa0]
push eax
push 0x100105b0
lea eax, [ebp - 0xdc0]
push eax
call fcn.0043ab1a
push 0x10013c38
push 0x100105c0
invalid
test dword [eax - 0xe], eax
Function at 0x43ea9d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x43eacb
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x43ead2
cmp ebx, dword [eax + 4]
jae 0x43ead2
xor eax, eax
jmp 0x43ecc2
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43eae3
xor eax, eax
inc eax
jmp 0x43ecc1
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43eaf9
cmp ecx, edx
jae 0x43ec3e
cmp dword [eax + 4], 0
je 0x43eb02
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43eaea
cmp dword [ebp + 8], 0
je 0x43eb24
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x43ec3e
cmp eax, esi
jae 0x43ec3e
mov eax, dword [0x10013cf8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43eb49
cmp dword [esi*4 + 0x10013d00], edi
je 0x43ec42
inc esi
cmp esi, eax
jl 0x43eb37
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x1000f154]
test eax, eax
je 0x43ecbe
cmp dword [ebp - 8], 0x1000000
jne 0x43ecbe
test byte [ebp - 0xc], 0xcc
je 0x43ebc7
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x43ecbe
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43ecbe
cmp word [eax + 0x18], 0x10b
jne 0x43ecbe
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x43ecbe
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43ebc7
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43ebc7
test byte [ecx + 0x27], 0x80
jne 0x43ec3e
push 1
push 0x10013d40
call dword [0x1000f058]
test eax, eax
jne 0x43eadb
mov ecx, dword [0x10013cf8]
test ecx, ecx
mov edx, ecx
jle 0x43ebfb
lea eax, [ecx*4 + 0x10013cfc]
cmp dword [eax], edi
je 0x43ebfb
dec edx
sub eax, 4
test edx, edx
jg 0x43ebef
test edx, edx
jne 0x43ec2c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43ec08
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x43ec20
lea eax, [edx*4 + 0x10013d00]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x43ec0e
cmp ecx, 0x10
jge 0x43ec2c
inc ecx
mov dword [0x10013cf8], ecx
push 0
push 0x10013d40
call dword [0x1000f058]
jmp 0x43eadb
xor eax, eax
jmp 0x43ecc1
test esi, esi
jle 0x43eadb
mov ebx, dword [0x1000f058]
push 1
push 0x10013d40
call ebx
test eax, eax
jne 0x43eadb
cmp dword [esi*4 + 0x10013d00], edi
je 0x43ec98
mov eax, dword [0x10013cf8]
lea esi, [eax - 1]
test esi, esi
jl 0x43ec86
cmp dword [esi*4 + 0x10013d00], edi
je 0x43ec82
dec esi
jns 0x43ec76
test esi, esi
jge 0x43ec96
cmp eax, 0x10
jge 0x43ec91
inc eax
mov dword [0x10013cf8], eax
lea esi, [eax - 1]
jmp 0x43ec98
je 0x43ecb0
xor ecx, ecx
test esi, esi
jl 0x43ecb0
lea eax, [ecx*4 + 0x10013d00]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x43ec9e
push 0
push 0x10013d40
call ebx
jmp 0x43eadb
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rsrc
mov ebx, 0x40915c
nop
mov ecx, 0x41167733
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x29744175
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3a486d48
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
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
pop eax
nop
mov esi, 0x2c353a70
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 8]
mov edx, 0x408440
sub edx, eax
jmp 0x401010
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401010
push ebp
push esi
push edi
mov edi, 0x408440
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401023
mov eax, dword [esp + 0x18]
mov bp, word [0x40682c]
mov ecx, eax
mov word [edi], bp
mov edx, ecx
push ebx
mov edi, edi
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x401040
sub ecx, edx
mov edi, 0x408440
mov esi, edx
mov edx, ecx
dec edi
pop ebx
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401054
mov ecx, edx
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 + 0x10]
mov esi, 0x408840
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x401075
mov edi, 0x408840
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401085
mov word [edi], bp
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401092
mov edi, 0x408840
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4010a3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
push 0x408840
and ecx, 3
push 0x408440
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
ret

Function at 0x4010d0
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 8]
mov edx, 0x408440
sub edx, eax
jmp 0x4010e0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4010e0
push ebx
push esi
push edi
mov edi, 0x408440
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4010f3
mov eax, dword [str.Sounds_]
mov ecx, dword [0x40683c]
mov dl, byte [0x406840]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 4], ecx
mov ecx, eax
mov byte [edi + 8], dl
mov edx, ecx
lea esp, [esp]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x401120
sub ecx, edx
mov edi, 0x408440
mov esi, edx
mov edx, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401133
mov ecx, edx
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 + 0x10]
mov esi, 0x408840
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x401154
mov edi, 0x408840
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401164
mov ecx, dword [str..._]
mov dl, byte [0x406834]
mov dword [edi], ecx
mov byte [edi + 4], dl
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401180
mov edi, 0x408840
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401191
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
push 0x408840
and ecx, 3
push 0x408440
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebx
ret
Function at 0x4011c0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
mov edx, 0x408840
sub edx, eax
jmp 0x4011d0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4011d0
push esi
push edi
mov edi, 0x408840
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4011e2
mov ax, word [0x40682c]
mov word [edi], ax
mov eax, dword [esp + 0x10]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401200
mov edi, 0x408840
sub eax, edx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401210
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x408840
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret

Function at 0x401240
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
mov edx, 0x408840
sub edx, eax
jmp 0x401250
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401250
push esi
push edi
mov edi, 0x408840
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401262
mov eax, dword [str..._]
mov cl, byte [0x406834]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov byte [edi + 4], cl
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401280
mov edi, 0x408840
sub eax, edx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401290
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x408840
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret

Function at 0x4012c0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
mov edx, 0x408840
sub edx, eax
jmp 0x4012d0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4012d0
push esi
push edi
mov edi, 0x408840
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4012e2
mov ax, word [0x40682c]
mov word [edi], ax
mov eax, dword [esp + 0x10]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401300
mov edi, 0x408840
sub eax, edx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401310
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0x408840
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
ret

Function at 0x401340
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 4]
mov edx, 0x408840
sub edx, eax
jmp 0x401350
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401350
push esi
push edi
mov edi, 0x408840
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401362
mov ax, word [0x40682c]
mov word [edi], ax
mov eax, dword [esp + 0x10]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401380
mov edi, 0x408840
sub eax, edx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401390
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x408840
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
ret
Function at 0x4017d1
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x406878
call fcn.00401c18
mov edi, 0x94
mov eax, edi
call fcn.00402920
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x408c5c], ecx
mov eax, dword [esi + 4]
mov dword [0x408c68], eax
mov edx, dword [esi + 8]
mov dword [0x408c6c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x408c60], esi
cmp ecx, 2
je 0x401831
or esi, 0x8000
mov dword [0x408c60], esi
shl eax, 8
add eax, edx
mov dword [0x408c64], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40186c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40186c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401884
cmp eax, 0x20b
je 0x401871
mov dword [ebp - 0x1c], esi
jmp 0x401898
cmp dword [ecx + 0x84], 0xe
jbe 0x40186c
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401892
cmp dword [ecx + 0x74], 0xe
jbe 0x40186c
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004028ca
pop ecx
test eax, eax
jne 0x4018c4
cmp dword [0x408c48], 1
jne 0x4018b1
call fcn.0040207f
push 0x1c
call fcn.00401f08
push 0xff
call fcn.00401d6d
pop ecx
pop ecx
call fcn.00402828
mov dword [ebp - 4], esi
call fcn.0040267d
test eax, eax
jge 0x4018dd
push 0x1b
call fcn.004017ac
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4091d4], eax
call fcn.0040255b
mov dword [0x408c40], eax
call fcn.004024b9
test eax, eax
jge 0x401903
push 8
call fcn.004017ac
pop ecx
call fcn.00402286
test eax, eax
jge 0x401914
push 9
call fcn.004017ac
pop ecx
push 1
call fcn.00401d9d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40192a
push eax
call fcn.004017ac
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402229
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40194b
movzx eax, word [ebp - 0x40]
jmp 0x40194e
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401490
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40196c
push edi
call fcn.00401ec8
call fcn.00401eea
jmp 0x40199e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401c53
ret