joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ab170
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ab31b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4ab2fc
mov dl, 1
mov eax, dword [0x469edc]
call fcn.0048bddc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0048cc1c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4ab2eb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004bf298
test al, al
je 0x4ab2de
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4ab32c
lea eax, [ebp - 0x254]
call fcn.0047bc20
push eax
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4ab2de
xor eax, eax
push ebp
push 0x4ab2d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4ab364
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x4ab2c0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.0048ce84
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4ab2c0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.0048ce84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab2de
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4ab1e1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0046ec84
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab322
lea eax, [ebp - 0x260]
call fcn.0048cc1c
ret

Function at 0x4abc50
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x6ad460]
cmp byte [eax + 0xa5], 0
jne 0x4abcc1
cmp dword [0x6ad478], 0
jne 0x4abc82
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4abc0c
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x6ad478], eax
cmp dword [0x6ad474], 0
jne 0x4abc9d
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x6ad474], eax
cmp dword [0x6ad47c], 0
jne 0x4abcc1
push esp
push 0
push 0
push 0x4abbb0
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x6ad47c], eax
pop edx
ret
Function at 0x4abdb8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4abdcf
add esp, 0xfffffff0
call fcn.0048c170
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00474df8
mov eax, dword [0x6a2504]
cmp word [eax + 2], 0
jne 0x4abdf7
mov eax, dword [0x6a2504]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004ad404
mov eax, dword [0x6a2790]
cmp word [eax + 2], 0
jne 0x4abe11
mov eax, dword [0x6a2790]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004ad5fc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4697fc]
call fcn.0048bddc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4697fc]
call fcn.0048bddc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], SafeArrayCopy
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x49a93c]
call fcn.004a0588
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4abf98
mov eax, dword [0x6a2758]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004a0958
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4adb6c
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x6a2758]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.USER32.DLL_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0047f49c
test eax, eax
je 0x4abf06
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0047b57c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0047f4c4
test eax, eax
je 0x4abf1a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.USER32.DLL_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.0048ce84
mov eax, dword [0x6a2760]
cmp byte [eax], 0
jne 0x4abf4e
mov eax, ebx
call fcn.004ac0c0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004add48
mov eax, ebx
call fcn.004ae6f8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4abf8e
call fcn.0048c1c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ac334
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x6ad460]
cmp dword [eax + 0x30], 0
je 0x4ac3de
cmp dword [ebx + 0x94], 0
jne 0x4ac3d8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4ac2c4
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4ac3d8
push 3
mov eax, dword [esp + 4]
push eax
call sub.USER32.DLL_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_GetWindowLongA
test al, 8
je 0x4ac39e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4ac3d8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0046c198
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4ac3ad
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4acebc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4acef1
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.USER32.DLL_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0048cd0c
jmp 0x4acefe
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0048cc70
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4adf24
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4adf65
mov eax, esi
call fcn.004bab60
test al, al
je 0x4adf65
mov eax, dword [ebx + 0x84]
call fcn.004ba85c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4adf65
push 0
mov eax, dword [ebx + 0x84]
call fcn.004ba85c
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret
Function at 0x4b1d90
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 [0x6ad504], 0
je 0x4b1edf
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x6a277c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4b1edf
mov eax, dword [0x6ad508]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x6ad504]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4b1eae
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x6ad504]
call fcn.0046c198
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4b1ea6
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x4b1ea6
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4b1ea6
mov eax, dword [ebp - 0x14]
call fcn.004ba85c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4b1ea6
push ebp
call fcn.004b1d4c
pop ecx
test al, al
jne 0x4b1ea6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x4b1e62
mov eax, dword [ebp - 0x14]
call fcn.004b93f0
dec eax
jle 0x4b1ea6
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.0048c008
cmp byte [ebp - 1], 0
je 0x4b1ea6
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x4b1ea6
mov edx, dword [ebp - 0x14]
mov eax, dword [0x6ad508]
call fcn.004b1514
inc edi
dec ebx
jne 0x4b1df5
mov eax, dword [0x6ad508]
cmp dword [eax + 8], 0
jle 0x4b1ec6
mov eax, dword [0x6ad508]
call fcn.004b15a4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4b1edf
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004b1bb4
pop ecx
test al, al
jne 0x4b1edf
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 0x4b548c
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 0x4b54d8
mov eax, esi
call fcn.004a4458
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4b54d8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4b54d8
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 0x4b5617
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4b5518
cmp eax, 0x108
ja 0x4b5518
mov eax, esi
call fcn.004a4458
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4b560e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x4b5617
jmp 0x4b560e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4b55f7
cmp eax, 0x20a
ja 0x4b55f7
test byte [esi + 0x50], 0x80
jne 0x4b554a
sub eax, 0x203
je 0x4b5547
sub eax, 3
je 0x4b5547
sub eax, 3
jne 0x4b554a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4b555e
dec eax
je 0x4b5573
dec eax
je 0x4b5590
dec eax
je 0x4b5573
jmp 0x4b5597
mov ecx, ebx
mov eax, dword [0x6a277c]
mov eax, dword [eax]
mov edx, esi
call fcn.004adddc
jmp 0x4b560e
cmp byte [esi + 0x5d], 1
jne 0x4b5589
mov eax, esi
mov si, 0xffed
call fcn.0048c008
jmp 0x4b5617
or word [esi + 0x54], 1
jmp 0x4b560e
and word [esi + 0x54], 0xfffe
jmp 0x4b560e
mov eax, dword [0x6ad4c0]
cmp byte [eax + 0x20], 0
je 0x4b560e
mov eax, dword [0x6ad4c0]
cmp dword [eax + 0x1c], 0
je 0x4b560e
mov eax, dword [ebx]
mov edx, dword [0x6ad4c0]
cmp eax, dword [edx + 0x1c]
jne 0x4b560e
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.004a439c
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.0048c008
jmp 0x4b5617
cmp eax, 0xb00b
jne 0x4b560e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004b3dc8
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 0x4b8a8c
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 0x4b8aa8
cmp dword [esi + 4], 0
je 0x4b8ad5
test byte [ebx + 0x55], 1
jne 0x4b8ac7
mov eax, ebx
call fcn.004b76e4
test eax, eax
jne 0x4b8ac7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4b8be5
mov edx, esi
mov eax, ebx
call fcn.004b85ac
jmp 0x4b8be5
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 0x4b8bde
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004ba85c
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.004b53c0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004b8a8c
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.004ba85c
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8be5
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 0x4bef38
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x6a25a8]
cmp byte [eax + 0xc], 0
je 0x4bf0a5
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bf09e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x6ad514], 0
jne 0x4bef8c
push 0x4bf0ac
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x4bf0b4
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6ad514], eax
cmp dword [0x69e454], 0
jne 0x4bf087
push 0x4bf0c4
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x69e454], eax
cmp dword [0x69e454], 0
je 0x4bf087
push 0x4bf0d0
mov eax, dword [0x69e454]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6ad518], eax
push 0x4bf0e0
mov eax, dword [0x69e454]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6ad51c], eax
push 0x4bf0f4
mov eax, dword [0x69e454]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6ad520], eax
push 0x4bf10c
mov eax, dword [0x69e454]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6ad524], eax
push 0x4bf124
mov eax, dword [0x69e454]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6ad528], eax
push 0x4bf138
mov eax, dword [0x69e454]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6ad52c], eax
push 0x4bf150
mov eax, dword [0x69e454]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6ad530], eax
push 0x4bf168
mov eax, dword [0x69e454]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6ad534], eax
push 0x4bf184
mov eax, dword [0x69e454]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6ad538], eax
push 0x4bf190
mov eax, dword [0x69e454]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6ad53c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf0a5
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4c1be4
call fcn.004c2c84
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4c1c00
test bl, 1
je 0x4c1c00
call fcn.004c73b0
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4c1d4c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004c2820
test byte [ebp + 0xd], 0xc0
jne 0x4c1d70
mov eax, dword [0x69f2ec]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4c1d7d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4c1daa
je 0x4c1dbc
sub ecx, 0x100
je 0x4c1dca
sub ecx, 0x100
je 0x4c1dd1
sub ecx, 0x100
je 0x4c1dc3
jmp 0x4c1dd8
sub ecx, 0x600
je 0x4c1dd1
sub ecx, 0x100
je 0x4c1dbc
jmp 0x4c1dd8
mov edi, 1
jmp 0x4c1ddd
mov edi, 2
jmp 0x4c1ddd
mov edi, 4
jmp 0x4c1ddd
mov edi, 5
jmp 0x4c1ddd
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4c1e04
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x69ed64]
test al, 0x80
je 0x4c1dfd
mov ebx, 0x80
jmp 0x4c1e16
mov ebx, 1
jmp 0x4c1e16
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4c1e16
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4c1e28
je 0x4c1e31
dec eax
je 0x4c1e3a
jmp 0x4c1e43
mov dword [ebp - 4], Ordinal_5
jmp 0x4c1e52
mov dword [ebp - 4], 0x40000000
jmp 0x4c1e52
mov dword [ebp - 4], 0xc0000000
jmp 0x4c1e52
push 1
call fcn.004c2c18
pop ecx
mov ebx, eax
jmp 0x4c1f42
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4c1e6e
sub eax, 0x10
je 0x4c1e75
sub eax, 0x10
je 0x4c1e7e
sub eax, 0x10
je 0x4c1e87
jmp 0x4c1e87
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4c1e8e
mov dword [ebp - 8], 1
jmp 0x4c1e8e
mov dword [ebp - 8], 2
jmp 0x4c1e8e
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4c1efb
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4c1ef0
test byte [ebp + 0xd], 1
je 0x4c1eeb
mov ebx, 0x50
jmp 0x4c1ef0
mov ebx, 2
push ebx
call fcn.004c2c18
pop ecx
mov ebx, eax
jmp 0x4c1f42
mov edi, esi
push edi
call fcn.004c1cb0
pop ecx
test eax, eax
je 0x4c1f0f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4c1f1b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004c2940
add esp, 8
mov ebx, eax
inc eax
jne 0x4c1f42
push 4
call fcn.004c2c18
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004c2854
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c7348
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 0x4c73aa
call fcn.004c72f8
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004c08dc
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.004c08dc
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 0x4c7428
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x6a0404], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4c7502
cmp dword [0x6a0400], 0
jne 0x4c7502
cmp dword [0x6a0604], 0
je 0x4c74bc
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.004c71a4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4c74a2
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004c71a4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4c74a2
lea ebx, [ebp - 0x84]
jmp 0x4c74a3
inc ebx
call fcn.004c73e4
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4c753d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x6a0408
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004c08dc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x6a040b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4c753d
cmp dword [0x6a0400], 0
je 0x4c751c
cmp dword [0x6a0400], 0xffffffff
je 0x4c753d
push esi
call dword [0x6a0400]
pop ecx
mov eax, dword [0x6a0404]
test eax, eax
je 0x4c753d
cmp dword [0x6a0404], 0xffffffff
je 0x4c753d
cmp byte [eax], 0
je 0x4c753d
push esi
push eax
call fcn.004c7348
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c7ce4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x6adda0], 0
jne 0x4c7d65
cmp dword [0x6addc0], 0
jne 0x4c7d14
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x6addc0], eax
test eax, eax
jne 0x4c7d14
push str.GetEnvironmentStrings_failed
call fcn.004c7554
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x6addc0]
jmp 0x4c7d28
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004c08dc
pop ecx
mov edi, eax
test eax, eax
jne 0x4c7d20
lea edi, [ebp + 1]
push edi
call fcn.004c0110
pop ecx
mov ebx, eax
mov dword [0x6adda4], ebx
test ebx, ebx
jne 0x4c7d52
xor eax, eax
jmp 0x4c7e28
push edi
mov edx, dword [0x6addc0]
push edx
push ebx
call fcn.004c06bc
add esp, 0xc
jmp 0x4c7d85
xor esi, esi
mov ebx, dword [0x6adda0]
jmp 0x4c7d7f
push eax
call fcn.004c08dc
pop ecx
test eax, eax
jne 0x4c7d7b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4c7d6f
lea ebx, [esi + 4]
push 4
mov dword [0x6adda8], ebx
inc ebx
push ebx
call fcn.004bf8cc
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4c7da8
xor eax, eax
jmp 0x4c7e28
cmp dword [0x6adda0], 0
jne 0x4c7dd9
xor esi, esi
mov ebx, dword [0x6adda4]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4c7dca
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004c08dc
pop ecx
mov edi, eax
test eax, eax
jne 0x4c7dc0
jmp 0x4c7e0a
xor esi, esi
mov ebx, dword [0x6adda0]
mov eax, dword [esp]
mov edi, eax
jmp 0x4c7e04
push eax
call fcn.004c08dc
pop ecx
test eax, eax
je 0x4c7df9
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4c7dfd
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4c7de8
mov eax, dword [0x6adda0]
test eax, eax
je 0x4c7e1a
push eax
call fcn.004c0120
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x6adda0], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x403f93
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403fd2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403fd2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403fd2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403fd2
cmp dword [ecx + 0x74], 0xe
jbe 0x403fd2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret