joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470510
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4af0b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x4ce0a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea ebx, [esi + 4]
xor edi, edi
cmp ebx, edi
mov dword [esp + 0xc], ebx
jne 0x47054d
call fcn.00460810
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 4]
push 0xffffffffffffffff
mov ecx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], edi
call eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], edi
mov eax, dword [esi + 0x48]
mov ebx, dword [eax]
lea edi, [esi + 0x44]
mov ecx, eax
mov dword [esp + 0x14], ecx
lea ecx, [ecx]
cmp edi, edi
jne 0x470687
cmp ebx, dword [esp + 0x14]
sete al
test al, al
sete al
test al, al
je 0x4705ba
cmp ebx, dword [edi + 4]
je 0x4705b5
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x4705ac
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp ebx, dword [edi + 4]
je 0x4705b5
mov ebx, dword [ebx]
jmp 0x470580
jmp fcn.00474670
lea ebx, [esi + 0x40]
call fcn.00471f00
lea edi, [esi + 0x6c]
mov ebx, edi
call fcn.00473820
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x7c]
lea ebx, [esi + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x10], edi
xor edi, edi
cmp ecx, eax
mov dword [esp + 0x18], edi
ja 0x470682
push eax
push ebx
push ecx
push ebx
lea ecx, [esp + 0x28]
push ecx
push ebx
mov dword [esp + 0x30], edi
call fcn.00474ed0
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
mov dword [esp + 0x18], edi
ja 0x470682
push eax
push ebx
lea edx, [esp + 0x18]
push edx
push 9
mov ecx, ebx
call fcn.00474ff0
mov eax, 1
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xc4], edi
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], edi
je 0x470670
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.00476890
jmp fcn.00473200
Function at 0x4773e0
Capabilities:
Hash data using fnv

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov ebp, 0x811c9dc5
cmp esi, 0xfffffffe
je 0x477405
test esi, esi
je 0x477400
cmp esi, dword [esp + 0x1c]
je 0x477405
call fcn.004817d6
cmp edi, dword [esp + 0x20]
je 0x477471
cmp esi, 0xfffffffe
mov ebx, edi
je 0x477437
test esi, esi
jne 0x47741b
call fcn.004817d6
cmp dword [esi + 0x18], 0x10
jb 0x477426
mov eax, dword [esi + 4]
jmp 0x477429
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp edi, ecx
jb 0x477437
call fcn.00481797
add edi, 1
cmp esi, 0xfffffffe
je 0x477464
test esi, esi
jne 0x477448
call fcn.004817d6
cmp dword [esi + 0x18], 0x10
jb 0x477453
mov eax, dword [esi + 4]
jmp 0x477456
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x477464
call fcn.00481797
movsx eax, byte [ebx]
imul ebp, ebp, 0x1000193
xor ebp, eax
jmp 0x4773f1
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x47a6e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
push esi
push edi
mov esi, ecx
jne 0x47a749
lea edi, [esi + 4]
push edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebx], 0
jne 0x47a742
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ecx]
call ebx
mov ecx, dword [esi + 0x4c]
mov edi, eax
mov eax, dword [esi + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x47a73e
call ebx
sub eax, edi
push eax
lea edi, [esi + 0x70]
call fcn.0047a940
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x47a710
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4811c0
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 0x14], 0
jne 0x4811f3
lea eax, [esi + 0x1c]
push eax
mov eax, dword [esp + 8]
push 4
push ecx
lea edx, [esi + 4]
push edx
push eax
push 0
call fcn.004845aa
add esp, 0x18
test eax, eax
mov dword [esi + 0x14], eax
je 0x4811fb
mov ecx, dword [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
ret 8
xor eax, eax
ret 8

Function at 0x481200
Capabilities:
Resume thread

Disassembly:
mov eax, dword [esi + 0x14]
test eax, eax
push ebx
je 0x481243
cmp dword [esi + 0x18], 1
jne 0x481243
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x481220
xor eax, eax
pop ebx
ret
cmp eax, 1
jbe 0x48123c
push edi
lea edi, [eax - 1]
test edi, edi
jbe 0x48123b
lea ecx, [ecx]
mov eax, dword [esi + 0x14]
push eax
call ebx
sub edi, 1
jne 0x481230
pop edi
mov dword [esi + 0x18], 0
mov eax, 1
pop ebx
ret

Function at 0x481250
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, dword [esi + 0x14]
test eax, eax
je 0x481295
cmp dword [esi + 0x18], 0
jne 0x481295
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x481273
mov dword [esi + 0x18], 0
xor eax, eax
ret
test eax, eax
jbe 0x48128e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
mov edi, eax
mov eax, dword [esi + 0x14]
push eax
call ebx
sub edi, 1
jne 0x481281
pop edi
pop ebx
mov dword [esi + 0x18], 1
mov eax, 1
ret

Function at 0x4813c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4aec53
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ce0a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
call fcn.004812b0
xor edi, edi
mov dword [esp + 0x14], edi
xor eax, eax
mov dword [esi], vtable.CThreadControl.0
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
lea eax, [esi + 0x44]
push eax
mov dword [esi + 0x2c], 0xffffffff
call fcn.0046c960
mov eax, 1
mov byte [esp + 0x14], al
mov dword [esi + 0x40], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x34], edi
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x481ba7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ce0a0]
jne 0x481bb1
repz ret
jmp fcn.00485859
Function at 0x486e79
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4ce230]
je 0x486e94
inc edi
cmp edi, 0x17
jb 0x486e85
cmp edi, 0x17
jae 0x487014
push ebp
push 3
call fcn.004967cc
cmp eax, 1
pop ecx
je 0x486fe0
push 3
call fcn.004967cc
test eax, eax
pop ecx
jne 0x486ec8
cmp dword [0x4ce08c], 1
je 0x486fe0
cmp ebx, 0xfc
je 0x487013
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4d1cd0
push ebp
call fcn.00482c4a
add esp, 0xc
test eax, eax
je 0x486efe
push esi
push esi
push esi
push esi
push esi
call fcn.00483d64
add esp, 0x14
push 0x104
mov esi, 0x4d1ce9
push esi
push 0
mov byte [0x4d1ded], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x486f42
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00482c4a
add esp, 0xc
test eax, eax
je 0x486f42
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00483d64
add esp, 0x14
push esi
call fcn.00484660
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x486f87
push esi
call fcn.00484660
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4d1fe4
push 0x4b4c90
sub ecx, eax
push ecx
push eax
call fcn.0048b5ad
add esp, 0x14
test eax, eax
je 0x486f87
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00483d64
add esp, 0x14
jmp 0x486f89
xor esi, esi
push 0x4b9434
push ebx
push ebp
call fcn.0049675b
add esp, 0xc
test eax, eax
je 0x486fa9
push esi
push esi
push esi
push esi
push esi
call fcn.00483d64
add esp, 0x14
push dword [edi*8 + 0x4ce234]
push ebx
push ebp
call fcn.0049675b
add esp, 0xc
test eax, eax
je 0x486fcb
push esi
push esi
push esi
push esi
push esi
call fcn.00483d64
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0049659e
add esp, 0xc
jmp 0x487013
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x487013
cmp ebp, 0xffffffff
je 0x487013
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4ce234]
push dword [esi]
call fcn.00484660
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x49659e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00485d60
xor ebx, ebx
cmp dword [0x4d23b8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x496674
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x496754
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b5a78
push edi
call esi
cmp eax, ebx
je 0x496754
push eax
call fcn.00485cf2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4d23b8], eax
call esi
push eax
call fcn.00485cf2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d23bc], eax
call esi
push eax
call fcn.00485cf2
mov dword [0x4d23c0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004865a7
test eax, eax
pop ecx
pop ecx
je 0x496642
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00483d64
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x496674
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00485cf2
cmp eax, ebx
pop ecx
mov dword [0x4d23c8], eax
je 0x496674
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00485cf2
pop ecx
mov dword [0x4d23c4], eax
mov eax, dword [0x4d23c4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4966f9
cmp dword [0x4d23c8], ecx
je 0x4966f9
push eax
call fcn.00485d69
push dword [0x4d23c8]
mov esi, eax
call fcn.00485d69
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4966f9
cmp edi, ebx
je 0x4966f9
call esi
cmp eax, ebx
je 0x4966c6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4966c6
test byte [ebp - 0x18], 1
jne 0x4966f9
lea eax, [ebp - 0x10]
push eax
call fcn.00486656
test eax, eax
pop ecx
je 0x4966e1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00483d64
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4966f0
or dword [ebp + 0x10], 0x200000
jmp 0x496734
or dword [ebp + 0x10], 0x40000
jmp 0x496734
mov eax, dword [0x4d23bc]
cmp eax, dword [ebp - 8]
je 0x496734
push eax
call fcn.00485d69
cmp eax, ebx
pop ecx
je 0x496734
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x496734
mov eax, dword [0x4d23c0]
cmp eax, dword [ebp - 8]
je 0x496734
push eax
call fcn.00485d69
cmp eax, ebx
pop ecx
je 0x496734
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d23b8]
call fcn.00485d69
cmp eax, ebx
pop ecx
je 0x496754
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x496756
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40696f
Capabilities:
Create thread
Inject thread

Disassembly:
push dword [0x42fb3c]
pop dword [0x42fbc4]
mov edx, dword [0x42fb2c]
push dword [0x4302d4]
call fcn.004153c0
lea ecx, [0x42fb20]
pop edx
call fcn.00408000
push dword [0x42fb20]
call fcn.004082c0
mov ebx, eax
inc ebx
mov dword [0x42fbf0], ebx
push dword [0x42fbc4]
push 0
push 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
mov dword [0x42fbc0], eax
cmp dword [0x42fbc0], 0
je 0x406b0b
push 4
push 0x1000
push dword [0x42fbf0]
push 0
push dword [0x42fbc0]
call sub.KERNEL32.dll_VirtualAllocEx
mov dword [0x42fbdc], eax
cmp dword [0x42fbdc], 0
je 0x406b00
push 0x42fae4
push dword [0x42fbf0]
push dword [0x42fb20]
push dword [0x42fbdc]
push dword [0x42fbc0]
call sub.KERNEL32.dll_WriteProcessMemory
mov ebx, dword [0x42fae4]
cmp ebx, dword [0x42fbf0]
jl 0x406ae4
push str.Kernel32.dll
push 0
call fcn.00409ac0
and eax, eax
je 0x406ae4
push 0x4171e7
push 0
call fcn.00409b10
mov dword [0x42fb90], eax
push 0
call fcn.00409a40
cmp dword [0x42fb90], 0
je 0x406ae4
push 0
push 0
push dword [0x42fbdc]
push dword [0x42fb90]
push 0
push 0
push dword [0x42fbc0]
call sub.KERNEL32.dll_CreateRemoteThread
mov dword [0x42fb38], eax
cmp dword [0x42fb38], 0
je 0x406ae4
push 0xffffffff
push dword [0x42fb38]
call sub.KERNEL32.dll_WaitForSingleObject
push 0x42fbe8
push dword [0x42fb38]
call sub.KERNEL32.dll_GetExitCodeThread
push str.Successful_Injection.
push 0
push 0
call fcn.004088c3
push 0x4000
push dword [0x42fbf0]
push dword [0x42fbdc]
push dword [0x42fbc0]
call sub.KERNEL32.dll_VirtualFreeEx
push dword [0x42fbc0]
call sub.KERNEL32.dll_CloseHandle
push dword [0x42fb2c]
call fcn.00414a70
mov dword [0x42fbe8], eax
ret

Function at 0x4092ce
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
cmp dword [ebp + 8], 0
je 0x4092e8
push dword [ebp + 8]
push 0x409260
call sub.USER32.dll_EnumWindows
jmp 0x40931f
mov edi, dword [0x42d120]
jmp 0x40931b
mov esi, dword [edi]
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi + 8], eax
jne 0x409319
push 1
push dword [edi + 0xc]
call sub.USER32.dll_EnableWindow
mov eax, edi
add eax, 8
push eax
push 0x42d120
call fcn.00415320
add esp, 8
mov edi, esi
or edi, edi
jne 0x4092f0
pop edi
pop esi
pop ebp
ret 4
Function at 0x40ac70
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0xca
jne 0x40aca6
push edi
call fcn.0040a6a4
pop ecx
cmp byte [edi + 0x40], 0
je 0x40ac9f
mov dword [edi + 0x14], 0xcf
xor eax, eax
inc eax
jmp 0x40ad5b
mov dword [edi + 0x14], 0xcb
cmp dword [edi + 0x14], 0xcb
jne 0x40ad2a
mov eax, dword [edi + 0x190]
cmp byte [eax + 0x10], 0
je 0x40ad1f
cmp dword [edi + 8], 0
je 0x40accd
push edi
mov ebx, dword [edi + 8]
call dword [ebx]
pop ecx
push edi
mov esi, dword [edi + 0x190]
call dword [esi]
pop ecx
mov dword [ebp - 4], eax
or eax, eax
je 0x40ad5b
cmp dword [ebp - 4], 2
je 0x40ad1f
cmp dword [edi + 8], 0
je 0x40acbb
mov eax, dword [ebp - 4]
cmp eax, 3
je 0x40acfc
cmp eax, 1
jne 0x40acbb
mov eax, dword [edi + 8]
add eax, 4
mov edx, dword [eax]
inc edx
mov dword [eax], edx
mov eax, dword [edi + 8]
cmp edx, dword [eax + 8]
jl 0x40acbb
mov eax, dword [edi + 8]
add eax, 8
mov edx, dword [edi + 0x11c]
add dword [eax], edx
jmp 0x40acbb
mov eax, dword [edi + 0x7c]
mov dword [edi + 0x84], eax
jmp 0x40ad4f
cmp dword [edi + 0x14], 0xcc
je 0x40ad4f
mov eax, dword [edi]
mov dword [eax + 0x14], 0x14
mov eax, dword [edi]
mov edx, dword [edi + 0x14]
mov dword [eax + 0x18], edx
push edi
mov ebx, dword [edi]
call dword [ebx]
pop ecx
push edi
call fcn.0040ad60
pop ecx
and eax, 0xff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ad60
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0xcc
je 0x40ada2
push edi
mov ebx, dword [edi + 0x180]
call dword [ebx]
pop ecx
and dword [edi + 0x78], 0
mov dword [edi + 0x14], 0xcc
jmp 0x40ada2
mov eax, dword [edi]
mov dword [eax + 0x14], 0x30
push edi
mov ebx, dword [edi]
call dword [ebx]
pop ecx
mov eax, dword [edi + 0x180]
cmp byte [eax + 8], 0
jne 0x40ad8e
xor eax, eax
cmp byte [edi + 0x41], 0
sete al
dec eax
and eax, 1
add eax, 0xcd
mov dword [edi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40f88a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
and dword [ebx + 4], 0
mov edi, 0x3b9aca00
cmp edi, 0x3b9aca00
je 0x40f8bb
mov eax, dword [ebx]
mov dword [eax + 0x14], 3
push ebx
mov eax, dword [ebx]
call dword [eax]
pop ecx
push ebx
call fcn.0041230d
mov dword [ebp - 4], eax
push 0x54
push ebx
call fcn.004122b0
add esp, 0xc
mov esi, eax
or esi, esi
jne 0x40f8f7
push ebx
call fcn.00412310
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x36
mov eax, dword [ebx]
and dword [eax + 0x18], 0
push ebx
mov eax, dword [ebx]
call dword [eax]
add esp, 8
lea eax, [fcn.0040ec68]
mov dword [esi], eax
lea eax, [fcn.0040eda7]
mov dword [esi + 4], eax
lea eax, [fcn.0040ee56]
mov dword [esi + 8], eax
lea eax, [fcn.0040ef2a]
mov dword [esi + 0xc], eax
lea eax, [0x40f00b]
mov dword [esi + 0x10], eax
lea eax, [0x40f078]
mov dword [esi + 0x14], eax
lea eax, [0x40f0e5]
mov dword [esi + 0x18], eax
lea eax, [0x40f483]
mov dword [esi + 0x1c], eax
lea eax, [0x40f5d3]
mov dword [esi + 0x20], eax
lea eax, [fcn.0040f72a]
mov dword [esi + 0x24], eax
lea eax, [0x40f856]
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [ebp - 4]
mov dword [esi + 0x2c], eax
xor edi, edi
inc edi
and dword [esi + edi*4 + 0x34], 0
and dword [esi + edi*4 + 0x3c], 0
dec edi
jge 0x40f969
and dword [esi + 0x44], 0
and dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
mov dword [ebx + 4], esi
push str.JPEGMEM
call sub.MSVCRT.dll_getenv
pop ecx
mov dword [ebp - 8], eax
or eax, eax
je 0x40f9d9
mov byte [ebp - 9], 0x78
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 4]
push eax
push str._ld_c
push dword [ebp - 8]
call sub.MSVCRT.dll_sscanf
add esp, 0x10
or eax, eax
jle 0x40f9d9
mov al, byte [ebp - 9]
cmp al, 0x6d
je 0x40f9c5
cmp al, 0x4d
jne 0x40f9cf
imul eax, dword [ebp - 4], 0x3e8
mov dword [ebp - 4], eax
imul eax, dword [ebp - 4], 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41491a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 9
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
je 0x4149b3
push 0x11
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x4149b3
push 0x10
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x4149b3
push 0x12
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x4149b3
call sub.USER32.dll_GetFocus
push 5
lea edi, [ebp - 0xd]
push edi
push eax
call sub.USER32.dll_GetClassNameA
push 4
push str.Rich
lea eax, [ebp - 0xd]
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
or eax, eax
jne 0x4149b3
call sub.USER32.dll_GetFocus
push 0
push 0
push 0x44e
push eax
call sub.USER32.dll_SendMessageA
test ax, 0x800
jne 0x4149b3
xor eax, eax
jmp 0x4149de
push str.PB_WindowID
push dword [ebp + 8]
call sub.USER32.dll_GetPropA
mov dword [ebp - 4], eax
or eax, eax
je 0x4149dc
dec eax
push eax
push dword [0x4304d0]
call fcn.004150f2
mov dword [ebp - 8], eax
mov eax, dword [eax + 0xc]
jmp 0x4149de
xor eax, eax
pop edi
leave
ret 4

Function at 0x414a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 0
jne 0x414aaf
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
push eax
push dword [edi + 4]
push dword [edi]
call sub.KERNEL32.dll_WriteFile
mov eax, dword [edi + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
pop edi
leave
ret 4
Function at 0x414d70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, 0x1000
push dword [ebp + 0xc]
push 0x1000
call fcn.004155a0
mov esi, eax
mov edi, esi
push dword [ebp + 8]
push dword [0x4304e0]
call fcn.004150f2
mov dword [ebp - 8], eax
or eax, eax
je 0x414e8f
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x414dc8
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call fcn.00414eb0
mov dword [ebp - 0xc], eax
jmp 0x414dde
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
cmp byte [ebp - 1], 0
je 0x414dea
mov al, byte [ebp - 1]
mov byte [edi], al
inc edi
mov eax, edi
sub eax, esi
cmp eax, ebx
jl 0x414e11
add ebx, 0x1000
mov eax, edi
sub eax, esi
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
push ebx
call fcn.004155a0
mov esi, eax
mov eax, dword [ebp - 0x10]
mov edi, eax
add edi, esi
movsx eax, byte [ebp - 1]
or eax, eax
je 0x414e2d
cmp dword [ebp - 0xc], 0
je 0x414e2d
cmp eax, 0xd
je 0x414e2d
cmp eax, 0xa
jne 0x414da8
cmp byte [ebp - 1], 0
je 0x414e8f
dec edi
cmp byte [ebp - 1], 0xd
jne 0x414e8f
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x414e53
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call fcn.00414eb0
jmp 0x414e69
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
cmp byte [ebp - 1], 0xa
je 0x414e8f
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x414e7f
add eax, 0xc
inc dword [eax]
jmp 0x414e8f
push 1
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_SetFilePointer
mov byte [edi], 0
mov eax, edi
sub eax, esi
mov edx, ebx
sub edx, eax
push edx
call fcn.00415610
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x414eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
cmp dword [edi + 0x14], 0
jne 0x414ed5
push edi
call fcn.00414a80
mov dword [edi + 0x14], 1
and dword [edi + 0xc], 0
cmp dword [edi + 0xc], esi
jl 0x414f2a
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov ebx, eax
add ebx, dword [edi + 4]
mov eax, esi
cmp eax, 1
je 0x414ef8
cmp eax, 2
je 0x414f01
cmp eax, 4
je 0x414f0c
jmp 0x414f15
mov eax, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [eax], dl
jmp 0x414f22
mov eax, dword [ebp + 0xc]
mov dx, word [ebx]
mov word [eax], dx
jmp 0x414f22
mov eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov dword [eax], edx
jmp 0x414f22
push esi
push ebx
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
jmp 0x414fa9
mov ebx, dword [edi + 0xc]
push ebx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, ebx
add eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
sub esi, ebx
cmp esi, dword [edi + 8]
jl 0x414f69
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [edi]
call sub.KERNEL32.dll_ReadFile
and dword [edi + 0xc], 0
jmp 0x414fa9
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
call sub.KERNEL32.dll_ReadFile
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x10], eax
cmp esi, dword [edi + 0xc]
jle 0x414f90
mov esi, dword [edi + 0xc]
push esi
push dword [edi + 4]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov eax, ebx
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc