joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a2c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a5cc
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e6544]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0xe0
call fcn.0047c095
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x42a451
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov dword [esi], ecx
test ecx, ecx
je 0x42a31a
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [edi + 4]
mov byte [ebp - 4], 1
mov dword [esi + 4], ecx
test ecx, ecx
je 0x42a32e
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [edi + 8]
mov byte [ebp - 4], 2
mov dword [esi + 8], ecx
test ecx, ecx
je 0x42a342
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [edi + 0xc]
mov byte [ebp - 4], 3
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x42a356
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
movzx eax, byte [edi + 0x10]
lea ecx, [esi + 0x18]
mov byte [esi + 0x10], al
movzx eax, byte [edi + 0x11]
mov byte [esi + 0x11], al
movzx eax, byte [edi + 0x12]
mov byte [esi + 0x12], al
movzx eax, byte [edi + 0x13]
mov byte [esi + 0x13], al
movzx eax, byte [edi + 0x14]
mov byte [esi + 0x14], al
movzx eax, byte [edi + 0x15]
mov byte [esi + 0x15], al
movzx eax, byte [edi + 0x16]
mov byte [esi + 0x16], al
movzx eax, byte [edi + 0x17]
mov byte [esi + 0x17], al
lea eax, [edi + 0x18]
push eax
mov byte [ebp - 4], 4
call fcn.004136c0
lea eax, [edi + 0x24]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x24]
call fcn.004136c0
lea eax, [edi + 0x30]
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x30]
call fcn.004136c0
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
movq xmm0, qword [edi + 0x44]
movq qword [esi + 0x44], xmm0
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x54]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ecx
mov eax, dword [edi + 0x58]
mov ecx, dword [edi + 0x5c]
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], ecx
movzx eax, byte [edi + 0x60]
mov byte [esi + 0x60], al
mov eax, dword [edi + 0x68]
mov ecx, dword [edi + 0x6c]
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ecx
mov eax, dword [edi + 0x70]
mov ecx, dword [edi + 0x74]
mov dword [esi + 0x70], eax
lea eax, [edi + 0x78]
mov dword [esi + 0x74], ecx
lea ecx, [esi + 0x78]
push eax
mov byte [ebp - 4], 7
call fcn.00429f70
lea eax, [edi + 0xa8]
mov byte [ebp - 4], 8
push eax
lea ecx, [esi + 0xa8]
call fcn.00429f70
mov eax, dword [edi + 0xd8]
mov ecx, dword [edi + 0xdc]
mov dword [esi + 0xd8], eax
mov dword [esi + 0xdc], ecx
jmp 0x42a453
xor esi, esi
mov eax, dword [ebx + 4]
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
mov ecx, dword [ebx]
mov dword [ecx + eax*4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48b06c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d6de4
push 0x4d6ddc
push str.FlsAlloc
push 0x1e
call fcn.0048aef6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48b0a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b22b0]
call esi
jmp 0x48b0a6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48b0ea
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d6df4
push 0x4d6dec
push str.FlsGetValue
push 0x20
call fcn.0048aef6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48b121
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b22b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x48d19d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048d00e

Function at 0x48e7e5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4ea588]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48e825
cmp byte [ebx], 0xa
jne 0x48e825
or byte [eax + edi + 0x28], 4
jmp 0x48e82a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x48e928
mov al, byte [edx]
cmp al, 0x1a
je 0x48e90a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x48e859
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x48e87e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x48e888
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x48e83b
jmp 0x48e928
push 0
lea eax, [ebp - 0xc]
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 0x48e905
cmp dword [ebp - 0xc], 0
je 0x48e905
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4ea588]
test byte [eax + edi + 0x28], 0x48
je 0x48e8df
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48e8ca
mov byte [esi], dl
jmp 0x48e8db
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ea588]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48e928
cmp byte [ebp - 1], 0xa
jne 0x48e8ee
cmp esi, ebx
jne 0x48e8ee
mov byte [esi], 0xa
jmp 0x48e927
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0049416b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48e928
mov byte [esi], 0xd
jmp 0x48e927
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4ea588]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48e924
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48e928
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48e931
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4ea588]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48e974
cmp word [esi], dx
jne 0x48e974
or byte [edi + eax + 0x28], 4
jmp 0x48e979
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x48eacc
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x48eaac
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x48e9bb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x48e9f1
cmp eax, edx
jae 0x48e9fd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x48e993
jmp 0x48eacc
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48eaa8
cmp dword [ebp - 0x14], 0
je 0x48eaa8
mov eax, dword [ebx*4 + 0x4ea588]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x48ea80
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x48ea49
mov word [esi], cx
jmp 0x48ea7c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4ea588]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4ea588]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4ea588]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x48eacc
pop ebx
cmp word [ebp - 4], bx
jne 0x48ea91
cmp esi, dword [ebp + 0xc]
jne 0x48ea91
mov word [esi], bx
jmp 0x48eac9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0049416b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x48eacc
push 0xd
jmp 0x48eac5
mov ecx, dword [ebx*4 + 0x4ea588]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48eac3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48eacc
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4904fe
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 0x49059b
push ebx
push esi
call fcn.004904c7
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.0048aa35
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x490548
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x49059a
push edi
push eax
call fcn.0048a657
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x490568
call fcn.0048a61d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x490599
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0048aa35
add esp, 0x20
test eax, eax
jne 0x490587
push edi
call fcn.0048a61d
jmp 0x49058f
push ebx
call fcn.0048a61d
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 0x497585
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]
push dword [ebp + 0xc]
push ebx
call fcn.00497501
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4976fd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4976fd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4976ac
jg 0x4975de
test eax, eax
je 0x4976a2
push 1
push 0x1000
call fcn.0048abf8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x497604
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x497699
push 0x8000
push ebx
call fcn.00486509
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x497630
jg 0x49762b
cmp ecx, 0x1000
jb 0x497630
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0048cc0a
add esp, 0x10
cmp eax, 0xffffffff
je 0x497675
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 0x49762b
jl 0x49765c
test ecx, ecx
jne 0x49761d
push dword [ebp - 0xc]
push ebx
call fcn.00486509
push esi
call fcn.0048a61d
add esp, 0xc
xor edi, edi
jmp 0x49770e
cmp byte [edi + 0x24], 0
je 0x49768c
cmp dword [edi + 0x20], 5
jne 0x49768c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x497697
mov edi, dword [edi + 0x18]
jmp 0x497699
xor edi, edi
push esi
call fcn.0048a61d
pop ecx
jmp 0x49770e
test ecx, ecx
jg 0x49766e
jl 0x4976ac
test eax, eax
jae 0x49766e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0049416b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4976cf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x49766e
jmp 0x497706
push ebx
call fcn.0048e765
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x49766e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x49770e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x49770b
mov edi, dword [edi + 0x18]
jmp 0x49770e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0049416b
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b0790
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4e6544]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov dword [ebp - 0x84], 0x420041
xor edx, edx
mov dword [ebp - 0x80], 0x440043
mov dword [ebp - 0x7c], 0x460045
mov dword [ebp - 0x78], 0x480047
mov dword [ebp - 0x74], 0x4a0049
mov dword [ebp - 0x70], 0x4c004b
mov dword [ebp - 0x6c], 0x4e004d
mov dword [ebp - 0x68], 0x50004f
mov dword [ebp - 0x64], 0x520051
mov dword [ebp - 0x60], 0x540053
mov dword [ebp - 0x5c], 0x560055
mov dword [ebp - 0x58], 0x580057
mov dword [ebp - 0x54], 0x5a0059
mov dword [ebp - 0x50], 0x620061
mov dword [ebp - 0x4c], 0x640063
mov dword [ebp - 0x48], 0x660065
mov dword [ebp - 0x44], 0x680067
mov dword [ebp - 0x40], 0x6a0069
mov dword [ebp - 0x3c], 0x6c006b
mov dword [ebp - 0x38], 0x6e006d
mov dword [ebp - 0x34], 0x70006f
mov dword [ebp - 0x30], 0x720071
mov dword [ebp - 0x2c], 0x740073
mov dword [ebp - 0x28], 0x760075
mov dword [ebp - 0x24], 0x780077
mov dword [ebp - 0x20], 0x7a0079
mov dword [ebp - 0x1c], 0x310030
mov dword [ebp - 0x18], 0x330032
mov dword [ebp - 0x14], 0x350034
mov dword [ebp - 0x10], 0x370036
mov dword [ebp - 0xc], 0x390038
mov dword [ebp - 8], 0x2f002b
test esi, esi
jle 0x4b08cf
nop word [eax + eax]
movzx ecx, word [edi + edx*2]
xor eax, eax
cmp word [ebp + eax*2 - 0x84], cx
je 0x4b08ca
inc eax
cmp eax, 0x40
jb 0x4b08a6
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047be9b
mov esp, ebp
pop ebp
ret 4
inc edx
cmp edx, esi
jl 0x4b08a0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0047be9b
mov esp, ebp
pop ebp
ret 4
Function at 0x4b0c70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4e6544]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0047d540
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4b0d57
push ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4b0d0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b0d0f
mov ecx, dword [edi]
jmp 0x4b0d21
mov eax, dword [ebp - 0x210]
xor ecx, ecx
add ecx, ebx
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
push ecx
mov dword [ebp - 0x218], 0
call fcn.0047c0d3
mov ecx, dword [ebp - 0x214]
add esp, 4
push 0
mov dword [ecx], eax
lea ecx, [ebp - 0x218]
push ecx
push dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047be9b
mov esp, ebp
pop ebp
ret 8
Function at 0x572c80
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

Function at 0x408b40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ebp, dword [edx + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push 0x1c
lea ebp, [esi + 0x68006af8]
push es
push edx
mov eax, dword [eax - 0xfba76a4]
lea eax, [ebp - 4]
mov cs, word [ebp - 0xc]
push eax
mov eax, dword [edx + 4]
lea ecx, [ebp + 0x13]
inc ebp
add dword [ebp + 0x50], esi
mov dword [ebp - 4], 0xaf270000
invalid

Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
xor eax, eax
ret 4
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add al, 0x13
adc al, 0x85
sal byte [ebx + esi - 0x75], 0x4d
or al, 0x51
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40a40a
push 0xffffffffffffff8b
xor eax, 0xe540c098
call esi
jmp 0x40a3b7
inc edi
call 0x10d666d
cwde
cmp ebx, dword [0xc25d0000]
or byte [eax], al
or dword [eax - 0x6f6f4d7f], edx
nop
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x401957
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x401957
lcall 0x5de5, 0x8b10c483
jmp loc.0096a674
Function at 0x1002f1e
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa6c
push edi
push 0x1002ee8
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [0x100bd68], eax
je 0x1002fbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1002fad
lea eax, [ebp - 4]
push eax
push 0xa68
lea eax, [ebp - 0xa6c]
push eax
push 1
push 0xffffffffffffffff
push edi
call sub.WINSTA.dll_WinStationQueryInformationW
test al, al
je 0x1002fad
test byte [ebp - 0x9ec], 4
jne 0x1002f79
call fcn.0100700c
test byte [ebp - 0x9ec], 1
jne 0x1002f8c
push dword [ebp + 8]
call fcn.01002c76
jmp 0x1002f9d
test byte [ebp - 0x9ec], 4
jne 0x1002fad
push dword [ebp + 8]
call fcn.01005956
test byte [ebp - 0x9ec], 4
mov edi, eax
jne 0x1002fad
call fcn.0100585c
mov eax, dword [0x100bd68]
test eax, eax
je 0x1002fbd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
leave
ret 0x10

Function at 0x10034cc
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push 1
lea eax, [ebp - 0x228]
push eax
push 0x100be82
call fcn.010020ec
mov eax, dword [ebp + 8]
and dword [ebp - 0x20], 0
and dword [ebp - 0xa], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x14], eax
mov eax, dword [0x100c39c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
mov word [ebp - 0x10], 0x350
mov dword [ebp - 6], 0x100348e
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret 4
Function at 0x1004484
Capabilities:
Encode data using xor

Disassembly:
push 0x19c
push 0x1001630
call fcn.0100721c
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
mov esi, dword [ebp + 0x10]
lea eax, [esi + 4]
add eax, 3
and eax, 0xfffffffc
call fcn.01007270
mov dword [ebp - 0x18], esp
mov ebx, esp
mov dword [ebp - 0x20], ebx
or dword [ebp - 4], 0xffffffff
jmp 0x10044ca
test ebx, ebx
je 0x100457a
mov eax, ebx
and eax, 3
add ebx, eax
mov ecx, esi
xor eax, eax
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x94]
push eax
call fcn.01007960
mov eax, dword [ebp + 0xc]
mov dword [0x100c474], eax
push 0x24
push 0x100c454
lea eax, [ebp - 0x94]
push eax
call fcn.010079a0
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.01007ac0
lea eax, [ebp - 0xa8]
push eax
push 0x14
lea eax, [ebp - 0x1ac]
push eax
call fcn.0100784d
push ebx
push esi
lea eax, [ebp - 0x1ac]
push eax
call fcn.01007700
mov ecx, esi
shr ecx, 2
mov eax, dword [ebp + 8]
je 0x1004561
mov edx, dword [ebx]
xor dword [eax], edx
add eax, 4
add ebx, 4
dec ecx
jne 0x1004554
and esi, 3
je 0x1004573
mov ecx, ebx
sub ecx, eax
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x100456a
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x1b8]
call fcn.01007255
ret 0xc

Function at 0x1004648
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1014ac8]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
inc esi
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x100466a
xor esi, esi
jmp 0x10046ca
xor eax, eax
cmp edi, eax
je 0x10046ca
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
jne 0x10046b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10046b4
push 1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov esi, eax
test esi, esi
je 0x10046c0
sub edi, dword [ebp + 8]
add ebx, dword [ebp + 8]
jmp 0x10046c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x100466a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8