joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40510d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40d7f0], esi
push edi
jne 0x40512d
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 [0x40d7ec], esi
mov byte [0x40d7e8], al
jne 0x405193
mov ecx, dword [0x40ed8c]
test ecx, ecx
je 0x405174
mov eax, dword [0x40ed88]
sub eax, 4
cmp eax, ecx
jmp 0x40516d
mov eax, dword [eax]
test eax, eax
je 0x40515f
call eax
mov eax, dword [0x40ed88]
sub eax, 4
cmp eax, dword [0x40ed8c]
mov dword [0x40ed88], eax
jae 0x405157
mov eax, 0x40d024
mov esi, 0x40d02c
cmp eax, esi
mov edi, eax
jae 0x405193
mov eax, dword [edi]
test eax, eax
je 0x40518c
call eax
add edi, 4
cmp edi, esi
jb 0x405184
mov eax, 0x40d030
mov esi, 0x40d038
cmp eax, esi
mov edi, eax
jae 0x4051b2
mov eax, dword [edi]
test eax, eax
je 0x4051ab
call eax
add edi, 4
cmp edi, esi
jb 0x4051a3
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4051cc
push dword [ebp + 8]
mov dword [0x40d7f0], 1
call fcn.00405073
pop ebp
ret

Function at 0x406f9f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40d0f4]
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 + 0x40d520]
je 0x406fd4
inc eax
cmp eax, 0x13
jb 0x406fc5
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40d520]
jne 0x4070fa
mov eax, dword [0x40d79c]
cmp eax, 1
je 0x4070d2
cmp eax, edx
jne 0x407004
cmp dword [0x40d0fc], 1
je 0x4070d2
cmp ecx, 0xfc
je 0x4070fa
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 0x40703a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00408550
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00404ac0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40706e
mov eax, edi
push eax
call fcn.00404ac0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b57c
push edi
call fcn.00408c60
add esp, 0x10
push edi
call fcn.00404ac0
push dword [esi + 0x40d524]
mov ebx, eax
call fcn.00404ac0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00407960
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00408550
push edi
push ebx
call fcn.00408560
push 0x40b578
push ebx
call fcn.00408560
push dword [esi + 0x40d524]
push ebx
call fcn.00408560
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00408b60
add esp, 0x2c
jmp 0x4070fa
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40d524]
push dword [esi]
call fcn.00404ac0
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.0040469d
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x408b60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40d938], ebx
push esi
push edi
jne 0x408be0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x408c1b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40d938], eax
je 0x408c1b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40d93c], eax
call esi
cmp dword [0x40d7b0], 2
mov dword [0x40d940], eax
jne 0x408be0
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40d948], eax
je 0x408be0
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40d944], eax
mov eax, dword [0x40d944]
test eax, eax
je 0x408c25
call eax
test eax, eax
je 0x408c0c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40d948]
test eax, eax
je 0x408c0c
test byte [ebp - 8], 1
jne 0x408c25
cmp dword [0x40d7bc], 4
jb 0x408c1f
or byte [ebp + 0x12], 0x20
jmp 0x408c44
xor eax, eax
jmp 0x408c54
or byte [ebp + 0x12], 4
jmp 0x408c44
mov eax, dword [0x40d93c]
test eax, eax
je 0x408c44
call eax
mov ebx, eax
test ebx, ebx
je 0x408c44
mov eax, dword [0x40d940]
test eax, eax
je 0x408c44
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40d938]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408d84
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 0x408db2
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 0x408db9
cmp ebx, dword [eax + 4]
jae 0x408db9
xor eax, eax
jmp 0x408fa9
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x408dca
xor eax, eax
inc eax
jmp 0x408fa8
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x408de0
cmp ecx, edx
jae 0x408f25
cmp dword [eax + 4], 0
je 0x408de9
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x408dd1
cmp dword [ebp + 8], 0
je 0x408e0b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x408f25
cmp eax, esi
jae 0x408f25
mov eax, dword [0x40d950]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x408e30
cmp dword [esi*4 + 0x40d958], edi
je 0x408f29
inc esi
cmp esi, eax
jl 0x408e1e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408fa5
cmp dword [ebp - 8], 0x1000000
jne 0x408fa5
test byte [ebp - 0xc], 0xcc
je 0x408eae
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x408fa5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x408fa5
cmp word [eax + 0x18], 0x10b
jne 0x408fa5
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x408fa5
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x408eae
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x408eae
test byte [ecx + 0x27], 0x80
jne 0x408f25
push 1
push 0x40d998
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x408dc2
mov ecx, dword [0x40d950]
test ecx, ecx
mov edx, ecx
jle 0x408ee2
lea eax, [ecx*4 + 0x40d954]
cmp dword [eax], edi
je 0x408ee2
dec edx
sub eax, 4
test edx, edx
jg 0x408ed6
test edx, edx
jne 0x408f13
push 0xf
pop ebx
cmp ecx, ebx
jg 0x408eef
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x408f07
lea eax, [edx*4 + 0x40d958]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x408ef5
cmp ecx, 0x10
jge 0x408f13
inc ecx
mov dword [0x40d950], ecx
push 0
push 0x40d998
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x408dc2
xor eax, eax
jmp 0x408fa8
test esi, esi
jle 0x408dc2
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40d998
call ebx
test eax, eax
jne 0x408dc2
cmp dword [esi*4 + 0x40d958], edi
je 0x408f7f
mov eax, dword [0x40d950]
lea esi, [eax - 1]
test esi, esi
jl 0x408f6d
cmp dword [esi*4 + 0x40d958], edi
je 0x408f69
dec esi
jns 0x408f5d
test esi, esi
jge 0x408f7d
cmp eax, 0x10
jge 0x408f78
inc eax
mov dword [0x40d950], eax
lea esi, [eax - 1]
jmp 0x408f7f
je 0x408f97
xor ecx, ecx
test esi, esi
jl 0x408f97
lea eax, [ecx*4 + 0x40d958]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x408f85
push 0
push 0x40d998
call ebx
jmp 0x408dc2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4095cd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x40dc44]
push edi
jae 0x4097a2
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x40dc60]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x4097a2
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x409678
test dl, 2
jne 0x409678
test dl, 0x48
je 0x409642
cmp byte [eax + 5], 0xa
je 0x409642
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40968b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x409673
mov dword [0x40d7a8], ecx
jmp 0x4097a9
cmp eax, 0x6d
jne 0x40967f
xor eax, eax
jmp 0x4097b6
push eax
call fcn.0040520e
pop ecx
jmp 0x4097b3
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x40979d
test eax, eax
je 0x4096b2
cmp byte [ebx], 0xa
jne 0x4096b2
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4096bb
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x409797
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x409787
cmp al, 0xd
je 0x4096ed
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x409779
dec ecx
cmp dword [ebp - 8], ecx
jae 0x409707
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x409702
add dword [ebp - 8], 2
jmp 0x40975b
mov dword [ebp - 8], eax
jmp 0x409775
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40972f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x409775
cmp dword [ebp - 0x10], 0
je 0x409775
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x409750
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40975b
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x409778
cmp ebx, dword [ebp + 0xc]
jne 0x409760
cmp byte [ebp - 1], 0xa
jne 0x409760
mov byte [ebx], 0xa
jmp 0x409778
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00409ee0
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x409779
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x4096d1
jmp 0x409797
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x409797
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x4097b6
and dword [0x40d7a8], 0
mov dword [0x40d7a4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4099c9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40dc44]
mov eax, dword [0x40d0f4]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x409b8f
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40dc60]
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 0x409b8f
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x409a33
xor eax, eax
jmp 0x409ba3
test al, 0x20
je 0x409a44
push 2
push edi
push edi
push ecx
call fcn.0040a7ed
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x409b19
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x409b60
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x409aa6
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x409a97
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 0x409a79
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 0x409ae6
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x409af2
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x409a6d
jmp 0x409af4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x409b8a
cmp dword [ebp + 0x3a4], edi
je 0x409b60
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x409b52
mov dword [0x40d7a8], eax
jmp 0x409b96
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 0x409b44
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x409af4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x409af4
push dword [ebp + 0x3a4]
call fcn.0040520e
pop ecx
jmp 0x409ba0
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x409b78
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x409a2c
mov dword [0x40d7a4], 0x1c
mov dword [0x40d7a8], edi
jmp 0x409ba0
sub eax, dword [ebp - 0x7c]
jmp 0x409ba3
and dword [0x40d7a8], 0
mov dword [0x40d7a4], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040469d
add ebp, 0x39c
leave
ret
Function at 0x40a34e
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.00407960
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a3e9
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 [0x40d7b0]
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 0x40a3e9
cmp eax, 1
je 0x40a40a
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 0x40a3e9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40a3b6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40a3e5
xor eax, eax
inc eax
jmp 0x40a429
cmp edi, eax
jae 0x40a3ed
xor eax, eax
jmp 0x40a429
cmp eax, esi
jae 0x40a3f4
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 [0x40d7b0]
jmp 0x40a40d
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 0x40a88c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00407960
mov eax, dword [0x40d0f4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x40dc44]
mov dword [ebp - 4], eax
jae 0x40a9cf
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x40dc60]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40a9cf
push 1
push esi
push ebx
call fcn.00409ee0
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x40a9d9
push 2
push esi
push ebx
call fcn.00409ee0
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a9d9
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40a979
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00409f80
push 0x8000
push ebx
call fcn.0040a9e8
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x40a938
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.004099c9
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a956
sub edi, eax
test edi, edi
jg 0x40a92d
jmp 0x40a96c
cmp dword [0x40d7a8], 5
jne 0x40a969
mov dword [0x40d7a4], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0040a9e8
pop ecx
pop ecx
jmp 0x40a9b9
jge 0x40a9b9
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00409ee0
push ebx
call fcn.0040998d
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x40a9b9
mov dword [0x40d7a4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40d7a8], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00409ee0
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40a9dc
mov dword [0x40d7a4], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040469d
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401e5f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403100
push 0x401f9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4041c4], 0xffffffff
or dword [0x4041c8], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4041a8]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4041a4]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4041c0], eax
call fcn.00401f9d
cmp dword [0x4040b0], 0
jne 0x401ee2
push 0x401f9a
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00401f88
push 0x40401c
push 0x404018
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4041a0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40419c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x404014
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401040
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x4707ea
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0x66dbda
mov eax, dword fs:[0x53535353]
mov eax, dword [0x53535353]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6b21a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x64
cdq
pop ecx
idiv ecx
test eax, eax
jne 0x47082b
push dword [ebp + 8]
lea ecx, [esi + 0x4c]
call fcn.00467402
pop ecx
jmp 0x4708d7
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
cmp eax, ecx
jge 0x470852
test byte [esi + 0x68], 2
je 0x470852
push ecx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00461e72
and dword [esp + 0x38], 0
push eax
call fcn.0045e01d
test byte [esi + 0x3c], 4
je 0x470888
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0045d85a
xor edi, edi
inc edi
mov dword [esp + 0x38], edi
push dword [ebp + 8]
mov ecx, eax
call fcn.00467402
pop ecx
or dword [esp + 0x38], 0xffffffff
push 0
push edi
lea ecx, [esp + 0x18]
call fcn.004694f3
jmp 0x4708d7
push dword [ebp + 8]
lea ecx, [esi + 0x4c]
call fcn.00467402
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
pop ecx
push 0x64
cdq
pop ecx
idiv ecx
xor ebx, ebx
test eax, eax
jbe 0x4708d7
push ebx
call fcn.0045db86
push dword [ebp + 8]
mov edi, eax
lea ecx, [edi + 4]
call fcn.00467402
pop ecx
push dword [ebp + 8]
lea ecx, [edi + 0x20]
call fcn.00467402
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
pop ecx
push 0x64
cdq
pop ecx
idiv ecx
inc ebx
cmp ebx, eax
jb 0x4708a6
mov byte [esi + 0x48], 1
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48129c
Capabilities:
Encode data using xor

Disassembly:
call 0x14ba2700
rol bh, 0x46
invalid
inc esi
sbb byte [edi], al
mov dword [ebp - 4], esi
inc ax
insb byte es:[edi], dx
add byte [eax], bl
pop es
push esi
call fcn.0050e996
lea ebx, [eax]
add byte [eax + edi*4], al
push esi
dec esi
or dword [ebx + 0x508b0440], 0x14
jmp 0x4812c1
push 0x2001f
push edi
push edx
pop ds
add byte [edx], al
add byte [edi + 0x52], dl
push eax
mov eax, dword [ecx + 0x14]
xor eax, dword [eax]
call 0xe5d31cc9
je 0x4812c2
dec ecx
add byte [eax + 0x5f], al
invalid

Function at 0x48b7df
Capabilities:
Encode data using xor

Disassembly:
jmp 0x48b7dd
or byte [ebx + edi], al
pop es
dec ebp
pop ss
and al, 0xe2
or eax, 0xe8b0446
pop ebp
sub eax, dword [edi + 4]
add byte [eax - 1], al
mov al, byte [0x2ebec83]
push es
dec esi
jne 0x48b805
mov eax, dword [eax]
dec eax
inc ebp
Function at 0x4994f9
Capabilities:
Encode data using xor

Disassembly:
mov esp, 0x15a89a16
add byte [ebp + 0x5d], al
or byte [ebx], dh
add byte [ebp - 0x5cbc76fd], cl
mov dword [ebp - 4], eax
add byte [eax], al
adc byte [ebx + 0xca50017], cl
jne 0x4994d4
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 8]
push eax
movsd dword es:[edi], dword [esi]
call fcn.00499dca
jmp 0x4994e0
or byte [eax], al
add bl, ch
pop es
adc al, 0x10
push ebx
call 0xe914a56c
imul ebp, ebx, 0x56fe8414
call 0xe90ca541
aaa
test eax, 0x14b82415
call 0x66127a
add byte [ecx + ecx*4], cl
mov dword [ebx + 0x75], eax
push ebx
call 0x845e804e
invalid
mov ebx, dword [ebp + 0x24]
push esi
push edi
inc ebp
clc
mov eax, dword [ebp + 0x1c]
push edi
mov eax, dword [edi]
pop es
and byte [eax], al
jnp 0x49955e
add byte [ebp - 8], dh
jne 0x499509
add byte [ebp + eax + 0x39], dh
jge 0x49950f
je 0x49951e
call fcn.005ec5ca
cmp dword [ebp - 4], ebx
je 0x49953a
lea esi, [ebp - 8]
call 0xc349bdc1
cld
dec ebp
adc byte [ebx], al
enter 0x55ff, 0xc
call 0x9a7818
jmp 0x49950e
add byte [edx], al
add byte [eax], al
movsd dword es:[edi], dword [esi]
or al, 0x8b
clc
jne 0x49954c
movsd dword es:[edi], dword [esi]
add byte [ebx - 0x7c3c1bba], cl
jge 0x499569
sbb al, 0
add byte [ecx + ecx*4], cl
add byte [eax], al
or al, 0x89
mov dword [ebx + 0x75], eax
cld
inc ebx
jne 0x499550
dec ebp
adc byte [esi], dl
test byte [eax], 0x57
inc ebp
clc
mov eax, dword [ebp + 0xc]
push edi
inc ebp
or al, 0x57
mov eax, dword [edi]
adc al, 0x89
inc ebp
hlt
clc
cmp eax, edi
call 0xf4c71894
add bh, bh
inc edi
call 0xdc5ec5ca
sahf
call 0xce8fe677
cmp dword [ebp - 0xc], 0
inc dword [edi - 0x18]
push ecx
xor byte [0xf8e89edc], dl
push eax
inc esi
into
call 0xdc499ff5
sahf
call 0xa6d7e7e
add ah, bl
cmp dword [ebp - 0xc], edi
jne 0x49956e
pop edi
mov dword [ebx], esi
mov eax, ebx
dec ecx
ret

Function at 0x50bcbe
Capabilities:
Encode data using xor

Disassembly:
call 0x6c910561
call 0xf6ae694f
dec dword [ecx + 0x1d08b08]
cld
call 0x2693a51
call 0xa44cace4
mov dword [ebx - 0x2200eb24], eax
push eax
mov ecx, dword [ebp + 8]
add ebp, eax
jb 0x50bd0a
sti
mov dword [0x14e08389], eax
invalid
call dword [eax - 0x7d]
add al, bh
dec dword [ebx + 0x2344e81b]
sti
mov dword [0x75008389], eax
invalid