joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100133d0
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0x214
mov eax, 0x1002d3b0
call fcn.10017005
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
cmp dword [ebx + 8], 0
je 0x100133fb
mov eax, reloc.oleaut32.dll_VariantCopyInd
jmp 0x10013586
mov eax, dword [ebx - 0xc]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002f4d0]
lea ecx, [ebx - 0xc]
call esi
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jne 0x1001341f
mov eax, 0x80004005
jmp 0x10013586
mov edx, dword [ebp + 0x10]
mov esi, reloc.oleaut32.dll_SysReAllocString
mov eax, edx
and eax, esi
cmp eax, esi
push dword [ebp - 0x21c]
sete al
mov byte [ecx + 0x31], al
lea ecx, [esi + 2]
mov eax, edx
and eax, ecx
cmp eax, ecx
mov eax, dword [ebx + 0x14]
sete cl
mov byte [eax + 0x32], cl
lea eax, [esi + 6]
and edx, eax
cmp edx, eax
mov eax, dword [ebx + 0x14]
sete cl
mov byte [eax + 0x33], cl
mov ecx, dword [ebx + 0x14]
add ecx, 0x28
call fcn.1000a94b
mov edi, dword [ebx + 0x14]
mov eax, dword [edi]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x1002f4d0]
mov ecx, edi
call esi
push eax
lea ecx, [ebp - 0x220]
call fcn.1000a94b
xor esi, esi
lea ecx, [ebp - 0x220]
push str.Excel.Application
mov dword [ebp - 4], esi
call fcn.1000a94b
test al, al
je 0x1001355e
push 0x208
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.100194b0
mov edi, dword [ebp - 0x21c]
push 0x5c
push edi
call fcn.1000a94b
add esp, 0x14
test eax, eax
jne 0x100134d8
push 0x2f
push edi
call fcn.1000a94b
pop ecx
pop ecx
test eax, eax
je 0x100134f8
add eax, 2
push 0x2e
push eax
call fcn.1000a94b
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1000a94b
add esp, 0x14
cmp word [ebp - 0x218], si
je 0x10013557
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.kernel32.dll_CopyFileW]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.1000a94b
pop ecx
pop ecx
mov ecx, dword [ebx + 0x14]
add ecx, 0x24
test eax, eax
jne 0x10013549
lea eax, [ebp - 0x218]
push eax
call fcn.1000a94b
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
jmp 0x1001354f
push edi
call fcn.1000a94b
mov eax, dword [ebx + 0x14]
add eax, 0x24
jmp 0x1001356f
mov esi, 0x80004005
jmp 0x10013578
mov ecx, dword [ebx + 0x14]
push dword [ebp - 0x21c]
add ecx, 0x24
call fcn.1000a94b
push eax
lea ecx, [ebx + 0x10]
call fcn.1000a94b
push dword [ebp - 0x220]
call dword [sym.imp.oleaut32.dll_SysStringLen]
mov eax, esi
call fcn.10016faf
ret 0xc
Function at 0x10013c40
Capabilities:
Terminate process

Disassembly:
push 0x81c
mov eax, 0x1002d483
call fcn.10017005
mov ebx, ecx
xor ecx, ecx
lea edi, [ebx + 0x40]
mov esi, ecx
mov dword [ebp - 0x818], ecx
mov dword [ebp - 0x814], ecx
cmp dword [edi], ecx
je 0x10013d7c
push 0x10
push ecx
lea eax, [ebp - 0x828]
push eax
call fcn.100194b0
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.oleaut32.dll_VariantClear]
push esi
push str.Caption
push dword [edi]
lea eax, [ebp - 0x828]
mov dword [ebp - 4], esi
push eax
push 2
push ebx
call fcn.1000a94b
add esp, 0x18
test eax, eax
jne 0x10013ce1
push dword [ebp - 0x820]
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.1000a94b
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push esi
call dword [sym.imp.user32.dll_FindWindowW]
mov dword [ebp - 0x814], eax
mov eax, dword [ebx]
lea ecx, [ebp - 0x818]
push ecx
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x1002f4d0]
mov ecx, ebx
call esi
mov esi, eax
test esi, esi
js 0x10013d20
cmp dword [ebp - 0x818], 0
jne 0x10013d20
push 0
push str.Quit
push dword [edi]
push 0
push 1
push ebx
call fcn.1000a94b
add esp, 0x18
mov esi, eax
mov ecx, edi
call fcn.10009bb3
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.oleaut32.dll_VariantCopy]
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x10013d7c
cmp dword [ebp - 0x818], 0
jne 0x10013d7c
test esi, esi
jns 0x10013d7c
and dword [ebp - 0x814], 0
lea ecx, [ebp - 0x814]
push ecx
push eax
call dword [sym.imp.user32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x814]
push 1
push 0x1fffff
call dword [sym.imp.kernel32.dll_OpenProcess]
push 1
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov eax, esi
call fcn.10016faf
ret
Function at 0x10015217
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002d711
call fcn.10017005
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015234
xor eax, eax
jmp 0x10015311
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001530f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x100152e5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000128b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000128b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.1000a94b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x100152ef
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10015264
jmp 0x10015308
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016faf
ret
Function at 0x6d2354
Capabilities:
Encode data using xor

Disassembly:
pop ss
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push esi
call 0x126d1e7a
inc edi
sub dl, 0xff
jmp 0x6d237a
paddsb mm7, qword [esp + ecx]
jg 0x6d23c0
mov ah, byte [eax]
aas
push 0x653e4a
jmp [eax - 0x14fba715]
xor byte [eax + 0x70], dl
push edi
adc al, 0xd0
mov dword [ebp - 0x44], eax
stosd dword es:[edi], eax
adc al, 0x3c
mov eax, 0xd44e1eb
push dword [ebp - 0x3c]
in al, 0xbf
test eax, 0x8b3537ff
inc ebp
rol byte [ebx + 0x74005878], 0x71
mov eax, dword [ebx]
lea ebp, [edx + 7]
mov ecx, dword [ebx + 4]
mov dword [edi - 0x21], ecx
adc al, 0
dec edi
fist word [eax + eax]
inc dword [edi + eax*8]
inc edi
or byte [eax], al
push eax
add byte [ecx], ah
out dx, al
inc dword [eax]
add byte [ebx - 0x3cad], cl
dec dword [eax]
mov dword [edi + 0x10], edx
mov edx, dword [ebx + 0xc]
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], 0x7600ff00
mov dword [edi + 0x1c], 0x2900
push edx
push esi
pushal
sbb al, 0x38
xor byte [ecx + 0x3987c660], 0xfd
dec dword [ebp - 0xc]
pop edi
inc ebp
enter 0x189, 0x31
rol byte [edx - 0x77], cl
push ecx
add al, 0x50
push edx
push ecx
push 2
push edi
push cs
inc edx
rcr edi, 0x19
sub al, 0x5c
cmp edx, dword [eax]
test esi, esi
je 0x6d23ec
mov eax, dword [ebp - 0xc]
pushal
and ecx, dword [ebx]
invalid
Function at 0x71e852
Capabilities:
Check for software breakpoints

Disassembly:
or byte [edi + 0x4c18301], ch
sbb dword [edi], ecx
mov byte [ecx - 0x64f0bcd6], al
lea esi, [esi - 0x67]
add bh, al
add ecx, dword [edx + 0x47881046]
retf
invalid
mov dword [ebp - 0x14], eax
lea eax, [eax + edx*4]
mov dword [ecx + 0x1c], eax
out dx, al
outsd dx, dword [esi]
cli
push dword [ecx]
test byte [ebx + 0x48de87d], 0x33
mov edi, dword [ebp - 0x18]
lea eax, [ebx + esi]
mov ecx, dword [ebp - 0x14]
add ecx, esi
loop 0x71e798
invalid
shl byte [edi + 0x39], 0xf8
jne 0x71e805
sbb eax, ebx
add dl, ah
ja 0x71e7f6
mov dword [edi + 0x18], ecx
mov eax, edi
add dword [esi], 0x51
add byte [ecx + 0x876ffff], 0xff
jbe 0x71e83f
call 0x25076cf4
je 0x71e7d9
and al, 0x74
xchg edi, eax
jae 0x71e898
pop edi
call 0x20162af
pop ebp
add al, 0x30
jns 0x71e81e
add dword [ebp + 4], ebx
xor byte [ecx - 0x32], bh
pop esi
jo 0x71e83f
in al, dx
in al, dx
inc dword [ebx - 0x3c7cb6c2]
fsub st(3), st(0)
xor eax, 0xe81873ff
aam 0x22
xchg esi, eax
cmp byte [ebx + 8], 0xc3
inc byte [ebp - 0x77]
jae 0x71e878
call 0x4fc1f934
adc eax, 0xe833f67c
mov bl, 0xf
lea eax, [ebx - 0x24]
lahf
or al, 0x15
add dword [edi], esi
cld
test ebx, ebx
je 0x71e8b2
cmp byte [ebx - 0x71], 0xcc
jmp 0x71e84a
xchg ebp, eax
add al, 0xe8
jle 0x71e8ad
in al, 0xc3
dec ebx
add edi, dword [esp + eax - 0x50dd0ee8]
cmp esi, edi
leave
cmp al, byte [edi + edi*2]
dec esp
out dx, al
invalid
sbb bh, bh
jne 0x71e8c8
inc eax
rcr bl, 0xe5
mov edi, 0x829d2a48
mov al, byte es:[0xc2e5aeb]
cmp byte [ebp + 0x29], cl
or byte [ecx], 0x23
iretd
sub dword [edx + 0x5cf2309], eax
mov esp, 0x9fc5dee
and eax, dword [eax + eax]
add byte [ebp + 0xfc9a9c0], al
test dword [esi], eax
or esp, dword [edx + 0x794dff82]
lea ebx, [ebp - 0x1c]
push ecx
push eax
push ebx
call 0xc17e4bb1
or eax, 0x8b8a47ff
jbe 0x71e8fa
mov esi, dword [esi + 4]
jmp 0x71e90e
or dword [ebp - 0xb961f89], ecx
jge 0x71e914
lea esi, [edi - 0x20]
imul esi, esp, 0xff42137d
cmpsb byte [esi], byte es:[edi]
jbe 0x71e8f9
inc edx
jmp dword [esi - 0x3f7a0c8a]
test eax, eax
mov ch, 0x74
sbb al, 0x89
idiv dword [ebx]
xor dh, byte [esi + esi - 0x14]
invalid
stosb byte es:[edi], al
and byte [esi - 0x1c], dh
lea ecx, [edi - 0x1c]
cmp byte [edi - 0x11], 0
jns 0x71e8f3
cmp bh, 0xdf
invalid

Function at 0x788d71
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
mov dword [esi + 0x54], edx
clc
or eax, 0x463e8eff
pop eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [esi + 0x5c]
adc ecx, dword [ecx + 0x45895c4e]
call 0xb0748600
invalid
Function at 0x867e62
Capabilities:
Encode data using xor

Disassembly:
cmp eax, 0x4effff61
dec esi
dec ecx
dec esi
inc edi
cmp eax, 0x45555254
add byte [ecx + 0x46], cl
and byte [0x25251725], ah
cmp eax, 0x8ffffddf
sbb ah, byte [eax]
sub byte [edx], cl
push esp
inc ecx
push ebx
dec ebx
dec esp
dec ecx
push ebx
push esp
and byte [edi], ch
inc esi
dec ecx
and byte [edx], ah
and eax, 0x20716520
and eax, 0xffffea2a
insb byte es:[edi], dx
jne 0x867ea7
and ah, byte [eax]
jl 0x867ec1
inc esi
dec ecx
dec esi
inc esp
and byte [edi], ch
arpl word [eax], sp
das
imul esp, dword [eax], 0xdfff6522
insd dword es:[edi], dx
cmp esp, dword [edx]
or cl, byte [ebx + 0x45]
push edx
push edx
dec edi
push edx
dec esp
inc ebp
push esi
inc ebp
dec esp
and byte [ecx], dh
and byte [edx - 0x14], dh
lss edi, [edi + 0x46]
inc ecx
dec esp
push ebx
inc ebp
sub dword [edi + eax*2 + 0x4f], esi
push esp
dec edi
and ch, bl
inc ecx
mov bl, 0x4e
adc al, 0x49
mov eax, dword [0x9589bfc4]
fbld tbyte [esi]
jb 0x867f43
je 0x867f53
jb 0x867f12
and byte [ebx + 0x56], dh
mov al, 0x1c
fist word [ecx]
imul ebp, dword [esi + 0x65], 0xdf58296c
nop
pop ds
std
xlatb
pop ss
sub byte [edi + 0x5f], bl
invalid
popal
Function at 0x92aca0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x66600d
lea edi, [esi - 0x26500d]
push edi
or ebp, 0xffffffff
jmp 0x92acc2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x92acc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x92acb8
mov eax, 1
add ebx, ebx
jne 0x92acdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x92acd0
jne 0x92acec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x92acd0
xor ecx, ecx
sub eax, 3
jb 0x92ad00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x92ad72
mov ebp, eax
add ebx, ebx
jne 0x92ad0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x92ad18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x92ad3c
inc ecx
add ebx, ebx
jne 0x92ad28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x92ad1d
jne 0x92ad39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x92ad1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x92ad5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x92ad4d
jmp 0x92acbe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x92ad5c
add edi, ecx
jmp 0x92acbe
pop esi
mov edi, esi
mov ecx, 0x173e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x92ad7a
cmp byte [edi], 0x11
jne 0x92ad7a
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 0x92ad7f
lea edi, [esi + 0x526000]
mov eax, dword [edi]
or eax, eax
je 0x92adee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5320d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x53212c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x92adac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x532134]
or eax, eax
je 0x92ade8
mov dword [ebx], eax
add ebx, 4
jmp 0x92adc9
call dword [esi + 0x532130]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x92ae1f
cmp al, 0xef
ja 0x92ae12
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x92adf4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x92ae01
mov ebp, dword [esi + 0x532138]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
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 0x92ae53
sub esp, 0xffffff80
jmp 0x40c41c
Function at 0x401058
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call sub.MSVCRT_strlen
inc eax
push eax
call dword [sym.imp.MSVCRT_malloc]
push dword [esp + 0x14]
mov esi, eax
push esi
call sub.MSVCRT_strcpy
push esi
xor edi, edi
call sub.MSVCRT_strlen
add esp, 0x14
test eax, eax
jbe 0x4010ab
xor eax, eax
mov cl, byte [eax + 0x403020]
xor byte [edi + esi], cl
inc eax
cmp eax, 0xb
jb 0x401088
mov al, byte [edi + esi]
push esi
not al
mov byte [edi + esi], al
inc edi
call sub.MSVCRT_strlen
cmp edi, eax
pop ecx
jb 0x401086
mov eax, esi
pop edi
pop esi
ret

Function at 0x401194
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4020c0
push 0x401bd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
add byte [eax + 0x564d5868], bh
mov ebx, 0x8685d465
mov ecx, 0xa
mov dx, 0x5658
in eax, dx
mov dword [ebp - 0x1c], ebx
pop ebx
or dword [ebp - 4], 0xffffffff
xor eax, eax
cmp dword [ebp - 0x1c], 0x564d5868
sete al
jmp 0x401203
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40158e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e8
push ebx
push esi
push edi
lea eax, [ebp - 0x1c]
push dword [ebp + 0x20]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x2e8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004014cb
add esp, 0x10
test eax, eax
je 0x4016df
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
mov esi, 0x3000
cmp dword [edi + 0x1c], eax
jne 0x4015ee
mov ecx, dword [ebp - 0x18]
cmp dword [ebp + 0x1c], ecx
ja 0x4015ee
lea edx, [ebp + 0x20]
mov dword [ebp - 4], eax
push edx
push 0x40
push ecx
push eax
push dword [ebp - 0x14]
call dword [0x40318c]
jmp 0x401611
push eax
push dword [ebp - 0x14]
call dword [0x403180]
test eax, eax
jne 0x401611
push 0x40
push esi
push dword [ebp + 0x1c]
push dword [edi + 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
mov ebx, dword [ebp + 0x18]
jne 0x40165f
push edi
call fcn.00401571
test eax, eax
pop ecx
je 0x401655
push 0x40
push esi
push dword [ebp + 0x1c]
push 0
push dword [ebp - 0x14]
call dword [0x403188]
test eax, eax
mov dword [ebp - 4], eax
je 0x4016df
push eax
push ebx
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040145e
add esp, 0x18
cmp dword [ebp - 4], 0
je 0x4016df
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 4]
push 4
push eax
mov eax, dword [ebp - 0x244]
add eax, 8
push eax
push dword [ebp - 0x14]
call dword [0x403194]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push 0
push dword [ebp + 0x1c]
mov eax, dword [eax + 0x3c]
push ebx
mov dword [eax + ebx + 0x34], ecx
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [0x403194]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2e8], 0x10007
cmp eax, dword [ebp - 0x1c]
jne 0x4016bb
mov eax, dword [edi + 0x10]
add eax, dword [edi + 0x1c]
mov dword [ebp - 0x238], eax
jmp 0x4016c6
mov ecx, dword [edi + 0x10]
add ecx, eax
mov dword [ebp - 0x238], ecx
lea eax, [ebp - 0x2e8]
push eax
push dword [ebp - 0x10]
call dword [0x403178]
push dword [ebp - 0x10]
call dword [0x403184]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4016e4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push esi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00401253
add esp, 0x18
test al, al
je 0x401783
push dword [ebp - 4]
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00401320
add esp, 0x10
mov edi, eax
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x401783
push esi
lea eax, [ebp - 0x13c]
push dword [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004013a9
push dword [ebp + 8]
lea eax, [ebp - 0x13c]
push edi
push esi
push dword [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040158e
add esp, 0x38
pop edi
pop esi
leave
ret

Function at 0x401787
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
xor edx, edx
lea eax, [ebp - 0x44c]
mov ecx, 0x100
mov dword [eax], edx
inc edx
add eax, 4
cmp edx, ecx
jl 0x4017a5
lea esi, [ebp - 0x44c]
mov eax, edi
xor edx, edx
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edx + eax]
add eax, dword [esi]
add eax, dword [ebp - 4]
cdq
idiv ebx
mov bl, byte [esi]
inc edi
mov dword [ebp - 4], edx
lea eax, [ebp + edx*4 - 0x44c]
mov edx, dword [ebp + edx*4 - 0x44c]
mov dword [esi], edx
add esi, 4
movzx edx, bl
cmp edi, ecx
mov dword [eax], edx
jl 0x4017b5
and dword [ebp + 0x14], 0
cmp dword [ebp + 0x10], 0
jbe 0x401858
lea eax, [edi + 1]
mov esi, ecx
cdq
idiv esi
mov ebx, ecx
mov edi, edx
mov eax, dword [ebp + edi*4 - 0x44c]
lea esi, [ebp + edi*4 - 0x44c]
add eax, dword [ebp - 4]
cdq
idiv ebx
mov bl, byte [esi]
mov dword [ebp - 4], edx
lea eax, [ebp + edx*4 - 0x44c]
mov edx, dword [ebp + edx*4 - 0x44c]
mov dword [esi], edx
movzx edx, bl
mov ebx, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
add ebx, eax
mov eax, dword [esi]
add eax, edx
mov esi, ecx
cdq
idiv esi
mov al, byte [ebp + edx*4 - 0x44c]
xor byte [ebx], al
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp + 0x10]
jb 0x4017f9
pop edi
pop esi
pop ebx
lea eax, [ebp - 0x4c]
push 0x46
push eax
push 0x403044
push 0
push 0
push 0x409
call dword [0x403168]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.MSVCRT_atoi]
cmp eax, 1
pop ecx
jg 0x401892
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40185b
mov eax, dword [ebp + 8]
leave
ret
Function at 0x25807297
Capabilities:
Print debug messages

Disassembly:
push 0x1c
mov eax, 0x2581bb95
call fcn.2581acc1
mov eax, dword fs:[0x2c]
xor ebx, ebx
mov ecx, dword [0x25824498]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x25823cc0]
cmp eax, dword [ecx + 4]
jg 0x25807364
cmp byte [0x25823cbc], 0
je 0x2580735e
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
call fcn.25814ba5
push 1
lea esi, [eax + 6]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edi, eax
add esp, 0x14
test edi, edi
je 0x2580735e
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push esi
push edi
call fcn.25814ba5
add esp, 0x14
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
push str._nEFS:TMS:
call fcn.2580cd40
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.2580cca0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, 0x10
jb 0x2580735e
inc eax
push eax
push dword [ebp - 0x28]
call fcn.25814ba5
pop ecx
pop ecx
call fcn.2581acb0
ret
mov edi, 0x25823cc0
push edi
call fcn.25814ba5
cmp dword [0x25823cc0], 0xffffffff
pop ecx
jne 0x258072c5
mov eax, dword [0x25823df0]
mov dword [ebp - 4], ebx
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x2581d220]
call esi
test al, al
je 0x258073c2
mov eax, dword [0x258240cc]
push ebx
push str.enableTMSLogging
push 0x2581db80
mov esi, dword [eax + 0x5a8]
mov ecx, esi
call dword [0x2581d220]
call esi
add esp, 0xc
test ax, ax
mov al, 1
jne 0x258073c6
jmp 0x258073c2
mov al, bl
jmp 0x258073c6
or dword [ebp - 4], 0xffffffff
push edi
mov byte [0x25823cbc], al
call fcn.25814ba5
pop ecx
jmp 0x258072c5
Function at 0x25814ba5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x25814bb4
pop dword [ebp - 0x2c]
mov eax, 0xf45afc79
sub eax, 0xced9b0c5
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x821d4ae
sub dword [ebp - 0x3c], 0xb9cf8f63
mov dword [ebp - 0x38], 0xcce70e3c
add dword [ebp - 0x38], 0x654c3e09
mov dword [ebp - 0x34], 0x5437dc52
add dword [ebp - 0x34], 0xf81467dc
mov dword [ebp - 0x30], 0x383b5336
sub dword [ebp - 0x30], 0x383b5336
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x2bed9d9
add dword [ebp - 0x3c], 0x71b38f7d
mov dword [ebp - 0x38], 0x76772172
add dword [ebp - 0x38], 0xcaf54003
mov dword [ebp - 0x34], 0x5279a763
add dword [ebp - 0x34], 0x10f5c509
mov dword [ebp - 0x30], 0x4f52eb00
add dword [ebp - 0x30], 0xb0ad1500
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3e3f3
push 0
call eax
mov ecx, 0x4ed2
xor edi, edi
add edi, eax
mov ebx, 0x25829600
add ebx, dword [ebp - 0x2c]
mov esi, 0x4a443b0f
add esi, 0x93f09901
xor dword [ebp - 0x14], eax
mov edx, dword [ebx]
xor dword [ebp - 0x24], edi
add edx, esi
mov dword [edi], edx
xor dword [ebp - 0x10], esi
add edi, 4
add ebx, 0x15714848
sub ebx, 0x15714844
loop 0x25814cc2
add eax, 0x969eab91
add eax, 0x6962828a
mov ebx, eax
add eax, 0xb2078602
add eax, 0x4df87a03
mov ecx, 0x25800000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret