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

Disassembly:
push ebx
xor ecx, ecx
mov dword [0x10075670], 0xea60
push esi
mov eax, 0x1f4
mov dword [0x1007566c], ecx
push edi
push ecx
mov dword [0x10075668], eax
mov dword [0x10075674], ecx
mov dword [0x10075678], eax
mov dword [0x1007567c], ecx
mov dword [0x10075680], ecx
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov edi, eax
mov esi, edx
mov eax, 0x55555555
mov dword [0x10075690], edi
xor ebx, ebx
mov dword [0x10076a10], eax
pop ecx
mov dword [0x10076a14], eax
inc ebx
mov dword [0x10075694], esi
push 0x5851f42d
xor eax, eax
mov ecx, esi
push 0x4c957f2d
shr ecx, 0x1e
xor eax, esi
xor ecx, edi
push eax
push ecx
call fcn.10039400
mov edi, eax
mov esi, edx
mov eax, ebx
cdq
add edi, eax
mov eax, 0x138
mov dword [ebx*8 + 0x10075690], edi
adc esi, edx
mov dword [ebx*8 + 0x10075694], esi
inc ebx
cmp ebx, eax
jl 0x10030cc4
movaps xmm0, xmmword [0x10047e30]
pop edi
pop esi
mov dword [0x10075688], eax
mov eax, 0x10075668
movups xmmword [0x10076a18], xmm0
pop ebx
ret 0x10

Function at 0x10034c7d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1004e014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov eax, esi
push edi
mov edi, dword [ebp + 8]
test edx, edx
je 0x10034cc6
cmp word [edx], cx
je 0x10034cc6
push ecx
lea eax, [ebp - 8]
push eax
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10034ceb
mov eax, dword [ebp - 8]
xor ecx, ecx
push dword [ebp + 0x14]
push ebx
push 1
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 8]
mov edi, eax
test ecx, ecx
je 0x10034ce9
cmp ecx, esi
je 0x10034ce9
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10038035
mov esp, ebp
pop ebp
ret

Function at 0x10034f11
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1004e014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xb
mov ebx, ecx
lea edi, [ebp - 0x34]
pop ecx
mov esi, str._pipediscord_ipc_0
rep movsd dword es:[edi], dword [esi]
push 0x30
pop eax
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edi, edi
mov word [ebp - 0xa], ax
jmp 0x10034f7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10034f63
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x10034fac
inc ax
mov word [ebp - 0xa], ax
jmp 0x10034f7d
cmp eax, 0xe7
jne 0x10034fac
push 0x2710
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x10034fac
push edi
push edi
push 3
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x34]
push eax
call esi
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x10034f46
mov byte [ebx], 1
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10038035
mov esp, ebp
pop ebp
ret
xor al, al
jmp 0x10034f9b
Function at 0x10035360
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.10035530
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003543d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x100353aa
mov eax, dword [ebp - 4]
cmp eax, dword [0x1004e004]
ja 0x100353aa
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003537a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x100353cf
jmp 0x1003543d
cmp dword [ebp - 0x14], 0x10000
jne 0x10035423
cmp dword [ebp - 0x18], 0x10000
jb 0x10035423
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10035406
mov eax, dword [ebp - 8]
jmp 0x1003543f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10035416
xor eax, eax
jmp 0x1003543f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10035438
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10035530
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003537a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10035450
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10035560
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10035525
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10035495
mov eax, dword [ebp - 4]
cmp eax, dword [0x1004e004]
ja 0x10035495
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10035465
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x100354ba
jmp 0x10035525
cmp dword [ebp - 0x14], 0x10000
jne 0x1003550e
cmp dword [ebp - 0x18], 0x10000
jb 0x1003550e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100354f1
mov eax, dword [ebp - 8]
jmp 0x10035527
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10035501
xor eax, eax
jmp 0x10035527
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10035520
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10035560
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10035465
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10035590
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10035980
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1004f8f0], 0
jne 0x100355cd
cmp dword [0x1004f8ec], 0
je 0x100355cd
mov eax, dword [0x1004f8ec]
mov dword [0x1004f8f0], eax
cmp dword [0x1004f8f0], 0
je 0x1003564a
mov ecx, dword [0x1004f8f0]
cmp dword [ecx + 8], 0
je 0x1003564a
mov edx, dword [0x1004f8f0]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1003564a
mov ecx, dword [0x1004f8f0]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1003564a
mov eax, dword [0x1004f8f0]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10035619
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10035620
xor eax, eax
jmp 0x10035769
mov ecx, dword [0x1004f8f0]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10035769
mov edx, dword [0x1004f8ec]
mov dword [0x1004f8f0], edx
jmp 0x10035666
mov eax, dword [0x1004f8f0]
mov ecx, dword [eax + 4]
mov dword [0x1004f8f0], ecx
cmp dword [0x1004f8f0], 0
je 0x100356a6
cmp dword [0x1004f8f0], 0
je 0x100356a4
mov edx, dword [0x1004f8f0]
cmp dword [edx + 8], 0
je 0x100356a4
mov eax, dword [0x1004f8f0]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x100356a4
mov edx, dword [0x1004f8f0]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x100356a4
jmp 0x100355fe
jmp 0x10035658
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10035770
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10035767
mov eax, dword [ebp - 0x18]
mov dword [0x1004f8f0], eax
mov ecx, dword [0x1004f8f0]
mov dword [ecx], 0x52727464
mov edx, dword [0x1004f8f0]
mov dword [edx + 8], 0
mov eax, dword [0x1004f8f0]
mov ecx, dword [0x1004f8ec]
mov dword [eax + 4], ecx
mov edx, dword [0x1004f8f0]
mov dword [0x1004f8ec], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1004f8f0]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10035737
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10035757
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1003572e
mov eax, dword [0x1004f8f0]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x100355fe
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100364b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1004f8ec]
mov dword [ebp - 4], eax
jmp 0x100364c9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100364f0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x100364ee
call sub.KERNEL32.dll_GetLastError
jmp 0x100364f2
jmp 0x100364c0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10036990
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1004f8fc], eax
je 0x100369b4
mov eax, 0x10dd
jmp 0x10036b5c
cmp dword [0x1004f900], 0
je 0x100369c7
mov eax, dword [0x1004f900]
jmp 0x10036b5c
cmp dword [ebp + 0xc], 0
jne 0x100369d7
mov eax, 0x57
jmp 0x10036b5c
cmp dword [ebp + 8], 0
jne 0x100369e7
mov eax, 6
jmp 0x10036b5c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10036a10
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x1004f900], ecx
mov edx, dword [ebp + 8]
mov dword [0x1004f904], edx
mov eax, dword [ebp - 8]
jmp 0x10036b5c
push 0x18
call fcn.10038046
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10036a6b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x1004f900], ecx
cmp dword [ebp - 4], 0
je 0x10036a5a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10038079
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x1004f904], ecx
mov eax, dword [ebp - 8]
jmp 0x10036b5c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10036970
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10036970
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x10036aab
cmp dword [ebp - 0xc], 0x1e
jbe 0x10036ac7
mov dword [ebp - 8], 9
cmp dword [0x1004f8f4], 0
je 0x10036ac2
jmp 0x10036a39
jmp 0x10036a30
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10036aee
mov dword [ebp - 8], 9
cmp dword [0x1004f8f4], 0
je 0x10036ae9
jmp 0x10036a39
jmp 0x10036a30
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10036b19
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10036a30
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x1004f90c]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1004f90c], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10036b70
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1004f8fc], eax
je 0x10036b8d
mov eax, 0x10dd
jmp 0x10036c70
mov eax, dword [0x1004f90c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10036c0c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10036be8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10036be8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10035a10
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.10038079
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10036b95
mov dword [0x1004f90c], 0
call fcn.100362f0
mov ecx, dword [0x1004f908]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10036c5a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10038079
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10036c24
mov dword [0x1004f908], 0
mov dword [0x1004f8fc], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10037150
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1004f900], 0
je 0x10037169
mov eax, dword [0x1004f900]
jmp 0x10037208
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1003717a
xor eax, eax
jmp 0x10037208
push 8
call fcn.10038046
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100371d2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100371bb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10038079
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1004f900], eax
mov dword [0x1004f904], 0
mov eax, dword [ebp - 8]
jmp 0x10037208
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x100371ea
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1003719a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1004f908]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1004f908], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x401300
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x218
mov eax, dword [0x40a004]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
push edi
mov edi, dword [0x40bf90]
xor ebx, ebx
push 0x20a
lea eax, [esp + 0x18]
push ebx
push eax
mov dword [esp + 0x18], ebx
call fcn.004057a0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.WRD2
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401411
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push esi
call ebp
push eax
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x401409
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x4013fa
push 0
push esi
call ebp
push 4
mov dword [edi + 0x14], eax
push 0x3000
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [edi + 0x10], eax
test eax, eax
je 0x4013f3
mov edx, dword [edi + 0x14]
push edx
push ebx
push eax
call fcn.00403c70
add esp, 0xc
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov ecx, dword [esp + 0x220]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040154d
add esp, 0x218
ret

Function at 0x401430
Capabilities:
Set current directory

Disassembly:
sub esp, 0x10c
mov eax, dword [0x40a004]
xor eax, esp
mov dword [esp + 0x108], eax
push 0x105
lea eax, [esp + 4]
push 0
push eax
call fcn.004057a0
add esp, 0xc
push 0x105
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401470
sub eax, edx
add eax, 0xffffffff
js 0x401490
mov cl, 0x5c
cmp byte [esp + eax], cl
je 0x40148c
sub eax, 1
jns 0x401480
jmp 0x401490
mov byte [esp + eax], 0
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0040154d
add esp, 0x10c
ret

Function at 0x40154d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x401557
repz ret
jmp fcn.0040170c
Function at 0x4094d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x4094f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4094f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4094e8
mov eax, 1
add ebx, ebx
jne 0x40950b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409500
jne 0x40951c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409500
xor ecx, ecx
sub eax, 3
jb 0x409530
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4095a2
mov ebp, eax
add ebx, ebx
jne 0x40953b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x409548
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40956c
inc ecx
add ebx, ebx
jne 0x409558
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40954d
jne 0x409569
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40954d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40958c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40957d
jmp 0x4094ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40958c
add edi, ecx
jmp 0x4094ee
pop esi
mov edi, esi
mov ecx, 0x15
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4095aa
cmp byte [edi], 1
jne 0x4095aa
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 0x4095af
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x409627
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x98ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x98e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4095dc
mov ecx, edi
jns 0x40960b
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 + 0x98ec]
or eax, eax
je 0x409621
mov dword [ebx], eax
add ebx, 4
jmp 0x4095f9
call dword [esi + 0x98f4]
mov ebp, dword [esi + 0x98f0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x40965b
sub esp, 0xffffff80
jmp 0x401398
Function at 0x10001710
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10006bd1
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
lea ecx, [esi + 0xe]
mov dword [esi + 0xc], eax
mov dword [esi], ecx
mov dword [esp + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
lea edx, [esi + 0x1e]
mov cl, 1
mov dword [esi + 0x10], edx
mov byte [esi + 0x1d], cl
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
lea edx, [esi + 0x2e]
mov dword [esi + 0x20], edx
mov byte [esi + 0x2d], cl
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
lea edx, [esi + 0x3e]
mov dword [esi + 0x30], edx
mov byte [esi + 0x3d], cl
push 0x100017d0
push 0x100016e0
mov byte [esp + 0x18], 3
push 0x14
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov byte [esi + 0x48], al
mov byte [esi + 0x49], al
push 0x24
lea eax, [esi + 0x12c]
push eax
call fcn.10005f58
mov byte [esp + 0x10], 4
call section..text
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4

Function at 0x10001810
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10006b39
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push 0x100017d0
push 0x14
push 0x24
lea eax, [esi + 0x12c]
push eax
mov dword [esp + 0x24], 3
call fcn.1000601c
mov eax, dword [esi + 0x30]
lea edi, [esi + 0x3e]
cmp eax, edi
je 0x1000186d
test eax, eax
je 0x1000186a
push eax
call sub.msvcrt.dll_free
add esp, 4
mov dword [esi + 0x30], edi
mov eax, dword [esi + 0x20]
lea edi, [esi + 0x2e]
cmp eax, edi
je 0x10001887
test eax, eax
je 0x10001884
push eax
call sub.msvcrt.dll_free
add esp, 4
mov dword [esi + 0x20], edi
mov eax, dword [esi + 0x10]
lea edi, [esi + 0x1e]
cmp eax, edi
je 0x100018a1
test eax, eax
je 0x1000189e
push eax
call sub.msvcrt.dll_free
add esp, 4
mov dword [esi + 0x10], edi
mov eax, dword [esi]
lea edi, [esi + 0xe]
cmp eax, edi
je 0x100018b9
test eax, eax
je 0x100018b7
push eax
call sub.msvcrt.dll_free
add esp, 4
mov dword [esi], edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x10006710
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x10006723
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1000671f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x10006740
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1000677f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x10006775
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x10006781
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x10006765
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret