joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444870
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47f0d8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0043f170
test eax, eax
je 0x444978
lea ecx, [esp + 0xc]
call fcn.004191b0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0043f170
mov ecx, eax
call fcn.0043c840
test eax, eax
je 0x44495f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x44495f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x44495f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.004193b0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x444941
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x44495f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x4af1a8]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x484e58
call fcn.004193b0
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x4449c0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0043f170
test eax, eax
je 0x444aaf
mov ecx, edi
call fcn.0043f170
mov ecx, eax
call fcn.0043c6f0
test eax, eax
jne 0x444aaf
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x444aaf
mov eax, dword [0x4af1a8]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x444a22
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0043f170
mov ecx, eax
call fcn.0043c920
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x444aaf
cmp ebx, eax
jne 0x444aaf
cmp dword [esp + 0x10], eax
jne 0x444a95
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4476e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47f368
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x447719
inc eax
mov dword [esi + 0x10], eax
jmp 0x44782c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x44772d
mov eax, 0xffffffc7
jmp 0x44782e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x44773e
cmp dword [esi + 8], eax
jne 0x44772d
cmp dword [esi + 8], eax
jne 0x447757
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x447757
mov eax, 0xffffffc7
jmp 0x44782e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x44776b
push eax
mov ecx, ebx
call fcn.00446f10
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004191b0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x44779c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004191d0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00446680
test eax, eax
mov dword [esp + 0x38], eax
je 0x4477cf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x484e58
call fcn.004193b0
mov eax, dword [esp + 0x38]
jmp 0x44782e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00447540
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x447813
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00447560
mov esi, eax
test esi, esi
jne 0x447843
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00447540
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4477e5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x484e58
call fcn.004193b0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x484e58
call fcn.004193b0
mov eax, esi
jmp 0x44782e

Function at 0x44a970
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x44a9d0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x44a9d0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x44a9d0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x44a9d0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x44aa10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x450920
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00478915
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004502c0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00478843
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00475107
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00475107
push 1
push 0
push 0
mov ecx, esi
call fcn.004750af
push 1
push 0
push 1
mov ecx, esi
call fcn.004750af
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00478987
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x450aa0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f9b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00478915
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004502c0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00478843
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x450b64
cmp dword [esp + 0x40], 1
jne 0x450b62
cmp ecx, eax
jge 0x450b64
mov eax, ecx
cmp eax, 0xc8
jge 0x450b70
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00450920
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00478987
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4512f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47fa23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00473524
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00478bbd
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047a0d9
test eax, eax
je 0x45140c
mov ecx, dword [esp + 0x3c]
call fcn.00478bea
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4513d0
push edi
mov ecx, esi
call fcn.00476252
mov ecx, esi
call fcn.00451570
cmp dword [esp + 0x38], 1
jne 0x451405
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047638d
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x453e40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x453e73
push esi
call fcn.00456f30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x453e6c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x453ef9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x453ee2
mov eax, dword [esi + 8]
test eax, eax
je 0x453e97
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x453ede
cmp eax, 2
je 0x453ee2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x453e8a
cmp eax, 3
je 0x453ebd
cmp eax, 1
jne 0x453e8a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x453e8a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x453e8a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00453f20
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x453f08
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00453f20
add esp, 4
pop esi
ret

Function at 0x47431a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x474352
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004723bf
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00472397
jmp 0x47435e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x475a0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x475a51
call fcn.0047b4bf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x475a51
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x475a48
xor eax, eax
jmp 0x475a59
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00475a5f
pop edi
pop esi
pop ebx
ret 4

Function at 0x47b9ef
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47ba1d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47ba3b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047b955
jmp 0x47ba3b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47ba3b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047b955
test edi, edi
mov eax, edi
jne 0x47ba25
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4501c0
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
sub esp, 0x234
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4501e6
sub eax, edx
je 0x4501fe
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x4501fe
mov byte [eax], cl
mov edx, dword [esp + 0x23c]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x134]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x450224
sub eax, edx
je 0x450242
cmp byte [esp + eax + 0x12f], 0x5c
lea eax, [esp + eax + 0x12f]
jne 0x450242
mov byte [eax], cl
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x450275
test al, 0x10
je 0x450275
lea ecx, [esp + 0x130]
push ecx
call esi
cmp eax, 0xffffffff
je 0x45027f
test al, 0x10
je 0x45027f
cmp byte [esp + 0x240], 0
jne 0x45029b
xor al, al
pop esi
add esp, 0x234
ret
lea edx, [esp + 0x130]
push edx
call fcn.00450bd0
add esp, 4
test al, al
jne 0x45029b
pop esi
add esp, 0x234
ret
lea eax, [esp + 0x28]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4502a0
mov ecx, dword [0x49b2a0]
mov dl, byte [0x49b2a4]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4502c0
sub eax, edx
mov byte [esp + eax + 0x29], cl
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4502d7
sub eax, edx
mov byte [esp + eax + 0x131], cl
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea eax, [esp + 0x28]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x130]
mov edx, 0x614
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 2
mov word [esp + 0x1c], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop esi
add esp, 0x234
ret
Function at 0x488634
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a2d90]
jne 0x48863e
repz ret
jmp fcn.0048cf67

Function at 0x48afb4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a2d90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00485652
and dword [ebp - 0x14], 0
cmp dword [0x4a54b4], 0
mov dword [ebp - 0x18], eax
jne 0x48b067
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48b10f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x48b10f
mov esi, dword [fcn.00481320]
push eax
call esi
push 0x495724
push ebx
mov dword [0x4a54b4], eax
call edi
push eax
call esi
push 0x495710
push ebx
mov dword [0x4a54b8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a54bc], eax
call edi
push eax
call esi
mov dword [0x4a54c4], eax
test eax, eax
je 0x48b067
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a54c0], eax
mov eax, dword [0x4a54c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00481324]
cmp eax, ecx
je 0x48b0c0
cmp dword [0x4a54c4], ecx
je 0x48b0c0
push eax
call esi
push dword [0x4a54c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x48b0c0
test ebx, ebx
je 0x48b0c0
call edi
test eax, eax
je 0x48b0b7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48b0b7
test byte [ebp - 8], 1
jne 0x48b0c0
or dword [ebp + 0x10], 0x200000
jmp 0x48b0f3
mov eax, dword [0x4a54b8]
cmp eax, dword [ebp - 0x18]
je 0x48b0f3
push eax
call esi
test eax, eax
je 0x48b0f3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48b0f3
mov eax, dword [0x4a54bc]
cmp eax, dword [ebp - 0x18]
je 0x48b0f3
push eax
call esi
test eax, eax
je 0x48b0f3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a54b4]
call esi
test eax, eax
je 0x48b10f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48b111
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00488634
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, eax
push edi
xor eax, eax
push esi
mov edi, ecx
push ebx
mov esi, edx
sub esp, 0x1c
call fcn.00404630
test eax, eax
mov ebx, eax
je 0x404743
mov eax, dword [0x4d0204]
test eax, eax
je 0x40472a
add eax, ebx
cmp eax, 0x45
jg 0x404770
cmp edi, 0x20
je 0x4047a7
mov edx, esi
mov eax, ebp
call fcn.00404630
add dword [0x4d0204], ebx
cmp edi, 0x3a
je 0x404750
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebp
mov dword [esp], 0x3a
call sub.msvcrt.dll_putc
add dword [0x4d0204], 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], str.__n
call sub.msvcrt.dll_fwrite
cmp edi, 0x20
mov eax, 0
mov dword [0x4d0204], 0
cmove edi, eax
jmp 0x40472f
mov dword [esp + 4], ebp
mov dword [esp], 0x20
call sub.msvcrt.dll_putc
mov edx, esi
mov eax, ebp
add dword [0x4d0204], 1
call fcn.00404630
add dword [0x4d0204], ebx
jmp 0x404743
Function at 0x40c900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, edx
push edi
mov edi, eax
push esi
mov esi, ecx
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x18], ecx
test ebx, ebx
je 0x40c9f1
add esi, dword [esp + 0x40]
mov edx, ecx
xor eax, eax
movsx ecx, byte [edx]
add edx, 1
mov ebx, ecx
shl ebx, 0x11
add ecx, ebx
add ecx, eax
mov eax, ecx
shr eax, 2
xor eax, ecx
cmp edx, esi
jne 0x40c925
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
shl edx, 0x11
add edx, dword [esp + 0x40]
add eax, edx
mov esi, eax
shr esi, 2
xor esi, eax
test ecx, ecx
je 0x40c961
mov eax, dword [esp + 0x48]
mov dword [eax], esi
xor edx, edx
mov eax, esi
div dword [ebp]
mov eax, dword [edi]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
test edx, edx
je 0x40c97f
mov edi, dword [esp + 0x44]
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax]
test ebx, ebx
je 0x40c9e7
xor ebp, ebp
mov eax, ebp
mov ebp, esi
mov esi, eax
jmp 0x40c99d
mov eax, dword [ebx]
test eax, eax
je 0x40c9e7
mov esi, ebx
mov ebx, eax
cmp ebp, dword [ebx + 8]
jne 0x40c993
mov eax, dword [esp + 0x40]
mov edi, dword [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40c993
mov eax, dword [esp + 0x40]
cmp byte [edi + eax], 0
jne 0x40c993
test esi, esi
je 0x40c9f8
mov eax, dword [ebx]
mov edi, dword [esp + 0x1c]
mov dword [esi], eax
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, ebx
mov dword [edi], ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
jmp 0x40c93f
mov eax, ebx
jmp 0x40c9e9

Function at 0x40cf10
Capabilities:
Read file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [0x4d02f0]
mov dword [esp], eax
call sub.msvcrt.dll_feof
xor edx, edx
test eax, eax
je 0x40cf30
add esp, 0x18
mov eax, edx
pop ebx
ret
mov eax, dword [0x4d02f0]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov ebx, eax
mov eax, dword [0x4d02f0]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x40cf71
mov edx, ebx
add esp, 0x18
mov eax, edx
pop ebx
ret
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.0047f590
mov dword [esp], str.cant_read_from__s:__s
mov dword [esp + 8], eax
mov eax, dword [0x4d02ec]
mov dword [esp + 4], eax
call fcn.00412440
mov edx, ebx
jmp 0x40cf6a