joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027d6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x620], ebx
je 0x402855
cmp dword [esi + 0x624], ebx
je 0x402855
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp eax, ebx
je 0x402850
cmp byte [eax], bl
je 0x402850
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
push ecx
lea ecx, [ebp + 8]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push 0x80000001
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402850
push dword [esi + 0x624]
push dword [esi + 0x620]
push 3
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402847
push 1
pop edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
jmp 0x402857
xor eax, eax
pop esi
pop ebx
leave
ret 8

Function at 0x403f01
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
je 0x403fb3
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x403fb3
cmp byte [eax], bl
je 0x403fb3
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x403fb3
push edi
push esi
call fcn.00418db5
mov edi, eax
xor al, al
cmp dword [ebp + 0x10], ebx
pop ecx
mov dword [ebp - 4], edi
je 0x403f5d
or al, 0xff
cmp esi, ebx
jbe 0x403f7b
mov dl, al
mov ecx, esi
mov dh, dl
mov eax, edx
shl eax, 0x10
mov ax, dx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 8]
push ebx
push eax
mov dword [ebp - 8], ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
pop edi
je 0x403fb3
push dword [ebp - 4]
call fcn.00418dde
pop ecx
pop esi
pop ebx
leave
ret 0xc

Function at 0x404dba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x404e14
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call fcn.004067d0
pop ecx
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x404e64
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp ecx, ebx
je 0x404f74
cmp byte [ecx], bl
je 0x404f74
cmp dword [ebp + 0x10], ebx
mov eax, str.open
je 0x404e92
mov eax, 0x432c70
push esi
push edi
push dword [ebp + 0xc]
push ebx
push ebx
push ecx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x404f6e
lea eax, [ebp - 0x208]
mov edi, 0x80000000
push eax
push str..htm
push edi
call fcn.00404dba
add esp, 0xc
test eax, eax
jne 0x404f6e
lea eax, [ebp - 0x208]
push str._shellopencommand
push eax
call fcn.004067e0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x208]
push eax
push edi
call fcn.00404dba
add esp, 0x14
test eax, eax
jne 0x404f6e
lea eax, [ebp - 0x208]
push str.__1_
push eax
call fcn.00407095
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x404f43
lea eax, [ebp - 0x208]
push 0x432c48
push eax
call fcn.00407095
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x404f43
lea eax, [ebp - 0x208]
push eax
call fcn.004068c0
pop ecx
lea esi, [ebp + eax - 0x209]
jmp 0x404f45
mov byte [esi], bl
push 0x432c44
push esi
call fcn.004067e0
push dword [ebp + 8]
push esi
call fcn.004067e0
add esp, 0x10
lea eax, [ebp - 0x208]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
mov eax, esi
pop edi
pop esi
jmp 0x404f77
push 0x24
pop eax
pop ebx
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406c80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407ebc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x406ca3
test byte [esp + 8], 2
je 0x406ca3
call fcn.00407f2f
mov dword [eax], 0xd
call fcn.00407f38
mov dword [eax], 5
jmp 0x406c7c
xor eax, eax
ret
Function at 0x40ab71
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x433778
cmp edx, dword [eax]
je 0x40ab93
add eax, 8
inc ecx
cmp eax, 0x433808
jl 0x40ab84
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x433778]
jne 0x40acc1
mov eax, dword [0x436448]
cmp eax, 1
je 0x40ac9b
test eax, eax
jne 0x40abc4
cmp dword [0x4332a4], 1
je 0x40ac9b
cmp edx, 0xfc
je 0x40acc1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40abfb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004067d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004068c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40ac3e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004068c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x420324
push edi
call fcn.00409760
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004067d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004067e0
lea eax, [ebp - 0xa0]
push 0x420304
push eax
call fcn.004067e0
push dword [esi + 0x43377c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004067e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040c1b7
add esp, 0x2c
pop edi
jmp 0x40acc1
lea eax, [ebp + 8]
lea esi, [esi + 0x43377c]
push 0
push eax
push dword [esi]
call fcn.004068c0
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 0x412ab0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00406a00
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x412b7b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x412b7b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x412b2e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x412b39
or bh, 8
and edi, 0x8000000
je 0x412b54
mov eax, dword [0x43805c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x412b7b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412f50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x412f7b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x412f9f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x412fba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x416a37
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x416a6f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00419340
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00419318
jmp 0x416a7b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x417fdc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41801e
call fcn.0041c07e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41801e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x418015
xor eax, eax
jmp 0x418026
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041802c
pop edi
pop esi
pop ebx
ret 4

Function at 0x41c8b3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41c8e1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41c8ff
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041c819
jmp 0x41c8ff
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41c8ff
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041c819
test edi, edi
mov eax, edi
jne 0x41c8e9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x6d6f40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f8000]
push edi
jmp 0x6d6f5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6d6f61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6d6f50
mov eax, 1
add ebx, ebx
jne 0x6d6f73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6d6f84
jne 0x6d6fa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6d6fa3
dec eax
add ebx, ebx
jne 0x6d6f90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6d6f68
add ebx, ebx
jne 0x6d6f9f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6d6ff5
xor ecx, ecx
sub eax, 3
jb 0x6d6fbb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6d702a
sar eax, 1
mov ebp, eax
jmp 0x6d6fc6
add ebx, ebx
jne 0x6d6fc6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6d6f94
inc ecx
add ebx, ebx
jne 0x6d6fd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6d6f94
add ebx, ebx
jne 0x6d6fe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6d6fd6
jne 0x6d6ff2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6d6fd6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6d7014
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6d7006
jmp 0x6d6f56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6d7014
add edi, ecx
jmp 0x6d6f56
pop esi
mov edi, esi
mov ecx, 0x87a8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6d7032
cmp byte [edi], 0x38
jne 0x6d7032
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6d7037
lea edi, [esi + 0x2d2000]
mov eax, dword [edi]
or eax, eax
je 0x6d70af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e9080]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e91ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6d7064
mov ecx, edi
jns 0x6d7093
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e91b0]
or eax, eax
je 0x6d70a9
mov dword [ebx], eax
add ebx, 4
jmp 0x6d7081
call dword [esi + 0x2e91c0]
mov ebp, dword [esi + 0x2e91b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6d70e3
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x4085a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x4085b5
pop dword [ebp - 0x2c]
mov eax, 0x4085b5
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xf74de02
add dword [ebp - 0x3c], 0x3edd6749
mov dword [ebp - 0x38], 0x451783bf
sub dword [ebp - 0x38], 0x12e4377a
mov dword [ebp - 0x34], 0x7486a99
sub dword [ebp - 0x34], 0xbafc266b
mov dword [ebp - 0x30], 0x66491dff
sub dword [ebp - 0x30], 0x66491dff
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x8dd34a6
add eax, 0xf764fbce
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xd833d1c9
sub dword [ebp - 0x3c], 0x63c16873
mov dword [ebp - 0x38], 0x50a6ed77
sub dword [ebp - 0x38], 0xf3a8c02
mov dword [ebp - 0x34], 0xfd086e58
sub dword [ebp - 0x34], 0x999901ec
mov dword [ebp - 0x30], 0x74699d3a
add dword [ebp - 0x30], 0x8b9662c6
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x94473227
sub eax, 0x94050103
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3aa38
push 0
call eax
mov ecx, 0x3bb3
mov edi, eax
mov esi, 0xfc2f7d63
add esi, 0x413c69d
add esi, dword [ebp - 0x2c]
mov ebx, 0xfb0aaf43
sub ebx, 0x58e840e7
xor dword [ebp - 0x20], 0x779714c1
mov edx, dword [esi]
sub dword [ebp - 0x14], eax
xor edx, ebx
sub dword [ebp - 0xc], 0xf43358d8
mov dword [edi], edx
mov dword [ebp - 0x14], 0x5b3c543a
add edi, 0x953e62b9
add edi, 0x6ac19d4b
add esi, 0x6c651c4b
add esi, 0x939ae3b9
loop 0x4086cc
add eax, 0x42ec4235
sub eax, 0x42eb6096
mov ebx, eax
add eax, 5
mov ecx, 0xf22b6245
add ecx, 0xe149dbb
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x4010a7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
jl 0x40123f
cmp dword [ebp + 0xc], 1
jg 0x40123f
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40123f
cmp byte [ebx], 0
je 0x40123f
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40123f
cmp byte [eax], 0
je 0x40123f
mov esi, 0x4090b4
push esi
push ebx
call fcn.00401c60
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x40112b
push str..exe
push ebx
call fcn.00401b50
pop ecx
pop ecx
push esi
push ebx
call fcn.00401c60
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x40112b
push 0x10
push str.Windows_Application
push str.Stack_Fault
jmp 0x40124b
push 2
push 0
push edi
call fcn.00401aa0
add esp, 0xc
push edi
call fcn.004018f0
mov esi, 0xa410
pop ecx
cmp eax, esi
jge 0x401160
push edi
call fcn.00401870
pop ecx
push 0x10
push str.Windows_Application
push str.Corrupt_File_r_n_r_nThis_file_has_been_damaged_or_corrupted
jmp 0x40124b
push 0x409050
push dword [ebp + 0x10]
call fcn.00401c60
pop ecx
mov dword [ebp + 0x10], eax
pop ecx
push 0
push esi
push edi
call fcn.00401aa0
add esp, 0xc
lea eax, [ebp - 4]
push edi
push 1
pop esi
push esi
push 4
push eax
call fcn.00401730
add esp, 0x10
cmp dword [ebp + 0xc], esi
jne 0x4011ae
mov eax, dword [ebp - 4]
push esi
inc eax
push eax
push edi
call fcn.00401aa0
add esp, 0xc
lea eax, [ebp - 4]
push edi
push esi
push 4
jmp 0x4011b4
push edi
push esi
push esi
lea eax, [ebp + 0xb]
push eax
call fcn.00401730
add esp, 0x10
push 0x1000
call fcn.00401680
cmp dword [ebp - 4], 0
pop ecx
push 1
mov ebx, eax
pop esi
je 0x401223
test esi, esi
je 0x401223
test byte [edi + 0xc], 0x10
jne 0x401223
mov eax, 0x1000
cmp dword [ebp - 4], eax
ja 0x4011ea
mov eax, dword [ebp - 4]
push edi
push eax
push 1
push ebx
call fcn.00401730
mov esi, eax
xor eax, eax
add esp, 0x10
cmp dword [ebp + 0xc], eax
jne 0x40120f
cmp esi, eax
jle 0x40120f
mov cl, byte [ebp + 0xb]
xor byte [eax + ebx], cl
inc eax
cmp eax, esi
jl 0x401204
push dword [ebp + 0x10]
push esi
push 1
push ebx
call fcn.00401530
add esp, 0x10
sub dword [ebp - 4], esi
jne 0x4011d3
push ebx
call fcn.004014e0
pop ecx
push dword [ebp + 0x10]
call fcn.00401870
pop ecx
push edi
call fcn.00401870
pop ecx
push 1
pop eax
jmp 0x401255
push 0x10
push str.Windows_Application
push str.Internal_Error
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012c1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov al, byte [0x40ba50]
push ebx
push esi
push edi
push 0x1f
mov byte [ebp - 0x94], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x93]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1d8]
push eax
call fcn.0040125a
pop ecx
xor esi, esi
push esi
call fcn.00401c80
pop ecx
push eax
call fcn.00401410
pop ecx
call fcn.00401295
mov edi, dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, 0x80
test al, al
jne 0x401379
lea eax, [ebp - 0xd8]
push esi
push eax
call fcn.00401000
pop ecx
lea eax, [ebp - 0x94]
pop ecx
push ebx
push eax
call fcn.0040102d
pop ecx
lea eax, [ebp - 0x94]
pop ecx
push eax
lea eax, [ebp - 0x1d8]
push esi
push eax
call fcn.004010a7
add esp, 0xc
test eax, eax
je 0x401406
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xd8]
push eax
push esi
push esi
push 8
push 1
push esi
lea eax, [ebp - 0x94]
push esi
push eax
lea eax, [ebp - 0x94]
push eax
call edi
lea eax, [ebp - 0xd8]
push 0xa
push eax
call fcn.00401000
pop ecx
lea eax, [ebp - 0x94]
pop ecx
push ebx
push eax
call fcn.0040102d
pop ecx
lea eax, [ebp - 0x94]
pop ecx
push eax
lea eax, [ebp - 0x1d8]
push 1
push eax
call fcn.004010a7
add esp, 0xc
test eax, eax
je 0x401406
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xd8]
push eax
push esi
push esi
push esi
push 1
push esi
lea eax, [ebp - 0x94]
push esi
push eax
lea eax, [ebp - 0x94]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x401406
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0x103
je 0x401406
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
jmp 0x4013e3
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x401db0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4080e8
push 0x4045f8
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 [0x40ba94], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40ba90], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40ba8c], ecx
shr eax, 0x10
mov dword [0x40ba88], eax
call fcn.004021b0
test eax, eax
jne 0x401e1a
push 0x1c
call fcn.00401f80
add esp, 4
mov dword [ebp - 4], 0
call fcn.00403310
call fcn.004044f0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40d054], eax
call fcn.00403eb0
mov dword [0x40ba70], eax
test eax, eax
je 0x401e4d
mov eax, dword [0x40d054]
test eax, eax
jne 0x401e57
push 0xffffffffffffffff
call fcn.004020a0
add esp, 4
call fcn.00403c00
call fcn.00403b10
call fcn.00402070
mov esi, dword [0x40d054]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401f36
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401e9e
test al, al
je 0x401e9e
and eax, 0xff
push eax
call fcn.00403ab0
add esp, 4
test eax, eax
je 0x401e78
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401e78
cmp byte [esi], 0x22
jne 0x401ea7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401eb7
cmp al, 0x20
ja 0x401eb7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401ea7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401ed8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401edd
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.004020a0
jmp 0x401f1b
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 0x401ea7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401f36

Function at 0x401f80
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40ba78], 1
jne 0x401f8e
call fcn.004046d0
mov eax, dword [esp + 4]
push eax
call fcn.00404710
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4020e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40bac4]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4020ff
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 [0x40bac0], 1
mov byte [0x40babc], bl
jne 0x402159
mov ecx, dword [0x40d04c]
test ecx, ecx
je 0x402147
mov esi, dword [0x40d048]
sub esi, 4
cmp esi, ecx
jb 0x402147
mov eax, dword [esi]
test eax, eax
je 0x402140
call eax
mov ecx, dword [0x40d04c]
sub esi, 4
cmp esi, ecx
jae 0x402132
push 0x40901c
push 0x409014
call fcn.00402190
add esp, 8
push 0x409024
push 0x409020
call fcn.00402190
add esp, 8
test ebx, ebx
jne 0x402180
push ebp
mov dword [0x40bac4], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret