joyce8/EMBER2024-capa huggingface dataset:
Function at 0x519114
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov ebp, edx
mov ebx, eax
cmp dword [ebx + 0x6c], 0
jne 0x51912c
mov eax, ebx
call fcn.00518a10
cmp dword [ebx + 0x68], 0
jne 0x519139
mov eax, ebx
call fcn.00518944
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x5192dc
cmp dword [ebx + 0x68], 0
je 0x5192dc
mov edx, esp
mov eax, esi
call fcn.0051bef4
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.005187bc
lea eax, [esp + 0x14]
xor edx, edx
call fcn.0051bfa4
cmp eax, dword [esp]
je 0x5191ae
lea eax, [esp + 0x14]
xor edx, edx
call fcn.0051bfb8
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x51918a
adc edx, 0
push edx
lea eax, [esp + 0x18]
xor edx, edx
call fcn.0051bfa4
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x5191a3
adc edx, 0
push edx
lea eax, [esp + 0x1c]
push eax
call sub.user32.dll_InflateRect
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x5191c1
mov eax, dword [eax + 0x28]
call fcn.00458204
mov esi, eax
jmp 0x5191c4
mov esi, dword [ebx + 0x5c]
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x5191d9
or esi, 0xffffffff
jmp 0x5191e3
push 3
push esi
call sub.user32.dll_GetWindow
mov esi, eax
mov edi, 0x610
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x68]
call fcn.0045113c
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x68]
call fcn.00451160
mov edx, dword [esp]
mov eax, dword [ebx + 0x68]
call fcn.00451188
mov edx, dword [esp + 4]
mov eax, dword [ebx + 0x68]
call fcn.004511ac
lea ecx, [esp + 8]
xor edx, edx
xor eax, eax
call fcn.0051bf40
mov eax, ebp
mov byte [esp + 0x12], al
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x13], 1
or edi, 2
or edi, 1
push edi
push 0
push 0
push 0
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.00458204
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.00458204
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
or eax, 0x20
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.00458204
push eax
call sub.user32.dll_SetWindowLongA
push 2
lea eax, [esp + 0x14]
push eax
push 0x1fffffff
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x6c]
call fcn.0042bbfc
call fcn.00427080
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.00458204
push eax
call dword [0x54b4f4]
push 4
mov eax, dword [ebx + 0x68]
call fcn.00458204
push eax
call sub.user32.dll_ShowWindow
push esi
push 0
call sub.user32.dll_ReleaseDC
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5195cc
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x10
call fcn.00402fd4
lea eax, [esp + 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
call sub.user32.dll_GetDesktopWindow
test eax, eax
je 0x5197c9
push 0
push 0x5197d4
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x5197c9
push 0
push 0x5197e4
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x5197c9
push 0
push 0x5197f4
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x5197c9
push 0
push 0x519804
push 0
push eax
call sub.user32.dll_FindWindowExA
mov ebp, eax
test ebp, ebp
je 0x5197c9
push 0
push 0
push 0x418
push ebp
call sub.user32.dll_SendMessageA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jle 0x5197c9
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push ebp
call sub.user32.dll_GetWindowThreadProcessId
cmp dword [esp + 8], 0
je 0x5197c9
mov eax, dword [esp + 8]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x5197c9
push 0x40
push 0x1000
push 0x1000
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x5197c9
or edi, 0xffffffff
cmp edi, dword [esp + 4]
jge 0x5197b1
inc edi
mov eax, dword [esp + 0xc]
push eax
push edi
push 0x417
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x5197a7
lea eax, [esp + 0x10]
push eax
push 0x18
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x18]
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x5197a7
test byte [esp + 0x51], 0xd
jne 0x5197a7
mov al, byte [esp + 0x50]
and al, 8
cmp al, 8
je 0x5197a7
lea eax, [esp + 0x10]
push eax
push 4
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x60]
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x5197a7
cmp dword [esp + 0x10], 0
je 0x5197a7
mov eax, dword [0x548380]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
cmp eax, dword [esp]
jne 0x5197a7
mov eax, dword [esp + 0xc]
push eax
push edi
push 0x41d
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x519784
lea eax, [esp + 0x10]
push eax
push 0x10
push ebx
mov eax, dword [esp + 0x18]
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
cmp dword [esp + 0x10], 0
je 0x5197b1
lea eax, [esp + 0x14]
push eax
push ebp
call sub.user32.dll_GetWindowRect
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
call fcn.00406804
jmp 0x5197b1
cmp edi, dword [esp + 4]
jl 0x5196dd
push 0x8000
push 0
mov eax, dword [esp + 0x14]
push eax
push esi
call sub.kernel32.dll_VirtualFreeEx
push esi
call sub.kernel32.dll_CloseHandle
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5286d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov esi, edx
mov ebx, eax
mov ebp, 0x54b508
test esi, esi
jne 0x5286ee
xor eax, eax
jmp 0x5287f0
cmp dword [ebp], 0
jne 0x5286f9
call fcn.00528664
xor ebx, 0xffffffff
cmp edi, 8
jb 0x5287c9
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
sub edi, 8
cmp edi, 8
jae 0x528705
test edi, edi
jbe 0x5287eb
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
dec edi
test edi, edi
ja 0x5287cd
mov eax, ebx
xor eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x534a50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x534ab6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0040632c
mov eax, dword [ebp - 0x10]
call fcn.00404c2c
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x534a97
test byte [ebp - 0x14], 0x10
jne 0x534a9b
xor eax, eax
jmp 0x534a9d
mov al, 1
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x534abd
lea eax, [ebp - 0x10]
call fcn.00404aa4
ret

Function at 0x534fb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x535009
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0040632c
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404c2c
push eax
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x535010
lea eax, [ebp - 0x10]
call fcn.00404aa4
ret
Function at 0x539d58
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax - 0x10], 0
je 0x539d9c
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
xor ecx, ecx
mov edx, 0x10
call fcn.00402fd4
pop ebp
ret
Function at 0x53c124
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53c2c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x53c2dc
call fcn.004092e8
test al, al
je 0x53c2a8
mov eax, dword [ebp + 8]
add eax, 0xffffffd4
xor ecx, ecx
mov edx, 0x10
call fcn.00402fd4
mov eax, dword [ebp + 8]
add eax, 0xffffff90
xor ecx, ecx
mov edx, 0x44
call fcn.00402fd4
mov eax, dword [ebp + 8]
mov dword [eax - 0x70], 0x44
mov eax, dword [ebp + 8]
mov dword [eax - 0x44], 1
mov eax, dword [ebp + 8]
mov word [eax - 0x40], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov edx, dword [eax + 0x330]
lea eax, [ebp - 4]
mov ecx, 0x53c2dc
call fcn.004046a4
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x53c2f4
call fcn.00409ffc
mov eax, dword [ebp - 0x10]
mov edx, 0x53c310
call fcn.00539da0
pop ecx
mov eax, dword [ebp + 8]
add eax, 0xffffffd4
push eax
mov eax, dword [ebp + 8]
add eax, 0xffffff90
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x330]
call fcn.00404858
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404858
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x53c2a8
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x2c]
push eax
call sub.user32.dll_WaitForInputIdle
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x53c0fc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
push eax
call sub.user32.dll_EnumThreadWindows
cmp dword [ebp - 8], 0
je 0x53c2a8
push 0
push 0x53c318
push 0
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_FindWindowExA
mov dword [ebp - 0xc], eax
push 0x53c320
push 0x53c328
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_FindWindowExA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x53c2a8
push 0
push 0
push 0xf5
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_PostMessageA
push 0xbb8
call sub.kernel32.dll_Sleep_1
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x2c]
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53c2cd
lea eax, [ebp - 0x10]
call fcn.00404398
lea eax, [ebp - 4]
call fcn.00404398
ret
Function at 0x40de73
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040931a
mov dword [ebp - 0x14], eax
cmp dword [0x814d00], esi
jne 0x40df66
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40def3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40e046
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40e046
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e046
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x814d00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x814d04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x814d08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x814d10], eax
test eax, eax
je 0x40df63
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x814d0c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40df8b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40df7e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40dfa0
push 4
pop eax
jmp 0x40e048
cmp dword [ebp - 0x14], esi
je 0x40dfa0
push dword [0x814d00]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40df85
mov eax, dword [0x814d0c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40dffe
cmp dword [0x814d10], edi
je 0x40dffe
push eax
call ebx
push dword [0x814d10]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40dffe
test eax, eax
je 0x40dffe
call ecx
test eax, eax
je 0x40dff3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40dff3
test byte [ebp - 8], 1
jne 0x40dffe
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40e02e
mov eax, dword [0x814d04]
cmp eax, edi
je 0x40e02b
push eax
call ebx
test eax, eax
je 0x40e02b
call eax
mov esi, eax
test esi, esi
je 0x40e02b
mov eax, dword [0x814d08]
cmp eax, edi
je 0x40e02b
push eax
call ebx
test eax, eax
je 0x40e02b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x814d00]
call ebx
test eax, eax
je 0x40e046
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40e048
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404429
mov esp, ebp
pop ebp
ret
Function at 0x401f44
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x214
mov eax, dword [0x432040]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x100
mov ecx, edi
xor edx, edx
mov byte [esp + ecx + 0x18], cl
push 0x28
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x4858b0]
mov byte [esp + ecx + 0x118], al
inc ecx
cmp ecx, ebp
jl 0x401f65
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x18]
movzx eax, byte [esp + esi + 0x118]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x401fab
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + ebx + 0x18], dl
cmp esi, ebp
jl 0x401f88
mov ebx, edi
mov ebp, edi
inc edi
and edi, 0x800000ff
jns 0x401fd1
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x18]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x401fea
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x18]
sub esp, 0x10
movaps xmm0, xmmword [0x42ed90]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movups xmmword [esp], xmm0
call fcn.0040f7e0
add esp, 0x10
fstp dword [esp + 0x14]
movss xmm1, dword [esp + 0x14]
call fcn.004023d8
push eax
call fcn.004047a7
movzx eax, byte [esp + edi + 0x1c]
add eax, esi
movzx eax, al
pop ecx
mov al, byte [esp + eax + 0x18]
xor byte [ebp + section..bss], al
inc ebp
cmp ebp, 0x50400
jl 0x401fc0
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409173
add esp, 0x214
ret

Function at 0x40238e
Capabilities:
Create thread

Disassembly:
push ecx
call fcn.00402500
xor eax, eax
push eax
push eax
push eax
push 0x402236
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
ret
Function at 0x41e533
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41e5d0
push ebx
push esi
call fcn.0041e4fc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041d181
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e57d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e5cf
push edi
push eax
call fcn.004168e3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e59d
call fcn.004168a9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e5ce
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d181
add esp, 0x20
test eax, eax
jne 0x41e5bc
push edi
call fcn.004168a9
jmp 0x41e5c4
push ebx
call fcn.004168a9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4257d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4257fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4257fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401a99
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401ad4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401ad0
lea ebx, [ebx]
cmp esi, eax
jae 0x401ad4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401ac0
cmp esi, eax
jb 0x401ada
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40df8f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427e70]
jne 0x40df99
repz ret
jmp fcn.0041148f

Function at 0x41863d
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.0041170a
and dword [ebp - 4], 0
cmp dword [0x42bad4], 0
mov ebx, eax
jne 0x4186ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41879f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41879f
push eax
call fcn.00411698
mov dword [esp], 0x422288
push edi
mov dword [0x42bad4], eax
call esi
push eax
call fcn.00411698
mov dword [esp], 0x422274
push edi
mov dword [0x42bad8], eax
call esi
push eax
call fcn.00411698
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42badc], eax
call esi
push eax
call fcn.00411698
pop ecx
mov dword [0x42bae4], eax
test eax, eax
je 0x4186ee
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00411698
pop ecx
mov dword [0x42bae0], eax
mov eax, dword [0x42bae0]
cmp eax, ebx
je 0x418746
cmp dword [0x42bae4], ebx
je 0x418746
push eax
call fcn.00411713
push dword [0x42bae4]
mov esi, eax
call fcn.00411713
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x418746
test edi, edi
je 0x418746
call esi
test eax, eax
je 0x41873d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41873d
test byte [ebp - 0xc], 1
jne 0x418746
or dword [ebp + 0x10], 0x200000
jmp 0x41877f
mov eax, dword [0x42bad8]
cmp eax, ebx
je 0x41877f
push eax
call fcn.00411713
pop ecx
test eax, eax
je 0x41877f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41877f
mov eax, dword [0x42badc]
cmp eax, ebx
je 0x41877f
push eax
call fcn.00411713
pop ecx
test eax, eax
je 0x41877f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42bad4]
call fcn.00411713
pop ecx
test eax, eax
je 0x41879f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4187a1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40195e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
and dword [esi + 0x30], 0
push edi
call fcn.00401825
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0xc
mov ebx, dword [edi]
jmp 0x4019a4
push 0xa
push 0xa
push 0x92b2fc
push 0x3114b604
call fcn.004021c7
add esp, 0xc
push eax
push dword [ebx + 0x30]
call fcn.00401894
add esp, 0xc
test eax, eax
je 0x4019ad
mov ebx, dword [ebx]
cmp ebx, edi
jne 0x40197c
jmp 0x401a3f
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x401a3f
mov eax, dword [ebx + 0x3c]
mov edi, dword [eax + ebx + 0x78]
and dword [esp + 0xc], 0
add edi, ebx
mov eax, dword [edi + 0x1c]
add eax, ebx
push ebp
mov ebp, dword [edi + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x24]
add eax, ebx
add ebp, ebx
cmp dword [edi + 0x18], 0
mov dword [esp + 0x18], eax
jbe 0x401a3b
mov eax, dword [esp + 0x10]
mov eax, dword [ebp + eax*4]
push 0x16
add eax, ebx
push 0x92b2e4
push 0x40704011
mov dword [esp + 0x20], eax
call fcn.00402179
push eax
push dword [esp + 0x24]
call fcn.004018c0
add esp, 0x14
test eax, eax
je 0x401a23
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 0x18]
jb 0x4019e4
jmp 0x401a3b
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + eax*4]
add eax, ebx
mov dword [esi + 4], eax
mov dword [esi + 0x30], ebx
pop ebp
cmp dword [esi + 0x30], 0
je 0x401ba6
push 0xa
push 0x92b2d8
push 0x29a1a909
call fcn.00402179
add esp, 0xc
push eax
push esi
mov ecx, esi
call fcn.00401936
push 0xc
push 0x92b2c8
push 0x13cbcee9
call fcn.00402179
add esp, 0xc
push eax
lea eax, [esi + 8]
push eax
mov ecx, esi
call fcn.00401936
push 0x18
push 0x92b2ac
push 0x17ce53be
call fcn.00402179
add esp, 0xc
push eax
lea eax, [esi + 0xc]
push eax
mov ecx, esi
call fcn.00401936
push 0xf
push 0x92b29c
push 0x26b30b69
call fcn.00402179
add esp, 0xc
push eax
lea eax, [esi + 0x10]
push eax
mov ecx, esi
call fcn.00401936
push 0x12
push 0x92b288
push 0x3d924530
call fcn.00402179
add esp, 0xc
push eax
lea eax, [esi + 0x14]
push eax
mov ecx, esi
call fcn.00401936
push 7
push 0x92b280
push 0x2236409a
call fcn.00402179
add esp, 0xc
push eax
lea eax, [esi + 0x18]
push eax
mov ecx, esi
call fcn.00401936
push 0x14
push 0x92b268
push 0x149ccd04
call fcn.00402179
add esp, 0xc
push eax
lea eax, [esi + 0x1c]
push eax
mov ecx, esi
call fcn.00401936
push 0x11
push 0x92b254
push 0x673ebfe9
call fcn.00402179
add esp, 0xc
push eax
lea eax, [esi + 0x20]
push eax
mov ecx, esi
call fcn.00401936
push 0x11
push 0x92b240
push 0x68d29b96
call fcn.00402179
add esp, 0xc
push eax
lea eax, [esi + 0x24]
push eax
mov ecx, esi
call fcn.00401936
push 0x16
push 0x92b228
push 0x7db65c79
call fcn.00402179
add esp, 0xc
push eax
lea eax, [esi + 0x28]
push eax
mov ecx, esi
call fcn.00401936
push 0x13
push 0x92b214
push 0x65fa79df
call fcn.00402179
add esp, 0xc
push eax
lea eax, [esi + 0x2c]
push eax
mov ecx, esi
call fcn.00401936
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret