joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010530
Capabilities:
Create thread
Terminate process

Disassembly:
dec ebp
call 0x100d7e04
jne 0x1001049a
mov edx, dword [ebp - 0x18]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x18], 0
jne 0x100104ba
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jae 0x1001047b
mov eax, dword [0x8458b58]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
call fcn.10010300
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
push eax
xor eax, eax
je 0x10010548
jae 0x100104e0
mov eax, dword [0x8458b58]
pop eax
mov eax, dword [ebp + 8]
push eax
push 0x1f47
mov ecx, dword [ebp - 0xc]
add ecx, 0x13c
call fcn.10004ab0
test eax, eax
je 0x1001057c
mov ecx, dword [ebp + 8]
push ecx
push 0x1f53
mov ecx, dword [ebp - 0xc]
add ecx, 0x28
call fcn.10004ab0
test eax, eax
jne 0x10010581
jmp 0x10010675
mov ecx, dword [ebp - 0xc]
call fcn.10010680
test eax, eax
je 0x10010675
mov dword [ebp - 8], 0
xor edx, edx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x100104d0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
push 0x10010500
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push 0
lea edx, [ebp - 8]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
jne 0x100105fb
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x14], 0
jne 0x1001061b
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0xc], 0
jne 0x1001063b
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 0
jne 0x1001065b
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10010680
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
hlt
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
push eax
xor eax, eax
je 0x10010698
jae 0x10010630
mov eax, dword [0xf445c758]
or al, 0
add byte [eax], al
pop eax
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x20], eax
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x14
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x100106e1
xor eax, eax
jmp 0x10010807
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x14]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
jne 0x100106fb
xor eax, eax
jmp 0x10010807
push 2
push 0
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10010733
xor eax, eax
jmp 0x10010807
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x1c], eax
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1001077f
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
push eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
jne 0x10010786
xor eax, eax
jmp 0x10010807
push 2
push 0
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x100107bb
xor eax, eax
jmp 0x10010807
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
call fcn.10010810
test eax, eax
jne 0x100107d8
xor eax, eax
jmp 0x10010807
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1c]
push ecx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
je 0x100107fe
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x20]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
jne 0x10010802
xor eax, eax
jmp 0x10010807
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010810
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended
Query environment variable

Disassembly:
add dword [eax], edx
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
push edi
mov dword [ebp - 0x15c], ecx
push eax
xor eax, eax
je 0x1001082e
jae 0x100107c6
mov eax, dword [0x11b958]
add byte [eax], al
pop eax
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x148]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x148], 0x44
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x114], 0
mov word [ebp - 0x116], 0
mov dword [ebp - 0x11c], 0x101
mov eax, dword [ebp - 0x15c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp - 0x15c]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x108], edx
mov word [ebp - 0x118], 0
push 0x104
lea eax, [ebp - 0x104]
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x100108c4
xor eax, eax
jmp 0x10010940
mov edi, 0x1001465c
lea edx, [ebp - 0x104]
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
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
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]
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x148]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea edx, [ebp - 0x104]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1001092c
xor eax, eax
jmp 0x10010940
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
mov dword [eax + 0x24], ecx
mov eax, 1
Function at 0x10010b10
Capabilities:
Create thread
Delete file

Disassembly:
pushal
add dword [eax], edx
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
jmp 0x10010a9d
add byte [eax], al
jae 0x10010a5a
mov eax, dword [0x46e8b958]
add dword [eax], edx
call fcn.100023a0
pop edi
pop esi
pop ebx
pop ebp
ret
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push eax
xor eax, eax
je 0x10010b25
jae 0x10010abd
mov eax, dword [0x411b958]
add byte [eax], al
pop eax
mov ecx, 0x411
mov esi, dword [ebp + 8]
mov edi, section.Share
rep movsd dword es:[edi], dword [esi]
push 0x2000000
push 1
push str.WinSta0
call dword [sym.imp.USER32.dll_OpenWindowStationA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10010b5a
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
push 0x2000000
push 1
push 1
push str.Default
call dword [sym.imp.USER32.dll_OpenDesktopA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10010b81
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_SetThreadDesktop]
mov byte [ebp - 0xc], 0
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
push 0xc
lea eax, [ebp - 0xc]
push eax
push 0x10015806
call fcn.1000a3b0
add esp, 0xc
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10010bcb
cmp dword [ebp - 4], 0
je 0x10010bcb
lea edx, [ebp - 0xc]
push edx
push 0x10015b06
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 4]
mov dword [0x10016038], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x10016034], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x10016030], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x1001601c], eax
cmp dword [0x10015008], 0
je 0x10010c13
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10015606
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x1001500c], 0
jbe 0x10010c21
call fcn.10009040
push 0
push 0
push 0x10010ab0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
push 0
mov ecx, dword [0x1001601c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10010ca6
push 0
push 0
push 0
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x10010ca6
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
sub dword [ebp - 0x38], 0x5b6
cmp dword [ebp - 0x38], 0
je 0x10010c7f
sub dword [ebp - 0x38], 3
cmp dword [ebp - 0x38], 0
je 0x10010c8e
jmp 0x10010ca4
mov edx, dword [0x1001601c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x10010ca4
mov eax, dword [0x1001601c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0x100146e8
call fcn.10002da0
jmp 0x10010c33
mov ecx, 0x10014758
call fcn.10004c50
cmp dword [0x1001500c], 0
jbe 0x10010cbe
Function at 0x4027b0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40ffa0], 2
je 0x4027be
call fcn.00406f30
mov eax, dword [esp + 4]
push eax
call fcn.00406f70
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4061c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x41001c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4061df
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 [0x410018], 1
mov byte [0x410014], bl
jne 0x406239
mov ecx, dword [0x410404]
test ecx, ecx
je 0x406227
mov esi, dword [0x410400]
sub esi, 4
cmp esi, ecx
jb 0x406227
mov eax, dword [esi]
test eax, eax
je 0x406220
call eax
mov ecx, dword [0x410404]
sub esi, 4
cmp esi, ecx
jae 0x406212
push 0x40d020
push 0x40d018
call fcn.00406270
add esp, 8
push 0x40d02c
push 0x40d024
call fcn.00406270
add esp, 8
test ebx, ebx
jne 0x406260
push ebp
mov dword [0x41001c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4067c0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x410130]
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 0x406802
call edi
mov esi, eax
test esi, esi
je 0x4067ec
mov eax, 1
jmp 0x4067fd
call ebp
mov ebx, eax
test ebx, ebx
je 0x40690f
mov eax, 2
mov dword [0x410130], eax
cmp eax, 1
jne 0x4068a2
test esi, esi
jne 0x40681b
call edi
mov esi, eax
test esi, esi
je 0x40690f
cmp word [esi], 0
mov eax, esi
je 0x406835
add eax, 2
cmp word [eax], 0
jne 0x406823
add eax, 2
cmp word [eax], 0
jne 0x406823
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 0x406894
push edi
call fcn.00405450
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x406894
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 0x406886
push ebx
call fcn.00404c70
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 0x40690f
test ebx, ebx
jne 0x4068b3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40690f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4068cb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4068bb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4068bb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00405450
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4068ed
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 0x406f70
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40d630
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x406f94
add eax, 8
inc ebp
cmp eax, 0x40d6c0
jb 0x406f85
cmp ecx, dword [ebp*8 + 0x40d630]
jne 0x40713b
mov eax, dword [0x40ffa0]
cmp eax, 1
je 0x4070fd
test eax, eax
jne 0x406fc0
cmp dword [0x40d1ac], 1
je 0x4070fd
cmp ecx, 0xfc
je 0x40713b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406ffb
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 0x407044
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 0x40c554
add ebx, ecx
push ebx
call fcn.00409e40
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, 0x40c534
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 + 0x40d634]
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.00409db0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x411440]
test eax, eax
je 0x40710e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x407118
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40d634]
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 0x4091f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x411540]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40939d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x411440]
lea edi, [ecx*4 + 0x411440]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40939d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40925e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40926f
push 2
push ebp
push eax
call fcn.00404f30
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4093ce
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x409319
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4092ca
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4092b7
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 0x40929a
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 0x4093bf
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x409315
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x409296
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40938e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x409362
cmp eax, 5
jne 0x40934b
mov dword [0x40ffd8], eax
mov dword [0x40ffd4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00408ec0
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 0x409382
cmp byte [ebp], 0x1a
jne 0x409382
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40ffd4], 0x1c
jmp 0x4093a7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40ffd4], 9
pop edi
pop esi
pop ebp
mov dword [0x40ffd8], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x409315
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 0x4093ff
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x409319
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x409319
Function at 0x40b3d0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0040bc40
mov eax, dword [0x411540]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x40b532
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x411440]
test byte [edx + ecx*8 + 4], 1
je 0x40b532
push 1
push ebp
push ebx
call fcn.00404f30
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x40b53c
push 2
push ebp
push ebx
call fcn.00404f30
add esp, 0xc
cmp eax, 0xffffffff
je 0x40b53c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x40b4d8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.0040bbc0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x40b47f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004091f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x40b49b
sub esi, eax
test esi, esi
jle 0x40b4b1
jmp 0x40b470
cmp dword [0x40ffd8], 5
jne 0x40b4ae
mov dword [0x40ffd4], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.0040bbc0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00404f30
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x40b519
push 0
push ecx
push ebx
call fcn.00404f30
add esp, 0xc
push ebx
call fcn.00409140
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 0x40b519
mov dword [0x40ffd4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40ffd8], eax
push 0
push edi
push ebx
call fcn.00404f30
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x40ffd4], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x7c11c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2e7000]
push edi
jmp 0x7c11da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7c11e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c11d0
mov eax, 1
add ebx, ebx
jne 0x7c11f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7c11e8
jne 0x7c1204
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7c11e8
xor ecx, ecx
sub eax, 3
jb 0x7c1218
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7c128a
mov ebp, eax
add ebx, ebx
jne 0x7c1223
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x7c1230
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x7c1254
inc ecx
add ebx, ebx
jne 0x7c1240
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7c1235
jne 0x7c1251
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7c1235
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7c1274
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7c1265
jmp 0x7c11d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7c1274
add edi, ecx
jmp 0x7c11d6
pop esi
mov edi, esi
mov ecx, 0x58
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7c1292
cmp byte [edi], 1
jne 0x7c1292
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 0x7c1297
lea edi, [esi + 0x3bf000]
mov eax, dword [edi]
or eax, eax
je 0x7c1306
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3c5c74]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3c5ccc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7c12c4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3c5cd4]
or eax, eax
je 0x7c1300
mov dword [ebx], eax
add ebx, 4
jmp 0x7c12e1
call dword [esi + 0x3c5cd0]
mov ebp, dword [esi + 0x3c5cd8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
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 0x7c133a
sub esp, 0xffffff80
jmp 0x4016de