joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003f2c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1003f391
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
cmp eax, 4
jb 0x1003f2f2
mov edi, eax
shr edi, 2
mov ecx, dword [edx]
sub eax, 4
xor dword [esi], ecx
add edx, 4
add esi, 4
sub edi, 1
jne 0x1003f2e0
push ebx
xor ebx, ebx
test eax, eax
je 0x1003f38e
cmp eax, 0x40
jb 0x1003f36e
lea ecx, [edx - 1]
lea edi, [esi - 1]
add ecx, eax
add edi, eax
cmp esi, ecx
ja 0x1003f314
cmp edi, edx
jae 0x1003f36e
push ebp
mov edi, eax
mov ebp, edx
and edi, 0xffffffc0
mov ecx, esi
sub ebp, esi
movups xmm0, xmmword [ecx]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ecx + ebp - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
movups xmm1, xmmword [edx + ebx + 0x10]
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm0, xmmword [ecx - 0x20]
movups xmm1, xmmword [edx + ebx + 0x20]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
movups xmm0, xmmword [ecx - 0x10]
movups xmm1, xmmword [edx + ebx + 0x30]
add ebx, 0x40
pxor xmm1, xmm0
movups xmmword [ecx - 0x10], xmm1
cmp ebx, edi
jb 0x1003f320
pop ebp
cmp ebx, eax
jae 0x1003f38e
sub edx, esi
lea edi, [ebx + esi]
sub eax, ebx
nop dword [eax]
mov cl, byte [edi + edx]
lea edi, [edi + 1]
xor byte [edi - 1], cl
sub eax, 1
jne 0x1003f380
pop ebx
pop edi
pop esi
ret

Function at 0x10044ff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10045190
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100450b4
cmp dword [ebp - 4], 0x50000000
jb 0x10045031
cmp dword [ebp - 4], 0x80000000
ja 0x10045031
mov dword [ebp - 4], 0x4fff0000
jmp 0x1004500a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1004a330
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10045057
jmp 0x100450b4
cmp dword [ebp - 0x14], 0x10000
jne 0x1004509a
cmp dword [ebp - 0x18], 0x10000
jb 0x1004509a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1004508d
mov eax, dword [ebp - 8]
jmp 0x100450b6
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100450af
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10045190
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004500a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100450c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100451c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1004517c
cmp dword [ebp - 4], 0x50000000
jb 0x100450fc
cmp dword [ebp - 4], 0x80000000
ja 0x100450fc
mov dword [ebp - 4], 0x80010000
jmp 0x100450d5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1004a330
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10045122
jmp 0x1004517c
cmp dword [ebp - 0x14], 0x10000
jne 0x10045165
cmp dword [ebp - 0x18], 0x10000
jb 0x10045165
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10045158
mov eax, dword [ebp - 8]
jmp 0x1004517e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10045177
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100451c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100450d5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10045b40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100a0c30]
mov dword [ebp - 4], eax
jmp 0x10045b59
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10045b76
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10045b50
mov esp, ebp
pop ebp
ret
Function at 0x1004ec8a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100472d0
mov eax, dword [0x1008b884]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10057be6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1004eccc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1004ee28
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100476e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100a1358]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1005944e
mov ecx, dword [esi*4 + 0x100a1358]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1004ee21
cmp eax, dword [ecx + edi + 0x24]
jne 0x1004ee21
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004ee21
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1005944e
add esp, 0x14
test edx, edx
jl 0x1004ee21
jg 0x1004ed97
test eax, eax
jb 0x1004ee21
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1004ee21
jl 0x1004edb1
cmp dword [ebp - 0x1008], eax
ja 0x1004ee21
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1004edcf
test ebx, ebx
je 0x1004ee08
cmp ecx, edi
jae 0x1004ee08
mov al, byte [ecx]
cmp al, 0xd
jne 0x1004ede9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1004edf5
cmp byte [ecx + 1], 0xa
jne 0x1004edf5
inc ecx
jmp 0x1004edf5
movzx eax, al
movsx eax, byte [eax + 0x1008bb08]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1004edcf
cmp edx, ebx
jne 0x1004edcf
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1004ee26
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100472b7
leave
ret

Function at 0x10055111
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10055150
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10055150
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10055150
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10055150
cmp dword [ecx + 0x74], 0xe
jbe 0x10055150
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1005858a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100a1358]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100585ca
cmp byte [ebx], 0xa
jne 0x100585ca
or byte [edi + eax + 0x28], 4
jmp 0x100585cf
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100586ce
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100586b1
inc eax
cmp dl, 0xd
je 0x100585fb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10058621
cmp eax, ecx
jae 0x1005862f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100585e3
jmp 0x100586ce
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100586ac
cmp dword [ebp - 0x10], 0
je 0x100586ac
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100a1358]
test byte [eax + edi + 0x28], 0x48
je 0x10058686
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10058671
mov byte [esi], dl
jmp 0x10058682
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100a1358]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100586ce
cmp byte [ebp - 1], 0xa
jne 0x10058695
cmp esi, ebx
jne 0x10058695
mov byte [esi], 0xa
jmp 0x100586cd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1005946c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100586ce
mov byte [esi], 0xd
jmp 0x100586cd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100a1358]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100586cb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100586ce
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100586d7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100a1358]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1005871d
cmp word [ebx], dx
jne 0x1005871d
or byte [eax + edi + 0x28], 4
jmp 0x10058722
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10058885
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10058865
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10058763
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10058799
cmp eax, edx
jae 0x100587a7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1005873e
jmp 0x10058885
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10058860
cmp dword [ebp - 0x18], 0
je 0x10058860
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100a1358]
test byte [eax + edi + 0x28], 0x48
je 0x10058836
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100587fa
mov word [esi], cx
jmp 0x10058831
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100a1358]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100a1358]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100a1358]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10058885
pop eax
cmp word [ebp - 4], ax
jne 0x10058846
cmp esi, ebx
jne 0x10058846
mov word [esi], ax
jmp 0x10058882
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1005946c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10058885
push 0xd
pop eax
jmp 0x10058841
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100a1358]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1005887f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10058885
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100598bf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10077a48
push 0x10077a40
push str.FlsAlloc
push 0x1f
call fcn.100597db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100598f3
push dword [ebp + 8]
mov ecx, esi
call dword [0x10067240]
call esi
jmp 0x100598f9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005993d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10077a58
push 0x10077a50
push str.FlsGetValue
push 0x21
call fcn.100597db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10059974
push dword [ebp + 8]
mov ecx, esi
call dword [0x10067240]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1005997c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10077a60
push 0x10077a58
push str.FlsSetValue
push 0x22
call fcn.100597db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100599b6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10067240]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1005fa4a
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 0x1005fae7
push ebx
push esi
call fcn.1005fa13
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.1005cbaa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005fa94
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005fae6
push edi
push eax
call fcn.10056ce6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005fab4
call fcn.10056cac
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005fae5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005cbaa
add esp, 0x20
test eax, eax
jne 0x1005fad3
push edi
call fcn.10056cac
jmp 0x1005fadb
push ebx
call fcn.10056cac
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 0x10062d91
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10062d0d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10062f00
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10062f00
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10062eb5
jg 0x10062ded
test eax, eax
je 0x10062eab
push 1
push 0x1000
call fcn.10059595
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10062e10
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10062ea2
push 0x8000
push ebx
call fcn.10062c3e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10062e39
jg 0x10062e34
cmp ecx, 0x1000
jb 0x10062e39
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1005a5cc
add esp, 0x10
cmp eax, 0xffffffff
je 0x10062e7e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10062e34
jl 0x10062e65
test ecx, ecx
jne 0x10062e26
push dword [ebp - 0xc]
push ebx
call fcn.10062c3e
push esi
call fcn.10056cac
add esp, 0xc
xor ebx, ebx
jmp 0x10062f0e
cmp byte [edi + 0x24], 0
je 0x10062e95
cmp dword [edi + 0x20], 5
jne 0x10062e95
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10062ea0
mov ebx, dword [edi + 0x18]
jmp 0x10062ea2
xor ebx, ebx
push esi
call fcn.10056cac
pop ecx
jmp 0x10062f0e
test ecx, ecx
jg 0x10062e77
jl 0x10062eb5
test eax, eax
jae 0x10062e77
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1005946c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10062ed5
cmp byte [edi + 0x1c], 0
je 0x10062e77
jmp 0x10062f06
push ebx
call fcn.1006074e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10062e77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10062f0e
cmp byte [edi + 0x1c], 0
je 0x10062f0b
mov ebx, dword [edi + 0x18]
jmp 0x10062f0e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1005946c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10014663
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x10014672
pop dword [ebp - 0x3c]
mov eax, 0x10014672
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3b1cc
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0xb68924c2
add ecx, 0x49772819
mov edi, eax
mov edx, 0x10025400
add edx, dword [ebp - 0x3c]
mov esi, 0x4759deb
sub esi, 0xdd32168d
mov dword [ebp - 0x34], 0x479564b8
mov ebx, dword [edx]
xor dword [ebp - 0x20], 0xf96da05a
add ebx, esi
add dword [ebp - 0xc], ebx
mov dword [edi], ebx
sub dword [ebp - 0x14], ecx
add edi, 0x7490662b
sub edi, 0x74906627
add edx, 0x9b8a5299
add edx, 0x6475ad6b
loop 0x100146c1
add eax, 0x1263f
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x4d8860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x4d8879
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d8885
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4d8880
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4f9b43
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x55a69d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055a2a2

Function at 0x55a6a8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055a423

Function at 0x5639de
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005631b8

Function at 0x5639e9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005633f3

Function at 0x563e55
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00563bdc

Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
xor eax, 0x832b4c77
mov ecx, 0x2015635b
pop ebx
je 0x414acb
arpl word [edi + ecx*4 - 0x44], cx
mov ecx, 0x46de335b
movsb byte es:[edi], byte [esi]
mov dh, byte [esi]
insb byte es:[edi], dx
sti
je 0x414ac7
lodsd eax, dword [esi]
mov al, 0x74
jmp 0x414ac1
ficom word [edi - 0x5d]
bound ecx, qword [esi - 0x741ae8f2]
push edi
mov dword [0x170e8e62], eax
in eax, 0x8b
fild qword [esi]
je 0x414b16
pushfd
inc esi
into
jge 0x414b08
cmp al, 0x61
jne 0x414af7
push ss
dec esp
das
sbb byte [eax - 0x5921cda5], bh
out 0x8b, al
inc edx
inc esp
leave
fdivp st(6)
xchg esp, eax
jmp 0x414a89
invalid
mov ebx, esi
inc esi
movsb byte es:[edi], byte [esi]
mov ebx, esi
inc esi
movsb byte es:[edi], byte [esi]
je 0x414b33
mov ecx, 0x46de8b5b
inc esi
movsb byte es:[edi], byte [esi]
je 0x414b3b
mov ecx, 0x46de8b5b
movsb byte es:[edi], byte [esi]
mov ebx, esi
inc esi
movsb byte es:[edi], byte [esi]
mov ebx, esi
inc esi
movsb byte es:[edi], byte [esi]
mov ebx, esi
lds ecx, [eax - 0x71]
sbb dword [edx - 0x80], eax
jbe 0x414b37
movsb byte es:[edi], byte [esi]
and byte [0xae8bcc09], 7
int3
movsb byte es:[edi], byte [esi]
lds ebx, [ecx - 0x1bf68302]
rcr byte [edi], 0x44
invalid
Function at 0x407480
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47b9bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0047083e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407502
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046e750
mov eax, dword [eax]
push 0x498c38
push eax
call fcn.00461464
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00470ac9
test bl, bl
je 0x407502
push 0x498c38
lea ecx, [esp + 0xc]
call fcn.00470e59
push 0x498c44
lea ecx, [esp + 0xc]
call fcn.00470e59
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40753e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00470ac9
jmp 0x407609
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4075c2
lea edx, [esp + 0x7c]
push 0x498c40
push edx
call fcn.00461464
add esp, 8
test eax, eax
je 0x4075c2
lea eax, [esp + 0x7c]
push 0x498c3c
push eax
call fcn.00461464
add esp, 8
test eax, eax
je 0x4075c2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407552
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00470ac9
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x407e10
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x407e72
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc