joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1016f740
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x664
mov ecx, 0x41
xor eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x678]
push edi
lea edi, [esp + 0x46c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x46c]
push esi
push eax
call fcn.10033da9
push esi
call fcn.10033dce
add esp, 0xc
cmp word [esp + eax*2 + 0x46a], 0x5c
je 0x1016f792
lea ecx, [esp + 0x46c]
push 0x102671e8
push ecx
jmp 0x1016f79f
lea edx, [esp + 0x46c]
push 0x1026715c
push edx
call fcn.10033d7f
add esp, 8
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x46c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x1016f92f
mov ebx, dword [esp + 0x684]
mov esi, dword [esp + 0x680]
mov ebp, dword [esp + 0x678]
push 2
lea edx, [esp + 0x24c]
push 0x1028bc2c
push edx
call fcn.101469a3
add esp, 0xc
test eax, eax
je 0x1016f8df
push 3
lea eax, [esp + 0x24c]
push 0x1028bc24
push eax
call fcn.101469a3
add esp, 0xc
test eax, eax
je 0x1016f8df
cmp dword [esp + 0x21c], 0x10
jne 0x1016f897
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x67c]
push ecx
push edx
call fcn.10033da9
lea eax, [esp + 0x1c]
push eax
call fcn.10033dce
add esp, 0xc
cmp word [esp + eax*2 + 0x12], 0x5c
je 0x1016f86f
lea ecx, [esp + 0x14]
push 0x1028bc08
push ecx
call fcn.10033d7f
add esp, 8
lea edx, [esp + 0x248]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.10033d7f
push ebx
lea ecx, [esp + 0x20]
push esi
push ecx
push ebp
call fcn.1016f740
add esp, 0x18
test eax, eax
je 0x1016f8f8
jmp 0x1016f89a
inc dword [ebp]
mov edx, dword [esp + 0x238]
push 1
push 0
push 0
push edx
call fcn.10034a70
mov ecx, dword [esp + 0x23c]
xor edi, edi
add eax, ecx
adc edx, edi
mov edi, dword [esi]
add edi, eax
mov dword [esi], edi
mov ecx, dword [esi + 4]
adc ecx, edx
mov dword [esi + 4], ecx
mov edx, dword [ebx + 4]
mov eax, ecx
cmp edx, eax
jb 0x1016f910
ja 0x1016f8db
mov eax, dword [ebx]
mov ecx, dword [esi]
cmp eax, ecx
jb 0x1016f910
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x21c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
jne 0x1016f928
jmp 0x1016f7e1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x664
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x664
ret
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x664
ret
Function at 0x10171520
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
test ebx, ebx
push edi
je 0x1017167e
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x20]
mov esi, dword [eax + 0x1c]
lea ebp, [edx + ecx*2]
mov edx, dword [eax + 0x14]
mov cl, byte [eax + 0x24]
add ebp, esi
add ebp, edx
cmp cl, 0x20
jne 0x1017155e
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffffe
imul ecx, dword [eax + 0x10]
add ebp, ecx
jmp 0x1017156d
mov edx, dword [esp + 0x30]
add edx, 0xfffffffe
imul edx, dword [eax + 0x10]
lea ebp, [edx + ebp + 0x20]
mov esi, dword [esp + 0x38]
cmp ebx, 0x10000
jbe 0x101715e8
mov edi, dword [esi + 8]
mov edx, dword [esp + 0x34]
mov ecx, 0x4000
xor eax, eax
mov dword [esp + 0x30], 0
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 8]
lea eax, [esp + 0x34]
push eax
push 0x10000
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10171607
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
jne 0x101715f9
mov ecx, dword [esp + 0x40]
mov edx, dword [esi + 8]
push ecx
push edx
push 0x80
push ebp
call sym.ITEuDllvMgr.dll_VDR_WriteLUNData
add esp, 0x10
cmp eax, 1
jne 0x10171670
sub ebx, 0x10000
add ebp, 0x80
cmp ebx, 0x10000
ja 0x10171579
test ebx, ebx
je 0x1017167e
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x10171615
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov byte [ecx], 0x36
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov byte [eax], 0x5b
xor eax, eax
pop ebx
ret
mov edi, dword [esi + 8]
mov ecx, 0x4000
xor eax, eax
mov dword [esp + 0x30], 0
lea edx, [esp + 0x30]
push eax
rep stosd dword es:[edi], eax
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x38]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1017164f
mov edx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov byte [edx], 0x5b
pop ebx
ret
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 8]
add ebx, 0x1ff
push eax
shr ebx, 9
push ecx
push ebx
push ebp
call sym.ITEuDllvMgr.dll_VDR_WriteLUNData
add esp, 0x10
cmp eax, 1
je 0x1017167e
mov edx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov byte [edx], 0x5c
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x101777c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x101777cd
xor eax, eax
ret 0xc
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x101778d0
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x102491b8]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x102491b8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x102491b8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x102491b8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x102491b8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x102491b8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x102491b8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x102491b8]
xor eax, edx
inc ecx
dec edi
jne 0x101777e8
pop edi
test esi, esi
je 0x101778f2
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x102491b8]
xor eax, edx
inc ecx
dec esi
jne 0x101778d4
pop esi
pop ebx
not eax
ret 0xc
Function at 0x101d5342
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x101d537a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.101d2fb3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.101d2f8b
jmp 0x101d5386
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x101d8bd0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x101d8c00
push edi
call ebx
push eax
call fcn.101d8d1d
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x101d8c2a
test byte [ebp - 4], 1
je 0x101d8c2a
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x101d8c2a
push edi
call ebx
push eax
call fcn.101d8d1d
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x101d8cd0
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.101d8b1d
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x101d8c5c
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.101d8b1d
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x101d8c72
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.101d8b1d
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x101d8c9c
push 0
call ebx
push eax
call fcn.101d8d1d
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x101d8cba
push eax
call ebx
push eax
call fcn.101d8d1d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x101d8cce
push eax
call ebx
push eax
call fcn.101d8d1d
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x101d8cf7
test byte [ebp - 4], 1
jne 0x101d8cf7
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x101d8cf7
push edi
call ebx
push eax
call fcn.101d8d1d
pop edi
pop ebx
leave
ret 8
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1098058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.010981a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x109807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x109806a
add dl, dl
jne 0x1098089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10980dc
xor eax, eax
add dl, dl
jne 0x1098096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x109817d
add dl, dl
jne 0x10980a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10980b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10980bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10980c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10980d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1098075
mov eax, 1
add dl, dl
jne 0x10980ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10980f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10980e1
sub eax, ebx
mov ebx, 1
jne 0x1098128
mov ecx, 1
add dl, dl
jne 0x109810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1098119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1098105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1098075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x109813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x109814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1098136
cmp eax, 0x7d00
jae 0x109816d
cmp eax, 0x500
jb 0x1098168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1098075
cmp eax, 0x7f
ja 0x1098170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1098075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x109819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1098075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1001dfc0
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [esp + 8]
push esi
push edi
cmp word [edx + 0xc], 0xffff
movzx eax, byte [edx + 6]
je 0x1001dfea
mov eax, dword [esp + 0x14]
or word [eax], 2
movsd xmm0, qword [edx + 6]
movsd qword [eax + 0x10], xmm0
xor eax, eax
pop edi
pop esi
ret 0x10
sub eax, 0
je 0x1001e027
dec eax
je 0x1001e011
dec eax
jne 0x1001dfe3
mov esi, dword [esp + 0x14]
or word [esi], 8
movzx eax, byte [edx + 8]
push eax
call fcn.1001aaf0
mov dword [esi + 0x10], eax
xor eax, eax
pop edi
pop esi
ret 0x10
mov ecx, dword [esp + 0x14]
pop edi
pop esi
or word [ecx], 4
movzx eax, byte [edx + 8]
mov dword [ecx + 0x10], eax
xor eax, eax
ret 0x10
test byte [esp + 0x18], 1
je 0x1001dfe3
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.1001c5e0
test eax, eax
jne 0x1001dfe5
mov eax, dword [esp + 0x10]
mov ecx, 0x221
cmp ax, cx
je 0x1001e059
mov ecx, 0x4bc
cmp ax, cx
jne 0x1001e07b
lea eax, [esp + 0x10]
push eax
push esi
call fcn.1001d580
lea eax, [esp + 0x10]
push eax
push esi
call fcn.1001c5e0
test eax, eax
jne 0x1001dfe5
mov eax, dword [esp + 0x10]
mov ecx, 0x207
cmp ax, cx
jne 0x1001dfe3
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
or word [edi], 0x10
push esi
call fcn.1005fc88
test eax, eax
jne 0x1001dfe5
mov eax, dword [esp + 0x18]
movzx ecx, word [eax]
add eax, 2
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x18]
push dword [esi + 4]
call fcn.1001b6c0
test eax, eax
js 0x1001dfe5
push ebx
mov ebx, dword [esp + 0x18]
push 1
shr eax, 1
push eax
push ebx
push dword [esi + 0x10]
call fcn.10030f40
mov dword [edi + 0x10], eax
cmp ebx, 0x100528e0
je 0x1001e0f1
push ebx
call fcn.100324b0
cmp dword [edi + 0x10], 0xffffffff
pop ebx
jne 0x1001dfe3
pop edi
mov eax, 0xfffffffe
pop esi
ret 0x10
Function at 0x1005a1c2
Capabilities:
Encode data using xor

Disassembly:
call 0x1005a13b
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1005a16b
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1005a187
xor edx, 0
jmp 0x1005a192
xor edx, edx
jmp 0x1005a1a9
jmp 0x1005a1b5
xor eax, eax
push 0x8427d7c0
call 0x1005a1c2
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1005a1fe
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1005a1d7
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1005a215
add eax, 0
jno 0x1005a21a
add esi, 0
ret 0x10

Function at 0x1005af83
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1005afa5
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1005b147
cmp edi, dword [ebp + 0x10]
jb 0x1005b147
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1005aa6f
inc edi
jmp 0x1005b02e
jmp 0x1005b03b
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1005aa6f
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1005aa6f
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1005b08f
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1005b073
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1005b0bd
add dword [eax], 0x39
jle 0x1005b099
sub al, 0xf5
mov ch, al
call fcn.1005b0d2
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10
Function at 0x1005cdaa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1005cdc0
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1005cdd1
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1005ce12
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x1005f17e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x1005f0c7
add ebx, 0
push ecx
call 0x1005f0dc
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x733f000a
sub ebx, dword [0x7340f849]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x7340f839
call fcn.1005aba6
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1005a0b4
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x1005f23a
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x1005f23a
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x1005f1f1
mov eax, 1
lock xchg dword [0x7340f845], eax
push 0x3dd1fc71
call 0x1005f17e
push esi
add esp, 8
cmp eax, 0
jne 0x1005f167
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x1005f18d
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x1005f1a2
cmp ecx, edx
cmp eax, 0
je 0x1005f1c7
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x1005f1b1
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.1005f1e0
dec eax
loope 0x1005f1e3
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x7340f845], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x1005f217
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x1005f22c
jmp 0x1005f237
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x1005f125
Function at 0x1006629f
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x10066575
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x733fc4bd
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x733f3483
push 0xffffffffffffffff
call fcn.1005d49f
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x10066309
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.10066321
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x10066569
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1006653d
Function at 0x10075d6f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10075d91
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10075d91
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10075d91
ret
cmp word [ebx + 4], 0x14c
jne 0x10075d91
test word [ebx + 0x16], 2
je 0x10075d91
test word [ebx + 0x16], 0x100
je 0x10075d91
cmp word [ebx + 0x18], 0x10b
jne 0x10075d91
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10075d91
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10075e1d
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10075db1
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1005ccfc
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10075d91
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x10075e1d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10075d91
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10075d91
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10075d91
ret
cmp word [ebx + 4], 0x14c
jne 0x10075d91
test word [ebx + 0x16], 2
je 0x10075d91
test word [ebx + 0x16], 0x100
je 0x10075d91
cmp word [ebx + 0x18], 0x10b
jne 0x10075d91
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10075d91
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10075e1d
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10075db1
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1005ccfc
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10075d91
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8