joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439d50
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 + 0x240], 0
je 0x439d6c
cmp dword [esi + 4], 0
je 0x439d99
test byte [ebx + 0x55], 1
jne 0x439d8b
mov eax, ebx
call fcn.004381a4
test eax, eax
jne 0x439d8b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x439ea9
mov edx, esi
mov eax, ebx
call fcn.00439758
jmp 0x439ea9
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 0x439ea2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043bda8
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.0043564c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00439d50
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.0043bda8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439ea9
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 0x440e8c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x551ee8]
cmp byte [eax + 0xc], 0
je 0x440ff9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x440ff2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x555544], 0
jne 0x440ee0
push 0x441000
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x441008
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x555544], eax
cmp dword [0x45a574], 0
jne 0x440fdb
push 0x441018
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45a574], eax
cmp dword [0x45a574], 0
je 0x440fdb
push 0x441024
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x555548], eax
push 0x441034
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x55554c], eax
push 0x441048
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x555550], eax
push 0x441060
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x555554], eax
push 0x441078
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x555558], eax
push 0x44108c
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x55555c], eax
push 0x4410a4
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x555560], eax
push 0x4410bc
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x555564], eax
push 0x4410d8
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x555568], eax
push 0x4410e4
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x55556c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440ff9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x446640
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x446694]
test si, 4
je 0x446655
or bl, 1
test si, 8
je 0x44665f
or bl, 4
test si, 1
je 0x446669
or bl, 8
test si, 2
je 0x446673
or bl, 0x10
test si, 0x10
je 0x44667d
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44668c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x446698
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4466d4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4466b2
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4466c1
or bl, 4
test esi, 0x20000000
je 0x4466cc
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44dd88
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44dd9a
add esp, 0xfffffff0
call fcn.00403cb8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a014
mov eax, dword [0x551b98]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e12c
mov eax, dword [0x551ba4]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e138
mov eax, ebx
call fcn.0044e144
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411e10]
call fcn.0040397c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411e10]
call fcn.0040397c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411e10]
call fcn.0040397c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411e10]
call fcn.0040397c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411e10]
call fcn.0040397c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x449bdc
push eax
push 0
push 0
mov eax, dword [0x551d00]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41db88]
call fcn.0041f0a8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41db88]
call fcn.0041f0a8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41db88]
call fcn.0041f0a8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044e574
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e444
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e444
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e444
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ded7
call fcn.00403d10
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44e228
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 0x44e3d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e3b4
mov dl, 1
mov eax, dword [0x412234]
call fcn.0040397c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047dc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44e3a3
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.004411e8
test al, al
je 0x44e396
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, 0x44e3e4
lea eax, [ebp - 0x254]
call fcn.004092bc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e396
xor eax, eax
push ebp
push 0x44e38f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44e41c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e378
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a4c
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 0x44e378
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e396
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e299
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415f14
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 0x44e3da
lea eax, [ebp - 0x260]
call fcn.004047dc
ret

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

Disassembly:
push ecx
mov eax, dword [0x55557c]
cmp byte [eax + 0xad], 0
jne 0x44edbd
cmp dword [0x555594], 0
jne 0x44ed7e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44ed08
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x555594], eax
cmp dword [0x555590], 0
jne 0x44ed99
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x555590], eax
cmp dword [0x555598], 0
jne 0x44edbd
push esp
push 0
push 0
push 0x44ecac
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x555598], eax
pop edx
ret
Function at 0x44ef90
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44efa7
add esp, 0xfffffff0
call fcn.00403cb8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a014
mov eax, dword [0x551ce4]
cmp word [eax + 2], 0
jne 0x44efcf
mov eax, dword [0x551ce4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450ad0
mov eax, dword [0x551d98]
cmp word [eax + 2], 0
jne 0x44efe9
mov eax, dword [0x551d98]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450cdc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411e10]
call fcn.0040397c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411e10]
call fcn.0040397c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411e10]
call fcn.0040397c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e364]
call fcn.004241ac
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x44f1a0
mov eax, dword [0x551c00]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424580
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45139c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x551c00]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
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.0040c9cc
test eax, eax
je 0x44f0f0
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c74
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ca00
test eax, eax
je 0x44f104
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a4c
mov byte [ebx + 0xd4], 0
push ebx
push 0x450630
call fcn.0041b190
mov dword [ebx + 0xc8], eax
mov eax, dword [0x551af8]
cmp byte [eax], 0
jne 0x44f155
mov eax, ebx
call fcn.0044f2e4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00451578
mov eax, ebx
call fcn.004520d8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f195
call fcn.00403d10
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f564
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x55557c]
cmp dword [eax + 0x30], 0
je 0x44f60e
cmp dword [ebx + 0x94], 0
jne 0x44f608
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f4f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f608
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 0x44f5ce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f608
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.004141bc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f5dd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x450328
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45035d
push pe_nt_image_headers32
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.004048cc
jmp 0x45036a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404830
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45175c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4517ca
mov eax, esi
call fcn.0043c0a4
test al, al
je 0x4517ca
mov eax, dword [ebx + 0x84]
call fcn.0043bda8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4517ca
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4517be
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043bda8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004342ec
jmp 0x4517ca
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00451598
pop esi
pop ebx
ret

Function at 0x452590
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
push esp
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0x1c]
add esp, 0x20
ret
Function at 0x452630
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c90
mov eax, dword [ebp - 8]
call fcn.00404c90
xor eax, eax
push ebp
push 0x4526fb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404ca0
push eax
call sub.kernel32.dll_LoadLibraryExA_1
test eax, eax
mov eax, dword [ebp - 4]
call fcn.00404ca0
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [0x55561c], eax
cmp dword [0x55561c], 0
je 0x4526d5
mov eax, dword [ebp - 8]
call fcn.00404ca0
push eax
mov eax, dword [0x55561c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x555620], eax
mov eax, dword [0x555630]
push eax
push 0x40
push 0x1556093c
push 0x555620
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.nTDLL_ZwProtectVirtualMemory
mov edx, 0x555620
mov eax, sub.kernel32.dll_GetCPInfo
mov ecx, 4
call fcn.00452620
mov eax, dword [0x55561c]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452702
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404800
ret
Function at 0x4faf40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0xf77000
lea edi, [esi - 0xa6000]
push edi
jmp 0x4faf5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4faf61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4faf50
mov eax, 1
add ebx, ebx
jne 0x4faf73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4faf84
jne 0x4fafa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fafa3
dec eax
add ebx, ebx
jne 0x4faf90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4faf68
add ebx, ebx
jne 0x4faf9f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4faff5
xor ecx, ecx
sub eax, 3
jb 0x4fafbb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fb02a
sar eax, 1
mov ebp, eax
jmp 0x4fafc6
add ebx, ebx
jne 0x4fafc6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4faf94
inc ecx
add ebx, ebx
jne 0x4fafd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4faf94
add ebx, ebx
jne 0x4fafe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4fafd6
jne 0x4faff2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fafd6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fb014
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fb006
jmp 0x4faf56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fb014
add edi, ecx
jmp 0x4faf56
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fb032
cmp byte [edi], 0x11
jne 0x4fb032
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4fb037
lea edi, [esi + 0xf3000]
mov eax, dword [edi]
or eax, eax
je 0x4fb0af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11ce3c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11cfb8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fb064
mov ecx, edi
jns 0x4fb093
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11cfbc]
or eax, eax
je 0x4fb0a9
mov dword [ebx], eax
add ebx, 4
jmp 0x4fb081
call dword [esi + 0x11cfcc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4fb0e0
cmp al, 0xef
ja 0x4fb0d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4fb0b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4fb0c2
mov ebp, dword [esi + 0x11cfc0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4fb114
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x40cbc7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
lea ebx, [ebp - 4]
push ebx
push edi
push 0x40e47c
mov dword [esi], edi
push dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
push dword [eax + 4]
mov dword [ebp - 4], edi
mov edx, dword [ecx]
push edi
push ecx
call dword [edx + 0x28]
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x40cc0f
mov ecx, dword [eax]
push esi
push 0x40e44c
push eax
call dword [ecx]
test eax, eax
jne 0x40cbd4
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x40cbef
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push 0x40e45c
push eax
call dword [ecx]
test eax, eax
jne 0x40cbef
mov eax, dword [ebp + 8]
mov dword [eax], 2
xor ebx, ebx
inc ebx
cmp dword [esi], edi
je 0x40cc01
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40cc0b
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, ebx
jmp 0x40cc11
xor eax, eax
pop edi
pop ebx
leave
ret 4

Function at 0x40d7f0
Capabilities:
Parse pe header

Disassembly:
push 0x30000
push 0x10000
call fcn.0040d84a
pop ecx
pop ecx
ret
Function at 0x4012f0
Capabilities:
Copy file

Disassembly:
mov ecx, dword [0x41db64]
sub esp, 0x208
cmp ecx, eax
jae 0x40138c
movzx eax, byte [0x41db67]
movzx edx, byte [0x41db66]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [eax + eax*4]
lea eax, [edx + eax*2]
movzx ecx, ch
push esi
lea eax, [eax + eax*4]
push edi
lea ebx, [ecx + eax*2]
xor edi, edi
lea ecx, [ecx]
test edi, edi
mov esi, dword [esp + 0x21c]
je 0x401342
mov esi, dword [esp + 0x220]
push esi
lea edx, [esp + 0x14]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
push ebx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x11c]
push str._s_d.ini
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
inc edi
cmp edi, 2
jl 0x401330
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret

Function at 0x402380
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x16c
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
xor eax, eax
mov dword [esp + 0x10], 0x5b0a0d
mov ecx, 0x18
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
push 0x4162d4
lea eax, [esp + 0x14]
push eax
call esi
push 0x4173ec
lea ecx, [esp + 0x14]
push ecx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x10]
push edx
call esi
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, eax
mov eax, dword [0x41a468]
push eax
push str.Count
lea ecx, [esp + 0x18]
push str._s_d_r_n
push ecx
and edi, 1
call ebp
add esp, 0x10
lea edx, [esp + 0x10]
push edx
call esi
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and edi, eax
mov eax, dword [0x41a468]
xor esi, esi
test eax, eax
jle 0x402488
mov eax, dword [esi*4 + 0x41a2d8]
test eax, eax
je 0x40247e
push esi
lea eax, [esp + 0x78]
push str.Plugin_03u
push eax
call ebp
lea ecx, [esp + 0x80]
push ecx
mov ecx, dword [esi*4 + 0x41a2d8]
push ebx
or eax, 0xffffffff
call fcn.0040bda0
mov edx, dword [esi*4 + 0x41a2d8]
add esp, 0x14
push edx
push 0
and edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [0x41a468]
inc esi
cmp esi, eax
jl 0x402432
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x16c
ret