joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417717
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov edx, 0x8e
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41771d
call fcn.0042e970
mov edx, dword [esp + 0x240]
lea ecx, [esp]
call fcn.00419000
mov dword [0x4b5001], 0x200006b
mov dword [0x4b5001], 0x200006f
lea ebp, [esp + 8]
mov dword [ebp], 0x22c
mov dword [0x4b5001], 0x2000071
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 4], eax
mov dword [0x4b5001], 0x2000072
cmp dword [esp + 4], 0
je 0x4178d7
mov dword [0x4b5001], 0x2000073
lea ebp, [esp + 8]
mov dword [ebp], 0x22c
mov dword [0x4b5001], 0x2000074
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Process32FirstW
and eax, eax
je 0x4178ba
mov dword [0x4b5001], 0x2000075
mov dword [0x4b5001], 0x2000076
push edx
call fcn.0042e7d0
pop edx
push eax
push edx
call fcn.0042e7d0
pop edx
push eax
lea ebp, [esp + 0x10]
lea eax, [ebp + 0x24]
push eax
call fcn.0042d880
lea eax, [esp + 0x238]
push eax
call fcn.0042e870
mov dword [0x4b5001], 0x2000078
push edx
call fcn.0042e7d0
pop edx
push eax
push edx
call fcn.0042e7d0
pop edx
push eax
push dword [esp + 0x23c]
call fcn.0042ca90
call fcn.0042e900
push edx
call fcn.0042e7d0
pop edx
push eax
push edx
call fcn.0042e7d0
pop edx
push eax
push dword [esp + 0xc]
call fcn.0042ca90
call fcn.004192f0
mov edx, eax
pop ecx
push ecx
call fcn.004192f0
mov ecx, eax
call fcn.00419270
je 0x417883
mov dword [0x4b5001], 0x2000079
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b5001], 0x200007a
lea ebp, [esp + 8]
mov eax, dword [ebp + 8]
jmp 0x4178fb
mov dword [0x4b5001], 0x200007b
mov dword [0x4b5001], 0x200007c
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Process32NextW
and eax, eax
je 0x4178ad
xor eax, eax
jmp 0x4178b2
mov eax, 1
and eax, eax
je 0x4177c4
mov dword [0x4b5001], 0x200007d
mov dword [0x4b5001], 0x200007e
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b5001], 0x200007f
mov dword [0x4b5001], 0x2000081
xor eax, eax
jmp 0x4178fb
push dword [esp + 0x234]
call fcn.0042e9d0
push dword [esp]
call fcn.0042e9d0
add esp, 0x238
pop ebp
ret 4
Function at 0x419a5a
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov edi, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov esi, 0x4ff498
cmp dword [0x4ff494], edi
jne 0x419a89
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4ff494], 1
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x4ff490]
test esi, esi
je 0x419ae4
test edi, edi
jne 0x419c2b
xor eax, eax
lea ecx, [esi + 0x114]
inc eax
cmp ebx, dword [ecx]
je 0x419aba
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x419aab
jmp 0x419ad6
push dword [esp + 0x1c]
add eax, 0x84
push dword [esp + 0x1c]
lea eax, [esi + eax*4]
push eax
call fcn.00419a03
xor edi, edi
add esp, 0xc
inc edi
mov esi, dword [esi]
test esi, esi
jne 0x419a9a
test edi, edi
jne 0x419c2b
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [esp + 0x10]
push ebp
push ebp
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x419c2b
mov esi, dword [0x4ff490]
jmp 0x419b25
cmp dword [esi + 0xc], 0x3f
jl 0x419bc6
mov esi, dword [esi]
test esi, esi
jne 0x419b19
push 0x310
push 8
push dword [0x4fe824]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x419c25
push ebp
push 1
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 8], eax
test eax, eax
je 0x419c17
push ebp
push ebp
push esi
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x1c]
push 0x419c3e
mov dword [esi + 0x114], ebx
lea ebx, [esi + 0x214]
push 0x1000
mov dword [esi + 0x14], eax
mov dword [ebx], ebp
push ebp
mov dword [esi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x419c12
push eax
call edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
call fcn.00419a03
mov eax, dword [0x4ff490]
add esp, 0xc
mov dword [esi + 4], ebp
mov dword [esi], eax
test eax, eax
je 0x419bbe
mov dword [eax + 4], esi
mov dword [0x4ff490], esi
jmp 0x419c2b
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov dword [esi + ecx*4 + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x110], ebx
mov eax, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x210], ebp
mov eax, dword [esi + 0xc]
add eax, 0x84
lea eax, [esi + eax*4]
push eax
call fcn.00419a03
add esp, 0xc
inc dword [esi + 0xc]
push ebp
push 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x419c2b
push dword [esi + 8]
call edi
push esi
push ebp
push dword [0x4fe824]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x10]
call edi
push 0x4ff498
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x41a644
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
push dword [0x4ff508]
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x18], ebp
call fcn.0042df32
mov esi, eax
test esi, esi
je 0x41a7d9
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ebp
je 0x41a6ee
push ebx
call fcn.0041aa87
jmp 0x41a686
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], 0
jne 0x41a67e
push dword [esi + 0x14]
call fcn.0041ab26
mov eax, dword [esp + 0x1c]
push ebp
push esi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.0041a5cf
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push 0x41a7f3
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41a6cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0xffffffff
je 0x41a6dc
push dword [esp + 0x20]
push ebx
call fcn.0041a947
mov eax, dword [esi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
jmp 0x41a78e
test byte [esp + 0x1c], 1
je 0x41a6fd
mov dword [esp + 0x10], 1
test byte [esp + 0x1c], 2
je 0x41a798
push esi
call fcn.0041a566
lea eax, [esi + 4]
push 0x10
push eax
call fcn.0042e72e
pop ecx
pop ecx
mov ecx, dword [0x4ff554]
mov edi, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
test eax, eax
jne 0x41a7d9
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov byte [edi + 5], al
mov byte [edi + 4], 1
mov eax, dword [esp + 0x18]
push dword [esi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x18]
push dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
cmp dword [esp + 0x20], 0xffffffff
je 0x41a779
push edi
push dword [esp + 0x24]
push ebx
call fcn.0041a8a7
jmp 0x41a786
mov eax, dword [esp + 0x18]
push dword [esi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x10]
mov ecx, dword [eax]
push ebp
push ebp
push eax
call dword [ecx + 0x30]
jmp 0x41a7d9
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [esp + 0x20], 0xffffffff
je 0x41a7ba
push dword [esp + 0x20]
push ebx
call fcn.0041a947
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push ebx
push ebp
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x41a7d9
xor edi, edi
mov byte [esi + 0x1c], 1
inc edi
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x41ad1d
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x41ad72
push dword [esp + 0x10]
push 0x41ac9c
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4ff510]
test esi, esi
je 0x41adcb
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x41ad6a
cmp byte [esi + 0x10], 0
je 0x41ad6a
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x41ad46
jmp 0x41adcb
mov esi, dword [0x4ff510]
test esi, esi
je 0x41adcb
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x41adc4
cmp byte [esi + 0x11], 0
je 0x41ada0
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x41adb7
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x4ff510
call fcn.0042e6ee
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x41ad7f
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41b483
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x500530]
call fcn.0042ddc1
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x41b583
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x41b4d9
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x41b4d1
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x41b519
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x41b55b
push 0x22
pop edx
cmp cx, dx
je 0x41b50b
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41b4fb
xor ecx, ecx
cmp word [eax], cx
je 0x41b55b
mov ecx, eax
add eax, 2
jmp 0x41b55d
test dx, dx
je 0x41b563
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x41b50b
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x41b551
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x41b55b
cmp cx, dx
je 0x41b54e
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41b53e
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x41b523
jmp 0x41b50b
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x41b565
xor edx, edx
cmp dword [ebp], ebx
jne 0x41b56e
test edi, edi
jne 0x41b58b
test edx, edx
je 0x41b573
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x41b4c7
test edi, edi
jne 0x41b59c
mov eax, ebx
jmp 0x41b5a0
test esi, esi
je 0x41b59c
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x41b5a0
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x41b717
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, eax
cmp dword [esp + 0x24], 0x18
je 0x41b7c6
cmp dword [esp + 0x24], 2
je 0x41b7c6
push 0x2000
push edi
push dword [0x4fe824]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x41b799
cmp dword [esp + 0x18], 2
jne 0x41b7b1
test ebx, ebx
jne 0x41b782
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x4fe824]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x41b7b1
cmp ax, 0xd
je 0x41b799
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x41b759
push dword [esp + 0x28]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0049c460
jmp 0x41b84c
push eax
push 0
push dword [0x4fe824]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x41b818
cmp dword [esp + 0x18], 1
jne 0x41b830
test ebx, ebx
jne 0x41b807
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x4fe824]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x41b830
cmp al, 0xd
je 0x41b818
mov byte [esi + edi], al
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x41b7df
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x28]
mov byte [esi + edi], 0
push esi
jne 0x41b847
call fcn.0049c4b0
jmp 0x41b84c
call fcn.0049c660
push esi
push 0
push dword [0x4fe824]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

Function at 0x41bb20
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4ff524], 0
jne 0x41bb2e
call fcn.0041bac0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x4ff528]
call esi
test eax, eax
jne 0x41bb51
call fcn.0041bac0
push dword [0x4ff528]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x41bb60
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x41bbc0
mov ebx, 0x10
test edi, edi
jns 0x41bbc9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x41bb92
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41bbe0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4ff524], 0
jne 0x41bbee
call fcn.0041bac0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x4ff528]
call esi
mov edx, eax
test edx, edx
jne 0x41bc15
call fcn.0041bac0
push dword [0x4ff528]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x41bc48
mov ebx, 0x10
test esi, esi
jns 0x41bc51
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x41bc60
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41d421
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x41d4ab
cmp dword [ebp + 0xc], edi
je 0x41d4ab
push esi
push 0x28
push 8
push dword [0x4fe824]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
pop ecx
pop ecx
test al, 1
je 0x41d49a
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x41d5af
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41d492
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x41d4aa
push esi
call fcn.0041d600
jmp 0x41d4a9
push esi
call fcn.0041d4c4
push esi
mov edi, eax
call fcn.0041d600
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0xc
Function at 0x41d4c4
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov eax, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
call fcn.004776d0
mov edi, eax
test edi, edi
je 0x41d594
push dword [esp + 0x18]
call fcn.0049c530
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41d584
test byte [esi + 0x1c], 2
mov dword [esi + 0x10], ebp
jne 0x41d52d
push 1
push 0x34
push edi
call fcn.00477760
add esp, 0xc
push dword [esp + 0x18]
push 0x2712
push edi
call fcn.00477760
push 0x41d5be
push 0x4e2b
push edi
call fcn.00477760
push esi
push 0x2711
push edi
call fcn.00477760
push edi
call fcn.00477750
add esp, 0x28
test eax, eax
jne 0x41d56f
xor ebx, ebx
mov dword [esi + 4], 0xfffffffe
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x41d584
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x18]
call fcn.0049c520
push edi
call fcn.004776b0
pop ecx
cmp dword [esi + 4], 0xfffffffe
je 0x41d5a7
cmp dword [esi + 4], 0xfffffffc
je 0x41d5a7
mov dword [esi + 4], 0xfffffffd
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x41d6e5
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x4ff5b8], 0
jne 0x41d711
push 0x41d634
push 0x10
push 0x2c
mov dword [0x4ff5b8], edi
call fcn.0042e005
mov dword [0x4ff5b4], eax
cmp word [0x4ff5ac], 0
jne 0x41d7ad
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x41d73c
mov word [0x4ff5ac], di
jmp 0x41d744
xor eax, eax
mov word [0x4ff5ac], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4ff5c8], eax
test eax, eax
je 0x41d7ad
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a46c8
push eax
call esi
push 0x4a46d4
push dword [0x4ff5c8]
mov dword [0x4ff5bc], eax
call esi
push str.getnameinfo
push dword [0x4ff5c8]
mov dword [0x4ff5c0], eax
call esi
cmp dword [0x4ff5bc], 0
mov dword [0x4ff5c4], eax
pop esi
je 0x41d7ad
cmp dword [0x4ff5c0], 0
je 0x41d7ad
test eax, eax
je 0x41d7ad
mov dword [0x4ff5b0], edi
movsx eax, word [0x4ff5ac]
pop edi
add esp, 0x190
ret
Function at 0x421d1e
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x5005b8]
call fcn.0042df32
mov ebx, eax
test ebx, ebx
je 0x421d82
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x421d47
push dword [esp + 0xc]
push ebx
call eax
jmp 0x421d82
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0042ebc0
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0042ec60
pop edi
pop esi
pop ebx
ret 8

Function at 0x422c6f
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x422dc7
mov eax, dword [esp + 0x20]
dec eax
je 0x422daa
dec eax
jne 0x422dc7
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.00422c28
pop ecx
test eax, eax
je 0x422cdb
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x422d08
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x422d0d
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x422d0d
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x422da6
dec ebx
je 0x422da2
dec ebx
je 0x422d81
dec ebx
je 0x422d3b
sub ebx, 4
jne 0x422dc7
test edi, edi
jne 0x422dc7
push 0x6e
jmp 0x422dc6
sub edi, 0
je 0x422d73
dec edi
je 0x422d65
dec edi
je 0x422d57
dec edi
jne 0x422dc7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x422dc7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x422dc7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x422dc7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x422dc7
sub edi, 0
je 0x422d9e
dec edi
je 0x422d9a
dec edi
jne 0x422dc7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x422dc7
push 0x3c
jmp 0x422dc6
push 0x32
jmp 0x422dc6
push 0x14
jmp 0x422dc6
push 5
jmp 0x422dc6
mov eax, dword [esp + 0x18]
test eax, eax
je 0x422dc4
cmp eax, 0xa
je 0x422dc0
cmp eax, 0x5a
jne 0x422dc7
push 0x28
jmp 0x422dc6
push 0x1e
jmp 0x422dc6
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x423f9a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x424014
push 9
call esi
test al, al
jns 0x424014
push 0x11
call esi
test al, al
js 0x424014
push 0x10
call esi
test al, al
js 0x424014
push 0x12
call esi
test al, al
js 0x424014
push 5
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [ebp - 0x10]
push str.Rich
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x424014
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x424014
xor eax, eax
jmp 0x424095
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x42403c
push 0x11
call esi
test al, al
js 0x424034
push 0x10
call esi
test al, al
js 0x424034
push 0x12
call esi
test al, al
jns 0x42403c
push 1
push edi
call fcn.0042409d
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x424052
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x424092
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x424092
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x424092
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x424092
lea eax, [esi - 1]
push eax
push dword [0x5005c8]
call fcn.0042df32
test eax, eax
je 0x424092
mov eax, dword [eax + 8]
jmp 0x424094
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x424427
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x42449f
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x424480
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x42447d
cmp ecx, 0x5c
je 0x42447d
cmp ecx, 0x2f
jne 0x42448a
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x42446a
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4244a1
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4244a7
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4244d0
test byte [esp + 8], 2
je 0x4244c4
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4244d2
xor eax, eax
ret 8