joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a7e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43964e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov eax, 1
mov byte [esi], bl
mov byte [esi + 1], bl
mov dword [esi + 2], eax
mov dword [esi + 6], ebx
mov dword [esi + 0xa], eax
mov word [esi + 0xe], bx
mov eax, dword [0x44abb4]
mov dword [esi + 0x10], eax
mov ecx, dword [0x44abb4]
mov dword [esi + 0x14], ecx
mov edx, dword [0x44abb4]
mov dword [esi + 0x18], edx
mov eax, dword [0x44abb4]
mov dword [esi + 0x1c], eax
mov ecx, dword [0x44abb4]
lea ebp, [esi + 0x20]
mov dword [ebp], ecx
mov edx, dword [0x44abb4]
mov dword [esi + 0x24], edx
lea edi, [esi + 0x28]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
mov byte [esp + 0x24], 7
call fcn.0042f6f8
mov ecx, dword [0x44abb4]
mov dword [esi + 0x2c], ecx
mov edx, dword [0x44abb4]
mov dword [esi + 0x30], edx
lea ecx, [esi + 0x34]
mov byte [esp + 0x20], 0xa
call fcn.0042ae97
lea ecx, [esi + 0x48]
mov byte [esp + 0x20], 0xb
call fcn.0042ae97
lea ecx, [esi + 0x5c]
mov byte [esp + 0x20], 0xc
call fcn.0042ae97
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
mov byte [esp + 0x24], 0xd
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
call fcn.0042fabc
push str.__._
lea ecx, [esi + 0x2c]
call fcn.0042fb0c
push 0x60
call fcn.0042f6c4
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x20], 0xe
je 0x40a8e7
mov ecx, eax
call fcn.00410755
jmp 0x40a8e9
xor eax, eax
mov ecx, esi
mov byte [esp + 0x20], 0xd
mov dword [esi + 0x70], eax
call fcn.0040b9c0
mov ecx, dword [edi]
mov eax, dword [esi + 0x24]
mov edx, ecx
push ecx
push edx
push eax
lea eax, [esi + 0x14]
push str.DRIVER_s_DSN_FIRSTROWHASNAMES1_READONLYFALSE_CREATE_DB__s__DBQ_s
push eax
call fcn.00429d50
add esp, 0x14
mov ecx, esi
call fcn.0040b590
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], bl
call fcn.0042f983
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call fcn.0042f983
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x40a950
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4396e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x10], 0xb
test ecx, ecx
je 0x40a98f
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x40a98f
mov edx, dword [ecx]
push 1
call dword [edx + 4]
lea ecx, [esi + 0x5c]
mov byte [esp + 0x10], 0xa
call fcn.0042aeca
lea ecx, [esi + 0x48]
mov byte [esp + 0x10], 9
call fcn.0042aeca
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 8
call fcn.0042aeca
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 7
call fcn.0042f983
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 6
call fcn.0042f983
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 5
call fcn.0042f983
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 4
call fcn.0042f983
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 3
call fcn.0042f983
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 2
call fcn.0042f983
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 1
call fcn.0042f983
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 0
call fcn.0042f983
lea ecx, [esi + 0x10]
mov dword [esp + 0x10], 0xffffffff
call fcn.0042f983
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40bc26
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4399e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x10], 0xb
test ecx, ecx
je 0x40bc4f
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x40bc4f
mov edx, dword [ecx]
push 1
call dword [edx + 4]
lea ecx, [esi + 0x5c]
mov byte [esp + 0x10], 0xa
call fcn.0042aeca
lea ecx, [esi + 0x48]
mov byte [esp + 0x10], 9
call fcn.0042aeca
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 8
call fcn.0042aeca
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 7
call fcn.0042f983
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 6
call fcn.0042f983
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 5
call fcn.0042f983
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 4
call fcn.0042f983
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 3
call fcn.0042f983
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 2
call fcn.0042f983
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 1
call fcn.0042f983
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 0
call fcn.0042f983
lea ecx, [esi + 0x10]
mov dword [esp + 0x10], 0xffffffff
call fcn.0042f983
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4216e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44c458
cmp edx, dword [eax]
je 0x421707
add eax, 8
inc ecx
cmp eax, 0x44c4e8
jl 0x4216f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44c458]
jne 0x421835
mov eax, dword [0x44f0f0]
cmp eax, 1
je 0x42180f
test eax, eax
jne 0x421738
cmp dword [0x44bac4], 1
je 0x42180f
cmp edx, 0xfc
je 0x421835
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42176f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00422600
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00421b30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4217b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00421b30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x440c00
push edi
call fcn.004243f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00422600
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00422610
lea eax, [ebp - 0xa0]
push 0x440be0
push eax
call fcn.00422610
push dword [esi + 0x44c45c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00422610
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00424365
add esp, 0x2c
pop edi
jmp 0x421835
lea eax, [ebp + 8]
lea esi, [esi + 0x44c45c]
push 0
push eax
push dword [esi]
call fcn.00421b30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x429120
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041b4d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4291eb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4291eb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42919e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4291a9
or bh, 8
and edi, 0x8000000
je 0x4291c4
mov eax, dword [0x45089c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4291eb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4295c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4295eb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42960f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42962a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x42bc03
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x42bc25
cmp dword [edi + 0x3c], 0
jne 0x42bc25
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00435794
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0042bc52
pop edi
pop esi
pop ebx
ret 8

Function at 0x42d259
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42d291
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.0042fe2a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042fe02
jmp 0x42d29d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x42e7dc
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 0x42e81e
call fcn.00435794
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42e81e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42e815
xor eax, eax
jmp 0x42e826
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042e82c
pop edi
pop esi
pop ebx
ret 4
Function at 0x406291
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5b1930]
jne 0x40629b
repz ret
jmp fcn.0040cdcc

Function at 0x410319
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405104
and dword [ebp - 4], 0
cmp dword [0x5b3bac], 0
mov ebx, eax
jne 0x4103ca
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41047b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41047b
push eax
call fcn.00405092
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5b3bac], eax
call esi
push eax
call fcn.00405092
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5b3bb0], eax
call esi
push eax
call fcn.00405092
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5b3bb4], eax
call esi
push eax
call fcn.00405092
pop ecx
mov dword [0x5b3bbc], eax
test eax, eax
je 0x4103ca
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405092
pop ecx
mov dword [0x5b3bb8], eax
mov eax, dword [0x5b3bb8]
cmp eax, ebx
je 0x410422
cmp dword [0x5b3bbc], ebx
je 0x410422
push eax
call fcn.0040510d
push dword [0x5b3bbc]
mov esi, eax
call fcn.0040510d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410422
test edi, edi
je 0x410422
call esi
test eax, eax
je 0x410419
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410419
test byte [ebp - 0xc], 1
jne 0x410422
or dword [ebp + 0x10], 0x200000
jmp 0x41045b
mov eax, dword [0x5b3bb0]
cmp eax, ebx
je 0x41045b
push eax
call fcn.0040510d
pop ecx
test eax, eax
je 0x41045b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41045b
mov eax, dword [0x5b3bb4]
cmp eax, ebx
je 0x41045b
push eax
call fcn.0040510d
pop ecx
test eax, eax
je 0x41045b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5b3bac]
call fcn.0040510d
pop ecx
test eax, eax
je 0x41047b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41047d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414018
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x5b1184], 0
mov dword [0x5b1188], 0
mov dword [0x5b1194], 0
mov dword [0x5b117c], 0x127b
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x414139
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x5b1184], edx
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x5b1188], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x5b118c], cl
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x5b118c]
mov edx, dword [0x5b1188]
mov byte [edi + edx], cl
mov edx, dword [0x5b1184]
movzx edx, byte [edi + edx]
mov ebx, dword [0x5b1188]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x5b117c], 0x114e
and ebx, 0xff
mov dword [0x5b1194], ebx
mov dword [0x5b1180], 0x2fb
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov byte [ebx + edx], cl
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x38], edx
jne 0x41414b
mov dword [0x5b1180], 0x163b
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x5b1184]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x5b1188]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
jmp 0x41407b
Function at 0x41430c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.004150e5
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x414348
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x5b1180], 0x1657
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x5b117c], 0x91
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x414485
jmp 0x414434
mov al, byte [ebp - 0x31]
test al, 1
jne 0x414462
jmp 0x41439d
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov edx, dword [ebp - 0x3c]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x30], eax
jb 0x414446
jmp 0x414485
mov eax, dword [ebp - 0x48]
add eax, 1
mov cl, byte [ebp - 0x49]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x31]
and ch, dl
cmp eax, 0x20
setb dl
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], ch
mov byte [ebp - 0x52], dl
mov al, byte [ebp - 0x51]
mov cl, byte [ebp - 0x52]
and al, cl
test al, 1
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x58], edx
jne 0x414405
jmp 0x414390
mov eax, dword [ebp - 0x58]
mov ecx, eax
mov edx, dword [ebp - 0x5c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x49], bh
mov byte [ebp - 0x31], cl
je 0x414390
jmp 0x4143ca
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edx
jmp 0x414405
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x5b117c], 0x1802
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x414543
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [0x5b117c], 0xb
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [0x5b117c]
add edx, 0xffffd9ce
mov dword [0x5b1180], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x5b117c], 0x15bd
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x4145d5
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff6
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2], 0x64
je 0x414653
jmp 0x4146b0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dx, word [eax + ecx*2 - 0x18]
mov word [ebp - 0x1a], dx
mov ax, word [ebp - 0x1a]
cmp ax, 0x6f
je 0x414634
jmp 0x4146b0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
je 0x414616
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x29], cl
mov al, byte [ebp - 0x29]
test al, 1
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], edx
jne 0x4145d5
jmp 0x414616
mov eax, dword [ebp - 0x24]
mov dword [0x5b117c], 0x10c9
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x4145b7
jmp 0x4146b0
mov dword [0x5b1180], 0x80e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x414595
jmp 0x4146b0
mov dword [0x5b1180], 0x8e7
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x4146b0
mov dword [0x5b117c], 0xe97
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2], 0x6c
jne 0x4146b0
mov eax, 1
mov dword [0x5b1180], 0x113b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x34], eax
je 0x4146b7
xor eax, eax
mov dword [ebp - 0x34], eax
jmp 0x4146b7
mov eax, dword [ebp - 0x34]
add esp, 0x34
pop ebp
ret
Function at 0x414739
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [0x5b1180], 0x15d4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
xor eax, eax
mov dword [0x5b117c], 0x407
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax + 0x41774a]
mov dl, byte [eax + 0x41771b]
sub dl, cl
mov byte [ebp + eax - 0x20], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x2c], eax
jne 0x414764
lea eax, [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov dword [0x5b1180], 0x161a
call fcn.00414eaf
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.00413ce1
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
je 0x414859
mov eax, dword [ebp - 0x34]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.0041416c
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x44], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0xc], ecx
mov dword [0x5b117c], 0xeda
cmp ecx, 0
mov dword [ebp - 0x38], eax
je 0x414859
mov eax, dword [ebp - 0x3c]
add eax, 0x1f8a
mov dword [0x5b1180], 0xffffe86e
mov dword [0x5b117c], 0x443
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add esp, 0x4c
pop ebp
ret