joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ea50
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x41ec49
cmp byte [edi], 0xa
jne 0x41ec49
mov al, byte [edi + 1]
test al, al
jne 0x41ec49
xor ebx, ebx
mov bh, byte [edi + 3]
mov bl, byte [edi + 2]
test ebx, ebx
je 0x41ec49
mov eax, dword [esp + 0x1c]
and eax, 0xffff
cmp ebx, eax
ja 0x41ec49
push 0x18
mov esi, 4
call fcn.0041f090
add esp, 4
test eax, eax
jne 0x41eac0
push 1
push 0x453aa0
push 0x1b
call fcn.0040b2a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp ebx, 4
jbe 0x41ec4b
xor ecx, ecx
xor edx, edx
mov ch, byte [esi + edi + 5]
mov dh, byte [esi + edi + 7]
mov cl, byte [esi + edi + 4]
mov dl, byte [esi + edi + 6]
add esi, 4
cmp ecx, 1
mov ebp, edx
jne 0x41ec3a
cmp ebp, 0x18
jne 0x41ec3a
movsx ecx, byte [esi + edi + 7]
shl ecx, 0x18
mov dword [eax + 0x10], ecx
mov dl, byte [esi + edi + 6]
and edx, 0xff
shl edx, 0x10
or edx, ecx
xor ecx, ecx
mov dword [eax + 0x10], edx
mov ch, byte [esi + edi + 5]
or ecx, edx
mov dword [eax + 0x10], ecx
mov dl, byte [esi + edi + 4]
and edx, 0xff
or edx, ecx
mov dword [eax + 0x10], edx
movsx ecx, byte [esi + edi + 0xb]
shl ecx, 0x18
mov dword [eax + 0x14], ecx
mov dl, byte [esi + edi + 0xa]
and edx, 0xff
shl edx, 0x10
or edx, ecx
xor ecx, ecx
mov dword [eax + 0x14], edx
mov ch, byte [esi + edi + 9]
or ecx, edx
mov dword [eax + 0x14], ecx
mov dl, byte [esi + edi + 8]
and edx, 0xff
or edx, ecx
mov dword [eax + 0x14], edx
movsx ecx, byte [esi + edi + 0xf]
shl ecx, 0x18
mov dword [eax + 8], ecx
mov dl, byte [esi + edi + 0xe]
and edx, 0xff
shl edx, 0x10
or edx, ecx
xor ecx, ecx
mov dword [eax + 8], edx
mov ch, byte [esi + edi + 0xd]
or ecx, edx
mov dword [eax + 8], ecx
mov dl, byte [esi + edi + 0xc]
and edx, 0xff
or edx, ecx
mov dword [eax + 8], edx
movsx ecx, byte [esi + edi + 0x13]
shl ecx, 0x18
mov dword [eax + 0xc], ecx
mov dl, byte [esi + edi + 0x12]
and edx, 0xff
shl edx, 0x10
or edx, ecx
xor ecx, ecx
mov dword [eax + 0xc], edx
mov ch, byte [esi + edi + 0x11]
or ecx, edx
mov dword [eax + 0xc], ecx
mov dl, byte [esi + edi + 0x10]
and edx, 0xff
or edx, ecx
mov dword [eax + 0xc], edx
movsx ecx, byte [esi + edi + 0x17]
shl ecx, 0x18
mov dword [eax], ecx
mov dl, byte [esi + edi + 0x16]
and edx, 0xff
shl edx, 0x10
or edx, ecx
xor ecx, ecx
mov dword [eax], edx
mov ch, byte [esi + edi + 0x15]
or ecx, edx
mov dword [eax], ecx
mov dl, byte [esi + edi + 0x14]
and edx, 0xff
or edx, ecx
mov dword [eax], edx
movsx ecx, byte [esi + edi + 0x1b]
shl ecx, 0x18
mov dword [eax + 4], ecx
mov dl, byte [esi + edi + 0x1a]
and edx, 0xff
shl edx, 0x10
or edx, ecx
xor ecx, ecx
mov dword [eax + 4], edx
mov ch, byte [esi + edi + 0x19]
or ecx, edx
mov dword [eax + 4], ecx
mov dl, byte [esi + edi + 0x18]
and edx, 0xff
or edx, ecx
mov dword [eax + 4], edx
add esi, ebp
cmp esi, ebx
jb 0x41eac9
pop edi
pop esi
pop ebp
pop ebx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41ec80
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
test eax, eax
je 0x41ee41
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwarePKwarePKzip
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41ee41
mov eax, dword [esi + 0x16c]
push edi
test eax, eax
jne 0x41ece1
mov edx, dword [esp + 8]
push 2
push 0x455098
push 7
push eax
push str.ExcludeFileAdd
push edx
jmp 0x41ed00
push eax
call fcn.0041d540
add esp, 4
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esi + 0x16c]
push eax
push 7
push 0
push str.ExcludeFileAdd
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
mov eax, dword [esi + 0x170]
test eax, eax
jne 0x41ed28
mov edx, dword [esp + 8]
push 2
push 0x455098
push 7
push eax
push str.ExcludeFileExtract
push edx
jmp 0x41ed47
push eax
call fcn.0041d540
add esp, 4
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esi + 0x170]
push eax
push 7
push 0
push str.ExcludeFileExtract
push ecx
call edi
mov eax, dword [esi + 0x160]
test eax, eax
jne 0x41ed69
mov edx, dword [esp + 8]
push 2
push 0x455098
push 7
push eax
push str.IncludeFileAdd
push edx
jmp 0x41ed88
push eax
call fcn.0041d540
add esp, 4
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esi + 0x160]
push eax
push 7
push 0
push str.IncludeFileAdd
push ecx
call edi
mov eax, dword [esi + 0x164]
test eax, eax
jne 0x41edaa
mov edx, dword [esp + 8]
push 2
push 0x455098
push 7
push eax
push str.IncludeFileExtract
push edx
jmp 0x41edc9
push eax
call fcn.0041d540
add esp, 4
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esi + 0x164]
push eax
push 7
push 0
push str.IncludeFileExtract
push ecx
call edi
mov eax, dword [esp + 8]
mov dl, byte [esi + 0x151]
push 2
push 0x4506d4
push 1
push 0
push str.ListChar
push eax
mov byte [0x4506d4], dl
call edi
mov edx, dword [esp + 8]
mov cl, byte [esi + 0x150]
push 2
push 0x4506d4
push 1
push 0
push str.OptionChar
push edx
mov byte [0x4506d4], cl
call edi
mov esi, 0x450590
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [esp + 8]
push 4
push eax
push 4
push 0
push ecx
push edx
call edi
add esi, 8
cmp esi, 0x4506d0
jb 0x41ee16
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 4
Function at 0x4201f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4550ec]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x42020f
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 [0x4550e8], 1
mov byte [0x4550e4], bl
jne 0x420269
mov ecx, dword [0x45662c]
test ecx, ecx
je 0x420257
mov esi, dword [0x456628]
sub esi, 4
cmp esi, ecx
jb 0x420257
mov eax, dword [esi]
test eax, eax
je 0x420250
call eax
mov ecx, dword [0x45662c]
sub esi, 4
cmp esi, ecx
jae 0x420242
push 0x42b028
push 0x42b01c
call fcn.004202a0
add esp, 8
push 0x42b030
push 0x42b02c
call fcn.004202a0
add esp, 8
test ebx, ebx
jne 0x420290
push ebp
mov dword [0x4550ec], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x420940
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x420957
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x420959
xor eax, eax
test eax, eax
je 0x42096a
push eax
call fcn.00424880
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x420ad0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x420aec
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x420aee
xor eax, eax
test eax, eax
je 0x420aff
push eax
call fcn.00424880
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x420c40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a878
push 0x4254b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
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 [0x4550bc], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4550b8], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4550b4], ecx
shr eax, 0x10
mov dword [0x4550b0], eax
call fcn.00425380
test eax, eax
jne 0x420caa
push 0x1c
call fcn.00420d60
add esp, 4
mov dword [ebp - 4], 0
call fcn.00423370
call fcn.00425370
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x456624], eax
call fcn.00424f40
mov dword [0x455108], eax
test eax, eax
je 0x420cdd
mov eax, dword [0x456624]
test eax, eax
jne 0x420ce7
push 0xffffffffffffffff
call fcn.004201b0
add esp, 4
call fcn.00424c90
call fcn.00424ba0
call fcn.00420180
mov eax, dword [0x4550cc]
mov dword [0x4550d0], eax
push eax
mov eax, dword [0x4550c4]
push eax
mov ecx, dword [0x4550c0]
push ecx
call fcn.004184d0
add esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.004201b0
jmp 0x420d42
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
Function at 0x423570
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x456620]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x42371d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x456520]
lea edi, [ecx*4 + 0x456520]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x42371d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x4235de
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x4235ef
push 2
push ebp
push eax
call fcn.004232b0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x42374e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x423699
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x42364a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x423637
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x42361a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42373f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x423695
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x423616
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x42370e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4236e2
cmp eax, 5
jne 0x4236cb
mov dword [0x4550a8], eax
mov dword [0x4550a4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00424880
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x423702
cmp byte [ebp], 0x1a
jne 0x423702
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4550a4], 0x1c
jmp 0x423727
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4550a4], 9
pop edi
pop esi
pop ebp
mov dword [0x4550a8], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x423695
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42377f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x423699
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x423699
Function at 0x424f40
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x455350]
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 0x424f82
call edi
mov esi, eax
test esi, esi
je 0x424f6c
mov eax, 1
jmp 0x424f7d
call ebp
mov ebx, eax
test ebx, ebx
je 0x42508f
mov eax, 2
mov dword [0x455350], eax
cmp eax, 1
jne 0x425022
test esi, esi
jne 0x424f9b
call edi
mov esi, eax
test esi, esi
je 0x42508f
cmp word [esi], 0
mov eax, esi
je 0x424fb5
add eax, 2
cmp word [eax], 0
jne 0x424fa3
add eax, 2
cmp word [eax], 0
jne 0x424fa3
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 0x425014
push edi
call fcn.00420d90
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x425014
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 0x425006
push ebx
call fcn.00420e40
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 0x42508f
test ebx, ebx
jne 0x425033
call ebp
mov ebx, eax
test ebx, ebx
je 0x42508f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x42504b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x42503b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x42503b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00420d90
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x42506d
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 0x4255d0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4511f0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4255f4
add eax, 8
inc ebp
cmp eax, 0x451280
jb 0x4255e5
cmp ecx, dword [ebp*8 + 0x4511f0]
jne 0x42579b
mov eax, dword [0x455110]
cmp eax, 1
je 0x42575d
test eax, eax
jne 0x425620
cmp dword [0x450964], 1
je 0x42575d
cmp ecx, 0xfc
je 0x42579b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42565b
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 0x4256a4
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 0x42ac60
add ebx, ecx
push ebx
call fcn.0041f8f0
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, 0x42ac40
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 + 0x4511f4]
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.00427c30
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x456520]
test eax, eax
je 0x42576e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x425778
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4511f4]
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 0x427910
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x427ace
push 0x3d
push edi
call fcn.00428b60
mov esi, eax
add esp, 8
test esi, esi
je 0x427ace
cmp edi, esi
je 0x427ace
mov dl, byte [esi + 1]
mov ecx, dword [0x4550d0]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x4550cc]
cmp eax, ecx
jne 0x427967
push eax
call fcn.00427ba0
add esp, 4
mov dword [0x4550cc], eax
test eax, eax
jne 0x4279e2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42798e
mov eax, dword [0x4550d4]
test eax, eax
je 0x42798e
call fcn.00424990
test eax, eax
je 0x4279dd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x42799a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00420d90
add esp, 4
mov dword [0x4550cc], eax
test eax, eax
je 0x427ace
mov dword [eax], 0
mov eax, dword [0x4550d4]
test eax, eax
jne 0x4279dd
push 4
call fcn.00420d90
add esp, 4
mov dword [0x4550d4], eax
test eax, eax
je 0x427ace
mov dword [eax], 0
mov eax, dword [0x4550cc]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00427b20
mov esi, eax
add esp, 8
test esi, esi
jl 0x427adf
cmp dword [ebx], 0
je 0x427adf
test ebp, ebp
je 0x427ad7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.00420e40
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x427a39
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x427a28
lea eax, [esi*4]
push eax
push ebx
call fcn.00423ee0
add esp, 8
test eax, eax
je 0x427a53
mov dword [0x4550cc], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x427ac6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00420d90
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x427ac6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00420e40
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x427a57
test ebp, ebp
jne 0x427ac6
test esi, esi
jge 0x427ae9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00423ee0
add esp, 8
test eax, eax
je 0x427ace
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x4550cc], eax
jmp 0x427a57
Function at 0x4289e0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00429030
mov eax, dword [0x456620]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x428b42
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x456520]
test byte [edx + ecx*8 + 4], 1
je 0x428b42
push 1
push ebp
push ebx
call fcn.004232b0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x428b4c
push 2
push ebp
push ebx
call fcn.004232b0
add esp, 0xc
cmp eax, 0xffffffff
je 0x428b4c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x428ae8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00428fb0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x428a8f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00423570
add esp, 0xc
cmp eax, 0xffffffff
je 0x428aab
sub esi, eax
test esi, esi
jle 0x428ac1
jmp 0x428a80
cmp dword [0x4550a8], 5
jne 0x428abe
mov dword [0x4550a4], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00428fb0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.004232b0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x428b29
push 0
push ecx
push ebx
call fcn.004232b0
add esp, 0xc
push ebx
call fcn.00426850
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x428b29
mov dword [0x4550a4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4550a8], eax
push 0
push edi
push ebx
call fcn.004232b0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x4550a4], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret

Function at 0x429480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4294a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00424880
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x4294c6
test byte [esp + 8], 2
je 0x4294c6
mov dword [0x4550a4], 0xd
mov dword [0x4550a8], 5
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x414838
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44ec90]
jne 0x414842
repz ret
jmp fcn.0041a6eb

Function at 0x41f377
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x41f386
pop dword [ebp - 0x20]
mov eax, 0x41f386
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x4d072
push 0
mov eax, 0x8d8d2a58
add eax, 0x72b69800
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x4617
mov ebx, eax
mov edi, 0x46b200
add edi, dword [ebp - 0x20]
mov edx, 0xbfe43c03
sub edx, 0xea7d7fbf
sub dword [ebp - 0xc], 0x710bfada
mov esi, dword [edi]
add esi, edx
xor dword [ebp - 4], 0xb01f1b71
mov dword [ebx], esi
sub dword [ebp - 8], 0x81a8fd32
add ebx, 0x33e211d7
sub ebx, 0x33e211d3
add edi, 0x5e020bb0
add edi, 0xa1fdf454
loop 0x41f3d4
add eax, 0xcf14732e
sub eax, 0xcf1367ff
mov ebx, eax
add eax, 0x103b9a5f
sub eax, 0x103b9a5a
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret