joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024cc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40253c
push dword [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
call esi
test eax, eax
je 0x40253c
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, edi
je 0x402509
push 0x7f
push 0x12
mov edx, str.Z_fE_
call fcn.00402d34
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x40253c
lea edi, [ebp - 0x104]
call fcn.00402292
mov edi, eax
mov eax, edi
lea esp, [ebp - 0x10c]
pop edi
pop esi
leave
ret 4

Function at 0x40254a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push edi
push 3
xor edi, edi
call fcn.00402ed1
add eax, 3
push eax
call fcn.00402ef8
mov ebx, eax
cmp ebx, edi
je 0x4025de
push esi
push 4
mov dword [ebp - 0x10], 0x23
mov dword [ebp - 0xc], 0x1c
mov dword [ebp - 8], 0x1a
mov dword [ebp - 4], 0x28
call fcn.00402ed1
mov eax, dword [ebp + eax*4 - 0x10]
lea ecx, [ebp - 0x114]
push ecx
push edi
push edi
or eax, 0x8000
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x4025d6
mov esi, 0x104
call fcn.00402e4e
mov edi, eax
test edi, edi
je 0x4025d6
push edi
push 0xffffffffffffffff
call fcn.00402ed1
push eax
push ebx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, ebx
call fcn.00402e9d
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x40266f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp edi, ebx
je 0x402755
push edi
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x402755
push 4
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
cmp esi, ebx
je 0x4026bb
push 0x92
push 2
mov eax, esi
mov edx, 0x4069a8
call fcn.00402d34
push 0xffffffffffffffff
call fcn.00402ed1
push eax
push esi
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
lea eax, [ebp - 0x104]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4026e2
sub eax, edx
cmp eax, 6
jb 0x4026bb
cmp byte [ebp - 0x104], bl
je 0x40271c
lea ecx, [ebp - 0x104]
movsx eax, byte [ecx]
lea edx, [eax - 0x30]
and edx, 0x80000001
jns 0x402711
dec edx
or edx, 0xfffffffe
inc edx
je 0x402717
add al, 0x31
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x4026fe
lea eax, [ebp - 0x104]
push eax
push edi
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x40274a
push 0x8e
push 4
mov edx, 0x406578
call fcn.00402d34
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
xor esi, esi
inc esi
mov eax, esi
lea esp, [ebp - 0x10c]
pop esi
pop ebx
leave
ret
Function at 0x402761
Capabilities:
Access pe header
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push edi
xor edi, edi
and dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x4027eb
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040219c
mov esi, eax
test esi, esi
je 0x4027cd
cmp dword [ebp - 4], edi
je 0x4027cd
push esi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov edi, eax
test edi, edi
je 0x4027cd
push 0xffffffffffffffff
call fcn.00402ed1
push esi
push dword [ebp + 8]
mov dword [edi + 0x58], eax
mov eax, dword [ebp - 4]
call fcn.00402233
mov edi, eax
test edi, edi
jne 0x4027e1
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
test esi, esi
je 0x4027ea
call fcn.00402e9d
pop esi
mov eax, edi
pop edi
leave
ret 4

Function at 0x40292c
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
xor eax, eax
push 0x220
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x228]
push eax
call sub.ntdll.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
add esp, 0xc
push dword [ebp + 8]
push 8
pop edi
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x402985
call ebx
cmp eax, 0x18
jne 0x402985
push dword [ebp + 8]
push edi
call esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x22c], 0x224
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
jne 0x4029ae
call ebx
cmp eax, 0x12
je 0x402a27
call ebx
jmp 0x402a27
mov eax, edi
call sub.ntdll.dll__alloca_probe
mov ebx, esp
test ebx, ebx
je 0x4029ce
push 0x84
push 6
mov eax, ebx
mov edx, 0x4065d8
call fcn.00402d34
mov eax, edi
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x4029ee
push 0x95
push 4
mov eax, edi
mov edx, 0x406574
call fcn.00402d34
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push ebx
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x402a0a
push edi
push eax
call esi
test eax, eax
jne 0x402a20
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x4029f4
jmp 0x402a27
mov dword [ebp - 8], 1
cmp dword [ebp - 4], 0xffffffff
je 0x402a35
push dword [ebp - 4]
call fcn.00401e1d
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x238]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402d34
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x402d55
mov esi, edx
mov ecx, eax
sub esi, eax
mov edx, edi
mov bl, byte [esi + ecx]
xor bl, byte [ebp + 0xc]
mov byte [ecx], bl
inc ecx
dec edx
jne 0x402d49
xor edx, edx
mov byte [edi + eax], dl
cmp edi, edx
jbe 0x402ded
lea ebx, [edx + eax]
mov cl, byte [ebx]
cmp cl, 0x5c
jne 0x402d8f
lea edi, [edx + eax + 1]
cmp byte [edi], cl
je 0x402dd8
cmp cl, cl
jne 0x402d8f
lea edi, [edx + eax + 1]
cmp byte [edi], 0x72
jne 0x402d8f
mov ecx, dword [ebp + 8]
sub ecx, edx
lea esi, [edx + eax + 2]
mov byte [ebx], 0xd
rep movsb byte es:[edi], byte [esi]
cmp byte [ebx], 0x5c
jne 0x402de3
lea edi, [edx + eax + 1]
cmp byte [edi], 0x6e
jne 0x402dab
mov ecx, dword [ebp + 8]
sub ecx, edx
lea esi, [edx + eax + 2]
mov byte [ebx], 0xa
rep movsb byte es:[edi], byte [esi]
cmp byte [ebx], 0x5c
jne 0x402de3
lea edi, [edx + eax + 1]
cmp byte [edi], 0x74
jne 0x402dc7
mov ecx, dword [ebp + 8]
sub ecx, edx
lea esi, [edx + eax + 2]
mov byte [ebx], 9
rep movsb byte es:[edi], byte [esi]
cmp byte [ebx], 0x5c
jne 0x402de3
lea edi, [edx + eax + 1]
cmp byte [edi], 0x22
jne 0x402de3
mov byte [ebx], 0x22
mov ecx, dword [ebp + 8]
sub ecx, edx
lea esi, [edx + eax + 2]
rep movsb byte es:[edi], byte [esi]
inc edx
cmp edx, dword [ebp + 8]
jb 0x402d62
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x403288
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x4041fc
sub eax, eax
test esi, esi
je 0x403360
sub eax, 1
test ecx, ecx
je 0x40335e
test esi, 3
je 0x4032c6
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4032ab
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x403345
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4032d0
mov ecx, edx
test ecx, ecx
je 0x40335e
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40334b
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x4023d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x411040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0
push 2
push 0
push 0
push 0x10000000
push ecx
mov edi, edx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40241e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406028
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402408
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00406028
mov esp, ebp
pop ebp
ret
Function at 0x403480
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
push esi
mov esi, ecx
test edx, edx
jle 0x4034e9
cmp edx, 0x40
jb 0x4034e0
movaps xmm2, xmmword [0x40f1c0]
lea ecx, [esi + 0x20]
push edi
mov edi, edx
and edi, 0xffffffc0
nop
movups xmm0, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x40]
add eax, 0x40
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [ecx - 0x60], xmm0
movups xmm0, xmmword [ecx - 0x50]
xorps xmm0, xmm2
movups xmmword [ecx - 0x50], xmm0
movups xmm0, xmmword [ecx - 0x40]
xorps xmm0, xmm2
movups xmmword [ecx - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x30]
xorps xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
cmp eax, edi
jl 0x4034a0
pop edi
cmp eax, edx
jge 0x4034e9
nop
xor byte [esi + eax], 0x3a
inc eax
cmp eax, edx
jl 0x4034e0
mov eax, 1
pop esi
ret
Function at 0x404b10
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [0x411040]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
push edi
mov edi, dword [ebp + 8]
push 0x11
push 2
push 2
mov dword [esp + 0x1c], 0
movlpd qword [esp + 0x44], xmm0
mov dword [esp + 0x20], 0x10400
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x404b6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00406028
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x44]
movaps xmmword [esp + 0x44], xmm0
push eax
push 0
push esi
movaps xmmword [esp + 0x60], xmm0
mov dword [esp + 0x54], 2
mov dword [esp + 0x58], 2
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x404bbe
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00406028
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x10], 0
je 0x404bab
push dword [ebp + 0x10]
mov eax, 2
mov word [esp + 0x34], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x10]
push 0x10
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x404b58
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x14]
push 4
push eax
push 0x1002
push GetLastError
push dword [edi]
call esi
push 4
lea eax, [esp + 0x18]
push eax
push 0x1001
push GetLastError
push dword [edi]
call esi
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
push eax
push 8
push GetLastError
push dword [edi]
call esi
push 0
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 1
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], 0x2710
push eax
push 0x98000004
push dword [edi]
mov dword [esp + 0x50], 0x2710
mov dword [esp + 0x44], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xa0001
push eax
push 0x80
push GetLastError
push dword [edi]
call esi
mov ecx, dword [esp + 0x6c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00406028
mov esp, ebp
pop ebp
ret
Function at 0x404d30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x411040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x1000
push 0
push esi
mov dword [ebp - 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebx + 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x10], esi
lea edi, [ebx + 4]
mov dword [ebp - 0x14], 0x1000
movlpd qword [ebp - 0x28], xmm0
push 0
push 0
push 1
push 0
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 1
lea eax, [ebp - 0x14]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
mov esi, eax
cmp esi, 0x3e5
jne 0x404df5
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push 0
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x404ddb
cmp eax, 0x102
jne 0x404df5
jmp 0x404df1
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
call edi
mov esi, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x404e03
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406028
mov esp, ebp
pop ebp
ret

Function at 0x40685d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40689c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40689c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40689c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40689c
cmp dword [ecx + 0x74], 0xe
jbe 0x40689c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x406f70
Capabilities:
Get process heap force flags

Disassembly:
call fcn.00406f20
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x50001
jae 0x406f9a
add eax, 0x74
ret
cmp edx, 0x60000
jae 0x406fa6
add eax, 0x78
ret
add eax, 0x88
ret

Function at 0x406fb0
Capabilities:
Get process heap force flags

Disassembly:
call fcn.00406f20
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x60000
jae 0x406fda
add eax, 0x7c
ret
add eax, 0x8c
ret

Function at 0x408a20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00408a50
mov esi, dword [ebp + 8]
test al, al
je 0x408a3e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.00408a60
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x408b90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408bec
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408bec
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408bec
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408bec
cmp dword [ecx + 0x74], 0xe
jbe 0x408bec
cmp dword [ecx + 0xe8], 0
je 0x408bec
push dword [ebp + 8]
call fcn.00408a60
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x411ee0
call fcn.00408830
add esp, 8
cmp dword [ebp - 8], 0
jne 0x408c21
push dword [ebp + 8]
call fcn.00408a20
mov esp, ebp
pop ebp
ret

Function at 0x408c60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408cbc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408cbc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408cbc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408cbc
cmp dword [ecx + 0x74], 0xe
jbe 0x408cbc
cmp dword [ecx + 0xe8], 0
je 0x408cbc
push dword [ebp + 8]
call fcn.00408a60
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x411ee0
call fcn.00408830
add esp, 8
cmp dword [ebp - 8], 0
jne 0x408cf1
push dword [ebp + 8]
call fcn.00408a20
mov esp, ebp
pop ebp
ret

Function at 0x408d40
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x408d6a
mov eax, 2
pop ebp
ret
push esi
call fcn.00406f20
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x408d8a
jmp dword [eax*4 + 0x408dc0]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.004093b0
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x4093e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x411040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x409407
mov ecx, 5
int 0x29
push 2
call fcn.00406901
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], GetLastError
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x409512
test esi, esi
jne 0x409512
push 2
call fcn.00406901
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00406028
mov esp, ebp
pop ebp
ret
Function at 0x40d6e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d70d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d70d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41c998
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push ebx
call sub.ADVAPI32.DLL_CryptAcquireContextA
add esp, 0xc
test eax, eax
je 0x41c9d4
sub esp, 0xc
lea eax, [ebx + 4]
push eax
push 0
push 0
push 0x8003
push dword [ebx]
call sub.ADVAPI32.DLL_CryptCreateHash
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x42e000
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0xbb109dd
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x2b96224f
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219