joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10033540
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
push edi
lea ebx, [esi - 0x7ff80000]
cmp esi, 0x7ff80000
ja 0x10033559
mov ebx, 0x10000
lea ebp, [esi + 0x7ff80000]
cmp esi, 0x80000000
jb 0x1003356c
mov ebp, 0xfff80000
mov eax, dword [0x1005b974]
mov edx, dword [0x1005b970]
test eax, eax
jne 0x10033586
test edx, edx
je 0x10033599
mov eax, edx
mov dword [0x1005b974], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10033599
cmp ecx, ebx
jb 0x10033599
cmp ecx, ebp
jbe 0x10033687
mov eax, edx
mov dword [0x1005b974], eax
test edx, edx
je 0x100335c7
test eax, eax
je 0x100335bb
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100335bb
cmp ecx, ebx
jb 0x100335bb
cmp ecx, ebp
jbe 0x10033682
mov eax, dword [eax + 4]
test eax, eax
jne 0x100335a8
mov dword [0x1005b974], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, 0x40000000
jbe 0x10033602
lea edi, [esi - 0x40000000]
push esi
mov eax, edi
call fcn.100333b0
add esp, 4
test eax, eax
jne 0x10033646
push ebx
mov eax, edi
call fcn.10033480
add esp, 4
test eax, eax
jne 0x10033646
cmp esi, 0x40000000
jae 0x10033628
lea edi, [esi + 0x40000000]
push esi
mov eax, edi
call fcn.10033480
add esp, 4
test eax, eax
jne 0x10033646
push ebp
mov eax, edi
call fcn.100333b0
add esp, 4
test eax, eax
jne 0x10033646
push ebx
mov eax, esi
call fcn.10033480
add esp, 4
test eax, eax
jne 0x10033646
push ebp
mov eax, esi
call fcn.100333b0
add esp, 4
test eax, eax
je 0x100336af
xor edx, edx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov ecx, dword [0x1005b970]
mov dword [eax + 4], ecx
mov dword [0x1005b974], eax
mov dword [0x1005b970], eax
lea ecx, [eax + 0xffa8]
mov esi, 0x38b
nop
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
sub esi, 1
jne 0x10033670
mov dword [eax + 8], edx
jmp 0x10033687
mov dword [0x1005b974], eax
mov esi, dword [eax + 8]
cmp esi, ebx
jb 0x100336af
cmp esi, ebp
ja 0x100336af
mov edx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], edx
call sub.MSVCR90.dll_memset
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x100336f0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov eax, dword [0x1005b970]
push ebx
mov ebx, 0x1005b970
test eax, eax
je 0x1003375b
push esi
push edi
cmp dword [eax], 0x52727464
jne 0x10033750
lea edi, [eax + 0x10000]
xor edx, edx
lea esi, [eax + 0x88]
mov ecx, dword [esi]
test ecx, ecx
je 0x10033725
cmp ecx, eax
jb 0x10033750
cmp ecx, edi
jae 0x10033750
inc edx
add esi, 0x48
cmp edx, 0x38d
jb 0x10033717
mov ecx, dword [eax + 4]
push 0x8000
push 0
push eax
mov dword [ebx], ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x1005b974], 0
jmp 0x10033753
lea ebx, [eax + 4]
mov eax, dword [ebx]
test eax, eax
jne 0x10033701
pop edi
pop esi
pop ebx
ret
Function at 0x10033800
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1005b980], eax
je 0x10033816
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x1005b990]
xor ebp, ebp
push edi
cmp esi, ebp
je 0x1003387e
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
movzx eax, byte [edx + 0x36]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebp
jne 0x1003386d
mov ebx, dword [esi + 0x10]
cmp ebx, ebp
je 0x1003386d
push 0x48
push ebp
mov edi, ebx
push ebx
and edi, 0xffff0000
call sub.MSVCR90.dll_memset
mov edx, dword [edi + 8]
mov dword [ebx + 0x40], edx
mov dword [edi + 8], ebx
add esp, 0xc
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, edi
cmp edi, ebp
jne 0x10033826
mov dword [0x1005b990], ebp
call fcn.10033360
mov esi, dword [0x1005b98c]
cmp esi, ebp
je 0x100338b7
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
mov eax, dword [esi + 4]
push eax
call ebx
mov edi, dword [esi]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, edi
cmp edi, ebp
jne 0x100338a0
pop edi
pop esi
mov dword [0x1005b98c], ebp
mov dword [0x1005b980], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10033bb0
Capabilities:
Suspend thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [0x1005b984]
test eax, eax
jne 0x10033c25
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
jne 0x10033bca
xor eax, eax
pop edi
ret
push esi
push 8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
jne 0x10033be0
lea edi, [eax + 8]
jmp 0x10033bfd
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10033c12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
mov dword [0x1005b984], edi
mov eax, edi
mov dword [0x1005b988], 0
pop edi
ret
mov eax, dword [0x1005b98c]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x1005b98c], esi
xor eax, eax
pop esi
pop edi
ret
Function at 0x10033e80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1005b980], eax
je 0x10033e96
mov eax, 0x10dd
pop ecx
ret
mov eax, dword [0x1005b984]
test eax, eax
jne 0x10033f8f
cmp dword [0x1005b968], eax
jne 0x10033ec1
mov eax, 6
mov dword [0x1005b984], eax
mov dword [0x1005b988], 0x1005b968
pop ecx
ret
push ebx
push esi
push edi
push 0x18
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
jne 0x10033edc
lea esi, [eax + 8]
jmp 0x10033f6d
mov ecx, dword [0x1005b968]
call fcn.10033760
mov ecx, 0x10030490
mov ebx, eax
call fcn.10033760
movzx ecx, byte [ebx + 0x36]
mov esi, dword [ebx + 0x40]
sub esi, ecx
test ecx, ecx
je 0x10033f5f
cmp ecx, 0x1e
ja 0x10033f5f
cmp dword [ebx + 0x44], eax
jne 0x10033f5f
lea eax, [esp + 0xc]
push eax
push 0x40
push ecx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10033f2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10033f6d
mov edx, dword [0x1005b990]
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], esi
mov dword [edi + 4], 1
mov dword [edi + 8], 0x1005b968
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x14], ecx
mov dword [edi], edx
mov dword [0x1005b990], edi
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
cmp dword [0x1005b978], 0
mov esi, 9
jne 0x10033f73
mov dword [0x1005b984], esi
test edi, edi
je 0x10033f80
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
mov eax, esi
pop esi
mov dword [0x1005b988], 0x1005b968
pop ebx
pop ecx
ret

Function at 0x100344d1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1005a018]
jne 0x100344db
repz ret
jmp fcn.10034af2
Function at 0x100012a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], ecx
cmp byte [ebp + 0xc], 0
mov eax, edx
push edi
cmovne esi, eax
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x18], edi
test esi, esi
jne 0x100012c7
xor bl, bl
jmp 0x100012ec
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp - 0x18]
test eax, eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
setne bl
push eax
push dword [ebp + 8]
mov byte [ebp - 0xc], bl
push ecx
call fcn.10007e20
add esp, 0xc
test bl, bl
je 0x10001315
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001320
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push 0x40
push 1
push esi
mov edi, ecx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
setne byte [ebp - 0x10]
mov cl, byte [esi]
mov byte [ebp - 1], cl
test eax, eax
je 0x1000136e
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
push dword [ebp - 0x1c]
call ebx
mov cl, byte [ebp - 1]
movzx eax, cl
sub eax, 0xe8
je 0x1000142c
sub eax, 1
je 0x1000142c
sub eax, 0x16
jne 0x1000141d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0x40
inc esi
mov dword [ebp - 0x18], 1
push 1
push esi
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
setne byte [ebp - 0x10]
mov cl, byte [esi]
mov byte [ebp - 1], cl
test eax, eax
je 0x100013cc
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
push dword [ebp - 0x1c]
call ebx
mov cl, byte [ebp - 1]
cmp cl, 0x15
je 0x100013d6
cmp cl, 0x25
jne 0x1000141d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0x40
add esi, 2
mov dword [ebp - 0x18], 4
push 4
push esi
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
setne byte [ebp - 0x10]
mov esi, dword [esi]
test eax, eax
je 0x10001410
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
push dword [ebp - 0x1c]
call ebx
mov eax, dword [esi]
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0x40
inc esi
mov dword [ebp - 0x18], 4
push 4
push esi
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
setne byte [ebp - 0x10]
mov ecx, dword [esi]
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x1000146a
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
push dword [ebp - 0x1c]
call ebx
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 4]
add eax, ecx
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001480
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
mov edx, esp
mov dword [ebp - 4], ecx
mov dword [edx], eax
call fcn.10001320
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
push eax
push 0x40
push 1
push esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0xe8
test eax, eax
je 0x100014da
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 0xc]
inc esi
push eax
push 0x40
push 4
sub edi, esi
mov dword [ebp - 0x14], 4
push esi
sub edi, 4
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], edi
test eax, eax
je 0x1000151a
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001b20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001abb5
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x1002500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0
call fcn.1000c884
add esp, 4
push eax
call fcn.10008401
add esp, 4
call fcn.100083e0
cdq
mov ecx, 0xf4240
idiv ecx
movzx eax, word [ebp - 0x46]
movzx esi, word [ebp - 0x44]
inc edx
movzx ecx, word [ebp - 0x54]
imul esi, eax
movzx eax, word [ebp - 0x48]
mov dword [ebp - 0x40], 0
imul esi, eax
movzx eax, word [ebp - 0x56]
imul ecx, eax
movzx eax, word [ebp - 0x58]
imul ecx, eax
add esi, ecx
push edx
push esi
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], 0
push str._d_d
push eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.10001120
add esp, 0x10
mov dword [ebp - 4], 1
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
jb 0x10001c1e
mov edx, dword [ebp - 0x40]
mov ecx, edx
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001c10
sub ecx, esi
lea eax, [ecx + edx]
jmp 0x10001c32
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001c21
sub ecx, edx
lea eax, [ebp - 0x40]
add eax, ecx
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.10003a90
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push 0x50
push eax
push 1
push 0
push str.GreenTech
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10001c9d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10001c93
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001cfc
push edx
push ecx
call fcn.10005777
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 0x10
jb 0x10001ce1
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10001cd7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001cfc
push edx
push ecx
call fcn.10005777
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10005211
mov esp, ebp
pop ebp
ret
call fcn.1000d360
int3
Function at 0x10002760
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
mov bl, byte [esi]
test eax, eax
je 0x100027a7
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 4], ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002cf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
je 0x10002d1f
mov byte [esi + 0x24], 0
mov edx, dword [esi + 0x1c]
call fcn.10003c50
mov eax, dword [esi + 0x1c]
mov ecx, esi
mov dword [eax], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], eax
mov dword [esi + 0x20], 0
pop esi
jmp fcn.10001ed0
pop esi
ret

Function at 0x10003fd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x50
mov eax, dword [0x1002500c]
xor eax, esp
mov dword [esp + 0x4c], eax
lea eax, [esp + 8]
mov dword [esp + 0xc], 0x28
push eax
push 0x20006
push 0
xorps xmm0, xmm0
push str.MicrosoftWindowsCurrentVersionExplorerStartupApprovedRun
push 0x80000001
movaps xmmword [esp + 0x24], xmm0
movaps xmmword [esp + 0x34], xmm0
movq qword [esp + 0x44], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004060
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 2
push 0x10021da4
push 0x10021d64
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x1000407e
lea ecx, [esp + 0x10]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004050
sub ecx, edx
cmp ecx, 1
ja 0x1000407e
jmp 0x10004075
lea eax, [esp + 8]
push eax
push str.MicrosoftWindowsCurrentVersionExplorerStartupApprovedRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ecx, dword [esp + 8]
call fcn.10001b20
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.10005211
mov esp, ebp
pop ebp
ret
Function at 0x10004b70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov ecx, 0x401000
call fcn.10004da0
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.10001f50
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x10004bcd
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call edi
cmp esi, 0x53ec8b55
jne 0x10004be0
mov eax, 0x3e9
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x401000
call fcn.10004da0
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.10001f50
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x10004c2f
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call edi
cmp esi, 0x16197be9
jne 0x10004c42
mov eax, 0x3ea
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8245bc
call fcn.10004dc0
cmp eax, 0x94bf
jne 0x10004c5e
mov eax, 0x3f3
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8252fc
call fcn.10004dc0
cmp eax, 0x94bf
jne 0x10004c7a
mov eax, 0x44d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x82533c
call fcn.10004dc0
cmp eax, 0x94bf
jne 0x10004c96
mov eax, 0x457
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858d51
call fcn.10004dc0
cmp eax, 0x3539f633
jne 0x10004cb2
mov eax, 0xc80
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858c61
call fcn.10004dc0
xor ecx, ecx
mov edx, 0xc8a
cmp eax, 0x3539f633
pop edi
cmove ecx, edx
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10004dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.10004da0
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.10001f50
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x10004e19
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000d96b
Capabilities:
Parse pe header

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

Function at 0x10010765
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001dfd0
push 0x1001dfc8
push str.FlsAlloc
push 0x1f
call fcn.10010601
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010799
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c150]
call esi
jmp 0x1001079f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100107e3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001dfe0
push 0x1001dfd8
push str.FlsGetValue
push 0x21
call fcn.10010601
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001081a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10010822
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001dfe8
push 0x1001dfe0
push str.FlsSetValue
push 0x22
call fcn.10010601
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001085c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001c150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x1001115d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100110df
Function at 0x10013357
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 0x100133f4
push ebx
push esi
call fcn.10013320
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.100132b4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100133a1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100133f3
push edi
push eax
call fcn.1000ed81
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100133c1
call fcn.1000ed47
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100133f2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100132b4
add esp, 0x20
test eax, eax
jne 0x100133e0
push edi
call fcn.1000ed47
jmp 0x100133e8
push ebx
call fcn.1000ed47
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x402190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4021eb
cmp byte [esi + ebx - 1], 0xa
je 0x4021bf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4060c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x402c50
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop