joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457088
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x466a34
call fcn.0045e340
sub esp, 0x44
push ebx
push esi
push edi
mov esi, ecx
push 0
call fcn.00455b82
push 1
mov ecx, esi
call fcn.004565d6
mov edx, 0x198
lea ecx, [ebp - 0x20]
call fcn.0043b674
mov eax, dword [eax]
lea edi, [esi + 4]
push eax
push 2
push dword [edi]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [ebp - 0x20]
call fcn.00402b73
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
pop ecx
push 2
push dword [edi]
call ebx
push 1
push 1
push 0xf4
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x1bc
push dword [edi]
call ebx
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1be
push dword [edi]
call ebx
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
lea ecx, [ebp - 0x50]
call fcn.0045721e
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.0045721e
lea eax, [esi + 0x204]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1cc], ebx
lea ebx, [esi + 0x1d4]
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
setne byte [ebp - 0xd]
call fcn.0045724f
add ebx, 0x18
lea ecx, [ebp - 0x38]
push ebx
call fcn.0045724f
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp dword [ebp - 0x40], ebx
je 0x4571a2
cmp dword [ebp - 0x4c], ebx
mov byte [esi + 0x223], 1
jne 0x457198
push 0x46ae78
lea ecx, [ebp - 0x50]
call fcn.004025d5
push 0x10
push dword [ebp - 0x50]
push dword [ebp - 0x44]
jmp 0x4571cd
cmp byte [ebp - 0xd], 0
jne 0x4571e3
cmp dword [ebp - 0x28], ebx
mov byte [esi + 0x223], 1
je 0x4571fc
cmp dword [ebp - 0x34], ebx
jne 0x4571c6
push 0x46ae78
lea ecx, [ebp - 0x38]
call fcn.004025d5
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
mov eax, esi
neg eax
sbb eax, eax
and eax, edi
push dword [eax]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [ebp - 0xd], 0
je 0x4571fc
cmp byte [esi + 0x156], 0
jne 0x4571fc
mov ecx, esi
mov byte [esi + 0x155], 1
call fcn.00457654
jmp 0x457205
push ebx
push dword [edi]
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [ebp - 0x50]
call fcn.00440139
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4582ff
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x466b80
call fcn.0045e340
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov ebx, ecx
cmp dword [esi + 4], edi
jne 0x458323
or eax, 0xffffffff
jmp 0x4583d7
cmp dword [ebp + 0xc], 0xffffffff
jne 0x45832c
mov dword [ebp + 0xc], edi
lea ecx, [ebp - 0x1c]
call fcn.004022d0
mov eax, pe_nt_image_headers32
mov dword [ebp - 4], edi
cmp dword [ebp - 0x14], eax
jae 0x45834a
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401fe8
mov eax, dword [esi]
mov esi, 0x10e
push esi
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov word [ecx + 0x21c], di
cmp word [ecx], di
je 0x458372
inc edx
inc ecx
inc ecx
jmp 0x458368
cmp eax, edi
mov dword [ebp - 0x18], edx
je 0x45837d
cmp eax, esi
jb 0x458388
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.004024d7
lea eax, [ebp - 0x10]
push 1
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp eax, 1
jne 0x4583c9
cmp dword [ebp - 0x10], edi
je 0x4583c9
push dword [ebp - 0x10]
push 0xffffffffffffffff
push dword [ebx + 0x30]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebx + 0x2c]
mov esi, eax
lea ecx, [eax + 1]
mov dword [ebx + 0x2c], ecx
jmp 0x4583cc
or esi, 0xffffffff
push dword [ebp - 0x1c]
call fcn.00402b73
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x458da1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
mov edi, ecx
push 0x11
call esi
mov bx, ax
push 0x12
shr ebx, 0xf
and bl, 1
call esi
shr eax, 0xf
test al, 1
jne 0x458e3e
mov eax, dword [ebp + 8]
test bl, bl
mov cx, word [eax + 0xc]
je 0x458e19
cmp cx, 0x41
je 0x458e1f
movzx eax, cx
cmp eax, 0x20
je 0x458e00
cmp eax, 0x6a
jle 0x458e3e
cmp eax, 0x6d
jle 0x458e00
cmp eax, 0x6f
je 0x458e00
cmp eax, 0xbb
je 0x458e00
cmp eax, 0xbd
jne 0x458e3e
test bl, bl
jne 0x458e3e
xor eax, eax
cmp cx, 0x20
setne al
push eax
mov ecx, edi
call fcn.00458cf7
mov al, 1
jmp 0x458e40
cmp cx, 0x6a
jne 0x458ddb
push 2
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
push 0x102b
push dword [edi + 0x34]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x458e15
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x45ae1f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x46701a
call fcn.0045e340
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004022d0
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.004022d0
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.004022d0
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 2
call fcn.004022d0
and byte [esi + 0x4c], 0
and byte [esi + 0x4d], 0
mov ecx, dword [ebp - 0xc]
and byte [esi + 0x4e], 0
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x45b8ac
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x46712e
call fcn.0045e340
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00402407
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.00402407
mov eax, dword [edi + 0x18]
lea ecx, [esi + 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
lea eax, [edi + 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.00402407
lea eax, [edi + 0x3c]
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.00402407
mov eax, dword [edi + 0x48]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x48], eax
mov al, byte [edi + 0x4c]
mov byte [esi + 0x4c], al
mov al, byte [edi + 0x4d]
mov byte [esi + 0x4d], al
mov al, byte [edi + 0x4e]
mov byte [esi + 0x4e], al
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x45d900
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45d92c
cmp dword [esp + 4], 6
jne 0x45d92c
mov eax, dword [esp + 8]
test eax, eax
je 0x45d94e
push str.SetDefaultDllDirectories
push 0x4684d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45d94e
push 0xc00
call eax
add esp, 0x114
ret

Function at 0x45dd60
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x45dd88
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45dd97
mov eax, 1
ret 4

Function at 0x45de74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45deca
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x46dcfc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45debd
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x45decc
xor eax, eax
pop esi
leave
ret 4
Function at 0x4033b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x24
mov eax, dword [ecx + 4]
push ebx
push esi
mov dword [esp + 0x14], edx
lea esi, [ecx + 4]
mov edx, dword [ecx]
add esi, 4
xor eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
push edi
movd xmm0, edx
mov edi, eax
pshufd xmm0, xmm0, 0
movdqa xmmword [esp + 0x20], xmm0
test al, 3
je 0x4033f0
and edi, 0xfffffffc
add edi, 4
mov eax, dword [0x40df2c]
test eax, eax
jne 0x403414
mov ecx, 0xb98d61a4
call fcn.00403f40
mov edx, 0x522321a7
mov ecx, eax
call fcn.00403ea0
mov dword [0x40df2c], eax
call eax
mov ebx, eax
mov eax, dword [0x40daf8]
test eax, eax
jne 0x40343c
mov ecx, 0xb98d61a4
call fcn.00403f40
mov edx, 0xb27f9f0b
mov ecx, eax
call fcn.00403ea0
mov dword [0x40daf8], eax
push edi
push 8
push ebx
call eax
mov dword [esp + 0xc], eax
test eax, eax
je 0x4034f2
shr edi, 2
xor edx, edx
lea ecx, [esi + edi*4]
mov edi, eax
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
mov ecx, eax
cmova ebx, edx
test ebx, ebx
je 0x4034e2
cmp ebx, 8
jb 0x4034c7
lea eax, [esi - 4]
lea eax, [eax + ebx*4]
cmp ecx, eax
ja 0x403486
lea eax, [ecx - 4]
lea eax, [eax + ebx*4]
cmp eax, esi
jae 0x4034c7
movdqa xmm1, xmmword [esp + 0x20]
mov eax, ebx
and eax, 7
mov dword [esp + 0xc], ebx
sub dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
lea ecx, [ecx]
movdqu xmm0, xmmword [esi]
add edx, 8
pxor xmm0, xmm1
movdqu xmmword [edi], xmm0
movdqu xmm0, xmmword [esi + 0x10]
add esi, 0x20
pxor xmm0, xmm1
movdqu xmmword [edi + 0x10], xmm0
add edi, 0x20
cmp edx, eax
jb 0x4034a0
cmp edx, ebx
jae 0x4034e2
sub edi, esi
lea ecx, [ecx]
mov eax, dword [esi]
lea esi, [esi + 4]
xor eax, dword [esp + 0x14]
inc edx
mov dword [edi + esi - 4], eax
cmp edx, ebx
jb 0x4034d0
mov edx, dword [esp + 0x18]
test edx, edx
je 0x4034f0
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403560
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
xor eax, edx
push ebx
push esi
lea esi, [ecx + 4]
mov dword [esp + 8], edx
lea ebx, [eax + 1]
mov dword [esp + 0x10], eax
add esi, 4
push edi
test bl, 3
je 0x403589
and ebx, 0xfffffffc
add ebx, 4
mov eax, dword [0x40df2c]
test eax, eax
jne 0x4035ad
mov ecx, 0xb98d61a4
call fcn.00403f40
mov edx, 0x522321a7
mov ecx, eax
call fcn.00403ea0
mov dword [0x40df2c], eax
call eax
mov edi, eax
mov eax, dword [0x40daf8]
test eax, eax
jne 0x4035d5
mov ecx, 0xb98d61a4
call fcn.00403f40
mov edx, 0xb27f9f0b
mov ecx, eax
call fcn.00403ea0
mov dword [0x40daf8], eax
lea ecx, [ebx + ebx]
push ecx
push 8
push edi
call eax
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x403655
shr ebx, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, edi
lea ecx, [esi + ebx*4]
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
cmova ebx, eax
test ebx, ebx
je 0x40364a
mov edi, dword [esp + 0x10]
lea esp, [esp]
mov ecx, dword [esi]
lea edx, [edx + 8]
xor ecx, edi
lea esi, [esi + 4]
movzx eax, cl
inc ebp
mov word [edx - 8], ax
mov eax, ecx
shr eax, 8
movzx eax, al
mov word [edx - 6], ax
shr ecx, 0x10
movzx eax, cl
mov word [edx - 4], ax
shr ecx, 8
movzx eax, cl
mov word [edx - 2], ax
cmp ebp, ebx
jb 0x403610
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
xor ecx, ecx
pop ebp
mov word [edi + eax*2], cx
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x403660
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
xor eax, edx
push ebx
push ebp
push esi
lea esi, [ecx + 4]
mov dword [esp + 0xc], edx
lea ebx, [eax + 1]
mov dword [esp + 0x14], eax
add esi, 4
push edi
test bl, 3
je 0x40368a
and ebx, 0xfffffffc
add ebx, 4
mov eax, dword [0x40df2c]
test eax, eax
jne 0x4036ae
mov ecx, 0xb98d61a4
call fcn.00403f40
mov edx, 0x522321a7
mov ecx, eax
call fcn.00403ea0
mov dword [0x40df2c], eax
call eax
mov edi, eax
mov eax, dword [0x40daf8]
test eax, eax
jne 0x4036d6
mov ecx, 0xb98d61a4
call fcn.00403f40
mov edx, 0xb27f9f0b
mov ecx, eax
call fcn.00403ea0
mov dword [0x40daf8], eax
push ebx
push 8
push edi
call eax
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x403742
shr ebx, 2
xor eax, eax
xor edi, edi
mov ecx, ebp
lea edx, [esi + ebx*4]
mov ebx, edx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, edx
cmova ebx, eax
test ebx, ebx
je 0x40373a
mov ebp, dword [esp + 0x10]
lea esp, [esp]
mov edx, dword [esi]
lea ecx, [ecx + 4]
xor edx, ebp
lea esi, [esi + 4]
mov byte [ecx - 4], dl
mov eax, edx
shr eax, 8
inc edi
shr edx, 0x10
mov byte [ecx - 3], al
mov byte [ecx - 2], dl
shr edx, 8
mov byte [ecx - 1], dl
cmp edi, ebx
jb 0x403710
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov byte [eax + ebp], 0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x403c50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov dword [esp + 4], 0xd417
xor dword [esp + 4], 0xfe7518b6
add dword [esp + 4], 0xffff66fd
xor dword [esp + 4], 0xfe75339e
mov dword [esp], 0xc20a
or dword [esp], 0xac700
shr dword [esp], 2
or dword [esp], 0x597d730f
xor dword [esp], 0x360881cc
or dword [esp], 0x27d50529
add dword [esp], 0xfc7f
xor dword [esp], 0x6ff873ac
push ebx
mov dword [esp + 4], 0x7ffe
mov ebx, ecx
shl dword [esp + 4], 9
xor dword [esp + 4], 0xfffc10
cmp byte [ebx], 0
je 0x403d5e
push esi
push edi
jmp 0x403cd0
mov edi, dword [esp + 0x10]
lea ebx, [ebx + 1]
mov dword [esp + 0xc], 0xc20a
or dword [esp + 0xc], 0xac700
shr dword [esp + 0xc], 2
or dword [esp + 0xc], 0x597d730f
xor dword [esp + 0xc], 0x360881cc
or dword [esp + 0xc], 0x27d50529
add dword [esp + 0xc], 0xfc7f
xor dword [esp + 0xc], 0x6ff873ac
movzx ecx, byte [esp + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], 0x7ffe
shl dword [esp + 0xc], 9
xor dword [esp + 0xc], 0xfffc10
shl esi, cl
movzx ecx, byte [esp + 0xc]
mov edx, dword [esp + 0x10]
movsx eax, byte [ebx - 1]
mov dword [esp + 0x10], eax
add dword [esp + 0x10], esi
shl edx, cl
add dword [esp + 0x10], edx
sub dword [esp + 0x10], edi
cmp byte [ebx], 0
jne 0x403cd0
pop edi
pop esi
mov eax, dword [esp + 8]
pop ebx
add esp, 8
ret
Function at 0x403ea0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
add eax, 0x78
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax]
mov eax, dword [edi + ebx + 0x1c]
add edi, ebx
add eax, ebx
mov dword [esp + 0x18], eax
mov ebp, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
add ebp, ebx
add eax, ebx
mov dword [esp + 0x14], eax
cmp dword [edi + 0x18], esi
jbe 0x403efc
lea esp, [esp]
mov ecx, dword [ebp + esi*4]
add ecx, ebx
call fcn.00403c50
xor eax, 0x1616ce02
cmp eax, dword [esp + 0x10]
je 0x403f06
inc esi
cmp esi, dword [edi + 0x18]
jb 0x403ee0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx eax, word [eax + esi*2]
mov ecx, dword [ecx + eax*4]
add ecx, ebx
cmp ecx, edi
jb 0x403f34
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
add eax, edi
cmp ecx, eax
jae 0x403f34
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
jmp 0x4040b0
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x10
ret
sub esp, 0x104
lea edx, [esp]
push esi
mov esi, ecx
push edi
mov al, byte [esi]
test al, al
je 0x4040d6
cmp al, 0x2e
je 0x4040d3
inc esi
mov byte [edx], al
inc edx
mov al, byte [esi]
test al, al
jne 0x4040c3
jmp 0x4040d6
mov byte [edx], 0
mov eax, dword [0x40de6c]
test eax, eax
jne 0x4040fa
mov ecx, 0xb98d61a4
call fcn.00403f40
mov edx, 0xe12e7135
mov ecx, eax
call fcn.00403ea0
mov dword [0x40de6c], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x404141
mov eax, dword [0x40ddcc]
test eax, eax
jne 0x40412b
mov ecx, 0xb98d61a4
call fcn.00403f40
mov edx, 0xc93d75ee
mov ecx, eax
call fcn.00403ea0
mov dword [0x40ddcc], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x404141
pop edi
pop esi
add esp, 0x104
ret
lea ecx, [esi + 1]
call fcn.00403c50
xor eax, 0x1616ce02
mov ecx, edi
mov edx, eax
call fcn.00403ea0
pop edi
pop esi
add esp, 0x104
ret
Function at 0x403f40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
sub esp, 0x10
mov eax, dword fs:[0x30]
mov dword [esp + 0xc], ecx
push ebx
push ebp
mov ecx, dword [eax + 0xc]
add ecx, 0xc
push esi
push edi
mov dword [esp + 0x18], ecx
mov ebx, dword [ecx]
cmp ebx, ecx
je 0x40409a
mov edx, dword [ebx + 0x30]
mov dword [esp + 0x14], 0xd417
xor dword [esp + 0x14], 0xfe7518b6
add dword [esp + 0x14], 0xffff66fd
xor dword [esp + 0x14], 0xfe75339e
mov dword [esp + 0x10], 0xc20a
or dword [esp + 0x10], 0xac700
shr dword [esp + 0x10], 2
or dword [esp + 0x10], 0x597d730f
xor dword [esp + 0x10], 0x360881cc
or dword [esp + 0x10], 0x27d50529
add dword [esp + 0x10], 0xfc7f
xor dword [esp + 0x10], 0x6ff873ac
mov dword [esp + 0x10], 0x7ffe
shl dword [esp + 0x10], 9
xor dword [esp + 0x10], 0xfffc10
cmp word [edx], 0
je 0x404081
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], 0xc20a
or dword [esp + 0x10], 0xac700
shr dword [esp + 0x10], 2
or dword [esp + 0x10], 0x597d730f
xor dword [esp + 0x10], 0x360881cc
or dword [esp + 0x10], 0x27d50529
add dword [esp + 0x10], 0xfc7f
xor dword [esp + 0x10], 0x6ff873ac
movzx ecx, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], 0x7ffe
shl dword [esp + 0x10], 9
xor dword [esp + 0x10], 0xfffc10
shl esi, cl
movzx ecx, byte [esp + 0x10]
mov edi, dword [esp + 0x14]
movzx eax, word [edx]
shl edi, cl
cmp eax, 0x41
jb 0x404060
cmp eax, 0x5a
ja 0x404060
add eax, 0x20
mov dword [esp + 0x14], eax
add edx, 2
add dword [esp + 0x14], esi
add dword [esp + 0x14], edi
sub dword [esp + 0x14], ebp
cmp word [edx], 0
jne 0x403fe4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
xor eax, 0x36f387d6
cmp eax, dword [esp + 0x1c]
je 0x4040a4
mov ebx, dword [ebx]
cmp ebx, ecx
jne 0x403f65
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [ebx + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x404370
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
mov dword [esp + 0x10], ebp
push edi
cmp edx, 0x40
jb 0x40450e
mov eax, 0x5a4d
cmp word [ebp], ax
jne 0x40450e
mov edi, dword [ebp + 0x3c]
add edi, ebp
mov dword [esp + 0x18], edi
cmp dword [edi], 0x4550
jne 0x40450e
mov eax, 0x10b
cmp word [edi + 0x18], ax
jne 0x40450e
mov eax, dword [0x40e0a8]
test eax, eax
jne 0x4043db
mov ecx, 0xb98d61a4
call fcn.00403f40
mov edx, 0x2fc76848
mov ecx, eax
call fcn.00403ea0
mov dword [0x40e0a8], eax
push ebx
push 0x40
push 0x3000
push dword [edi + 0x50]
push 0
call eax
mov ebx, eax
test ebx, ebx
je 0x404505
movzx ecx, word [edi + 0x14]
push esi
lea esi, [edi + 0x18]
add esi, ecx
movzx ecx, word [edi + 6]
mov dword [esp + 0x18], esi
lea ecx, [ecx + ecx*4]
lea eax, [esi + ecx*8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [0x40e2b4]
test eax, eax
jne 0x40443b
mov ecx, 0xe4dda7c2
call fcn.00403f40
mov edx, 0x2bab1175
mov ecx, eax
call fcn.00403ea0
mov dword [0x40e2b4], eax
push dword [esp + 0x10]
push ebp
push ebx
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp esi, ecx
jae 0x4044be
sub ecx, dword [esp + 0x18]
mov eax, 0xcccccccd
dec ecx
add esi, 0x10
mul ecx
mov ecx, edx
shr ecx, 5
inc ecx
mov edi, ecx
mov ebp, dword [esi]
cmp dword [esi - 8], ebp
mov eax, dword [esi + 4]
cmovb ebp, dword [esi - 8]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi - 4]
add eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [0x40e2b4]
test eax, eax
jne 0x4044a6
mov ecx, 0xe4dda7c2
call fcn.00403f40
mov edx, 0x2bab1175
mov ecx, eax
call fcn.00403ea0
mov dword [0x40e2b4], eax
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call eax
add esp, 0xc
add esi, 0x28
dec edi
jne 0x404465
mov edi, dword [esp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.00404640
mov edx, edi
mov ecx, ebx
call fcn.00404550
pop esi
test eax, eax
jne 0x404505
mov eax, dword [0x40e134]
test eax, eax
jne 0x4044f9
mov ecx, 0xb98d61a4
call fcn.00403f40
mov edx, 0xece41155
mov ecx, eax
call fcn.00403ea0
mov dword [0x40e134], eax
push 0x8000
push 0
push ebx
call eax
xor ebx, ebx
mov eax, ebx
pop ebx
pop edi
pop ebp
add esp, 0x14
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
Function at 0x4024c0
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebx
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov bl, 1
test eax, eax
je 0x4024d1
mov eax, ebx
pop ebx
ret
push str.sbiedll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4024cd
push str.sbieDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4024cd
push str.vboxhook.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4024cd
push str.VBoxHook.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4024cd
push str.vmcheck.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4024cd
push str.vmsrvc.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4024cd
push str.vmtools.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4024cd
push str.vgauth.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4024cd
push str.vmhgfs.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4024cd
push str.vmguestlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4024cd
push str.vmhgfs.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
setne bl
mov eax, ebx
pop ebx
ret

Function at 0x404450
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push str.try_run_service
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
movups xmm0, xmmword [0x43a4c4]
movups xmmword [esp], xmm0
mov eax, esp
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov ecx, eax
mov eax, 1
test ecx, ecx
je 0x404481
add esp, 0x10
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x427
je 0x40447d
push str.try_run_service.StartServiceCtrlDispatcher
call fcn.00404560
xor eax, eax
add esp, 4
add esp, 0x10
ret
Function at 0x404560
Capabilities:
Print debug messages

Disassembly:
push edi
push esi
sub esp, 0x804
mov edi, dword [esp + 0x810]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esp
push 0
push 0
push eax
push 0
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x4045ca
mov eax, dword [esp]
sub esp, 0x1c
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 8], str.windows_service:_ERROR:__ls:_0x_x__d__ls_n
call fcn.00404b90
add esp, 0x1c
push dword [esp]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x404614
sub esp, 0x18
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
lea esi, [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 8], str.windows_service:_ERROR:__ls:_0x_x__d_n
call fcn.00404b90
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp], esi
mov dword [esp + 8], str.windows_service:_FormatMessage_failed_with_0x_x__d_n
call fcn.00404b90
add esp, 0x14
lea esi, [esp + 4]
push esi
call fcn.00404ad0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x804
pop esi
pop edi
ret