joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a258c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4e676c], 0
je 0x4a26db
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4e5770]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4a26db
mov eax, dword [0x4e6770]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4e676c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4a26aa
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4e676c]
call fcn.00442c18
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4a26a2
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x4a26a2
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4a26a2
mov eax, dword [ebp - 0x14]
call fcn.004ab290
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4a26a2
push ebp
call fcn.004a2548
pop ecx
test al, al
jne 0x4a26a2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x4a265e
mov eax, dword [ebp - 0x14]
call fcn.004a9e24
dec eax
jle 0x4a26a2
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00460cf0
cmp byte [ebp - 1], 0
je 0x4a26a2
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x4a26a2
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4e6770]
call fcn.004a1d10
inc edi
dec ebx
jne 0x4a25f1
mov eax, dword [0x4e6770]
cmp dword [eax + 8], 0
jle 0x4a26c2
mov eax, dword [0x4e6770]
call fcn.004a1da0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4a26db
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004a23b0
pop ecx
test al, al
jne 0x4a26db
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a5ce4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x4a5d30
mov eax, esi
call fcn.0049052c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4a5d30
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4a5d30
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4a5e6f
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4a5d70
cmp eax, 0x108
ja 0x4a5d70
mov eax, esi
call fcn.0049052c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4a5e66
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x4a5e6f
jmp 0x4a5e66
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4a5e4f
cmp eax, 0x20a
ja 0x4a5e4f
test byte [esi + 0x50], 0x80
jne 0x4a5da2
sub eax, 0x203
je 0x4a5d9f
sub eax, 3
je 0x4a5d9f
sub eax, 3
jne 0x4a5da2
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4a5db6
dec eax
je 0x4a5dcb
dec eax
je 0x4a5de8
dec eax
je 0x4a5dcb
jmp 0x4a5def
mov ecx, ebx
mov eax, dword [0x4e5770]
mov eax, dword [eax]
mov edx, esi
call fcn.00499f28
jmp 0x4a5e66
cmp byte [esi + 0x5d], 1
jne 0x4a5de1
mov eax, esi
mov si, 0xffed
call fcn.00460cf0
jmp 0x4a5e6f
or word [esi + 0x54], 1
jmp 0x4a5e66
and word [esi + 0x54], 0xfffe
jmp 0x4a5e66
mov eax, dword [0x4e6728]
cmp byte [eax + 0x20], 0
je 0x4a5e66
mov eax, dword [0x4e6728]
cmp dword [eax + 0x1c], 0
je 0x4a5e66
mov eax, dword [ebx]
mov edx, dword [0x4e6728]
cmp eax, dword [edx + 0x1c]
jne 0x4a5e66
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00490450
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00460cf0
jmp 0x4a5e6f
cmp eax, 0xb00b
jne 0x4a5e66
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004a45ec
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a94c0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4a94dc
cmp dword [esi + 4], 0
je 0x4a9509
test byte [ebx + 0x55], 1
jne 0x4a94fb
mov eax, ebx
call fcn.004a8090
test eax, eax
jne 0x4a94fb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4a9619
mov edx, esi
mov eax, ebx
call fcn.004a8fe0
jmp 0x4a9619
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4a9612
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004ab290
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004a5c18
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004a94c0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004ab290
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9619
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4afb3c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4e575c]
cmp byte [eax + 0xc], 0
je 0x4afca9
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4afca2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e677c], 0
jne 0x4afb90
push 0x4afcb0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x4afcb8
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e677c], eax
cmp dword [0x4e1e10], 0
jne 0x4afc8b
push 0x4afcc8
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4e1e10], eax
cmp dword [0x4e1e10], 0
je 0x4afc8b
push 0x4afcd4
mov eax, dword [0x4e1e10]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e6780], eax
push 0x4afce4
mov eax, dword [0x4e1e10]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e6784], eax
push 0x4afcf8
mov eax, dword [0x4e1e10]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e6788], eax
push 0x4afd10
mov eax, dword [0x4e1e10]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e678c], eax
push 0x4afd28
mov eax, dword [0x4e1e10]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e6790], eax
push 0x4afd3c
mov eax, dword [0x4e1e10]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e6794], eax
push 0x4afd54
mov eax, dword [0x4e1e10]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e6798], eax
push 0x4afd6c
mov eax, dword [0x4e1e10]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e679c], eax
push 0x4afd88
mov eax, dword [0x4e1e10]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e67a0], eax
push 0x4afd94
mov eax, dword [0x4e1e10]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e67a4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4afca9
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x4b8100
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b81d8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e67b8], 0
jne 0x4b81bc
lea eax, [ebp - 4]
mov edx, 0x4b81f0
call fcn.004616d8
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00461af0
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4b81bc
mov eax, ebx
call fcn.0045fbd0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b81b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x4b819f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4b8200
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x4b819f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4e67b8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b81bc
mov eax, dword [ebp - 0xc]
call fcn.0045fbf0
ret
mov ebx, dword [0x4e67b8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b81df
lea eax, [ebp - 4]
call fcn.00461640
ret

Function at 0x4d1994
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4d1a06
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4d19da
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00461830
jmp 0x4d19e1
mov eax, ebx
call fcn.00461640
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1a0d
cmp dword [ebp - 8], 0
je 0x4d19fd
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4d1a14
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4d1ab6
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x4d1a89
mov edx, ebx
mov eax, dword [0x484450]
call fcn.00488ae0
test al, al
je 0x4d1a79
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.004889f0
call fcn.0046134c
jmp 0x4d1abd
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x4d1a44
mov ecx, dword [0x4e5970]
mov dl, 1
mov eax, dword [0x44da74]
call fcn.00452544
call fcn.004612a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1abd
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4d1ac4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4d1b1c
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1b23
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4d1b2c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4d1b81
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1b88
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4d1bf8
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4d1c6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004d18d0
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.00488ab4
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4d1c57
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1c74
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4d1c7c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4d1cf1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004d18d0
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4d1cdb
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1cf8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4d9db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4d9e12
call fcn.004d9d60
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004d60c4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004d60c4
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4d9e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4e3d48], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4d9f6a
cmp dword [0x4e3d44], 0
jne 0x4d9f6a
cmp dword [0x4e3f28], 0
je 0x4d9f24
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004d9c60
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4d9f0a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004d9c60
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4d9f0a
lea ebx, [ebp - 0x84]
jmp 0x4d9f0b
inc ebx
call fcn.004d9e4c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4d9fa5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4e3d4c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004d60c4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4e3d4f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4d9fa5
cmp dword [0x4e3d44], 0
je 0x4d9f84
cmp dword [0x4e3d44], 0xffffffff
je 0x4d9fa5
push esi
call dword [0x4e3d44]
pop ecx
mov eax, dword [0x4e3d48]
test eax, eax
je 0x4d9fa5
cmp dword [0x4e3d48], 0xffffffff
je 0x4d9fa5
cmp byte [eax], 0
je 0x4d9fa5
push esi
push eax
call fcn.004d9db0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4da73c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4e7070], 0
jne 0x4da7bd
cmp dword [0x4e7090], 0
jne 0x4da76c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4e7090], eax
test eax, eax
jne 0x4da76c
push str.GetEnvironmentStrings_failed
call fcn.004d9fbc
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4e7090]
jmp 0x4da780
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004d60c4
pop ecx
mov edi, eax
test eax, eax
jne 0x4da778
lea edi, [ebp + 1]
push edi
call fcn.004d59c8
pop ecx
mov ebx, eax
mov dword [0x4e7074], ebx
test ebx, ebx
jne 0x4da7aa
xor eax, eax
jmp 0x4da880
push edi
mov edx, dword [0x4e7090]
push edx
push ebx
call fcn.004d5f74
add esp, 0xc
jmp 0x4da7dd
xor esi, esi
mov ebx, dword [0x4e7070]
jmp 0x4da7d7
push eax
call fcn.004d60c4
pop ecx
test eax, eax
jne 0x4da7d3
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4da7c7
lea ebx, [esi + 4]
push 4
mov dword [0x4e7078], ebx
inc ebx
push ebx
call fcn.004d54a0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4da800
xor eax, eax
jmp 0x4da880
cmp dword [0x4e7070], 0
jne 0x4da831
xor esi, esi
mov ebx, dword [0x4e7074]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4da822
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004d60c4
pop ecx
mov edi, eax
test eax, eax
jne 0x4da818
jmp 0x4da862
xor esi, esi
mov ebx, dword [0x4e7070]
mov eax, dword [esp]
mov edi, eax
jmp 0x4da85c
push eax
call fcn.004d60c4
pop ecx
test eax, eax
je 0x4da851
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4da855
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4da840
mov eax, dword [0x4e7070]
test eax, eax
je 0x4da872
push eax
call fcn.004d59d8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4e7070], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406680
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf0
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x34]
mov dword [esp + 0xe8], 0x172c388b
mov edx, eax
mov dword [esp], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
call fcn.00404dc0
lea ecx, [0x406f90]
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x58], edx
mov dword [esp + 0x9c], 0x1b000
mov edx, dword [esp + 0xac]
mov dword [esp + 0xd4], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
jmp 0x40671a
cmp dword [esp + 0x28], 0x4550
je 0x406789
mov eax, dword [esp + 0xd0]
add eax, 0xfffff000
mov ecx, dword [esp + 0xe8]
add ecx, 0xe8d3b775
and eax, ecx
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xd0]
cmp word [eax], 0x5a4d
jne 0x4066f8
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x1c], 0xe7999d
mov eax, dword [eax + 0x3c]
add eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xa4]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
mov word [esp + 0xee], 0xa1e0
cmp ecx, 0x490e9c70
jae 0x406789
jmp 0x4066ea
mov eax, dword [esp + 0x30]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x34]
mov ecx, eax
add ecx, 0x28
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0x20]
mov dword [edx], ecx
mov ecx, dword [esp + 0xa4]
mov ecx, dword [ecx + 0x50]
mov edx, eax
add edx, 0x50
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
mov ecx, dword [0x427ab0]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x427ab4]
mov dword [esp + 0x6c], ecx
mov ecx, eax
add ecx, 0x64
mov edx, dword [0x427ab8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [ecx], edx
mov ecx, dword [0x427abc]
mov dword [esp + 0x74], ecx
mov ecx, dword [0x427ac0]
mov dword [esp + 0x68], ecx
mov dword [esp], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 4], eax
call fcn.00406890
mov si, 0x821c
sub si, word [esp + 0xee]
mov eax, dword [0x427aec]
mov word [esp + 0xee], si
mov dword [esp + 0x30], 0xfffffffe
cmp eax, 0
je 0x40677e
lea eax, [esp + 0x34]
xor ecx, ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0xe4], 0x3033b276
mov edx, dword [edx]
mov esi, dword [edx + 0x3c]
mov edi, edx
add edi, esi
cmp dword [edx + esi], 0x4550
cmove ecx, edi
mov edx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x50]
mov dword [edx], ecx
mov ecx, dword [0x427ab8]
mov edx, dword [esp + 0x2c]
mov dword [edx], ecx
mov dword [esp], eax
call fcn.00401110
mov dword [esp + 0x30], 1
jmp 0x40677e
Function at 0x401240
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46abea
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x487070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.00418107
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x401300
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0x46d3ec
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00445388
add esp, 8
mov dword [ebp - 0x24], 0x46d438
lea eax, [ebp - 0x24]
push 0x485e54
push eax
call fcn.00447394
push edi
push esi
call fcn.0041844f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419644
mov esp, ebp
pop ebp
ret 4

Function at 0x40c0e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b516
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x487070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], 0x47fb68
call fcn.00419a78
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0041834c
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret