joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c0c4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44c0db
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00418f18
mov eax, dword [0x450f4c]
cmp word [eax + 2], 0
jne 0x44c103
mov eax, dword [0x450f4c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044d79c
mov eax, dword [0x450ff4]
cmp word [eax + 2], 0
jne 0x44c11d
mov eax, dword [0x450ff4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044d994
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411210]
call fcn.004030a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411210]
call fcn.004030a8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b0ec]
call fcn.00420d6c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44c2a4
mov eax, dword [0x450e70]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042113c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44df34
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x450e70]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bdb4
test eax, eax
je 0x44c212
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040816c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bddc
test eax, eax
je 0x44c226
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404080
mov eax, dword [0x450d74]
cmp byte [eax], 0
jne 0x44c25a
mov eax, ebx
call fcn.0044c3cc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044e110
mov eax, ebx
call fcn.0044ead4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c29a
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c64c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x452bb0]
cmp dword [eax + 0x30], 0
je 0x44c6f6
cmp dword [ebx + 0x94], 0
jne 0x44c6f0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44c5dc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44c6f0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44c6b6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44c6f0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413578
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44c6c5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44d258
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44d28d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f00
jmp 0x44d29a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e64
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44e2ec
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44e32d
mov eax, esi
call fcn.00434c90
test al, al
je 0x44e32d
mov eax, dword [ebx + 0x84]
call fcn.0043498c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44e32d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043498c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4014c0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push str.KMPOPUPMGR
push str.KMPOPUPMGR
push 0
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x4014fe
pop ecx
ret
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x218], eax
lea eax, [esp]
push eax
push 0
push esi
push 0x401690
push 0
push 0
mov dword [esp + 0x18], 0x66
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x220]
test eax, eax
jle 0x401558
mov ecx, dword [esi + 0xc]
imul eax, eax, 0x3e8
push 0
push eax
push 0x65
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x224], eax
mov eax, 1
pop ecx
ret

Function at 0x401d10
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x40d178]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esi + 0x228]
movzx ecx, al
add ecx, 0xfffffffc
cmp ecx, 0xe
push edi
ja case.0x401d41.5
movzx ecx, byte [ecx + 0x401f04]
jmp dword [ecx*4 + 0x401ef0]
mov dword [esi + 0x2b0], 1
mov dword [esi + 0x2ac], 8
call fcn.00401f20
test al, al
lea edi, [esi + 0x2b4]
mov ecx, edi
je 0x401e5d
mov eax, str.Segoe_UI
jmp 0x401e62
lea edi, [esi + 0x2b4]
mov dword [esi + 0x2b0], 0x80
mov dword [esi + 0x2ac], 9
mov eax, str.Ms_UI_Gothic
mov ecx, edi
jmp 0x401e62
cmp eax, 0x404
je 0x401ddc
cmp eax, 0xc04
je 0x401ddc
cmp eax, 0x1404
je 0x401ddc
lea edi, [esi + 0x2b4]
mov dword [esi + 0x2b0], 0x86
mov dword [esi + 0x2ac], 9
mov eax, str.Simsun
mov ecx, edi
jmp 0x401e62
lea edi, [esi + 0x2b4]
mov dword [esi + 0x2b0], 0x88
mov dword [esi + 0x2ac], 9
mov eax, str.PMingliu
mov ecx, edi
jmp 0x401e62
lea edi, [esi + 0x2b4]
mov dword [esi + 0x2b0], 0x81
mov dword [esi + 0x2ac], 9
mov eax, str.Gulim
mov ecx, edi
jmp 0x401e62
lea edx, [esp + 4]
push edx
mov dword [esi + 0x2b0], 1
mov dword [esi + 0x2ac], 8
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 8], 6
lea edi, [esi + 0x2b4]
mov ecx, edi
mov eax, str.Segoe_UI
jae 0x401e62
mov eax, str.Microsoft_Sans_Serif
call fcn.00401320
push 0x48
push 0x5a
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
mov eax, dword [esi + 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp dword [esi + 0x334], 0
jne 0x401ec3
mov ecx, dword [esi + 0x2b0]
push edi
push 0
push 2
push 0x80
push 4
push ecx
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
neg eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontW]
mov dword [esi + 0x334], eax
mov edx, dword [esi + 0x334]
push 1
push edx
push 0x30
push 1
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov ecx, dword [esp + 0x118]
pop edi
xor ecx, esp
call fcn.004020d2
add esp, 0x118
ret
Function at 0x401f20
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x40d178]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.004020d2
add esp, 0x118
ret

Function at 0x402f6d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x40d188]
je 0x402f93
inc esi
cmp esi, 0x17
mov dword [ebp - 4], esi
jb 0x402f81
cmp esi, 0x17
jae 0x4030ed
push 3
call fcn.00406204
cmp eax, 1
pop ecx
je 0x4030b7
push 3
call fcn.00406204
test eax, eax
pop ecx
jne 0x402fc6
cmp dword [section..data], 1
je 0x4030b7
cmp edi, 0xfc
je 0x4030ed
push str.Runtime_Error__n_nProgram:
mov edi, 0x314
push edi
mov esi, 0x40e078
push esi
call fcn.00405ac5
add esp, 0xc
test eax, eax
je 0x402ffc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040259d
add esp, 0x14
mov byte [0x40e195], bl
push 0x104
mov ebx, 0x40e091
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40303f
push str._program_name_unknown_
push 0x2fb
push ebx
call fcn.00405ac5
add esp, 0xc
test eax, eax
je 0x40303f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040259d
add esp, 0x14
push ebx
push edi
push esi
call fcn.00406190
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x40305d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040259d
add esp, 0x14
push 0x40a7e0
push edi
push esi
call fcn.00406190
add esp, 0xc
test eax, eax
je 0x40307d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040259d
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x40d18c]
push edi
push esi
call fcn.00406190
add esp, 0xc
test eax, eax
je 0x4030a2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040259d
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push esi
call fcn.00405ff0
add esp, 0xc
jmp 0x4030ed
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x4030ed
cmp edi, 0xffffffff
je 0x4030ed
mov edx, dword [esi*8 + 0x40d18c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4030d6
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40363e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40e59c]
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 4], ebx
jne 0x40368d
call edi
mov esi, eax
cmp esi, ebx
je 0x403673
mov dword [0x40e59c], 1
jmp 0x403692
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x403688
push 2
pop eax
mov dword [0x40e59c], eax
jmp 0x40368d
mov eax, dword [0x40e59c]
cmp eax, 1
jne 0x4036ed
cmp esi, ebx
jne 0x4036a5
call edi
mov esi, eax
cmp esi, ebx
jne 0x4036a5
xor eax, eax
jmp 0x4037bc
cmp word [esi], bx
mov eax, esi
je 0x4036ba
inc eax
inc eax
cmp word [eax], bx
jne 0x4036ac
inc eax
inc eax
cmp word [eax], bx
jne 0x4036ac
sub eax, esi
inc eax
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.00402b1f
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4036de
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x4037bc
push dword [ebp - 4]
push esi
push edi
call fcn.004063b0
add esp, 0xc
jmp 0x4036d0
cmp eax, 2
je 0x4036f6
cmp eax, ebx
jne 0x40369e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x40369e
cmp byte [esi], bl
je 0x403737
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x40369e
add dword [ebp - 4], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403723
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x403709
mov esi, dword [ebp - 8]
inc dword [ebp - 4]
push 2
push dword [ebp - 4]
call fcn.0040636d
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
jne 0x40375b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40369e
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x4037ad
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push edi
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4037c1
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x403785
sub eax, ecx
lea esi, [esi + eax + 1]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x403797
sub eax, ecx
sar eax, 1
cmp byte [esi], bl
lea edi, [edi + eax*2 + 2]
jne 0x403762
push dword [ebp - 8]
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.00402a42
pop ecx
push dword [ebp - 8]
jmp 0x403750
Function at 0x4037cf
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x40e5a0]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x403813
call esi
test eax, eax
je 0x4037f8
mov dword [0x40e5a0], 1
jmp 0x403818
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40380f
mov dword [0x40e5a0], 2
jmp 0x403821
xor eax, eax
jmp 0x403877
cmp eax, 1
jne 0x40381c
call esi
jmp 0x403877
cmp eax, 2
jne 0x40380f
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x403874
push 2
push edi
call fcn.0040636d
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x403874
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x40386b
mov eax, dword [ebp - 4]
jmp 0x403876
push dword [ebp - 4]
call fcn.00402a42
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x405bf0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x405c03
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405bff
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x405c20
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x405c5f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x405c55
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x405c61
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x405c45
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x405ff0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00403b1a
xor ebx, ebx
cmp dword [0x40e7ac], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4060c7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x406032
xor eax, eax
jmp 0x40618b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40602b
push eax
call fcn.00403ab4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e7ac], eax
call esi
push eax
call fcn.00403ab4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e7b0], eax
call esi
push eax
call fcn.00403ab4
mov dword [0x40e7b4], eax
lea eax, [ebp - 8]
push eax
call fcn.00402d1d
test eax, eax
pop ecx
pop ecx
je 0x406095
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040259d
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4060c7
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00403ab4
cmp eax, ebx
pop ecx
mov dword [0x40e7bc], eax
je 0x4060c7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403ab4
pop ecx
mov dword [0x40e7b8], eax
mov eax, dword [0x40e7b8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x406140
cmp dword [0x40e7bc], esi
je 0x406140
push eax
call fcn.00403b23
pop ecx
call eax
cmp eax, ebx
je 0x40610d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40e7bc]
call fcn.00403b23
pop ecx
call eax
test eax, eax
je 0x40610d
test byte [ebp - 0x18], 1
jne 0x406140
lea eax, [ebp - 0xc]
push eax
call fcn.00402d59
test eax, eax
pop ecx
je 0x406128
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040259d
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x406137
or dword [ebp + 0x10], 0x200000
jmp 0x406171
or dword [ebp + 0x10], 0x40000
jmp 0x406171
mov eax, dword [0x40e7b0]
cmp eax, esi
je 0x406171
push eax
call fcn.00403b23
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x406171
mov eax, dword [0x40e7b4]
cmp eax, esi
je 0x406171
push dword [ebp - 4]
push eax
call fcn.00403b23
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40e7ac]
call fcn.00403b23
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4080e7
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x40d178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 0xc], edi
call fcn.00402d1d
test eax, eax
pop ecx
je 0x40811c
push edi
push edi
push edi
push edi
push edi
call fcn.0040259d
add esp, 0x14
push 4
pop eax
call fcn.00408560
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40822a
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec esi
neg esi
sbb esi, esi
and esi, 0x103
inc esi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], edi
jne 0x4081a3
push str.kernel32.dll
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x4081a3
push str.SetThreadStackGuarantee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4081a3
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], edi
call eax
cmp eax, 1
jne 0x4081a3
mov eax, dword [ebp - 0x10]
cmp eax, edi
jbe 0x4081a3
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push dword [ebp - 8]
call fcn.004080c0
add esp, 0xc
test eax, eax
jl 0x40822a
not edi
and dword [ebp - 8], edi
je 0x4081d5
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.004080c0
add esp, 0xc
test eax, eax
jl 0x40822a
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x4081e0
mov dword [ebp - 8], eax
lea edi, [ebx - 1]
not edi
and edi, dword [ebp - 0x14]
sub edi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x4081f4
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp edi, ebx
jb 0x40822a
push 4
push 0x1000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x40822a
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40822a
xor eax, eax
inc eax
jmp 0x40822c
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020d2
leave
ret
Function at 0x1013f550
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0x18]
mov ecx, 6
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1017e3ae
call fcn.1006eba8
mov eax, dword [0x1017b928]
mov dword [ebp - 8], eax
jmp 0x1013f587
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1013f5a0
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x1013f59e
mov eax, dword [ebp - 8]
jmp 0x1013f623
jmp 0x1013f57f
mov esi, esp
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.1006e306
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1013f620
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x14]
add eax, 0x20
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 8]
cmp eax, 0xfe0
jbe 0x1013f5e3
mov eax, dword [ebp - 8]
mov ecx, dword [0x1017b928]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov dword [0x1017b928], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.1006e306
mov esp, ebp
pop ebp
ret
Function at 0x101410f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea edi, [ebp - 0x4c]
mov ecx, 0x13
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x10174880]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x1017e536
call fcn.1006eba8
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x1017b910]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], 5
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x1014115d
mov eax, dword [ebp - 0x30]
sub eax, 5
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0x24], eax
mov esi, esp
lea eax, [ebp - 0x18]
push eax
push 0x40
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.1006e306
test eax, eax
jne 0x10141188
mov eax, 0xa
jmp 0x1014128a
cmp dword [ebp + 0xc], 0
je 0x101411d5
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov byte [eax], 0xe9
mov eax, dword [ebp - 0x30]
add eax, 5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
sub edx, eax
mov eax, dword [ebp - 0x3c]
mov dword [eax + 1], edx
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x101411d3
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
mov byte [eax], 0xeb
mov eax, dword [ebp - 0x48]
mov byte [eax + 1], 0xf9
jmp 0x10141211
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x101411fc
push 7
mov eax, dword [ebp - 0xc]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.1006ea59
add esp, 0xc
jmp 0x10141211
push 5
mov eax, dword [ebp - 0xc]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.1006ea59
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.1006e306
mov esi, esp
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.1006e306
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp esi, esp
call fcn.1006e306
mov al, byte [ebp + 0xc]
and al, 1
shl al, 1
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 0x14]
and dl, 0xfd
or dl, al
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x14], dl
mov al, byte [ebp + 0xc]
and al, 1
shl al, 2
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 0x14]
and dl, 0xfb
or dl, al
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x14], dl
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x101412bc]
call fcn.1006dfc3
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006db54
add esp, 0x10c
cmp ebp, esp
call fcn.1006e306
mov esp, ebp
pop ebp
ret