joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4051a0
Capabilities:
Delete file
Enumerate processes
Set file attributes

Disassembly:
sub esp, 0x33c
mov eax, dword [0x4151a8]
push esi
push edi
mov dword [esp + 0x340], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x348]
push eax
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
xor eax, eax
push eax
mov dword [esp + 0x14], 0x128
mov ecx, 0x49
lea edi, [esp + 0x18]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
mov dword [esp + 8], esi
je 0x405347
lea edx, [esp + 0x138]
push edx
call fcn.00401e40
add esp, 4
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x405340
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x405340
push ebx
mov bl, byte [esp + 0x350]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x3c]
push edx
xor esi, esi
call ebp
mov edi, eax
test edi, edi
jle 0x405277
jmp 0x405260
movsx eax, byte [esp + esi + 0x3c]
push eax
call fcn.004087d8
add esp, 4
mov byte [esp + esi + 0x3c], al
inc esi
cmp esi, edi
jl 0x405260
lea ecx, [esp + 0x3c]
push ecx
xor esi, esi
call ebp
lea edx, [esp + 0x140]
push edx
mov edi, eax
call ebp
cmp edi, eax
jne 0x405323
test edi, edi
jle 0x4052b2
jmp 0x4052a0
mov al, byte [esp + esi + 0x3c]
cmp al, byte [esp + esi + 0x140]
jne 0x405323
inc esi
cmp esi, edi
jl 0x4052a0
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x14], eax
je 0x405323
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x405323
push 0x104
lea ecx, [esp + 0x248]
push ecx
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
push 0
push esi
call dword [0x415fdc]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp bl, 1
jne 0x405323
push 0x80
lea edx, [esp + 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x405247
mov esi, dword [esp + 0x10]
pop ebp
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x340]
pop edi
pop esi
call fcn.004088de
add esp, 0x33c
ret
Function at 0x406230
Capabilities:
Create thread

Disassembly:
mov al, byte [0x417391]
test al, al
jne 0x40624e
push 0
push 0
push 0
push 0x4060d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 4]
mov dword [0x41739c], eax
mov al, 1
ret
Function at 0x407740
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x407784
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
cmp dword [edx + ecx], 0x4550
je 0x407788
xor eax, eax
jmp 0x4077ea
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
cmp dword [ecx], 0x4550
je 0x4077a7
xor eax, eax
jmp 0x4077ea
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, 4
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, 0x14
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
movzx edx, word [ecx]
cmp edx, 0x10b
je 0x4077d5
xor eax, eax
jmp 0x4077ea
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, 0xe0
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408020
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push esi
push edi
lea edi, [ebp - 0xf4]
mov ecx, 0x3d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov esi, esp
lea eax, [ebp - 8]
push eax
push 0x20
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.004094f8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp esi, esp
call fcn.004094f8
test eax, eax
je 0x4080c5
mov esi, esp
lea eax, [ebp - 0x30]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
cmp esi, esp
call fcn.004094f8
test eax, eax
je 0x4080c5
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 2
mov esi, esp
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp esi, esp
call fcn.004094f8
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004094f8
push edx
mov ecx, ebp
push eax
lea edx, [0x4080fd]
call fcn.0040951b
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xf4
cmp ebp, esp
call fcn.004094f8
mov esp, ebp
pop ebp
ret
Function at 0x408150
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xf0]
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov esi, esp
lea eax, [ebp - 0x14]
push eax
push 0x28
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.004094f8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp esi, esp
call fcn.004094f8
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 2
mov esi, esp
lea eax, [ebp - 0x28]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
cmp esi, esp
call fcn.004094f8
mov esi, esp
push 0
push 0
push 0x10
lea eax, [ebp - 0x2c]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp esi, esp
call fcn.004094f8
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x408207]
call fcn.0040951b
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xf0
cmp ebp, esp
call fcn.004094f8
mov esp, ebp
pop ebp
ret
Function at 0x409198
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4124f8
call fcn.00409cd0
mov edi, 0x94
mov eax, edi
call fcn.00408a70
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x49b54c], ecx
mov eax, dword [esi + 4]
mov dword [0x49b558], eax
mov edx, dword [esi + 8]
mov dword [0x49b55c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x49b550], esi
cmp ecx, 2
je 0x4091f8
or esi, 0x8000
mov dword [0x49b550], esi
shl eax, 8
add eax, edx
mov dword [0x49b554], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x409233
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409233
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40924b
cmp eax, 0x20b
je 0x409238
mov dword [ebp - 0x1c], esi
jmp 0x40925f
cmp dword [ecx + 0x84], 0xe
jbe 0x409233
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x409259
cmp dword [ecx + 0x74], 0xe
jbe 0x409233
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00409e98
pop ecx
test eax, eax
jne 0x40928b
cmp dword [0x49b49c], 1
jne 0x409278
call fcn.0040c9c6
push 0x1c
call fcn.0040c84f
push 0xff
call fcn.0040c67c
pop ecx
pop ecx
call fcn.0040d16f
mov dword [ebp - 4], esi
call fcn.0040cfc4
test eax, eax
jge 0x4092a4
push 0x1b
call fcn.00409173
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x49cb14], eax
call fcn.0040cea2
mov dword [0x49b494], eax
call fcn.0040ce00
test eax, eax
jge 0x4092ca
push 8
call fcn.00409173
pop ecx
call fcn.0040cbcd
test eax, eax
jge 0x4092db
push 9
call fcn.00409173
pop ecx
push 1
call fcn.0040c6ac
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4092f1
push eax
call fcn.00409173
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040cb70
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x409312
movzx eax, word [ebp - 0x40]
jmp 0x409315
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00406fb0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x409333
push edi
call fcn.0040c7d7
call fcn.0040c7f9
jmp 0x409365
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00409d0b
ret
Function at 0x40bb3e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40bb6c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40bb73
cmp ebx, dword [eax + 4]
jae 0x40bb73
xor eax, eax
jmp 0x40bd63
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40bb84
xor eax, eax
inc eax
jmp 0x40bd62
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40bb9a
cmp ecx, edx
jae 0x40bcdf
cmp dword [eax + 4], 0
je 0x40bba3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40bb8b
cmp dword [ebp + 8], 0
je 0x40bbc5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40bcdf
cmp eax, esi
jae 0x40bcdf
mov eax, dword [0x49b4e0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40bbea
cmp dword [esi*4 + 0x49b4e8], edi
je 0x40bce3
inc esi
cmp esi, eax
jl 0x40bbd8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40bd5f
cmp dword [ebp - 8], 0x1000000
jne 0x40bd5f
test byte [ebp - 0xc], 0xcc
je 0x40bc68
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40bd5f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40bd5f
cmp word [eax + 0x18], 0x10b
jne 0x40bd5f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40bd5f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40bc68
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40bc68
test byte [ecx + 0x27], 0x80
jne 0x40bcdf
push 1
push 0x49b528
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40bb7c
mov ecx, dword [0x49b4e0]
test ecx, ecx
mov edx, ecx
jle 0x40bc9c
lea eax, [ecx*4 + 0x49b4e4]
cmp dword [eax], edi
je 0x40bc9c
dec edx
sub eax, 4
test edx, edx
jg 0x40bc90
test edx, edx
jne 0x40bccd
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40bca9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40bcc1
lea eax, [edx*4 + 0x49b4e8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40bcaf
cmp ecx, 0x10
jge 0x40bccd
inc ecx
mov dword [0x49b4e0], ecx
push 0
push 0x49b528
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40bb7c
xor eax, eax
jmp 0x40bd62
test esi, esi
jle 0x40bb7c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x49b528
call ebx
test eax, eax
jne 0x40bb7c
cmp dword [esi*4 + 0x49b4e8], edi
je 0x40bd39
mov eax, dword [0x49b4e0]
lea esi, [eax - 1]
test esi, esi
jl 0x40bd27
cmp dword [esi*4 + 0x49b4e8], edi
je 0x40bd23
dec esi
jns 0x40bd17
test esi, esi
jge 0x40bd37
cmp eax, 0x10
jge 0x40bd32
inc eax
mov dword [0x49b4e0], eax
lea esi, [eax - 1]
jmp 0x40bd39
je 0x40bd51
xor ecx, ecx
test esi, esi
jl 0x40bd51
lea eax, [ecx*4 + 0x49b4e8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40bd3f
push 0
push 0x49b528
call ebx
jmp 0x40bb7c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c716
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x49b58c], esi
push edi
jne 0x40c736
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x49b588], esi
mov byte [0x49b584], al
jne 0x40c79c
mov ecx, dword [0x49cae8]
test ecx, ecx
je 0x40c77d
mov eax, dword [0x49cae4]
sub eax, 4
cmp eax, ecx
jmp 0x40c776
mov eax, dword [eax]
test eax, eax
je 0x40c768
call eax
mov eax, dword [0x49cae4]
sub eax, 4
cmp eax, dword [0x49cae8]
mov dword [0x49cae4], eax
jae 0x40c760
mov eax, 0x415030
mov esi, 0x415038
cmp eax, esi
mov edi, eax
jae 0x40c79c
mov eax, dword [edi]
test eax, eax
je 0x40c795
call eax
add edi, 4
cmp edi, esi
jb 0x40c78d
mov eax, 0x41503c
mov esi, 0x415044
cmp eax, esi
mov edi, eax
jae 0x40c7bb
mov eax, dword [edi]
test eax, eax
je 0x40c7b4
call eax
add edi, 4
cmp edi, esi
jb 0x40c7ac
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40c7d5
push dword [ebp + 8]
mov dword [0x49b58c], 1
call fcn.0040c67c
pop ebp
ret

Function at 0x40c84f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4151a8]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x415250]
je 0x40c884
inc eax
cmp eax, 0x13
jb 0x40c875
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x415250]
jne 0x40c9aa
mov eax, dword [0x49b49c]
cmp eax, 1
je 0x40c982
cmp eax, edx
jne 0x40c8b4
cmp dword [0x4151c4], 1
je 0x40c982
cmp ecx, 0xfc
je 0x40c9aa
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c8ea
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040d200
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040d300
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40c91e
mov eax, edi
push eax
call fcn.0040d300
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x412ab4
push edi
call fcn.0040e1a0
add esp, 0x10
push edi
call fcn.0040d300
push dword [esi + 0x415254]
mov ebx, eax
call fcn.0040d300
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00408a70
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040d200
push edi
push ebx
call fcn.0040d210
push 0x412ab0
push ebx
call fcn.0040d210
push dword [esi + 0x415254]
push ebx
call fcn.0040d210
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040e0a0
add esp, 0x2c
jmp 0x40c9aa
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x415254]
push dword [esi]
call fcn.0040d300
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004088de
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40de03
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00408a70
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40de9e
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x49b54c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40de9e
cmp eax, 1
je 0x40debf
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40de9e
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40de6b
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40de9a
xor eax, eax
inc eax
jmp 0x40dede
cmp edi, eax
jae 0x40dea2
xor eax, eax
jmp 0x40dede
cmp eax, esi
jae 0x40dea9
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x49b54c]
jmp 0x40dec2
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e0a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x49b6c8], ebx
push esi
push edi
jne 0x40e120
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40e15b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x49b6c8], eax
je 0x40e15b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x49b6cc], eax
call esi
cmp dword [0x49b54c], 2
mov dword [0x49b6d0], eax
jne 0x40e120
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x49b6d8], eax
je 0x40e120
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x49b6d4], eax
mov eax, dword [0x49b6d4]
test eax, eax
je 0x40e165
call eax
test eax, eax
je 0x40e14c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x49b6d8]
test eax, eax
je 0x40e14c
test byte [ebp - 8], 1
jne 0x40e165
cmp dword [0x49b558], 4
jb 0x40e15f
or byte [ebp + 0x12], 0x20
jmp 0x40e184
xor eax, eax
jmp 0x40e194
or byte [ebp + 0x12], 4
jmp 0x40e184
mov eax, dword [0x49b6cc]
test eax, eax
je 0x40e184
call eax
mov ebx, eax
test ebx, ebx
je 0x40e184
mov eax, dword [0x49b6d0]
test eax, eax
je 0x40e184
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x49b6c8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e350
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x49c9c4]
mov eax, dword [0x4151a8]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x40e516
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x49c9e0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x40e516
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x40e3ba
xor eax, eax
jmp 0x40e52a
test al, 0x20
je 0x40e3cb
push 2
push edi
push edi
push ecx
call fcn.0040fc15
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40e4a0
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x40e4e7
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x40e42d
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40e41e
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40e400
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e46d
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40e479
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x40e3f4
jmp 0x40e47b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x40e511
cmp dword [ebp + 0x3a4], edi
je 0x40e4e7
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x40e4d9
mov dword [0x49b544], eax
jmp 0x40e51d
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e4cb
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x40e47b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x40e47b
push dword [ebp + 0x3a4]
call fcn.0040fb00
pop ecx
jmp 0x40e527
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40e4ff
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x40e3b3
mov dword [0x49b540], 0x1c
mov dword [0x49b544], edi
jmp 0x40e527
sub eax, dword [ebp - 0x7c]
jmp 0x40e52a
and dword [0x49b544], 0
mov dword [0x49b540], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.004088de
add ebp, 0x39c
leave
ret
Function at 0x100015c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4d4
mov eax, dword [0x1007f018]
xor eax, esp
mov dword [esp + 0x4d0], eax
push ebx
push esi
lea eax, [esp + 0xc]
push edi
push eax
call dword [sym.imp.MSVCR100.dll__time64]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCR100.dll__localtime64]
add esp, 8
xor ebx, ebx
mov esi, eax
mov edx, 0x47
xor ecx, ecx
mov al, byte [ecx + 0x100743e4]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [esp + ecx + 0x20], al
jns 0x1000161e
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0x15
jl 0x10001601
push esi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x40]
push 0x50
push edx
mov byte [esp + 0x45], bl
call dword [sym.imp.MSVCR100.dll_strftime]
push 0x1f3
lea eax, [esp + 0x2f5]
push ebx
push eax
mov byte [esp + 0x2fc], bl
call sub.MSVCR100.dll_memset
lea eax, [esp + 0x2fc]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001662
sub eax, edx
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
mov ecx, 0x1f4
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x2ec]
push edx
call dword [sym.imp.MSVCR100.dll__vsnprintf]
push 0x257
lea eax, [esp + 0x9d]
push ebx
push eax
mov byte [esp + 0xa4], bl
call sub.MSVCR100.dll_memset
lea ecx, [esp + 0x2fc]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xb0]
push ecx
mov dword [esp + 0x44], 0x25207325
mov word [esp + 0x48], 0xa73
mov byte [esp + 0x4a], bl
call dword [sym.imp.MSVCR100.dll_sprintf]
mov eax, dword [0x1008ff98]
add esp, 0x14
mov ecx, esp
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], ebx
mov ecx, 0x100935b0
mov dword [esp + 0x30], esp
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::seekp_class_std::fpos_int__]
lea eax, [esp + 0x88]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001708
sub eax, edx
mov edi, eax
xor ecx, ecx
cmp edi, ebx
jle 0x10001751
mov eax, 0x1008d278
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10001721
sub eax, esi
mov esi, dword [0x1008ff98]
mov ebx, eax
xor edx, edx
mov eax, esi
div ebx
inc ecx
inc esi
mov dl, byte [edx + 0x1008d278]
xor byte [esp + ecx + 0x87], dl
cmp ecx, edi
jl 0x10001732
mov dword [0x1008ff98], esi
mov eax, edi
cdq
push edx
push eax
lea eax, [esp + 0x90]
push eax
mov ecx, 0x100935b0
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
mov ecx, dword [esp + 0x4dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001b930
mov esp, ebp
pop ebp
ret