joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100187a7
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.10011f5f
and dword [ebp - 4], 0
cmp dword [0x10021d20], 0
mov ebx, eax
jne 0x10018858
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10018909
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10018909
push eax
call fcn.10011eed
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10021d20], eax
call esi
push eax
call fcn.10011eed
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10021d24], eax
call esi
push eax
call fcn.10011eed
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10021d28], eax
call esi
push eax
call fcn.10011eed
pop ecx
mov dword [0x10021d30], eax
test eax, eax
je 0x10018858
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10011eed
pop ecx
mov dword [0x10021d2c], eax
mov eax, dword [0x10021d2c]
cmp eax, ebx
je 0x100188b0
cmp dword [0x10021d30], ebx
je 0x100188b0
push eax
call fcn.10011f68
push dword [0x10021d30]
mov esi, eax
call fcn.10011f68
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100188b0
test edi, edi
je 0x100188b0
call esi
test eax, eax
je 0x100188a7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100188a7
test byte [ebp - 0xc], 1
jne 0x100188b0
or dword [ebp + 0x10], 0x200000
jmp 0x100188e9
mov eax, dword [0x10021d24]
cmp eax, ebx
je 0x100188e9
push eax
call fcn.10011f68
pop ecx
test eax, eax
je 0x100188e9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100188e9
mov eax, dword [0x10021d28]
cmp eax, ebx
je 0x100188e9
push eax
call fcn.10011f68
pop ecx
test eax, eax
je 0x100188e9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10021d20]
call fcn.10011f68
pop ecx
test eax, eax
je 0x10018909
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001890b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415100
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.0040a2b0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4151cb
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 0x4151cb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41517e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x415189
or bh, 8
and edi, 0x8000000
je 0x4151a4
mov eax, dword [0x43285c]
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 0x4151cb
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 0x4155a0
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 0x4155cb
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 0x4155ef
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 0x41560a
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 0x417ca1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x421208
call fcn.0040965c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041df74
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x417ce0
call fcn.0041df74
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x417cee
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x417cfc
or eax, 0xffffffff
jmp 0x417de4
mov ecx, esi
call fcn.00417c17
mov dword [ebp - 0x14], eax
call fcn.00418ad3
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x417d33
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x417d33
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00418a87
push dword [ebp - 0x14]
call fcn.004185b9
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004179af
cmp eax, edi
je 0x417da6
test byte [esi + 0x24], 0x10
je 0x417d74
push 4
mov ecx, esi
pop ebx
call fcn.0041ab9d
test ah, 1
je 0x417d6c
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041a5da
cmp dword [esi + 0x1c], edi
je 0x417da6
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041ac83
jmp 0x417da6
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x417dba
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x417dd3
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x417dd3
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00417c51
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41a488
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 0x41a4ca
call fcn.0041df74
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41a4ca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41a4c1
xor eax, eax
jmp 0x41a4d2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041a4d8
pop edi
pop esi
pop ebx
ret 4
Function at 0x41e8f8
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 0x41e926
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e944
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041e85e
jmp 0x41e944
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41e944
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041e85e
test edi, edi
mov eax, edi
jne 0x41e92e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x60e11e
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x60e13e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x60e12a
add dl, dl
jne 0x60e149
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x60e19a
xor eax, eax
add dl, dl
jne 0x60e156
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x60e23b
add dl, dl
jne 0x60e165
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x60e170
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x60e17b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x60e186
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x60e190
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x60e135
mov eax, 1
add dl, dl
jne 0x60e1a8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x60e1b3
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x60e19f
sub eax, ebx
mov ebx, 1
jne 0x60e1e6
mov ecx, 1
add dl, dl
jne 0x60e1cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x60e1d7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x60e1c3
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x60e135
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x60e1fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x60e208
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x60e1f4
cmp eax, 0x7d00
jae 0x60e22b
cmp eax, 0x500
jb 0x60e226
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x60e135
cmp eax, 0x7f
ja 0x60e22e
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x60e135
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x60e25c
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x60e135
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x406058], 1
mov dword [0x406054], 1
mov dword [0x406050], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40600c], eax
mov eax, dword [0x406064]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x406078]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x406060]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x403014], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x4013f0
Capabilities:
Encode data using xor

Disassembly:
dec eax
mov esi, 0x6d28aa68
mov dl, 0xcf
salc
sub al, 0x54
fcmovbe st(0), st(4)
dec ebp
xor ebp, ebp
Function at 0x4023e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x431899
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00409ba0
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi], 0x4336d8
lea ebp, [esi + 0x20]
call fcn.00422ef8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
mov eax, 0x4336cc
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], edi
push edi
push 0x4336e5
mov ecx, ebp
mov byte [esp + 0x20], 3
mov dword [esi + 0x50], edi
call fcn.00401e40
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x24], edi
pop edi
mov dword [esi + 0x1c], 3
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4023f7
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x431899
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00409ba0
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi], 0x4336d8
lea ebp, [esi + 0x20]
call fcn.00422ef8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
mov eax, 0x4336cc
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], edi
push edi
push 0x4336e5
mov ecx, ebp
mov byte [esp + 0x20], 3
mov dword [esi + 0x50], edi
call fcn.00401e40
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x24], edi
pop edi
mov dword [esi + 0x1c], 3
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404400
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x431a78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00404190
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401a00
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x404492
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4061e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x431c93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0042ab3f
xor ecx, ecx
lea ebp, [esi + 0x10]
mov dword [esi], 0x433ed8
mov dword [esp + 0x24], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], 0x434bc0
mov ebx, dword [esp + 0x2c]
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
sete al
mov byte [esp + 0x24], 1
cmp eax, ecx
mov dword [esi + 0x30], eax
je 0x4062a7
mov eax, dword [ebx]
lea edi, [esi + 0x20]
push edi
mov ecx, ebx
call dword [eax + 0x50]
mov eax, dword [ebx + 4]
push eax
call dword [0x4330dc]
push eax
mov ecx, esi
call fcn.0042af5f
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
sub ecx, edx
push eax
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [0x4330b8]
push eax
mov ecx, ebp
call fcn.0042b246
test ebp, ebp
je 0x406285
mov ebp, dword [ebp + 4]
mov edx, dword [esi + 4]
push ebp
push edx
call fcn.0042b2cf
mov ecx, dword [edi]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x24]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.0042ac8f
jmp 0x4062b9
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x415390
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x437600
call fcn.00415b80
mov edi, 0x94
mov eax, edi
call fcn.00414230
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x4332f8]
mov ecx, dword [esi + 0x10]
mov dword [0x444388], ecx
mov eax, dword [esi + 4]
mov dword [0x444394], eax
mov edx, dword [esi + 8]
mov dword [0x444398], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x44438c], esi
cmp ecx, 2
je 0x4153f0
or esi, 0x8000
mov dword [0x44438c], esi
shl eax, 8
add eax, edx
mov dword [0x444390], eax
xor esi, esi
push esi
mov edi, dword [0x433244]
call edi
cmp word [eax], 0x5a4d
jne 0x41542b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41542b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x415443
cmp eax, 0x20b
je 0x415430
mov dword [ebp - 0x1c], esi
jmp 0x415457
cmp dword [ecx + 0x84], 0xe
jbe 0x41542b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x415451
cmp dword [ecx + 0x74], 0xe
jbe 0x41542b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004196bc
pop ecx
test eax, eax
jne 0x41546b
push 0x1c
call fcn.0041536c
pop ecx
call fcn.004186fd
test eax, eax
jne 0x41547c
push 0x10
call fcn.0041536c
pop ecx
call fcn.0041ca08
mov dword [ebp - 4], esi
call fcn.0041c80a
test eax, eax
jge 0x415495
push 0x1b
call fcn.00415347
pop ecx
call dword [0x4332bc]
mov dword [0x445c90], eax
call fcn.0041c6e8
mov dword [0x444378], eax
call fcn.0041c646
test eax, eax
jge 0x4154bb
push 8
call fcn.00415347
pop ecx
call fcn.0041c413
test eax, eax
jge 0x4154cc
push 9
call fcn.00415347
pop ecx
push 1
call fcn.00415d15
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4154e2
push eax
call fcn.00415347
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [0x43310c]
call fcn.0041c3b6
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x415503
movzx eax, word [ebp - 0x40]
jmp 0x415506
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00421db6
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x415524
push edi
call fcn.00415e42
call fcn.00415e64
jmp 0x415556
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00415bbb
ret
Function at 0x41a24b
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 0x41a279
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 0x41a280
cmp ebx, dword [eax + 4]
jae 0x41a280
xor eax, eax
jmp 0x41a470
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41a291
xor eax, eax
inc eax
jmp 0x41a46f
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41a2a7
cmp ecx, edx
jae 0x41a3ec
cmp dword [eax + 4], 0
je 0x41a2b0
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41a298
cmp dword [ebp + 8], 0
je 0x41a2d2
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41a3ec
cmp eax, esi
jae 0x41a3ec
mov eax, dword [0x444540]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41a2f7
cmp dword [esi*4 + 0x444548], edi
je 0x41a3f0
inc esi
cmp esi, eax
jl 0x41a2e5
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x4330fc]
test eax, eax
je 0x41a46c
cmp dword [ebp - 8], 0x1000000
jne 0x41a46c
test byte [ebp - 0xc], 0xcc
je 0x41a375
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41a46c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41a46c
cmp word [eax + 0x18], 0x10b
jne 0x41a46c
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41a46c
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41a375
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41a375
test byte [ecx + 0x27], 0x80
jne 0x41a3ec
push 1
push 0x444588
call dword [0x433308]
test eax, eax
jne 0x41a289
mov ecx, dword [0x444540]
test ecx, ecx
mov edx, ecx
jle 0x41a3a9
lea eax, [ecx*4 + 0x444544]
cmp dword [eax], edi
je 0x41a3a9
dec edx
sub eax, 4
test edx, edx
jg 0x41a39d
test edx, edx
jne 0x41a3da
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41a3b6
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41a3ce
lea eax, [edx*4 + 0x444548]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41a3bc
cmp ecx, 0x10
jge 0x41a3da
inc ecx
mov dword [0x444540], ecx
push 0
push 0x444588
call dword [0x433308]
jmp 0x41a289
xor eax, eax
jmp 0x41a46f
test esi, esi
jle 0x41a289
mov ebx, dword [0x433308]
push 1
push 0x444588
call ebx
test eax, eax
jne 0x41a289
cmp dword [esi*4 + 0x444548], edi
je 0x41a446
mov eax, dword [0x444540]
lea esi, [eax - 1]
test esi, esi
jl 0x41a434
cmp dword [esi*4 + 0x444548], edi
je 0x41a430
dec esi
jns 0x41a424
test esi, esi
jge 0x41a444
cmp eax, 0x10
jge 0x41a43f
inc eax
mov dword [0x444540], eax
lea esi, [eax - 1]
jmp 0x41a446
je 0x41a45e
xor ecx, ecx
test esi, esi
jl 0x41a45e
lea eax, [ecx*4 + 0x444548]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41a44c
push 0
push 0x444588
call ebx
jmp 0x41a289
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret