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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [eax + 0x190]
test al, al
jns 0x48a21e
or eax, 0xffffffff
jmp 0x48a223
mov eax, dword [0x57d144]
mov edx, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x290]
push dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x57e6ac
call fcn.004174d7
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x48a2c0
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x48a2c0
cmp edi, ebx
je 0x48a275
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x200]
push eax
push 0x57ee30
call fcn.004174d7
pop ecx
pop ecx
mov ebx, eax
cmp dword [ebp - 8], 2
jne 0x48a2c9
test ebx, ebx
je 0x48a2ac
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x198]
test al, 0x40
je 0x48a2c0
cmp dword [ebp - 4], 0
je 0x48a2ac
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 0x224]
mov ecx, dword [ebp + 8]
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
mov eax, esi
jmp 0x48a2c2
mov eax, dword [esi]
push 5
push 0
push edi
mov ecx, esi
call dword [eax + 0x1d0]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], 3
jne 0x48a2c0
test edi, edi
je 0x48a2c0
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x15c]
test eax, eax
je 0x48a2c0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x164]
test eax, eax
je 0x48a2c0
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x218]
mov eax, dword [esi]
push 0
push 1
push 5
push edi
mov ecx, esi
call dword [eax + 0x328]
mov edx, dword [ebp + 8]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
jmp 0x48a2c2
Function at 0x48dbe4
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [0x585af4], 1
push ebx
push esi
push edi
mov ebx, ecx
jne 0x48dc13
or dword [0x585af4], 1
mov ecx, 0x585af0
call fcn.00404d20
push 0x5318a5
call fcn.00504c72
pop ecx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x48dc1f
call fcn.0040e02a
mov eax, dword [ebx + 0x318]
test eax, eax
je 0x48dc98
cmp dword [eax + 0x20], 0
je 0x48dc98
test eax, eax
je 0x48dc36
mov eax, dword [eax + 0x20]
cmp dword [edi], eax
jne 0x48dc98
mov eax, dword [edi + 4]
dec eax
je 0x48dc77
dec eax
je 0x48dc4d
dec eax
jne 0x48dc98
mov esi, 0x428e
jmp 0x48dc7c
push 0x11
mov esi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x48dc7c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x31c]
test eax, eax
je 0x48dc7c
add esi, 3
jmp 0x48dc7c
mov esi, 0x3ea0
push esi
mov ecx, 0x585af0
call fcn.00404800
test eax, eax
je 0x48dc1a
mov eax, dword [0x585af0]
mov dword [edi + 0xc], eax
xor eax, eax
inc eax
jmp 0x48dc9a
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x48e63b
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
xor ecx, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [ebx + 0x9c], ecx
cmp dword [ebx + 0x90], ecx
je 0x48e6bb
cmp dword [ebp + 0xc], ecx
jne 0x48e6bb
cmp dword [ebx + 0x94], ecx
jne 0x48e6bb
mov eax, dword [ebx + 0x20]
cmp eax, ecx
je 0x48e6b1
cmp eax, 0xffffffff
je 0x48e6b1
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xc8]
push dword [ebp - 8]
call fcn.0040ed36
mov dword [ebx + 0x9c], eax
test eax, eax
jne 0x48e6bb
xor eax, eax
jmp 0x48e7fb
mov dword [ebx + 0x9c], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xec]
test eax, eax
je 0x48e6f6
cmp dword [ebp + 0xc], 0
jne 0x48e6f6
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xd8]
push dword [ebp - 8]
call fcn.0040ed36
test eax, eax
jne 0x48e6aa
xor ecx, ecx
cmp dword [ebx + 0x9c], ecx
jne 0x48e71c
mov eax, dword [ebx + 0x20]
cmp eax, ecx
jbe 0x48e71c
cmp eax, 0xffffffff
je 0x48e71c
cmp dword [ebx + 0x90], ecx
jne 0x48e71c
cmp dword [ebx + 0xa8], ecx
je 0x48e6aa
push dword [ebx + 0x6c]
push 0x57e540
call fcn.004174d7
lea esi, [ebx + 0x8c]
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x48e755
mov dword [eax + 0xf8], edi
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [ebp - 4]
mov dword [esi], edi
cmp ecx, edi
je 0x48e7bb
push edi
jmp 0x48e7b6
push dword [ebx + 0x6c]
push 0x57e180
call fcn.004174d7
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
je 0x48e781
cmp eax, edi
je 0x48e781
cmp dword [0x58417c], edi
jne 0x48e781
push 1
push ebx
mov ecx, eax
call fcn.00476cee
jmp 0x48e7ae
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x48e799
push edi
call fcn.0042565d
cmp eax, edi
je 0x48e799
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x58]
push dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test eax, eax
je 0x48e6aa
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x48e7bb
push ebx
call fcn.004282d8
cmp dword [ebx + 0x6c], edi
je 0x48e7f8
lea esi, [ebx + 0x54]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041865e
mov eax, dword [eax + 0x94]
push eax
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0x401
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x6c]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_RedrawWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4a2d7c
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x52a933
call fcn.005065bd
xor edi, edi
cmp dword [0x57e07c], edi
je 0x4a2e45
cmp dword [0x57ecdc], 0xfffffffe
jne 0x4a2e32
cmp dword [ebp + 8], 0xffffffff
je 0x4a2e45
test byte [0x585ec0], 1
mov esi, 0x585ea0
jne 0x4a2ddb
or dword [0x585ec0], 1
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00436f12
push 0x531925
call fcn.00504c72
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.00436f69
cmp dword [0x585e9c], edi
je 0x4a2def
call fcn.0040e02a
push edi
push edi
push 0x4a2d24
call fcn.0050a1b3
add esp, 0xc
mov dword [0x585e9c], eax
cmp eax, edi
jbe 0x4a2e1f
cmp eax, 0xffffffff
je 0x4a2e1f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [0x57ecdc], eax
jmp 0x4a2e25
mov dword [0x585e9c], edi
push 0x585ea8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4a2e45
mov eax, dword [ebp + 8]
mov dword [0x57ecdc], eax
cmp eax, 0xffffffff
jne 0x4a2e45
mov dword [0x585e9c], edi
call fcn.00506695
ret
Function at 0x4de0e4
Capabilities:
Get common file path

Disassembly:
push 0x224
mov eax, 0x52cfa5
call fcn.00506626
mov esi, ecx
mov dword [ebp - 0x22c], esi
call fcn.004e3bd7
push 0x15c
call fcn.004068ec
pop ecx
mov ecx, eax
mov dword [ebp - 0x228], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x4de128
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.004e54b9
jmp 0x4de12a
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.004e3ba9
call fcn.00415906
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x218], ax
inc esi
xor eax, eax
mov dword [ebp - 0x228], esi
mov word [ebp + esi*2 - 0x218], ax
mov dword [ebp - 0x224], ebx
cmp edi, ebx
je 0x4de2ca
cmp dword [edi + 4], ebx
jle 0x4de2ca
lea ecx, [ebp - 0x21c]
call fcn.00404d20
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x4de2ae
lea ecx, [ebp - 0x220]
call fcn.00404d20
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x4de1ff
push dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push str.10__s
push eax
call fcn.00404310
add esp, 0xc
jmp 0x4de231
jge 0x4de21f
push dword [ebp - 0x21c]
inc eax
push eax
lea eax, [ebp - 0x220]
push str._d__s
push eax
call fcn.00404310
add esp, 0x10
jmp 0x4de231
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00404400
push 0x15c
call fcn.004068ec
pop ecx
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4de255
mov ecx, eax
call fcn.004b6df1
mov esi, eax
jmp 0x4de257
xor esi, esi
push dword [ebp - 0x220]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebx + 0xe110]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push ebx
mov ecx, edi
call fcn.0040cd63
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x22c]
push esi
call fcn.004e3ba9
mov ecx, dword [ebp - 0x220]
inc dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.00404d00
mov esi, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00404d00
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4de198
call fcn.005066a9
ret
Function at 0x4e2d3a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e2d52
mov edi, dword [esi + 0xc]
jmp 0x4e2d92
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4e2d6b
call fcn.00416142
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e2d80
call fcn.00416142
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e2d92
call fcn.00416142
call fcn.00415906
cmp dword [eax + 0x3c], 0
je 0x4e2da7
push edi
mov ecx, ebx
call fcn.004e1b90
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e2c60
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4e2dc5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e2dd1
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4ea2c3
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x4ea30d
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4ea30d
call fcn.004e9b7e
test eax, eax
je 0x4ea30d
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.00404370
xor eax, eax
inc eax
jmp 0x4ea525
cmp dword [ebx + 4], 0x100
push edi
jne 0x4ea51c
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4ea40a
push 0x11
call edi
test ax, ax
jl 0x4ea40a
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4ea40a
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4ea37d
cmp eax, 0x20
jbe 0x4ea40a
cmp eax, 0x24
jbe 0x4ea370
cmp eax, 0x26
je 0x4ea370
cmp eax, 0x28
jne 0x4ea40a
call fcn.004e9b7e
test eax, eax
je 0x4ea40a
mov ecx, esi
call fcn.00414681
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.004e9b7e
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4ea3b2
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.00404370
jmp 0x4ea517
call fcn.004125f3
test eax, eax
je 0x4ea517
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.0041262b
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4ea3e0
xor edi, edi
jmp 0x4ea3e3
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.004125f3
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4ea517
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4ea4e6
sub eax, 0x12
je 0x4ea4be
sub eax, 0xb
je 0x4ea42c
dec eax
dec eax
jne 0x4ea51c
push 0x12
call edi
test ax, ax
jl 0x4ea51c
push 0x11
call edi
test ax, ax
jl 0x4ea51c
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4ea51c
call fcn.004e9b7e
test eax, eax
jne 0x4ea517
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004e9b28
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.00410f66
test eax, eax
je 0x4ea517
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.00410f66
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4ea517
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4ea4d2
push 0
call fcn.004e9b28
mov ecx, esi
call fcn.004120c1
test eax, eax
je 0x4ea51c
mov ecx, esi
call fcn.004120c1
jmp 0x4ea510
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.00410f66
test eax, eax
je 0x4ea51c
push dword [esi + 0x20]
call edi
push eax
call fcn.00410f66
push 0
push esi
mov ecx, eax
call fcn.00409faf
mov ecx, eax
call fcn.00414681
xor eax, eax
inc eax
jmp 0x4ea524
push ebx
mov ecx, esi
call fcn.0040edaa
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4f75f9
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x524db4
call fcn.005065bd
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
jne 0x4f76d2
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x4f76d2
cmp ebx, 0x43
je 0x4f763b
cmp ebx, 0x2d
jne 0x4f76d2
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4f76d2
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00404d20
movzx ecx, byte [edi + 0xae]
and dword [ebp - 4], 0
push ecx
lea eax, [edi + 0xac]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.00404310
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esp, 0x14
lea eax, [eax + eax + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00404d00
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.004759b8
call fcn.00506695
ret 4

Function at 0x4ff805
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp byte [ebp + 0xc], 0
movzx eax, ax
jne 0x4ff84a
test edi, edi
jl 0x4ff84a
cmp ax, 0x20
je 0x4ff83f
cmp word [ebp + 8], 0x71
jne 0x4ff84a
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x504b3c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x580948]
jne 0x504b46
repz ret
jmp fcn.0050c546
Function at 0x51ab88
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0050beaa
and dword [ebp - 4], 0
cmp dword [0x587c74], 0
mov ebx, eax
jne 0x51ac39
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x51acea
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x51acea
push eax
call fcn.0050be38
mov dword [esp], 0x55a0a4
push edi
mov dword [0x587c74], eax
call esi
push eax
call fcn.0050be38
mov dword [esp], 0x55a090
push edi
mov dword [0x587c78], eax
call esi
push eax
call fcn.0050be38
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x587c7c], eax
call esi
push eax
call fcn.0050be38
pop ecx
mov dword [0x587c84], eax
test eax, eax
je 0x51ac39
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0050be38
pop ecx
mov dword [0x587c80], eax
mov eax, dword [0x587c80]
cmp eax, ebx
je 0x51ac91
cmp dword [0x587c84], ebx
je 0x51ac91
push eax
call fcn.0050beb3
push dword [0x587c84]
mov esi, eax
call fcn.0050beb3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x51ac91
test edi, edi
je 0x51ac91
call esi
test eax, eax
je 0x51ac88
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x51ac88
test byte [ebp - 0xc], 1
jne 0x51ac91
or dword [ebp + 0x10], 0x200000
jmp 0x51acca
mov eax, dword [0x587c78]
cmp eax, ebx
je 0x51acca
push eax
call fcn.0050beb3
pop ecx
test eax, eax
je 0x51acca
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x51acca
mov eax, dword [0x587c7c]
cmp eax, ebx
je 0x51acca
push eax
call fcn.0050beb3
pop ecx
test eax, eax
je 0x51acca
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x587c74]
call fcn.0050beb3
pop ecx
test eax, eax
je 0x51acea
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51acec
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fd8b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fdb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40fdb1
xor al, al
jmp 0x40fdd1
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00417c80
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x4125a0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4125db
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4125c2
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4125d3
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4125dd
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4125b8
xor eax, eax
pop edi
pop esi
ret
Function at 0x100048b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10004a88
mov edi, dword [0x100094c4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10004997
test byte [0x10005030], 8
jne 0x10004a30
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10005040], 8
jne 0x100049f0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10004939
cmp esi, 3
jbe 0x100049a8
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x1000494a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10007788]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10004939
mov dword [esp], 0x10005040
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10004910
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10004910
mov dword [esp], 0x10005030
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100048fb
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10004903
mov eax, 0xffffffff
jmp 0x10004997
Function at 0x1003040
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push 2
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100306d
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x100b453
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push eax
movzx eax, byte [edi]
lea edi, [edi + 1]
jmp 0x100b3d6
push 0xffffffffffffffff
add esi, dword [edx + 0x20]
pop ecx
lodsd eax, dword [esi]
jmp 0x100b36e
inc ecx
cmp ecx, dword [edx + 0x18]
lea edi, [eax + ebx]
je 0x100b41b
jmp 0x100b541
movzx eax, word [esi]
pop esi
add esi, dword [edi + eax*4]
ret 4
sub dword [esp], eax
cmp byte [edi], 1
pop eax
jmp 0x100b48e
ret
mov edx, ebx
mov esi, ebx
mov eax, ebx
add eax, dword [ebx + 0x3c]
add edx, dword [eax + 0x78]
jmp 0x100689f
ja 0x100b544
xor eax, 0x47c0b0ec
sbb eax, dword [esp + 4]
jne 0x10068a5
lea edi, [ebx]
jmp 0x100b570
push 0
pop eax
imul eax, eax, 0xf
jmp 0x1006893
lea esi, [ebx]
add edi, dword [edx + 0x1c]
add esi, dword [edx + 0x24]
lea esi, [esi + ecx*2]
push ebx
jmp 0x100b388