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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4d59ec], 0
je 0x494277
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4d45c8]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x494277
mov eax, dword [0x4d59f0]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4d59ec]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x494246
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4d59ec]
call fcn.00448bdc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x49423e
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x49423e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x49423e
mov eax, dword [ebp - 0x14]
call fcn.0049cc44
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x49423e
push ebp
call fcn.004940e4
pop ecx
test al, al
jne 0x49423e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x4941fa
mov eax, dword [ebp - 0x14]
call fcn.0049b7d8
dec eax
jle 0x49423e
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00468884
cmp byte [ebp - 1], 0
je 0x49423e
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x49423e
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4d59f0]
call fcn.004938ac
inc edi
dec ebx
jne 0x49418d
mov eax, dword [0x4d59f0]
cmp dword [eax + 8], 0
jle 0x49425e
mov eax, dword [0x4d59f0]
call fcn.0049393c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x494277
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00493f4c
pop ecx
test al, al
jne 0x494277
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x497834
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x497880
mov eax, esi
call fcn.00484a20
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x497880
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x497880
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4979bf
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4978c0
cmp eax, 0x108
ja 0x4978c0
mov eax, esi
call fcn.00484a20
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4979b6
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x4979bf
jmp 0x4979b6
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x49799f
cmp eax, 0x20a
ja 0x49799f
test byte [esi + 0x50], 0x80
jne 0x4978f2
sub eax, 0x203
je 0x4978ef
sub eax, 3
je 0x4978ef
sub eax, 3
jne 0x4978f2
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x497906
dec eax
je 0x49791b
dec eax
je 0x497938
dec eax
je 0x49791b
jmp 0x49793f
mov ecx, ebx
mov eax, dword [0x4d45c8]
mov eax, dword [eax]
mov edx, esi
call fcn.0048e3b4
jmp 0x4979b6
cmp byte [esi + 0x5d], 1
jne 0x497931
mov eax, esi
mov si, 0xffed
call fcn.00468884
jmp 0x4979bf
or word [esi + 0x54], 1
jmp 0x4979b6
and word [esi + 0x54], 0xfffe
jmp 0x4979b6
mov eax, dword [0x4d59a8]
cmp byte [eax + 0x20], 0
je 0x4979b6
mov eax, dword [0x4d59a8]
cmp dword [eax + 0x1c], 0
je 0x4979b6
mov eax, dword [ebx]
mov edx, dword [0x4d59a8]
cmp eax, dword [edx + 0x1c]
jne 0x4979b6
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00484964
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00468884
jmp 0x4979bf
cmp eax, 0xb00b
jne 0x4979b6
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00496160
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49ae74
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x49ae90
cmp dword [esi + 4], 0
je 0x49aebd
test byte [ebx + 0x55], 1
jne 0x49aeaf
mov eax, ebx
call fcn.00499acc
test eax, eax
jne 0x49aeaf
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x49afcd
mov edx, esi
mov eax, ebx
call fcn.0049a994
jmp 0x49afcd
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 0x49afc6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0049cc44
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.00497768
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0049ae74
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.0049cc44
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49afcd
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 0x4a1468
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4d4404]
cmp byte [eax + 0xc], 0
je 0x4a15d5
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a15ce
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4d59fc], 0
jne 0x4a14bc
push 0x4a15dc
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x4a15e4
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d59fc], eax
cmp dword [0x4d02d8], 0
jne 0x4a15b7
push 0x4a15f4
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4d02d8], eax
cmp dword [0x4d02d8], 0
je 0x4a15b7
push 0x4a1600
mov eax, dword [0x4d02d8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d5a00], eax
push 0x4a1610
mov eax, dword [0x4d02d8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d5a04], eax
push 0x4a1624
mov eax, dword [0x4d02d8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d5a08], eax
push 0x4a163c
mov eax, dword [0x4d02d8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d5a0c], eax
push 0x4a1654
mov eax, dword [0x4d02d8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d5a10], eax
push 0x4a1668
mov eax, dword [0x4d02d8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d5a14], eax
push 0x4a1680
mov eax, dword [0x4d02d8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d5a18], eax
push 0x4a1698
mov eax, dword [0x4d02d8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d5a1c], eax
push 0x4a16b4
mov eax, dword [0x4d02d8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d5a20], eax
push 0x4a16c0
mov eax, dword [0x4d02d8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4d5a24], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a15d5
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4a7d40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4a7da2
call fcn.004a7cf0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004a2d10
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004a2d10
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4a7e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4d1fb8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4a7efa
cmp dword [0x4d1fb4], 0
jne 0x4a7efa
cmp dword [0x4d2198], 0
je 0x4a7eb4
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004a7bf0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a7e9a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004a7bf0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a7e9a
lea ebx, [ebp - 0x84]
jmp 0x4a7e9b
inc ebx
call fcn.004a7ddc
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4a7f35
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4d1fbc
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004a2d10
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4d1fbf
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4a7f35
cmp dword [0x4d1fb4], 0
je 0x4a7f14
cmp dword [0x4d1fb4], 0xffffffff
je 0x4a7f35
push esi
call dword [0x4d1fb4]
pop ecx
mov eax, dword [0x4d1fb8]
test eax, eax
je 0x4a7f35
cmp dword [0x4d1fb8], 0xffffffff
je 0x4a7f35
cmp byte [eax], 0
je 0x4a7f35
push esi
push eax
call fcn.004a7d40
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4af004
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4af032
mov eax, ebx
call fcn.004afabc
cmp dword [ebx + 0x3c], 0
je 0x4af02b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4af0a3
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4af095
cmp dword [ebx + 8], 0
je 0x4af054
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4af066
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4af095
cmp dword [ebx + 8], 0
je 0x4af047
cmp eax, 3
je 0x4af079
dec eax
jne 0x4af047
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4af047
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4af047
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4af0c1
cmp dword [ebx + 0x10], 0xcc
je 0x4af0c1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004af0cc
pop ebx
ret
Function at 0x43f8a1
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 0x43f8cf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43f8ed
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043f80b
jmp 0x43f8ed
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43f8ed
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0043f80b
test edi, edi
mov eax, edi
jne 0x43f8d7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x56a314]
test ecx, ecx
je 0x43f9a0
jmp 0x43f8a0
ret 8

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 0x10003120
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10088768
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100a5c90]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x100a5c90]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor eax, eax
mov edi, 1
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x38], eax
call fcn.1000ee30
test al, al
je 0x1000319a
cmp dword [esp + 0x20], 8
jb 0x10003193
mov ecx, dword [esp + 0xc]
push ecx
call fcn.10066b10
add esp, 4
mov eax, 1
jmp 0x1000320c
call fcn.1000eb30
movzx esi, al
call fcn.1000ef30
movzx eax, al
test esi, esi
je 0x100031f1
test eax, eax
je 0x100031b9
call fcn.10001c90
jmp 0x100031be
call fcn.100027b0
test eax, eax
jne 0x100031f6
push 6
mov eax, 0x100923fc
lea esi, [esp + 0x10]
call fcn.10003a30
cmp dword [esp + 0x20], 8
mov eax, dword [esp + 0xc]
jae 0x100031df
mov eax, esi
push eax
mov ecx, 0x100aa2d0
call fcn.100057b0
add esp, 4
xor edi, edi
jmp 0x100031f6
mov edi, 1
cmp dword [esp + 0x20], 8
jb 0x1000320a
mov edx, dword [esp + 0xc]
push edx
call fcn.10066b10
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret
Function at 0x10005100
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10083a98
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100a5c90]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x100a5c90]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor eax, eax
mov word [esp + 0xc], ax
push eax
mov eax, 0x1008da28
lea esi, [esp + 0x10]
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
call fcn.10003a30
mov ecx, dword [ebp + 8]
mov dword [esp + 0x38], 0
call fcn.10005310
call fcn.10005410
push ebx
call fcn.100055a0
push 3
mov eax, 0x10092818
mov ecx, esi
call fcn.10005b60
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005190
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x10]
call fcn.10005b60
push 2
mov eax, 0x10092820
lea ecx, [esp + 0x10]
call fcn.10005b60
mov eax, dword [esp + 0xc]
mov esi, 8
cmp dword [esp + 0x20], esi
jae 0x100051ce
lea eax, [esp + 0xc]
push eax
mov ecx, ebx
call fcn.100049c0
cmp dword [esp + 0x20], esi
jb 0x100051e9
mov ecx, dword [esp + 0xc]
push ecx
call fcn.10066b10
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 4
Function at 0x1000b140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000b158
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000b18a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x1000b186
cmp esi, eax
jae 0x1000b18a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1000b178
cmp esi, eax
jb 0x1000b190
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x10010d10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
push edi
push 2
mov dword [ebp - 0x258], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10010d58
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
or eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x24c]
push ecx
push ebx
mov dword [ebp - 0x24c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x10010d94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret
push esi
jmp 0x10010da0
lea edx, [ebp - 0x228]
push edx
call fcn.1006a266
add esp, 4
xor ecx, ecx
mov word [ebp - 0x20], cx
mov ecx, eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], edi
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x10010dc4
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x20]
call fcn.10003a30
mov edx, dword [ebp - 0x258]
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.10066cb4
add esp, 8
test eax, eax
jne 0x10010e3a
lea ecx, [ebp - 0x250]
push ecx
mov dword [ebp - 0x250], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push eax
call esi
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x254]
push edx
push eax
mov dword [ebp - 0x254], edi
call esi
mov eax, dword [ebp - 0x254]
cmp dword [ebp - 0x250], eax
je 0x10010e7d
cmp eax, edi
je 0x10010e7d
cmp dword [ebp - 0xc], 8
jb 0x10010e4c
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.10066b10
add esp, 4
lea edx, [ebp - 0x24c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10010da0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 8
mov esi, dword [ebp - 0x244]
jb 0x10010e9c
mov eax, dword [ebp - 0x20]
push eax
call fcn.10066b10
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.10066b1b
mov esp, ebp
pop ebp
ret
Function at 0x100167c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100837e3
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100a5c90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [edi + 4], eax
mov dword [edi + 0x3c], eax
mov ecx, 1
mov byte [ebp - 4], cl
push eax
mov dword [edi], vtable.CEtTimeGrantDog.0
mov dword [edi + 0x94], eax
mov dword [edi + 0x98], eax
mov dword [edi + 0x9c], ecx
mov dword [edi + 0xa0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
lea edx, [edi + 4]
call fcn.1001ed60
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10019740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082008
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push 0x100928a0
lea ecx, [ebp - 0x20]
push 5
push ecx
mov dword [ebp - 0x28], eax
call fcn.1006791a
mov edx, dword [str.0000]
mov esi, eax
mov al, byte [0x1009372c]
add esp, 0x10
mov dword [ebp - 0x18], edx
mov byte [ebp - 0x14], al
cmp esi, 4
jge 0x100197c4
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edi, 4
sub edi, esi
push edi
lea edx, [ebp - 0x18]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, dword [ebp - 0x24]
je 0x100197c1
xor eax, eax
jmp 0x10019812
mov edi, dword [ebp + 0xc]
push 0
lea eax, [ebp - 0x24]
push eax
push esi
lea ecx, [ebp - 0x20]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, dword [ebp - 0x24]
jne 0x100197bd
mov dword [ebp - 0x2c], vtable.CKeyFileHelper.0
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp - 4], 0
jne 0x100197f8
mov eax, dword [ebp - 0x28]
push edi
call fcn.10019580
mov eax, dword [ebp - 0x28]
push 0
lea edx, [ebp - 0x24]
push edx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
cmp edi, dword [ebp - 0x24]
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10019830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov byte [ebp - 6], al
lea eax, [ebp - 0x14]
push eax
push 4
lea ecx, [ebp - 0x10]
push ecx
push esi
call ebx
cmp dword [ebp - 0x14], 4
je 0x1001987e
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x10]
push 0x100928a0
push eax
mov byte [ebp - 0xc], 0
call fcn.100679f1
mov edx, dword [ebp - 0x18]
add esp, 0xc
push 0
lea ecx, [ebp - 0x14]
push ecx
push edx
push edi
push esi
call ebx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jne 0x1001986a
mov ecx, dword [ebp + 8]
dec ecx
jne 0x100198be
push eax
mov eax, edi
call fcn.10019660
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov byte [edi + eax], 0
mov eax, dword [ebp - 0x14]
xor ecx, ebp
pop ebx
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 4