joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456ff0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040446c
xor eax, eax
push ebp
push 0x45713e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.00456e54
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040447c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x45711d
xor eax, eax
push ebp
push 0x457116
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4570ff
xor eax, eax
push ebp
push 0x4570f8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4570e1
xor eax, eax
push ebp
push 0x4570da
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.00456e88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4570e1
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4570ff
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45711d
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.00456f08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457145
lea eax, [ebp - 4]
call fcn.00403fbc
ret

Function at 0x45a00c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45a03a
mov eax, ebx
call fcn.0045aac0
cmp dword [ebx + 0x40], 0
je 0x45a033
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45a0ab
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45a09d
cmp dword [ebx + 8], 0
je 0x45a05c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45a06e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45a09d
cmp dword [ebx + 8], 0
je 0x45a04f
cmp eax, 3
je 0x45a081
dec eax
jne 0x45a04f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45a04f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45a04f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45a0c9
cmp dword [ebx + 0x14], 0xcc
je 0x45a0c9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045a0d4
pop ebx
ret
Function at 0x405e00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1a36
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x52610c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0049fc85
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0049c99d
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e22b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x52610c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4090de
cmp byte [ebx + 0x3d], 0
je 0x4090de
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x409009
xor al, al
jmp 0x4090e0
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00408dc0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40906f
sub eax, 1
je 0x409073
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x4090c6
xor bl, bl
jmp 0x4090c8
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4090a8
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004c1ee2
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x40906b
cmp byte [ebx + 0x3d], 0
je 0x4090c6
test esi, esi
jne 0x409031
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00408f00
jmp 0x40902e
mov bl, 1
cmp ecx, 0x10
jb 0x4090da
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00409950
mov al, bl
jmp 0x4090e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049fc55
mov esp, ebp
pop ebp
ret

Function at 0x40b400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e254c
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x52610c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edx, [esi + 0x30]
mov dword [ebp - 4], 0
mov eax, dword [edx + 4]
cmp eax, dword [edx + 8]
sbb ecx, ecx
xor al, al
and ecx, 0xfffffffc
add ecx, 8
add ecx, edx
mov edx, dword [edx + 0xc]
mov edi, edx
push edx
mov ecx, dword [ecx]
rep stosb byte es:[edi], al
call fcn.0049fc80
add esp, 4
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40b468
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x40b479
push 0x40
push esi
call fcn.0049fc66
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40f0c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x52610c]
xor eax, esp
mov dword [esp + 0x60], eax
cmp dword [0x52e1c4], 0
push esi
mov esi, dword [ebp + 8]
jne 0x40f0f5
mov dword [0x52e1c8], 0
mov dword [0x52e1c4], 1
push edx
mov edx, ecx
mov dword [esp + 0xc], 0x67452301
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0040eef0
add esp, 4
lea edx, [esp + 8]
mov ecx, esi
call fcn.0040f010
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.0049fc55
mov esp, ebp
pop ebp
ret

Function at 0x40f270
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4a4
mov eax, dword [0x52610c]
xor eax, esp
mov dword [esp + 0x4a0], eax
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
cmp dword [edx + 0x14], 0x10
mov dword [esp + 8], 0
jb 0x40f2a9
mov edx, dword [edx]
push 0x507a80
push edx
lea eax, [esp + 0x10]
push eax
call fcn.004c5c19
add esp, 0xc
test eax, eax
je 0x40f2dd
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
push 0x507250
jmp 0x40f422
cmp dword [0x52e1c4], 0
xorps xmm0, xmm0
mov byte [esp + 0x6c], 0
movq qword [esp + 0x6d], xmm0
mov dword [esp + 0x75], 0
mov word [esp + 0x79], 0
mov byte [esp + 0x7b], 0
movups xmmword [esp + 0x7c], xmm0
mov byte [esp + 0x9c], 0
movups xmmword [esp + 0x8c], xmm0
jne 0x40f331
mov dword [0x52e1c8], 0
mov dword [0x52e1c4], 1
push 0x400
lea eax, [esp + 0xa4]
mov dword [esp + 0x14], 0x67452301
push 0
push eax
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.004b8fe0
push dword [esp + 0x14]
lea eax, [esp + 0xb0]
push 0x400
push 1
push eax
call fcn.004c5e2c
add esp, 0x1c
test eax, eax
je 0x40f3c4
push eax
lea edx, [esp + 0xa4]
lea ecx, [esp + 0x14]
call fcn.0040eef0
push dword [esp + 0xc]
lea eax, [esp + 0xa8]
push 0x400
push 1
push eax
call fcn.004c5e2c
add esp, 0x14
test eax, eax
jne 0x40f394
push dword [esp + 8]
call fcn.004c1c2a
lea edx, [esp + 0x14]
lea ecx, [esp + 0x70]
call fcn.0040f010
lea edx, [esp + 0x80]
lea ecx, [esp + 0x70]
call fcn.0040f150
mov dword [esi + 0x14], 0xf
add esp, 4
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [esp + 0x7c], 0
jne 0x40f409
xor ecx, ecx
jmp 0x40f419
lea ecx, [esp + 0x7c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f410
sub ecx, edx
push ecx
lea eax, [esp + 0x80]
push eax
mov ecx, esi
call fcn.00409aa0
mov ecx, dword [esp + 0x4a4]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0049fc55
mov esp, ebp
pop ebp
ret
Function at 0x40fb90
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2e38
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x52610c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 2
call fcn.0040f8f0
test eax, eax
jne 0x40fc25
lea ecx, [ebp - 0x28]
call fcn.00409550
lea ecx, [ebp - 0x40]
call fcn.00409550
lea ecx, [ebp - 0x58]
call fcn.00409550
xor eax, eax
jmp 0x40fd99
cmp dword [esi + 0x7c], 0
jne 0x40fc32
mov eax, 0x507aac
jmp 0x40fc40
cmp dword [esi + 0x80], 8
lea eax, [esi + 0x6c]
jb 0x40fc40
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x40fc06
mov eax, dword [esi + 0xc]
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x40fc06
cmp dword [esi + 0x34], 0
je 0x40fc94
push 4
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0xaa0
push eax
push 0x54
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x40fc06
mov eax, dword [esi + 0x34]
xor ecx, ecx
test eax, eax
je 0x40fcad
cmp dword [esi + 0x38], ecx
jne 0x40fca9
mov ecx, 0x1bb
jmp 0x40fcc2
test eax, eax
jne 0x40fcb9
cmp dword [esi + 0x38], ecx
jne 0x40fcbe
mov ecx, 0x50
jmp 0x40fcc2
cmp dword [esi + 0x38], ecx
je 0x40fcc2
movzx ecx, word [esi + 0x38]
cmp dword [esi + 0x50], 8
lea eax, [esi + 0x3c]
jb 0x40fccd
mov eax, dword [eax]
push 0
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 8], 0
je 0x40fc06
mov eax, dword [esi + 0x34]
neg eax
sbb eax, eax
and eax, 0x800000
cmp dword [esi + 0xac], 0
jne 0x40fd09
mov edx, str.HTTP_1.1
jmp 0x40fd1a
cmp dword [esi + 0xb0], 8
lea edx, [esi + 0x9c]
jb 0x40fd1a
mov edx, dword [edx]
cmp dword [esi + 0x94], 0
jne 0x40fd2a
mov ecx, 0x507ad8
jmp 0x40fd3b
cmp dword [esi + 0x98], 8
lea ecx, [esi + 0x84]
jb 0x40fd3b
mov ecx, dword [ecx]
cmp dword [esi + 0x68], 8
lea edi, [esi + 0x54]
jb 0x40fd46
mov edi, dword [edi]
push eax
push 0
push 0
push edx
push edi
push ecx
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi], eax
test eax, eax
je 0x40fc06
cmp dword [esi + 0x34], 0
je 0x40fd85
push 4
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x3300
push ecx
push 0x1f
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x40fc06
mov ecx, esi
call fcn.00410010
test eax, eax
je 0x40fc06
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049fc55
mov esp, ebp
pop ebp
ret
Function at 0x40fdc0
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x52610c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx], 0
jne 0x40fded
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049fc55
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0xb4]
mov dword [ebp - 0x20], 1
mov esi, dword [edi]
cmp esi, edi
je 0x40fe92
xor ecx, ecx
mov dword [ebp - 8], 7
push 0xffffffffffffffff
push ecx
lea eax, [esi + 8]
mov word [ebp - 0x1c], cx
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
call fcn.00403a60
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 0x20000000
push dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x40fe76
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x40fe5c
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00403f40
mov esi, dword [esi]
cmp esi, edi
jne 0x40fe04
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049fc55
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x20], 0
cmp ecx, 8
jb 0x40fe92
inc ecx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.00403f40
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0049fc55
mov esp, ebp
pop ebp
ret
Function at 0x40feb0
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2e68
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x52610c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx], 0
jne 0x40fee9
xor eax, eax
jmp 0x40fff4
mov edi, dword [ebx + 0xbc]
mov dword [ebp - 0x44], 1
mov esi, dword [edi]
cmp esi, edi
je 0x40fff1
xor ecx, ecx
mov dword [ebp - 0x2c], 7
push 0xffffffffffffffff
push ecx
lea eax, [esi + 8]
mov word [ebp - 0x40], cx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
call fcn.00403a60
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov edx, str.Cookie:
lea ecx, [ebp - 0x28]
call fcn.00410a00
add esp, 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push 0x20000000
push dword [ebp - 0x18]
push eax
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
mov eax, dword [ebp - 0x14]
je 0x40ffaf
cmp eax, 8
jb 0x40ff73
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403f40
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x40ffa3
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403f40
mov esi, dword [esi]
cmp esi, edi
jne 0x40ff00
jmp 0x40fff1
mov dword [ebp - 0x44], 0
cmp eax, 8
jb 0x40ffc8
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403f40
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x40fff1
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.00403f40
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049fc55
mov esp, ebp
pop ebp
ret
Function at 0x417690
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x52610c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x2c], 0x290039
mov word [ebp - 0x1c], ax
push esi
mov esi, ecx
mov dword [ebp - 0x30], 0x23004d
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2e]
xor eax, ecx
mov dword [ebp - 0x28], 0x210021
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 0x2c]
xor eax, ecx
mov dword [ebp - 0x24], 0x290063
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x2a]
xor eax, ecx
mov dword [ebp - 0x20], 0x210021
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x28]
xor eax, ecx
mov dword [esi], 0
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x26]
xor eax, ecx
mov dword [esi + 4], 0
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x24]
xor eax, ecx
mov dword [esi + 8], 0
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x22]
xor eax, ecx
mov dword [esi + 0xc], 0
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x20]
xor eax, ecx
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x1e]
xor eax, ecx
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x1a]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x41785b
movaps xmm0, xmmword [0x50c850]
xor eax, eax
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0x171f3716
mov dword [ebp - 0x20], 0x30815
mov cl, byte [ebp + eax - 0x33]
xor cl, byte [ebp - 0x34]
mov byte [ebp + eax - 0x1c], cl
inc eax
cmp eax, 0x16
jb 0x417772
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x1c]
push eax
push edx
mov byte [ebp - 6], 0
call edi
mov dword [esi + 4], eax
mov cl, 0x23
mov al, 0xb
mov dword [ebp - 0x1c], 0x35230b47
mov bl, al
mov dword [ebp - 0x18], 0x2326280b
xor al, byte [ebp - 0x1c]
mov dh, cl
xor cl, byte [ebp - 0x1c]
mov bh, 3
mov byte [ebp - 0x35], bh
mov ah, 0x28
mov byte [ebp - 0x10], al
mov bh, 0x2b
mov byte [ebp - 0x36], bh
mov dl, 0x35
mov al, byte [ebp - 0x36]
mov ch, 0x26
mov byte [ebp - 0xf], cl
mov cl, byte [ebp - 0x1c]
xor al, cl
mov byte [ebp - 0x37], bh
mov bh, byte [ebp - 0x35]
xor ah, cl
mov byte [ebp - 8], al
xor dl, cl
mov al, byte [ebp - 0x37]
xor bl, cl
xor al, cl
mov byte [ebp - 0xc], ah
mov byte [ebp - 7], al
xor ch, cl
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0x2b2b03
push eax
push dword [esi]
xor dh, cl
mov byte [ebp - 0xe], dl
xor bh, cl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xb], ch
mov byte [ebp - 0xa], dh
mov byte [ebp - 9], bh
mov byte [ebp - 6], 0
call edi
mov dword [esi + 8], eax
mov dl, 0x52
mov dword [ebp - 0x20], 0x6250852
xor ecx, ecx
mov dword [ebp - 0x1c], 0x13262137
mov dword [ebp - 0x18], 0x2620373e
mov byte [ebp - 0x14], 0
mov al, byte [ebp + ecx - 0x1f]
xor al, dl
mov byte [ebp + ecx - 0x13], al
inc ecx
cmp ecx, 0xb
jae 0x41784a
mov dl, byte [ebp - 0x20]
jmp 0x417835
lea eax, [ebp - 0x13]
mov byte [ebp - 8], 0
push eax
push dword [esi]
call edi
pop edi
mov dword [esi + 0xc], eax
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0049fc55
mov esp, ebp
pop ebp
ret
Function at 0x4183f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov esi, dword [eax + 0x3c]
add esi, eax
push edi
movzx ecx, word [esi + 0x14]
movzx eax, word [esi + 6]
add ecx, 0x18
cdq
add ecx, esi
mov dword [ebp - 4], eax
mov dword [ebp + 8], edx
mov dword [ebp - 8], ecx
test edx, edx
jb 0x418452
ja 0x418424
test eax, eax
je 0x418452
mov edi, dword [ebp + 0xc]
lea esi, [ecx + 0xc]
nop word [eax + eax]
mov ecx, dword [esi]
cmp edi, ecx
jb 0x41843f
mov eax, dword [esi + 4]
add eax, ecx
cmp edi, eax
jbe 0x41845e
inc ebx
add esi, 0x28
mov eax, ebx
cdq
cmp edx, dword [ebp + 8]
ja 0x418452
jb 0x418430
cmp eax, dword [ebp - 4]
jb 0x418430
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 8]
lea eax, [ebx + ebx*4]
mov ecx, dword [edx + eax*8 + 0x14]
sub ecx, dword [edx + eax*8 + 0xc]
lea eax, [edi + ecx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x418480
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4185ba
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.004a01a9
add esp, 4
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push 0
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0x10]
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4185ba
mov eax, dword [edi + 0x3c]
mov ecx, 0x20b
cmp word [eax + edi + 0x18], cx
jne 0x4185ba
push dword [eax + edi + 0x88]
push edi
call fcn.004183f0
push dword [edi + eax + 0x1c]
push edi
lea ebx, [edi + eax]
call fcn.004183f0
push dword [ebx + 0x24]
add eax, edi
push edi
mov dword [esp + 0x2c], eax
call fcn.004183f0
push dword [ebx + 0x20]
push edi
lea esi, [edi + eax]
mov dword [esp + 0x20], esi
call fcn.004183f0
lea edx, [edi + eax]
mov eax, dword [ebx + 0x14]
xor edi, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
test eax, eax
je 0x4185ba
mov ebx, dword [ebx + 0x18]
xor eax, eax
test ebx, ebx
je 0x4185b3
nop dword [eax]
movzx ecx, word [esi + eax*2]
cmp edi, ecx
je 0x41856f
inc eax
cmp eax, ebx
jb 0x418560
jmp 0x4185b3
push dword [edx + eax*8]
mov esi, dword [ebp + 0xc]
push dword [esp + 0x14]
call fcn.004183f0
add eax, dword [esp + 0x10]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4185a2
test cl, cl
je 0x41859e
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4185a2
add eax, 2
add esi, 2
test cl, cl
jne 0x418582
xor eax, eax
jmp 0x4185a7
sbb eax, eax
or eax, 1
test eax, eax
je 0x4185c5
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
inc edi
cmp edi, dword [esp + 0x20]
jb 0x418557
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x24]
mov eax, dword [eax + edi*8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc