joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f7c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40f81f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40f811
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40f80d
cmp edi, eax
jae 0x40f811
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40f7ff
cmp edi, eax
jb 0x40f815
xor eax, eax
jmp 0x40f81e
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4111b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8058
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4f7f44]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.004a7b89
add esp, 4
cmp eax, ebx
je 0x411294
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.004a7b89
add esp, 4
cmp eax, ebx
je 0x411270
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.004a7c91
push 0x4f0c38
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.004aa25a
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.004a7c91
push 0x4f0c38
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.004aa25a
int3
Function at 0x41a8e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7b9b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4f7f44]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004a7400
push 4
mov dword [ebp - 4], 0
call fcn.004a7b89
mov edi, eax
add esp, 4
test edi, edi
je 0x41a95c
call fcn.004a6f68
mov dword [edi], eax
call fcn.004a6d27
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004a7051
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x41a952
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004a7079
jmp 0x41a95e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41cd80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c838e
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4f7f44]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea eax, [esi + 0x10]
push 0x7d0
mov dword [ebp - 4], ebx
push eax
mov dword [esi], vtable.nbase::FrameworkThread.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push ebx
push ebx
push ebx
push ebx
mov word [esi + 0x28], bx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x34], eax
mov edx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov eax, edx
lea ecx, [eax + 1]
mov dword [esi + 0x4c], 0xf
mov dword [esi + 0x48], ebx
mov byte [esi + 0x38], bl
mov dword [ebp + 0xc], ecx
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41ce00
sub eax, dword [ebp + 0xc]
lea ecx, [esi + 0x38]
push eax
push edx
call fcn.0040311d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41cf30
Capabilities:
Set thread local storage value

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x30], 0
je 0x41cf3d
xor al, al
pop esi
ret
call fcn.0041d1a0
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi + 0x2c], 0
call fcn.0041f890
test al, al
je 0x41cf39
mov ecx, dword [esi + 0x34]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, 1
mov byte [esi + 0x28], al
pop esi
ret

Function at 0x41cf70
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
xor ebx, ebx
push esi
cmp byte [edi + 0x28], bl
je 0x41d004
cmp byte [edi + 0x29], bl
jne 0x41cfb2
cmp dword [edi + 0x30], ebx
je 0x41cfb2
push 8
mov byte [edi + 0x29], 1
call fcn.004a7b89
add esp, 4
cmp eax, ebx
je 0x41cfa5
mov dword [eax + 4], ebx
mov dword [eax], vtable.nbase::ThreadQuitTask.0
jmp 0x41cfa7
xor eax, eax
mov ecx, dword [edi + 0x30]
push ecx
mov esi, eax
call fcn.0041dbc0
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x41d000
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41cfe1
mov edx, dword [edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov word [edi + 0x28], bx
pop esi
pop ebx
pop ecx
ret
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x41d000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov word [edi + 0x28], bx
pop esi
pop ebx
pop ecx
ret

Function at 0x41d1a0
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x4fe00c]
cmp eax, 2
je 0x41d234
push esi
push 0
push 1
push 0x4fe00c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x41d208
push 4
call fcn.004a7b89
mov esi, eax
add esp, 4
test esi, esi
je 0x41d1f3
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
mov eax, esi
mov dword [0x4fe008], eax
mov dword [0x4fe00c], 2
pop esi
ret
xor esi, esi
mov eax, esi
mov dword [0x4fe008], eax
mov dword [0x4fe00c], 2
pop esi
ret
cmp eax, 2
je 0x41d22d
cmp dword [0x4fe00c], 2
je 0x41d22d
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
push 0
call esi
cmp dword [0x4fe00c], 2
jne 0x41d220
mov eax, dword [0x4fe008]
pop esi
ret
mov eax, dword [0x4fe008]
ret
Function at 0x41dbc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c7f18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x4f7f44]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov edi, eax
mov ebx, ecx
mov dword [esp + 0x14], esi
test esi, esi
je 0x41dc0f
push 1
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x3c], 0
call fcn.0041dc70
mov dword [esp + 0x38], 0xffffffff
test esi, esi
je 0x41dc55
push 0xffffffffffffffff
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
dec eax
jne 0x41dc55
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41eab0
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x4fe014]
cmp eax, 2
je 0x41eb44
push esi
push 0
push 1
push 0x4fe014
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x41eb18
push 4
call fcn.004a7b89
mov esi, eax
add esp, 4
test esi, esi
je 0x41eb03
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
mov eax, esi
mov dword [0x4fe010], eax
mov dword [0x4fe014], 2
pop esi
ret
xor esi, esi
mov eax, esi
mov dword [0x4fe010], eax
mov dword [0x4fe014], 2
pop esi
ret
cmp eax, 2
je 0x41eb3d
cmp dword [0x4fe014], 2
je 0x41eb3d
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
push 0
call esi
cmp dword [0x4fe014], 2
jne 0x41eb30
mov eax, dword [0x4fe010]
pop esi
ret
mov eax, dword [0x4fe010]
ret

Function at 0x41f7d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
push edi
xor edi, edi
mov dword [esi], vtable.nbase::Thread.0
cmp eax, edi
je 0x41f818
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov eax, dword [esi + 8]
jne 0x41f7fc
push eax
jmp 0x41f80c
cmp eax, edi
je 0x41f818
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
mov dword [esi + 8], edi
test byte [ebp + 8], 1
je 0x41f827
push esi
call fcn.004a79c0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x41f890
Capabilities:
Create thread

Disassembly:
push edi
lea edi, [esi + 4]
push edi
push 0
push esi
push 0x41f910
push 0
push 0
call fcn.004ae392
add esp, 0x18
mov dword [esi + 8], eax
cmp eax, 2
jae 0x41f8be
mov dword [esi + 8], 0
mov dword [edi], 0
mov eax, dword [esi + 0xc]
pop edi
test eax, eax
jle 0x41f8fc
or ecx, 0xffffffff
cmp eax, 1
jne 0x41f8d3
lea ecx, [eax - 3]
jmp 0x41f8f1
cmp eax, 2
jne 0x41f8dd
or ecx, 0xffffffff
jmp 0x41f8f1
cmp eax, 3
jne 0x41f8e7
lea ecx, [eax - 1]
jmp 0x41f8f1
cmp eax, 4
jne 0x41f8f1
mov ecx, 0xf
mov eax, dword [esi + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, 1
cmp ecx, dword [esi + 8]
sbb eax, eax
neg eax
ret
Function at 0x4202c0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [edi + 4]
cmp eax, 0x12
jne 0x4202dc
mov eax, dword [esi + 0x14]
mov byte [eax + 4], 1
mov ecx, dword [edi + 8]
push ecx
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor al, al
ret
cmp eax, 0x401
jne 0x4202f1
mov edx, dword [edi]
cmp edx, dword [esi + 0x18]
jne 0x4202f1
mov ecx, esi
jmp fcn.00420360
push 0x5001
push edi
call dword [sym.imp.USER32.dll_CallMsgFilterW]
test eax, eax
jne 0x42034e
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push edi
mov ecx, esi
call edx
mov eax, dword [esi + 0x14]
cmp dword [eax + 0xc], 0
push edi
je 0x420337
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
test al, al
jne 0x420344
mov ecx, dword [esi + 0x14]
mov byte [ecx + 4], 1
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
push edi
mov ecx, esi
call eax
mov al, 1
ret
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
push edi
mov ecx, esi
call eax
mov al, 1
ret

Function at 0x420360
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
call fcn.0041eab0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp byte [eax + 0x10], 0
push 1
je 0x4203b6
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 0xf
push 0xf
push 0
lea ecx, [ebp - 0x1c]
push ecx
call edi
test eax, eax
jne 0x4203b2
push 1
push 0x113
push 0x113
push eax
lea edx, [ebp - 0x1c]
push edx
call edi
test eax, eax
jne 0x4203b2
xor bl, bl
jmp 0x4203cb
mov bl, 1
jmp 0x4203cb
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
setne bl
push 0
lea ecx, [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test bl, bl
jne 0x4203e4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea edi, [ebp - 0x1c]
call fcn.004202c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x420d3e
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jns 0x420d54
push 8
pop edi
push 2
call esi
test ax, ax
jns 0x420d60
or edi, 2
push 1
call esi
test ax, ax
jns 0x420d6c
or edi, 1
push 0x10
call esi
test ax, ax
jns 0x420d78
or edi, 4
push 0x12
call esi
test ax, ax
jns 0x420d84
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret
Function at 0x423e7f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov eax, dword [esi + 0x64]
mov ebx, dword [ebp + 8]
cmp ebx, eax
je 0x423f55
push edi
test eax, eax
je 0x423ee6
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x64]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x130]
mov eax, dword [esi + 0x64]
xor ecx, ecx
push ecx
push ecx
push ecx
push str.killfocus
mov dword [esi + 0x64], ecx
push eax
mov ecx, esi
call fcn.0042330e
test ebx, ebx
je 0x423f54
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
cmp eax, esi
jne 0x423f54
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xf0]
test al, al
je 0x423f54
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xfc]
test al, al
je 0x423f54
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x64], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x64]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x130]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x64]
mov ecx, esi
call fcn.0042330e
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x430711
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x43071f
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x4307da
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4cf0f8]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4cf0f8]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4cf0f8]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4cf0f8]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4cf0f8]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4cf0f8]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4cf0f8]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4cf0f8]
add edx, 8
sub edi, 8
dec esi
jne 0x43073d
pop ebx
test edi, edi
je 0x4307f3
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4cf0f8]
inc edx
dec edi
jne 0x4307de
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x430ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x430cd4
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x430ccf
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x430cfc
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x430ce5
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004a9120
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x431bcf
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4f7f44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x431c77
movzx ecx, word [esi]
test cx, cx
je 0x431c77
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x431c0a
cmp cx, 0x5c
jne 0x431c0c
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x431bfe
cmp eax, esi
je 0x431c4b
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004a8707
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00431bcf
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004a9b7a
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004a9b49
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a79cb
leave
ret
Function at 0x4331cb
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x4c61a1
call fcn.004a8fde
mov esi, ecx
lea ebx, [esi + 0x340]
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
cmp dword [esi], 0
jne 0x43326a
cmp dword [esi + 4], 0xffffffff
jne 0x43326a
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4cf6f4
push edi
call fcn.004a9b49
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
jne 0x43323b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x43323b
mov esi, 0x2000000
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x433276
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00430aad
add esp, 0x10
test eax, eax
jne 0x433259
mov esi, dword [ebp + 0x10]
jmp 0x433230
push eax
call fcn.00432dba
mov dword [esi], eax
mov esi, dword [0x4fc7f8]
pop ecx
jmp 0x433230
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x1000000
call fcn.004a907d
ret 0xc
Function at 0x43a725
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x7bc], ebx
je 0x43a790
cmp dword [ebp + 8], 0x100
jne 0x43a77f
cmp word [ebp + 0xc], 0xd
jne 0x43a77f
cmp byte [esi + 0x7c2], bl
je 0x43a763
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x43a77f
cmp byte [esi + 0x7c3], bl
jne 0x43a77f
mov ecx, dword [esi + 0x14c]
cmp ecx, ebx
je 0x43a77b
push ebx
push ebx
push ebx
push 0x4cfd44
push esi
call fcn.0042330e
xor eax, eax
jmp 0x43a793
mov eax, dword [esi + 0x7bc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x451c29
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4f7f44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x24], bl
je 0x451ca2
cmp dword [esi + 0x1c], ebx
je 0x451ca2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004a9c30
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x451ca2
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x1c]
push dword [ebp - 8]
add ecx, 0x2dc
call fcn.00426c70
mov ecx, dword [esi + 0x1c]
call fcn.0042bb89
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x24]
mov ecx, eax
call fcn.0042330e
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a79cb
leave
ret 0x10
Function at 0x4564dc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4f7f44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x24], bl
je 0x45654d
cmp dword [esi + 0x1c], ebx
je 0x45654d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004a9c30
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x45654d
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x1c]
push dword [ebp - 8]
add ecx, 0x2dc
call fcn.00426c70
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x24]
mov ecx, eax
call fcn.0042330e
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a79cb
leave
ret 0x10
Function at 0x45cac6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 8]
mov esi, eax
and esi, 7
je 0x45caeb
cmp eax, esi
jge 0x45cae3
mov eax, edi
call fcn.0045c549
mov ecx, esi
shr dword [edi + 0xc], cl
sub dword [edi + 8], esi
mov esi, dword [edi + 8]
xor ecx, ecx
test esi, esi
jle 0x45cb18
mov eax, dword [edi + 0xc]
push ebx
mov dl, byte [edi + 0xc]
sub esi, 8
mov byte [ebp + ecx - 4], dl
shr eax, 8
mov ebx, esi
inc ecx
mov dword [edi + 0xc], eax
test ebx, ebx
jg 0x45caf8
mov dword [edi + 8], ebx
pop ebx
cmp ecx, 4
jge 0x45cb34
mov esi, dword [edi + 4]
mov eax, dword [edi]
cmp eax, esi
jb 0x45cb25
xor dl, dl
jmp 0x45cb2a
mov dl, byte [eax]
inc eax
mov dword [edi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x45cb1b
movzx esi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl esi, 8
add esi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, esi
xor ecx, 0xffff
cmp eax, ecx
je 0x45cb66
mov eax, str.zlib_corrupt
call fcn.0045829e
jmp 0x45cba2
mov eax, dword [edi]
add eax, esi
cmp eax, dword [edi + 4]
jbe 0x45cb76
mov eax, str.read_past_buffer
jmp 0x45cb5f
mov eax, dword [edi + 0x10]
lea ecx, [eax + esi]
cmp ecx, dword [edi + 0x18]
jbe 0x45cb8c
push esi
call fcn.0045c626
pop ecx
test eax, eax
je 0x45cba2
push esi
push dword [edi]
push dword [edi + 0x10]
call fcn.004a9120
add dword [edi], esi
add dword [edi + 0x10], esi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x465230
Capabilities:
Check for software breakpoints
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x46523f
lea eax, [edx + 0x2b]
pop ebp
ret
lea ecx, [ebp + 0x10]
mov eax, dword [ebp + 0xc]
pop ebp
jmp fcn.004624f0