joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ad00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
test ebx, ebx
je 0x40ad71
push ebx
call fcn.0040ae30
add esp, 4
test eax, eax
jne 0x40ad3f
mov dword [0x414488], 0xf
mov dword [0x414484], 0xd
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x14]
add bl, 0x40
push 0x104
push edx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x40ad81
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40ae17
inc eax
cmp eax, 0x104
ja 0x40ae17
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
test edx, edx
jne 0x40add0
cmp eax, ecx
jg 0x40adad
mov eax, ecx
push eax
call fcn.0040aeb0
mov edx, eax
add esp, 4
test edx, edx
jne 0x40adea
mov dword [0x414484], 0xc
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, ecx
jle 0x40adea
mov dword [0x414484], 0x22
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret

Function at 0x40ae30
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x40ae3e
mov eax, 1
ret
add al, 0x40
mov byte [esp + 5], 0x3a
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x40ae6d
cmp eax, 1
je 0x40ae6d
mov eax, 1
ret
xor eax, eax
ret

Function at 0x40ae70
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 0x40ae8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40ae8e
xor eax, eax
test eax, eax
je 0x40ae9f
push eax
call fcn.0040b1b0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x40afb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f330
push 0x40d658
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 [0x41449c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x414498], ecx
shl ecx, 8
add ecx, edx
mov dword [0x414494], ecx
shr eax, 0x10
mov dword [0x414490], eax
call fcn.0040c220
test eax, eax
jne 0x40b01a
push 0x1c
call fcn.0040b180
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040ba40
call fcn.0040d550
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x414e30], eax
call fcn.0040cf10
mov dword [0x414448], eax
test eax, eax
je 0x40b04d
mov eax, dword [0x414e30]
test eax, eax
jne 0x40b057
push 0xffffffffffffffff
call fcn.0040b6d0
add esp, 4
call fcn.0040cc60
call fcn.0040cb70
call fcn.0040b6a0
mov esi, dword [0x414e30]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x40b136
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40b09e
test al, al
je 0x40b09e
and eax, 0xff
push eax
call fcn.0040cb10
add esp, 4
test eax, eax
je 0x40b078
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40b078
cmp byte [esi], 0x22
jne 0x40b0a7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40b0b7
cmp al, 0x20
ja 0x40b0b7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40b0a7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40b0d8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40b0dd
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.0040b6d0
jmp 0x40b11b
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 0x40b0a7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40b136

Function at 0x40b180
Capabilities:
Terminate process

Disassembly:
cmp dword [0x414450], 1
jne 0x40b18e
call fcn.0040d730
mov eax, dword [esp + 4]
push eax
call fcn.0040d770
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40b710
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4144cc]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40b72f
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 [0x4144c8], 1
mov byte [0x4144c4], bl
jne 0x40b789
mov ecx, dword [0x414e28]
test ecx, ecx
je 0x40b777
mov esi, dword [0x414e24]
sub esi, 4
cmp esi, ecx
jb 0x40b777
mov eax, dword [esi]
test eax, eax
je 0x40b770
call eax
mov ecx, dword [0x414e28]
sub esi, 4
cmp esi, ecx
jae 0x40b762
push 0x411014
push 0x411010
call fcn.0040b7c0
add esp, 8
push 0x41101c
push 0x411018
call fcn.0040b7c0
add esp, 8
test ebx, ebx
jne 0x40b7b0
push ebp
mov dword [0x4144cc], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x40bc40
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x414e20]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40bded
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x414d20]
lea edi, [ecx*4 + 0x414d20]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40bded
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40bcae
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40bcbf
push 2
push ebp
push eax
call fcn.0040bee0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40be1e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x40bd69
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40bd1a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40bd07
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 0x40bcea
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 0x40be0f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x40bd65
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40bce6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40bdde
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40bdb2
cmp eax, 5
jne 0x40bd9b
mov dword [0x414488], eax
mov dword [0x414484], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0040b1b0
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 0x40bdd2
cmp byte [ebp], 0x1a
jne 0x40bdd2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x414484], 0x1c
jmp 0x40bdf7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x414484], 9
pop edi
pop esi
pop ebp
mov dword [0x414488], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40bd65
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 0x40be4f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x40bd69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40bd69
Function at 0x40cf10
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4145f0]
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 0x40cf52
call edi
mov esi, eax
test esi, esi
je 0x40cf3c
mov eax, 1
jmp 0x40cf4d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40d05f
mov eax, 2
mov dword [0x4145f0], eax
cmp eax, 1
jne 0x40cff2
test esi, esi
jne 0x40cf6b
call edi
mov esi, eax
test esi, esi
je 0x40d05f
cmp word [esi], 0
mov eax, esi
je 0x40cf85
add eax, 2
cmp word [eax], 0
jne 0x40cf73
add eax, 2
cmp word [eax], 0
jne 0x40cf73
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 0x40cfe4
push edi
call fcn.0040aeb0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40cfe4
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 0x40cfd6
push ebx
call fcn.0040af60
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 0x40d05f
test ebx, ebx
jne 0x40d003
call ebp
mov ebx, eax
test ebx, ebx
je 0x40d05f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40d01b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d00b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d00b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0040aeb0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40d03d
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 0x40d770
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4143a8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40d794
add eax, 8
inc ebp
cmp eax, 0x414438
jb 0x40d785
cmp ecx, dword [ebp*8 + 0x4143a8]
jne 0x40d93b
mov eax, dword [0x414450]
cmp eax, 1
je 0x40d8fd
test eax, eax
jne 0x40d7c0
cmp dword [0x412074], 1
je 0x40d8fd
cmp ecx, 0xfc
je 0x40d93b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d7fb
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 0x40d844
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 0x411580
add ebx, ecx
push ebx
call fcn.0040a420
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, 0x40f5f4
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 + 0x4143ac]
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.0040dd30
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x414d20]
test eax, eax
je 0x40d90e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40d918
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4143ac]
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 0x407050
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x462014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call dword [0x4500b0]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x407239
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x407239
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.00434000
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call dword [0x450050]
test eax, eax
je 0x407239
push 4
push 0x1000
push 4
push 0
call dword [0x4500a0]
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call dword [0x45003c]
test eax, eax
je 0x407239
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0x458d50
push dword [esp + 0x30]
call dword [0x4500b4]
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0x40715c
push 0x458d54
push 0x458d6c
call dword [0x450088]
push eax
call dword [0x450040]
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call dword [0x450044]
mov dword [esp + 0x14], eax
test eax, eax
je 0x407239
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call dword [0x4500ac]
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0x4071f3
mov dword [esp + 0xc], eax
call fcn.00406ea0
push eax
call dword [0x450084]
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [0x4500ac]
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x4071a2
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call dword [0x4500ac]
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call dword [0x450058]
push dword [esp + 0x24]
call dword [0x45008c]
push 0x8000
push 0
push esi
call dword [0x4500a8]
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0041cef4
mov esp, ebp
pop ebp
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x9450990
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x3cc17de4
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x10154ce
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x1015502
cmp dword [edi + 0xc], ebx
je 0x1015502
mov ecx, dword [edi + 8]
cmp ecx, ebx
je 0x1015502
cmp dword [edi], 0x24
jne 0x1015502
mov eax, 0x10000
cmp dword [edi + 4], eax
jbe 0x101553e
mov esi, 0x80070057
mov eax, dword [section..data]
cmp eax, section..data
je 0x1015675
test byte [eax + 0x1c], 2
je 0x1015675
push esi
push 0x1001fac
push 0x10018b8
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040e76
jmp 0x1015675
lea edx, [ebp + 8]
push edx
push eax
push ecx
call fcn.01014733
mov esi, eax
test esi, esi
jge 0x1015578
mov eax, dword [section..data]
cmp eax, section..data
je 0x1015675
test byte [eax + 0x1c], 2
je 0x1015675
push esi
push 0x1001b90
push 0x10018b8
push 0x32
jmp 0x101552e
push 0x8028
call fcn.0104b68d
test eax, eax
je 0x101558f
mov ecx, eax
call fcn.0102042a
jmp 0x1015591
xor eax, eax
push eax
lea ecx, [ebp - 4]
call fcn.01014647
mov ebx, dword [ebp - 4]
test ebx, ebx
jne 0x10155d4
mov eax, dword [section..data]
cmp eax, section..data
je 0x10155ca
test byte [eax + 0x1c], 2
je 0x10155ca
push 0x1001f90
push 0x10018b8
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013fed
mov esi, 0x8007000e
jmp 0x1015675
push dword [edi + 0xc]
mov ecx, ebx
call fcn.01025ee9
mov esi, eax
test esi, esi
jge 0x101560c
mov eax, dword [section..data]
cmp eax, section..data
je 0x1015675
test byte [eax + 0x1c], 2
je 0x1015675
push esi
push 0x1001f68
push 0x10018b8
push 0x34
jmp 0x101552e
push dword [edi + 0xc]
mov ecx, ebx
call fcn.010276e8
mov esi, eax
test esi, esi
jge 0x1015640
mov eax, dword [section..data]
cmp eax, section..data
je 0x1015675
test byte [eax + 0x1c], 2
je 0x1015675
push esi
push 0x1001f34
push 0x10018b8
push 0x35
jmp 0x101552e
mov ecx, dword [ebp - 8]
push ebx
call fcn.01014eda
mov esi, eax
test esi, esi
jge 0x1015673
mov eax, dword [section..data]
cmp eax, section..data
je 0x1015675
test byte [eax + 0x1c], 2
je 0x1015675
push esi
push 0x1001ee8
push 0x10018b8
push 0x36
jmp 0x101552e
xor esi, esi
test edi, edi
je 0x1015692
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1015692
add eax, 0xc60
cmp word [eax], 0
je 0x1015692
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
push edi
call fcn.01014133
xor eax, eax
test esi, esi
setge al
test ebx, ebx
mov esi, eax
je 0x10156ae
push ebx
call fcn.01014231
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1015b8c
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp edi, esi
je 0x1015bb2
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1002244
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
cmp ebx, esi
je 0x1015c2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1015bf0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
xor ebx, ebx
call fcn.0101494a
mov esi, eax
test esi, esi
jge 0x1015c56
inc edi
cmp edi, 5
jl 0x1015ba1
test esi, esi
jge 0x1015c5d
mov eax, dword [section..data]
cmp eax, section..data
je 0x1015d0b
test byte [eax + 0x1c], 2
je 0x1015d0b
push esi
push 0x1002208
push 0x10018b8
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040e76
jmp 0x1015d0b
mov eax, dword [section..data]
cmp eax, section..data
je 0x1015c4f
test byte [eax + 0x1c], 2
je 0x1015c4f
push 0x10018b8
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141a1
mov esi, 0x80004005
jmp 0x1015ccd
mov esi, 0x40200
jmp 0x1015ccd
push 0x208
call fcn.0104b68d
test eax, eax
je 0x1015c74
mov ecx, eax
call fcn.01015710
jmp 0x1015c76
xor eax, eax
push eax
lea ecx, [ebp - 4]
call fcn.01014647
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x1015cd6
mov eax, dword [section..data]
cmp eax, section..data
je 0x1015caf
test byte [eax + 0x1c], 2
je 0x1015caf
push 0x10021d4
push 0x10018b8
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013fed
mov esi, 0x8007000e
test ebx, ebx
je 0x1015cbf
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x1015ccd
push dword [ebp - 4]
call fcn.01014231
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
push dword [ebp + 0xc]
push ebx
call fcn.01015a02
mov esi, eax
test esi, esi
jge 0x1015d09
mov eax, dword [section..data]
cmp eax, section..data
je 0x1015d0b
test byte [eax + 0x1c], 2
je 0x1015d0b
push esi
push 0x1002170
push 0x10018b8
push 0x19
jmp 0x1015c1b
xor esi, esi
test esi, esi
jge 0x1015cbf
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1015cb4
add ecx, 4
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x1015cbf

Function at 0x1016836
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
cmp dword [esi + 0x27c], 0
jne 0x101686f
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1016854
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x101686f
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [esi + 0x3c]
call edi
mov eax, dword [esi + 0x40]
test eax, eax
je 0x101686e
push 0
push eax
call edi
pop edi
and dword [esi + 0xc], 0
pop esi
ret