joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10039725
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 4
mov eax, 0x100864f4
call fcn.10063f44
mov esi, ecx
mov ecx, dword [esi + 0x298]
test ecx, ecx
jne 0x10039744
xor eax, eax
jmp 0x100398e5
lea ebx, [esi + 0x2c4]
xor edi, edi
cmp word [ebx], di
jne 0x1003976d
push 0x10003264
lea eax, [esi + 0x84]
push eax
push 0x10003270
push 0x104
push ebx
call fcn.1007cfaa
mov ecx, dword [esi + 0x298]
push ebx
call fcn.1007cfaa
push 0x318
mov dword [esi + 0x2bc], edi
call fcn.1007cfaa
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x1003979d
mov ecx, eax
call fcn.1007b0e6
mov edi, eax
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1003973d
push ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100397bc
and eax, 0xfffffffd
push eax
push ebx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov ecx, edi
call fcn.1007b15c
mov ecx, edi
test eax, eax
je 0x100397da
call fcn.1007b102
push edi
call fcn.1007cfaa
pop ecx
jmp 0x1003973d
push 0
push ebx
call fcn.1007cfaa
test eax, eax
je 0x100397ea
mov ecx, edi
jmp 0x100397c9
push 0xc
call fcn.1007cfaa
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x10039809
mov ecx, eax
call fcn.10024aee
jmp 0x1003980b
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp dword [esi + 4], 0
mov dword [esi + 0x4cc], eax
push edi
mov ecx, esi
je 0x10039825
call fcn.1007cfaa
jmp 0x1003982a
call fcn.1007cfaa
test eax, eax
je 0x100397e6
cmp dword [esi + 0x4cc], 0
je 0x1003986d
mov ecx, dword [esi + 0x298]
cmp dword [ecx + 0x5bc], 0
je 0x10039857
call fcn.1001bd83
mov ecx, dword [esi + 0x4cc]
push eax
call fcn.1007cfaa
mov eax, dword [esi + 0x278]
test eax, eax
je 0x1003986d
mov ecx, dword [esi + 0x4cc]
push eax
call fcn.1007cfaa
push edi
mov ecx, esi
call fcn.1007cfaa
mov ecx, edi
call fcn.1007b2ed
mov ecx, edi
call fcn.1007b102
push edi
call fcn.1007cfaa
pop ecx
push ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100398a1
or eax, 2
push eax
push ebx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, dword [esi + 0x298]
mov ecx, dword [eax + 0x628]
test ecx, ecx
je 0x100398bd
push dword [esi + 0x2b8]
push ebx
call fcn.1007cfaa
mov edi, dword [esi + 0x4cc]
test edi, edi
je 0x100398d5
mov ecx, edi
call fcn.10024b14
push edi
call fcn.1007cfaa
pop ecx
and dword [esi + 0x4cc], 0
xor eax, eax
inc eax
mov dword [esi + 0x294], eax
call fcn.1006401c
ret
Function at 0x1004a40a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x100873cd
call fcn.10063fe3
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1004a46b
call fcn.1002c67a
mov esi, eax
jmp 0x1004a543
push dword [ebp - 0x41c]
push esi
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1004a489
call fcn.1002c67a
jmp 0x1004a53a
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x1004a47f
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x41c], esi
cmp eax, esi
jae 0x1004a4bc
mov esi, 0x8007000e
jmp 0x1004a53c
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1007cfaa
mov dword [ebp - 4], 1
jmp 0x1004a4f0
cmp dword [ebp - 0x418], 0
je 0x1004a4b2
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1004a47f
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.1007cfaa
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1004a55c
lea ecx, [ebp - 0x418]
call fcn.1004a63d
mov eax, esi
call fcn.1006403c
ret 0x10
Function at 0x10063241
Capabilities:
Accept command line arguments

Disassembly:
push 8
push 0x10093b08
call fcn.10068f85
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x100632cf
call fcn.10068f53
test eax, eax
jne 0x10063265
xor eax, eax
jmp 0x1006339b
call fcn.10068335
test eax, eax
jne 0x10063275
call fcn.10068f71
jmp 0x1006325e
call fcn.10068f07
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x100a2ed4], eax
call fcn.1007cfaa
mov dword [0x100a0e2c], eax
call fcn.1007cfaa
test eax, eax
jns 0x1006329f
call fcn.1006800e
jmp 0x1006326e
call fcn.1007cfaa
test eax, eax
js 0x100632c8
call fcn.10068b3f
test eax, eax
js 0x100632c8
push 0
call fcn.1007cfaa
pop ecx
test eax, eax
jne 0x100632c8
inc dword [0x100a0e28]
jmp 0x10063398
call fcn.10068aec
jmp 0x10063298
xor edi, edi
cmp eax, edi
jne 0x1006332e
cmp dword [0x100a0e28], edi
jle 0x1006325e
dec dword [0x100a0e28]
mov dword [ebp - 4], edi
cmp dword [0x100a119c], edi
jne 0x100632f3
call fcn.1006887a
cmp dword [ebp + 0x10], edi
jne 0x10063307
call fcn.10068aec
call fcn.1006800e
call fcn.10068f71
mov dword [ebp - 4], 0xfffffffe
call fcn.1006331a
jmp 0x10063398
cmp eax, 2
jne 0x1006338c
call fcn.10067fda
push 0x214
push 1
call fcn.1007cfaa
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x1006325e
push esi
push dword [0x1009e504]
push dword [0x100a1178]
call dword [sym.imp.kernel32.dll_DecodePointer]
call eax
test eax, eax
je 0x10063380
push edi
push esi
call fcn.1006804f
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
jmp 0x10063398
push esi
call fcn.1007cfaa
pop ecx
jmp 0x1006325e
cmp eax, 3
jne 0x10063398
push edi
call fcn.1007cfaa
pop ecx
xor eax, eax
inc eax
call fcn.10068fca
ret 0xc

Function at 0x10063f36
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x100a0f50], eax
mov dword [0x100a0f4c], ecx
mov dword [0x100a0f48], edx
mov dword [0x100a0f44], ebx
mov dword [0x100a0f40], esi
mov dword [0x100a0f3c], edi
mov word [0x100a0f68], ss
mov word [0x100a0f5c], cs
mov word [0x100a0f38], ds
mov word [0x100a0f34], es
mov word [0x100a0f30], fs
mov word [0x100a0f2c], gs
pushfd
pop dword [0x100a0f60]
mov eax, dword [ebp]
mov dword [0x100a0f54], eax
mov eax, dword [ebp + 4]
mov dword [0x100a0f58], eax
lea eax, [ebp + 8]
mov dword [0x100a0f64], eax
mov eax, dword [ebp - 0x320]
mov dword [0x100a0ea0], 0x10001
mov eax, dword [0x100a0f58]
mov dword [0x100a0e54], eax
mov dword [0x100a0e48], 0xc0000409
mov dword [0x100a0e4c], 1
mov eax, dword [0x1009e4f8]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1009e4fc]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x100a0e98], eax
push 1
call fcn.100693d8
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10006b5c
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x100a0e98], 0
jne 0x100638a0
push 1
call fcn.100693d8
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
cmp ecx, dword [0x1009e4f8]
jne 0x100637b4
repz ret
Function at 0x100795ee
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x3c
pop ebx
push ebx
call fcn.1007cfaa
mov esi, eax
pop ecx
test esi, esi
jne 0x10079607
xor al, al
jmp 0x10079638
push ebx
push 0
push esi
call fcn.1006444d
add esp, 0xc
push esi
push 0
push 0
push dword [ebp + 8]
mov dword [esi], ebx
mov dword [esi + 8], 1
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
push esi
setne bl
call fcn.1007cfaa
pop ecx
mov al, bl
pop esi
pop ebx
pop ebp
ret 4

Function at 0x1007b102
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
xor ebx, ebx
test ecx, ecx
je 0x1007b118
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 4], ebx
mov ecx, dword [esi]
test ecx, ecx
je 0x1007b126
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi], ebx
push edi
mov edi, dword [esi + 0x210]
test edi, edi
je 0x1007b145
mov ecx, edi
call fcn.1007b102
push edi
call fcn.1007cfaa
pop ecx
mov dword [esi + 0x210], ebx
add esi, 0x214
pop edi
cmp byte [esi], bl
je 0x1007b159
push esi
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov byte [esi], bl
pop esi
pop ebx
ret

Function at 0x1007cfaa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1007cfb9
pop dword [ebp - 0x1c]
mov eax, 0x1007cfb9
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x5b26c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x51f829af
sub ecx, 0x51f7d297
mov edx, eax
mov ebx, 0xc2c0c75e
sub ebx, 0xb2b2095e
add ebx, dword [ebp - 0x1c]
mov edi, 0x148a271f
add dword [ebp - 8], 0x59d16097
mov esi, dword [ebx]
xor dword [ebp - 8], ecx
add esi, edi
xor dword [ebp - 0x14], ebx
mov dword [edx], esi
xor dword [ebp - 4], 0xbc7ec06c
add edx, 0x96c4a443
sub edx, 0x96c4a43f
add ebx, 0xd0598cf6
sub ebx, 0xd0598cf2
loop 0x1007d008
add eax, 0x6a7eaf09
add eax, 0x9582a02a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe91d22ac
add ecx, 0x26e2dd54
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x1007d42e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1009e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x41c], eax
test edi, edi
je 0x1007d5ab
and dword [ebp - 0x418], 0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x418]
jne 0x1007d469
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jae 0x1007d5ab
test esi, esi
je 0x1007d490
xor eax, eax
mov dword [esi], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1006444d
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.1006444d
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
add ebx, 0x14
push ebx
call fcn.1007cfaa
pop ecx
xor eax, eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push edi
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.1007cfaa
test al, al
jne 0x1007d526
lea eax, [ebp - 0x20c]
push 0x23
push eax
call fcn.1007cfaa
pop ecx
pop ecx
test eax, eax
je 0x1007d530
xor ecx, ecx
mov word [eax], cx
jmp 0x1007d530
test esi, esi
je 0x1007d530
mov dword [esi], 1
lea eax, [ebp - 0x414]
push eax
call fcn.1007cfaa
pop ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.1007cfaa
mov ecx, ebx
lea edx, [ecx + 2]
xor esi, esi
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1007d550
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1007cfaa
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x418], eax
je 0x1007d5ad
cmp dword [ebp - 0x41c], esi
je 0x1007d5ad
mov esi, dword [sym.imp.kernel32.dll_lstrlenW]
push ebx
call esi
mov edi, eax
lea eax, [ebp - 0x20c]
push eax
call esi
sub eax, edi
cmp dword [ebp + 0x10], eax
jg 0x1007d5be
mov eax, dword [ebp - 0x41c]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10063f36
leave
ret 0x10
lea ecx, [ebx + 2]
xor edx, edx
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x1007d5c3
sub ebx, ecx
sar ebx, 1
lea ecx, [ebp - 0x20c]
lea ecx, [ecx + ebx*2]
push ecx
push dword [ebp + 0x10]
push dword [ebp - 0x41c]
call fcn.1007cfaa
mov eax, dword [ebp - 0x418]
jmp 0x1007d5ad
Function at 0x1008260c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x28
push 0x100946d0
call fcn.10068f85
xor esi, esi
mov dword [ebp - 0x34], esi
mov edi, 0x80030002
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x10082828
push esi
push esi
push esi
push 2
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1008281e
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1008280b
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x24]
push ecx
push eax
push ebx
push dword [ebp + 0xc]
call fcn.1007cfaa
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x24]
call fcn.1007cfaa
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
js 0x100826e6
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x100826de
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
push dword [ebp - 0x30]
push esi
push dword [ebp - 0x24]
call fcn.1007cfaa
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jns 0x100826e6
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x28], esi
jmp 0x100826e6
mov edi, 0x8007000e
mov dword [ebp - 0x20], edi
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov dword [ebp - 4], 0xfffffffe
jmp 0x10082813
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x38]
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x10082838
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
jmp 0x10082838
push 0x10001964
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
mov edi, esi
test esi, esi
je 0x1008284c
mov edi, esi
jle 0x1008284c
and edi, 0xffff
or edi, 0x80070000
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x10082860
mov eax, dword [ebp - 0x24]
mov dword [ecx], eax
mov eax, edi
call fcn.10068fca
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40aad7
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jge 0x40ab00
mov eax, 0xfffffffd
jmp 0x40aca1
mov ebx, dword [0x12eece0]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
je 0x40ac6f
mov ebx, dword [0x12eece0]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0xa
jne 0x40ab4f
mov ebx, dword [0x12eece0]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x40ab4f
mov eax, 1
jmp 0x40ab54
mov eax, 0
test eax, eax
je 0x40ab84
call fcn.0040aca7
mov dword [ebp - 4], eax
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x40ab71
mov eax, dword [ebp + 8]
call dword [ebp - 4]
nop
nop
leave
ret 4
mov ebx, dword [0x12eece0]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 6
jne 0x40abbb
mov ebx, dword [0x12eece0]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
jne 0x40abbb
mov eax, 1
jmp 0x40abc0
mov eax, 0
test eax, eax
jne 0x40ac10
mov ebx, dword [0x12eece0]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 6
jne 0x40abff
mov ebx, dword [0x12eece0]
add ebx, 8
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
cmp dword [ebx], 3
jne 0x40abff
mov eax, 1
jmp 0x40ac04
mov eax, 0
test eax, eax
jne 0x40ac10
xor eax, eax
jmp 0x40ac15
mov eax, 1
test eax, eax
je 0x40ac41
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x40ac2a
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x12eece0]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x40ac97
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x40aca1
mov esp, ebp
pop ebp
ret 4

Function at 0x40ba7e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0040bae0
test eax, eax
je 0x40bac1
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x40bac1
cmp word [eax], 0x5a4d
jne 0x40bac1
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x40bac1
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0040bbb2
mov eax, dword [ebp + 8]
jmp 0x40bada
mov esp, ebp
pop ebp
ret 4

Function at 0x40bae0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x40bb93
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x436d3a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x436d72
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x436d60
mov al, 1
jmp 0x436dbc
cmp dword [ebx + 0x54], ecx
jne 0x436d69
mov al, 2
jmp 0x436dbc
cmp dword [ebx + 0x7c], ecx
jne 0x436dbc
mov al, 3
jmp 0x436dbc
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x436d87
mov al, 4
jmp 0x436dbc
cmp ecx, 5
jne 0x436da7
cmp ebx, 0
jne 0x436d95
mov al, 5
jmp 0x436dbc
cmp ebx, 1
jne 0x436d9e
mov al, 6
jmp 0x436dbc
cmp ebx, 2
jne 0x436da7
mov al, 7
jmp 0x436dbc
cmp ecx, 6
jne 0x436db3
cmp ebx, 0
jne 0x436db5
mov al, 8
jmp 0x436dbc
cmp ebx, 1
jne 0x436dbc
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d796d
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 4]
mov eax, dword [ebp - 4]
jmp 0x4d79a4
mov esp, ebp
pop ebp
ret

Function at 0x50c247
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x50c2fa
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x510fe5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0050c247
test eax, eax
je 0x511028
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x511028
cmp word [eax], 0x5a4d
jne 0x511028
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x511028
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00511047
mov eax, dword [ebp + 8]
jmp 0x511041
mov esp, ebp
pop ebp
ret 4

Function at 0x5111fd
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jge 0x511226
mov eax, 0xfffffffd
jmp 0x5113c7
mov ebx, dword [0x12ef120]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
je 0x511395
mov ebx, dword [0x12ef120]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0xa
jne 0x511275
mov ebx, dword [0x12ef120]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x511275
mov eax, 1
jmp 0x51127a
mov eax, 0
test eax, eax
je 0x5112aa
call fcn.005113cd
mov dword [ebp - 4], eax
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x511297
mov eax, dword [ebp + 8]
call dword [ebp - 4]
nop
nop
leave
ret 4
mov ebx, dword [0x12ef120]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 6
jne 0x5112e1
mov ebx, dword [0x12ef120]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
jne 0x5112e1
mov eax, 1
jmp 0x5112e6
mov eax, 0
test eax, eax
jne 0x511336
mov ebx, dword [0x12ef120]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 6
jne 0x511325
mov ebx, dword [0x12ef120]
add ebx, 8
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
cmp dword [ebx], 3
jne 0x511325
mov eax, 1
jmp 0x51132a
mov eax, 0
test eax, eax
jne 0x511336
xor eax, eax
jmp 0x51133b
mov eax, 1
test eax, eax
je 0x511367
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x511350
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x12ef120]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x5113bd
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x5113c7
mov esp, ebp
pop ebp
ret 4