joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c88d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47f9e0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c8cd
cmp byte [ebx], 0xa
jne 0x41c8cd
or byte [edi + eax + 0x28], 4
jmp 0x41c8d2
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41c9d1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41c9b4
inc eax
cmp dl, 0xd
je 0x41c8fe
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41c924
cmp eax, ecx
jae 0x41c932
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41c8e6
jmp 0x41c9d1
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c9af
cmp dword [ebp - 0x10], 0
je 0x41c9af
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x47f9e0]
test byte [eax + edi + 0x28], 0x48
je 0x41c989
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c974
mov byte [esi], dl
jmp 0x41c985
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47f9e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c9d1
cmp byte [ebp - 1], 0xa
jne 0x41c998
cmp esi, ebx
jne 0x41c998
mov byte [esi], 0xa
jmp 0x41c9d0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d413
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c9d1
mov byte [esi], 0xd
jmp 0x41c9d0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x47f9e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c9ce
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c9d1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c9da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x47f9e0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ca20
cmp word [ebx], dx
jne 0x41ca20
or byte [eax + edi + 0x28], 4
jmp 0x41ca25
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41cb88
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41cb68
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41ca66
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ca9c
cmp eax, edx
jae 0x41caaa
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41ca41
jmp 0x41cb88
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cb63
cmp dword [ebp - 0x18], 0
je 0x41cb63
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x47f9e0]
test byte [eax + edi + 0x28], 0x48
je 0x41cb39
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41cafd
mov word [esi], cx
jmp 0x41cb34
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x47f9e0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x47f9e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x47f9e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41cb88
pop eax
cmp word [ebp - 4], ax
jne 0x41cb49
cmp esi, ebx
jne 0x41cb49
mov word [esi], ax
jmp 0x41cb85
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d413
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41cb88
push 0xd
pop eax
jmp 0x41cb44
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x47f9e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41cb82
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41cb88
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421de0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421e0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421e0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401a10
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b50d0]
jne 0x401a1a
repz ret
jmp fcn.004028b6

Function at 0x40f898
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040343a
and dword [ebp - 4], 0
cmp dword [0x4be100], 0
mov ebx, eax
jne 0x40f949
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f9fa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40f9fa
push eax
call fcn.004033c8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4be100], eax
call esi
push eax
call fcn.004033c8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4be104], eax
call esi
push eax
call fcn.004033c8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4be108], eax
call esi
push eax
call fcn.004033c8
pop ecx
mov dword [0x4be110], eax
test eax, eax
je 0x40f949
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004033c8
pop ecx
mov dword [0x4be10c], eax
mov eax, dword [0x4be10c]
cmp eax, ebx
je 0x40f9a1
cmp dword [0x4be110], ebx
je 0x40f9a1
push eax
call fcn.00403443
push dword [0x4be110]
mov esi, eax
call fcn.00403443
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f9a1
test edi, edi
je 0x40f9a1
call esi
test eax, eax
je 0x40f998
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f998
test byte [ebp - 0xc], 1
jne 0x40f9a1
or dword [ebp + 0x10], 0x200000
jmp 0x40f9da
mov eax, dword [0x4be104]
cmp eax, ebx
je 0x40f9da
push eax
call fcn.00403443
pop ecx
test eax, eax
je 0x40f9da
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f9da
mov eax, dword [0x4be108]
cmp eax, ebx
je 0x40f9da
push eax
call fcn.00403443
pop ecx
test eax, eax
je 0x40f9da
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4be100]
call fcn.00403443
pop ecx
test eax, eax
je 0x40f9fa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f9fc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4afe30
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [0x4be5ac]
push esi
push dword [eax]
mov esi, dword [0x4be4f4]
call fcn.004afd67
cmp dword [0x4be5ac], 0x2f
pop ecx
jne 0x4afe8f
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [ebp - 8], edi
xor eax, eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
pop edi
push esi
call fcn.004afda9
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x4b01a5
Capabilities:
Set file attributes

Disassembly:
push esi
push edi
mov edi, 0x13ba1f
xor esi, esi
cmp dword [0x4be5ac], 0xbf9
jne 0x4b01c0
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
cmp dword [0x4be5ac], 0x3dc
mov dword [0x4be5a0], 0x8e55ceaa
jne 0x4b01ef
push esi
push str.dewobihirutakaxevifajo
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.xafecelocixupapedahesofunezodicexegenogexepumawojuyagon
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
dec edi
jne 0x4b01ae
cmp esi, 0x8465cb
jne 0x4b0209
mov eax, dword [0x4bd564]
add eax, 0xa231
mov dword [0x4be5ac], eax
cmp dword [0x4be5ac], 0x141
jne 0x4b0226
or dword [0x4be274], 0xffffffff
mov dword [0x4be270], 0xec58acac
inc esi
cmp esi, 0x123c19c
jl 0x4b01f2
call fcn.004afe9a
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x403ac6
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x403ae4
mov eax, 0x4bd20c
push eax
push 1
mov ebx, 0x194
call fcn.004abe20
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403b0e
mov eax, 0
jmp 0x403b82
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jle 0x403b6f
add eax, 8
mov edi, eax
mov ebx, edi
push edi
xor al, al
pop esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edi, eax
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x403b58
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x403b47
xor ecx, eax
xor edx, ebx
dec edi
jne 0x403b38
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 4
mov esp, ebp
pop ebp
ret 4
Function at 0x40a2b1
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop
nop
cmp dword [ebp - 4], esp
je 0x40a2e8
push 0x24
push 0x414c3ea
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
mov eax, 0
setne al
jmp 0x40a2fc
mov esp, ebp
pop ebp
ret 4

Function at 0x40a967
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 0x1c
call fcn.004aad9e
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
jmp 0x40a9a6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
push edx
mov edx, 1
mov edx, 2
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 5
pop edx
mov dword [ebp - 0xc], esp
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x1c
push dword [ebp - 4]
push 3
xor eax, eax
call dword [0x523075]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40aa52
push 0x30
push 0x414c25f
push 6
call fcn.004aadaa
add esp, 0xc
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0xc]
fild qword [ebx]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
fild qword [ebx]
fstp qword [ebp - 0x20]
fsub qword [ebp - 0x20]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fdiv qword [0x4bd8b3]
fstp qword [ebp - 0x30]
push 0x80000601
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 1
mov ebx, 0x9dc
call fcn.004ac9f0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40aadd
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x40b250
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0x40
call fcn.004aad9e
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov dword [ebx], 0x40
mov dword [ebp - 8], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
nop
nop
cmp dword [ebp - 8], esp
je 0x40b2b1
push 0x2c
push 0x414c40f
push 6
call fcn.004aadaa
add esp, 0xc
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
fild qword [ebx]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fdiv qword [0x4bd8bb]
fstp qword [ebp - 0x18]
push 0
push 0
push 0
push 0x80000601
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 2
mov ebx, 0x68
call fcn.004adbe0
add esp, 0x1c
push 0x80000601
push edx
push eax
push 1
mov ebx, 0x198
call fcn.004ac910
add esp, 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040b343
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40b329
push ebx
call fcn.004aada4
add esp, 4
mov eax, dword [ebp - 0x28]
jmp 0x40b331
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x40baa9
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jle 0x40bb0d
add eax, 8
mov edi, eax
mov ebx, edi
push edi
xor al, al
pop esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edi, eax
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x40baf6
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x40bae5
xor ecx, eax
xor edx, ebx
dec edi
jne 0x40bad6
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40d47c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
xor eax, eax
call dword [0x523089]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40d4bf
push 0x19
push 0x414c27e
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.004ac220
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40d4f5
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x4bd2b9]
fstp qword [ebp - 0x18]
mov dword [ebp - 0x1c], esp
fld qword [ebp - 0x18]
call fcn.004014fb
push eax
push dword [ebp - 8]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40d543
push 0x88
push 0x414c27e
push 6
call fcn.004aadaa
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x40d55f
push eax
mov ebx, eax
call fcn.004013dd
inc eax
push eax
call fcn.004aad9e
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40d564
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40d575
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x40ff88
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x40
call fcn.004aad9e
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov dword [ebx], 0x40
mov dword [ebp - 8], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
nop
nop
cmp dword [ebp - 8], esp
je 0x40ffe9
push 0x2c
push 0x414c3a1
push 6
call fcn.004aadaa
add esp, 0xc
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
fild qword [ebx]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fdiv qword [0x4bd8bb]
fstp qword [ebp - 0x18]
push 0x80000601
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 1
mov ebx, 0x9dc
call fcn.004ac9f0
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
jmp 0x410048
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x410c66
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x410ca4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
push edx
mov edx, 1
mov edx, 2
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 5
pop edx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x410d2a
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004aad9e
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x410d3b
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x410d52
mov eax, 0x4bd20c
push eax
push 1
mov ebx, 0x194
call fcn.004abe20
add esp, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
call fcn.004039ff
mov dword [ebp - 0xc], eax
push 1
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.00410edc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esp
push 0x40
push 0x1000
push 0x64
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x410dc1
push 0x165
push 0x414c2a3
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0x80000301
push 0
push dword [ebp - 0x14]
push 0xa0000101
push 0
push 0x4bd992
push 3
mov ebx, 0x914
call fcn.004adeb0
add esp, 0x28
push dword [ebp - 8]
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0x14]
mov dword [ebp - 0x18], esp
push 0x8000
push 0
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x410e40
push 0xbc5
push 0x414c2a3
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 0x18], esp
push 0x8000
push 0
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x410e76
push 0xbf1
push 0x414c2a3
push 6
call fcn.004aadaa
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x410e90
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004aad9e
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x410ec4
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x410ed5
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14
Function at 0x41240b
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
jmp 0x41242d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
mov dword [ebp - 4], 0
nop
push eax
push ecx
push edx
push ebx
push esi
push edi
nop
nop
nop
push ebx
push ecx
push edx
mov eax, reloc.WS2_32.dll_getsockname
cpuid
shr ecx, 0x10
mov esi, ecx
nop
pop edx
pop ecx
pop ebx
nop
push ebx
push ecx
push edx
mov eax, reloc.WS2_32.dll_getpeername
cpuid
shr edx, 0x18
shr ecx, 0x18
add edx, ecx
add esi, edx
nop
pop edx
pop ecx
pop ebx
nop
nop
nop
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x64]
add esi, eax
nop
mov eax, 1
cpuid
xor ebx, ebx
mov bl, al
add esi, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, 1
cpuid
xor ebx, ebx
mov bl, dl
add esi, ebx
nop
nop
imul esi, esi, 0x88
nop
nop
push ebx
push ecx
push edx
mov eax, reloc.WS2_32.dll_getpeername
cpuid
shr edx, 0x18
shr ecx, 0x18
add edx, ecx
imul edx, edx, 6
add esi, edx
nop
nop
nop
pop edx
pop ecx
pop ebx
nop
nop
nop
push ebx
push ecx
push edx
mov eax, reloc.WS2_32.dll_getsockname
cpuid
shr ecx, 0x10
imul ecx, ecx, 9
add esi, ecx
pop edx
pop ecx
pop ebx
nop
nop
nop
xor esi, 0x124254
mov dword [ebp - 4], esi
pop edi
pop esi
pop ebx
pop edx
pop ecx
pop eax
nop
nop
nop
mov eax, dword [ebp - 4]
jmp 0x412568
mov esp, ebp
pop ebp
ret
Function at 0x4143de
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
jmp 0x414400
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
push edx
mov edx, 1
mov edx, 2
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 5
pop edx
mov dword [ebp - 4], 0x5df55126
push edx
push ecx
push esi
xor esi, esi
mov eax, dword [ebp + 8]
lea ecx, ds:[esi*4]
mov ecx, dword [eax + ecx]
xor ecx, dword [ebp - 4]
lea edx, ds:[esi*4]
mov dword [eax + edx], ecx
add esi, 1
cmp esi, dword [ebp + 0xc]
jne 0x414479
pop esi
pop ecx
pop edx
nop
push ecx
push eax
mov eax, 1
mov ecx, 2
mov eax, 4
mov ecx, 2
pop eax
pop ecx
nop
jmp 0x4144c7
nop
nop
nop
nop
nop
nop
mov esp, ebp
pop ebp
ret 8

Function at 0x4166be
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0
push 0
push 0
push 4
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x416715
push 0x2b
push 0x414c395
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41672c
mov eax, 0x4bd20c
jmp 0x4167b8
push 0x80000301
push 0
push dword [ebp + 0xc]
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x910
call fcn.004adb70
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x416769
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x416799
push 0xf2
push 0x414c395
push 6
call fcn.004aadaa
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x4167b3
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004aad9e
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4167b8
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4167c9
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x417382
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
jmp 0x417397
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
push ebx
mov ebx, 1
mov ebx, 2
mov ebx, 4
mov ebx, 2
mov ebx, 5
mov ebx, 4
mov ebx, 2
mov ebx, 5
mov ebx, 5
pop ebx
push esi
xor esi, esi
nop
mov eax, reloc.WS2_32.dll_getsockname
cpuid
shr ecx, 0x10
add esi, ecx
nop
nop
mov eax, reloc.WS2_32.dll_getpeername
cpuid
shr edx, 0x18
shr ecx, 0x18
add edx, ecx
add esi, edx
nop
mov eax, 1
xor edx, edx
cpuid
add esi, edx
xor esi, eax
rdtsc
add esi, edx
xor esi, 0x8fa9c95a
mov eax, reloc.WS2_32.dll_getsockname
cpuid
shr ecx, 0x10
add esi, ecx
nop
nop
mov eax, reloc.WS2_32.dll_getpeername
cpuid
shr edx, 0x18
shr ecx, 0x18
add edx, ecx
add esi, edx
nop
mov eax, 1
xor edx, edx
cpuid
add esi, edx
xor esi, eax
rdtsc
add esi, edx
xor esi, 0xee19d4c5
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret