joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444420
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444453
push esi
call fcn.00447530
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44444c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4444d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4444c2
mov eax, dword [esi + 8]
test eax, eax
je 0x444477
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4444be
cmp eax, 2
je 0x4444c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44446a
cmp eax, 3
je 0x44449d
cmp eax, 1
jne 0x44446a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44446a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44446a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444500
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4444e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444500
add esp, 4
pop esi
ret

Function at 0x44f7c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44f826
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44f826
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44f807
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x44fbb0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x44fbe8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x450920
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x450969
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x450de0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475530
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00450990
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00450a10
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00450a10
lea ecx, [esi + 0xc]
call fcn.00466d90
lea ecx, [esi + 0x10]
call fcn.00466d90
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00451fa0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00451fa0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00451fa0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00466e05
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00466e05
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4691a9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4691e1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00467260
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00467238
jmp 0x4691ed
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46a89a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46a8dc
call fcn.004706ae
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46a8dc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46a8d3
xor eax, eax
jmp 0x46a8e4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046a8ea
pop edi
pop esi
pop ebx
ret 4

Function at 0x470bde
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x470c0c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x470c2a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00470b44
jmp 0x470c2a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x470c2a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00470b44
test edi, edi
mov eax, edi
jne 0x470c14
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402710
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [str._s_bin]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x11c], 0
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0x3e9
mov ecx, dword [0x415b28]
push ecx
call dword [0x410170]
lea edx, [ebp - 0x110]
add edx, 0xffffffff
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x124]
mov cl, byte [eax + 1]
mov byte [ebp - 0x125], cl
add dword [ebp - 0x124], 1
cmp byte [ebp - 0x125], 0
jne 0x40275c
mov edi, dword [ebp - 0x124]
mov ecx, 8
mov esi, 0x411c6c
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x114], 0
push 0x411c90
lea edx, [ebp - 0x110]
push edx
call fcn.0040459b
add esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x402893
push 2
push 0
mov eax, dword [ebp - 0x114]
push eax
call fcn.00404d5b
add esp, 0xc
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.00404c63
add esp, 4
mov dword [ebp - 0x118], eax
push 0
push 0
mov edx, dword [ebp - 0x114]
push edx
call fcn.00404d5b
add esp, 0xc
push 4
push 0x1000
mov eax, dword [ebp - 0x118]
push eax
push 0
call dword [0x410034]
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x118]
push ecx
push 0
mov edx, dword [ebp - 0x120]
push edx
call fcn.004082d0
add esp, 0xc
mov eax, dword [ebp - 0x114]
push eax
push 1
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x120]
push edx
call fcn.00404852
add esp, 0x10
mov eax, dword [ebp - 0x114]
push eax
call fcn.00404e57
add esp, 4
push 0x411c94
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.00401c00
add esp, 8
test eax, eax
je 0x40287f
mov dword [ebp - 0x11c], 1
push 0x8000
push 0
mov edx, dword [ebp - 0x120]
push edx
call dword [0x410014]
mov eax, dword [ebp - 0x11c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403ed7
mov esp, ebp
pop ebp
ret
Function at 0x4036a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x218
mov eax, dword [0x413164]
mov edx, dword [esp + 0x21c]
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x228], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4037c2
lea ecx, [esp + 8]
call fcn.004035a0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x4037c6
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x403770
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.004036a0
mov edi, eax
test edi, edi
jne 0x4037ea
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x403732
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x403789
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x228]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4037a8
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x214]
call fcn.00406cd3
add esp, 0x218
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x4037d1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x214]
call fcn.00406cd3
add esp, 0x218
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4037f9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x220]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.00406cd3
add esp, 0x218
ret 4
Function at 0x403c30
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x403c42
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x4040e0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
mov dword [esi + 0xc], 0
je 0x4040ff
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x404117
push eax
call edi
mov dword [esi + 4], 0
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x404127
push eax
call edi
mov dword [esi], 0xffffffff
mov eax, dword [esp + 0xc]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
pop edi
jne 0x404152
xor al, al
pop esi
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x404168
mov al, 1
pop esi
ret 4
mov ecx, dword [esi]
push 0
push 0
push 0
push 2
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 4], eax
je 0x40414c
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
setne al
pop esi
ret 4
Function at 0x404ff0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, ecx
mov eax, dword [ebp + 4]
test eax, eax
je 0x405000
xor al, al
pop ebp
ret 0x10
push ebx
push esi
push edi
lea esi, [ebp + 8]
push 0x18
mov dword [esi], 0
call fcn.004069ef
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov dword [ebx + 4], esi
mov esi, dword [esp + 0x18]
add esp, 4
push esi
mov dword [ebx], ebp
call edi
lea eax, [eax + eax + 2]
push eax
call fcn.004079a9
add esp, 4
push esi
push eax
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40506e
push esi
call edi
test eax, eax
jle 0x40506e
push esi
call edi
lea ecx, [eax + eax + 2]
push ecx
call fcn.004079a9
add esp, 4
push esi
push eax
mov dword [ebx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x405075
mov dword [ebx + 0xc], 0
mov esi, dword [esp + 0x1c]
xor eax, eax
cmp esi, eax
je 0x4050a9
mov edi, dword [esp + 0x20]
cmp edi, eax
jle 0x4050a9
push edi
call fcn.004079a9
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov dword [ebx + 0x10], eax
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
jmp 0x4050ac
mov dword [ebx + 0x10], eax
lea ecx, [ebp + 0xc]
push ecx
push 0
push ebx
push 0x404cb0
push 0
push 0
mov dword [ebx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
mov dword [ebp + 4], eax
test eax, eax
pop ebx
setne al
pop ebp
ret 0x10

Function at 0x405c40
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.004057f0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edi, [esi + 0x2044]
push edi
push 0x104
mov dword [esi], 0x40f8d0
mov dword [esi + 0x20], 0x40f8bc
mov dword [esi + 0x24], 0x40f8b8
mov dword [esi + 0x4048], 0
call ebx
push str.yy_crash.log
push edi
call fcn.00407ad7
add esp, 8
lea edi, [esi + 0x40]
push edi
push 0x104
call ebx
push 0x40f8e0
push edi
call fcn.00407ad7
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4063d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x413164]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], eax
lea ebx, [esi + 0x404c]
xor eax, eax
mov dword [esi + 0x4048], 1
mov ecx, 0x400
mov edi, ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], esp
stosw word es:[edi], ax
mov eax, dword [esi + 4]
push 0x3ec
push eax
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x1002
push ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ebx, [esi + 0x6050]
xor eax, eax
mov ecx, 0x400
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esi + 4]
push 0x3eb
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x1002
push ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor edi, edi
push str.Begin_User_Input__r_n
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], di
call fcn.00407aad
add esp, 4
push eax
push str.Begin_User_Input__r_n
lea ecx, [ebp - 0x30]
call fcn.00405df0
push ebx
mov byte [ebp - 4], 1
call fcn.00407aad
add esp, 4
push eax
push ebx
lea ecx, [ebp - 0x30]
call fcn.00405cd0
push 0x40f9b0
call fcn.00407aad
add esp, 4
push eax
push 0x40f9b0
lea ecx, [ebp - 0x30]
call fcn.00405cd0
lea ebx, [esi + 0x404c]
push ebx
call fcn.00407aad
add esp, 4
push eax
push ebx
lea ecx, [ebp - 0x30]
call fcn.00405cd0
push 0x40f9b0
call fcn.00407aad
add esp, 4
push eax
push 0x40f9b0
lea ecx, [ebp - 0x30]
call fcn.00405cd0
push str.End_User_Input__r_n
call fcn.00407aad
add esp, 4
push eax
push str.End_User_Input__r_n
lea ecx, [ebp - 0x30]
call fcn.00405cd0
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x406521
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmp eax, 1
jge 0x406533
cmp eax, 0xffffffff
je 0x406533
mov dword [ebp - 0x34], edi
jmp 0x40655a
push edi
push edi
push 0x2800
push 0x413d90
push eax
push ecx
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor edx, edx
cmp eax, edi
setl dl
dec edx
and edx, eax
mov dword [ebp - 0x34], edx
lea eax, [esi + 0x2044]
push 0x40f918
push eax
call fcn.00407d69
mov ebx, eax
add esp, 8
cmp ebx, edi
je 0x40658e
mov eax, dword [ebp - 0x34]
push ebx
push eax
push 1
push 0x413d90
call fcn.00407cc1
push ebx
call fcn.00407b69
add esp, 0x14
lea ecx, [esi + 0x40]
push ecx
lea eax, [esi + 0x2044]
push eax
call fcn.00404910
mov eax, dword [ebp - 0x18]
add esp, 8
cmp eax, 8
jb 0x4065c0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406fea
add esp, 4
jmp 0x4065c0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
movzx ecx, word [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor eax, eax
call fcn.00406cd3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407dc5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40fbd8
call fcn.00408000
mov edi, 0x94
mov eax, edi
call fcn.004078c0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x416804], ecx
mov eax, dword [esi + 4]
mov dword [0x416810], eax
mov edx, dword [esi + 8]
mov dword [0x416814], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x416808], esi
cmp ecx, 2
je 0x407e25
or esi, 0x8000
mov dword [0x416808], esi
shl eax, 8
add eax, edx
mov dword [0x41680c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x407e60
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407e60
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x407e78
cmp eax, 0x20b
je 0x407e65
mov dword [ebp - 0x1c], esi
jmp 0x407e8c
cmp dword [ecx + 0x84], 0xe
jbe 0x407e60
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x407e86
cmp dword [ecx + 0x74], 0xe
jbe 0x407e60
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00408ba9
pop ecx
test eax, eax
jne 0x407ea0
push 0x1c
call fcn.00407da1
pop ecx
call fcn.0040a1a5
test eax, eax
jne 0x407eb1
push 0x10
call fcn.00407da1
pop ecx
call fcn.0040ba6e
mov dword [ebp - 4], esi
call fcn.0040b870
test eax, eax
jge 0x407eca
push 0x1b
call fcn.00407d7c
pop ecx
call fcn.0040b7d1
mov dword [0x417fbc], eax
call fcn.0040b667
mov dword [0x416634], eax
call fcn.0040b5d1
test eax, eax
jge 0x407eef
push 8
call fcn.00407d7c
pop ecx
call fcn.0040b39e
test eax, eax
jge 0x407f00
push 9
call fcn.00407d7c
pop ecx
push 1
call fcn.0040a3a6
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x407f16
push eax
call fcn.00407d7c
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0040b358
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x407f37
movzx eax, word [ebp - 0x40]
jmp 0x407f3a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401ec0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x407f58
push edi
call fcn.0040a4d3
call fcn.0040a4f5
jmp 0x407f8a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040803b
ret
Function at 0x408966
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x408994
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40899b
cmp ebx, dword [eax + 4]
jae 0x40899b
xor eax, eax
jmp 0x408b8b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4089ac
xor eax, eax
inc eax
jmp 0x408b8a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4089c2
cmp ecx, edx
jae 0x408b07
cmp dword [eax + 4], 0
je 0x4089cb
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4089b3
cmp dword [ebp + 8], 0
je 0x4089ed
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x408b07
cmp eax, esi
jae 0x408b07
mov eax, dword [0x4167a0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x408a12
cmp dword [esi*4 + 0x4167a8], edi
je 0x408b0b
inc esi
cmp esi, eax
jl 0x408a00
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408b87
cmp dword [ebp - 8], 0x1000000
jne 0x408b87
test byte [ebp - 0xc], 0xcc
je 0x408a90
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x408b87
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x408b87
cmp word [eax + 0x18], 0x10b
jne 0x408b87
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x408b87
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x408a90
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x408a90
test byte [ecx + 0x27], 0x80
jne 0x408b07
push 1
push 0x4167e8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4089a4
mov ecx, dword [0x4167a0]
test ecx, ecx
mov edx, ecx
jle 0x408ac4
lea eax, [ecx*4 + 0x4167a4]
cmp dword [eax], edi
je 0x408ac4
dec edx
sub eax, 4
test edx, edx
jg 0x408ab8
test edx, edx
jne 0x408af5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x408ad1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x408ae9
lea eax, [edx*4 + 0x4167a8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x408ad7
cmp ecx, 0x10
jge 0x408af5
inc ecx
mov dword [0x4167a0], ecx
push 0
push 0x4167e8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4089a4
xor eax, eax
jmp 0x408b8a
test esi, esi
jle 0x4089a4
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4167e8
call ebx
test eax, eax
jne 0x4089a4
cmp dword [esi*4 + 0x4167a8], edi
je 0x408b61
mov eax, dword [0x4167a0]
lea esi, [eax - 1]
test esi, esi
jl 0x408b4f
cmp dword [esi*4 + 0x4167a8], edi
je 0x408b4b
dec esi
jns 0x408b3f
test esi, esi
jge 0x408b5f
cmp eax, 0x10
jge 0x408b5a
inc eax
mov dword [0x4167a0], eax
lea esi, [eax - 1]
jmp 0x408b61
je 0x408b79
xor ecx, ecx
test esi, esi
jl 0x408b79
lea eax, [ecx*4 + 0x4167a8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x408b67
push 0
push 0x4167e8
call ebx
jmp 0x4089a4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a410
Capabilities:
Terminate process

Disassembly:
push 8
push 0x40fef0
call fcn.00408000
push 8
call fcn.00408837
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x416844], esi
jne 0x40a444
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x416840], esi
mov al, byte [ebp + 0x10]
mov byte [0x41683c], al
cmp dword [ebp + 0xc], edi
jne 0x40a48e
cmp dword [0x417f8c], edi
je 0x40a47e
mov eax, dword [0x417f88]
sub eax, 4
mov dword [0x417f88], eax
cmp eax, dword [0x417f8c]
jb 0x40a47e
mov eax, dword [eax]
cmp eax, edi
je 0x40a45f
call eax
jmp 0x40a45f
push 0x413044
mov eax, 0x41303c
call fcn.0040a38e
pop ecx
push 0x413050
mov eax, 0x413048
call fcn.0040a38e
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40a4bf
cmp dword [ebp + 0x10], edi
jne 0x40a4cd
mov dword [0x416844], esi
push dword [ebp + 8]
call fcn.0040a34c
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40a4cc
push 8
call fcn.00408782
pop ecx
ret
call fcn.0040803b
ret