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

Disassembly:
push ebp
mov edx, 0x8e
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41966f
call fcn.00430620
mov edx, dword [esp + 0x240]
lea ecx, [esp]
call fcn.0041b000
mov dword [0x4b7001], 0x200006b
mov dword [0x4b7001], 0x200006f
lea ebp, [esp + 8]
mov dword [ebp], 0x22c
mov dword [0x4b7001], 0x2000071
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 4], eax
mov dword [0x4b7001], 0x2000072
cmp dword [esp + 4], 0
je 0x419829
mov dword [0x4b7001], 0x2000073
lea ebp, [esp + 8]
mov dword [ebp], 0x22c
mov dword [0x4b7001], 0x2000074
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Process32FirstW
and eax, eax
je 0x41980c
mov dword [0x4b7001], 0x2000075
mov dword [0x4b7001], 0x2000076
push edx
call fcn.00430480
pop edx
push eax
push edx
call fcn.00430480
pop edx
push eax
lea ebp, [esp + 0x10]
lea eax, [ebp + 0x24]
push eax
call fcn.0042f530
lea eax, [esp + 0x238]
push eax
call fcn.00430520
mov dword [0x4b7001], 0x2000078
push edx
call fcn.00430480
pop edx
push eax
push edx
call fcn.00430480
pop edx
push eax
push dword [esp + 0x23c]
call fcn.0042e870
call fcn.004305b0
push edx
call fcn.00430480
pop edx
push eax
push edx
call fcn.00430480
pop edx
push eax
push dword [esp + 0xc]
call fcn.0042e870
call fcn.0041b2e0
mov edx, eax
pop ecx
push ecx
call fcn.0041b2e0
mov ecx, eax
call fcn.0041b260
je 0x4197d5
mov dword [0x4b7001], 0x2000079
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b7001], 0x200007a
lea ebp, [esp + 8]
mov eax, dword [ebp + 8]
jmp 0x41984d
mov dword [0x4b7001], 0x200007b
mov dword [0x4b7001], 0x200007c
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Process32NextW
and eax, eax
je 0x4197ff
xor eax, eax
jmp 0x419804
mov eax, 1
and eax, eax
je 0x419716
mov dword [0x4b7001], 0x200007d
mov dword [0x4b7001], 0x200007e
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b7001], 0x200007f
mov dword [0x4b7001], 0x2000081
xor eax, eax
jmp 0x41984d
push dword [esp + 0x234]
call fcn.00430680
push dword [esp]
call fcn.00430680
add esp, 0x238
pop ebp
ret 4
Function at 0x41ba71
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x5021f8], 0
push ebx
push esi
mov esi, 0x502200
jne 0x41ba9d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x502218], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x5021f8], 1
push dword [0x502218]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x41bb3a
push 0x14
push 8
push dword [0x5015d8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x41bb64
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5021fc]
test eax, eax
je 0x41badf
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x5021fc], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41bb69
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x502218]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x5015d8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41bb64
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x41c414
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
push dword [0x502274]
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x18], ebp
call fcn.0042fbe2
mov esi, eax
test esi, esi
je 0x41c5a9
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ebp
je 0x41c4be
push ebx
call fcn.0041c857
jmp 0x41c456
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], 0
jne 0x41c44e
push dword [esi + 0x14]
call fcn.0041c8f6
mov eax, dword [esp + 0x1c]
push ebp
push esi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.0041c39f
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push 0x41c5c3
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41c49b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0xffffffff
je 0x41c4ac
push dword [esp + 0x20]
push ebx
call fcn.0041c717
mov eax, dword [esi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
jmp 0x41c55e
test byte [esp + 0x1c], 1
je 0x41c4cd
mov dword [esp + 0x10], 1
test byte [esp + 0x1c], 2
je 0x41c568
push esi
call fcn.0041c336
lea eax, [esi + 4]
push 0x10
push eax
call fcn.004303de
pop ecx
pop ecx
mov ecx, dword [0x5022c4]
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 0x41c5a9
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 0x41c549
push edi
push dword [esp + 0x24]
push ebx
call fcn.0041c677
jmp 0x41c556
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 0x41c5a9
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 0x41c58a
push dword [esp + 0x20]
push ebx
call fcn.0041c717
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 0x41c5a9
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 0x41caed
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x41cb42
push dword [esp + 0x10]
push 0x41ca6c
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x50227c]
test esi, esi
je 0x41cb9b
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x41cb3a
cmp byte [esi + 0x10], 0
je 0x41cb3a
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 0x41cb16
jmp 0x41cb9b
mov esi, dword [0x50227c]
test esi, esi
je 0x41cb9b
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 0x41cb94
cmp byte [esi + 0x11], 0
je 0x41cb70
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x41cb87
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 0x50227c
call fcn.0043039e
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x41cb4f
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41d253
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x5032b8]
call fcn.0042fa71
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 0x41d353
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x41d2a9
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x41d2a1
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x41d2e9
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x41d32b
push 0x22
pop edx
cmp cx, dx
je 0x41d2db
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41d2cb
xor ecx, ecx
cmp word [eax], cx
je 0x41d32b
mov ecx, eax
add eax, 2
jmp 0x41d32d
test dx, dx
je 0x41d333
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x41d2db
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x41d321
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x41d32b
cmp cx, dx
je 0x41d31e
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41d30e
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x41d2f3
jmp 0x41d2db
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x41d335
xor edx, edx
cmp dword [ebp], ebx
jne 0x41d33e
test edi, edi
jne 0x41d35b
test edx, edx
je 0x41d343
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x41d297
test edi, edi
jne 0x41d36c
mov eax, ebx
jmp 0x41d370
test esi, esi
je 0x41d36c
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x41d370
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x41d4e7
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 0x41d596
cmp dword [esp + 0x24], 2
je 0x41d596
push 0x2000
push edi
push dword [0x5015d8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x41d569
cmp dword [esp + 0x18], 2
jne 0x41d581
test ebx, ebx
jne 0x41d552
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x5015d8]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x41d581
cmp ax, 0xd
je 0x41d569
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 0x41d529
push dword [esp + 0x28]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0049e110
jmp 0x41d61c
push eax
push 0
push dword [0x5015d8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x41d5e8
cmp dword [esp + 0x18], 1
jne 0x41d600
test ebx, ebx
jne 0x41d5d7
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x5015d8]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x41d600
cmp al, 0xd
je 0x41d5e8
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 0x41d5af
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x28]
mov byte [esi + edi], 0
push esi
jne 0x41d617
call fcn.0049e160
jmp 0x41d61c
call fcn.0049e310
push esi
push 0
push dword [0x5015d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

Function at 0x41d900
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x502294], 0
jne 0x41d90e
call fcn.0041d8a0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x502298]
call esi
test eax, eax
jne 0x41d931
call fcn.0041d8a0
push dword [0x502298]
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 0x41d940
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 0x41d9a0
mov ebx, 0x10
test edi, edi
jns 0x41d9a9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x41d972
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41d9c0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x502294], 0
jne 0x41d9ce
call fcn.0041d8a0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x502298]
call esi
mov edx, eax
test edx, edx
jne 0x41d9f5
call fcn.0041d8a0
push dword [0x502298]
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 0x41da28
mov ebx, 0x10
test esi, esi
jns 0x41da31
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x41da40
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41ee7a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x41ef18
cmp dword [ebp + 0xc], edi
je 0x41ef18
push esi
push 0x30
push 8
push dword [0x5015d8]
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
push dword [ebp + 0x14]
mov dword [esi + 0xc], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0x28], eax
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
test al, 1
je 0x41ef07
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x41f08d
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41eeff
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x41ef17
push esi
call fcn.0041f0de
jmp 0x41ef16
push esi
call fcn.0041ef31
push esi
mov edi, eax
call fcn.0041f0de
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0x10
Function at 0x41ef31
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov eax, dword [edi + 0xc]
push dword [edi + 8]
mov dword [esp + 0x20], eax
call fcn.0049e1e0
push dword [edi + 0x28]
mov ebp, eax
mov dword [esp + 0x14], ebp
call fcn.0049e1e0
mov dword [esp + 0x14], eax
call fcn.00479380
mov esi, eax
test esi, esi
je 0x41f062
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41f057
test byte [edi + 0x1c], 2
mov dword [edi + 0x10], ebp
jne 0x41efa8
push 1
push 0x34
push esi
call fcn.00479410
add esp, 0xc
mov eax, dword [0x50231c]
test eax, eax
je 0x41efc0
push eax
push 0x2714
push esi
call fcn.00479410
add esp, 0xc
mov eax, dword [0x502320]
test eax, eax
je 0x41eff1
cmp dword [0x502324], ebx
je 0x41eff1
push eax
push 0x27bf
push esi
call fcn.00479410
push dword [0x502324]
push 0x27c0
push esi
call fcn.00479410
add esp, 0x18
push dword [esp + 0x10]
push 0x2712
push esi
call fcn.00479410
push dword [esp + 0x20]
push 0x2722
push esi
call fcn.00479410
push 0x41f09c
push 0x4e2b
push esi
call fcn.00479410
push edi
push 0x2711
push esi
call fcn.00479410
push esi
call fcn.00479400
add esp, 0x34
test eax, eax
jne 0x41f042
xor ebx, ebx
mov dword [edi + 4], 0xfffffffe
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x41f057
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.00479360
mov ebp, dword [esp + 0x14]
pop ecx
cmp dword [edi + 4], 0xfffffffe
je 0x41f075
cmp dword [edi + 4], 0xfffffffc
je 0x41f075
mov dword [edi + 4], 0xfffffffd
push ebp
call fcn.0049e1d0
push dword [esp + 0x14]
call fcn.0049e1d0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret

Function at 0x41f1c3
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x502334], 0
jne 0x41f1ef
push 0x41f112
push 0x10
push 0x2c
mov dword [0x502334], edi
call fcn.0042fcb5
mov dword [0x502330], eax
cmp word [0x502328], 0
jne 0x41f28b
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x41f21a
mov word [0x502328], di
jmp 0x41f222
xor eax, eax
mov word [0x502328], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x502344], eax
test eax, eax
je 0x41f28b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a6710
push eax
call esi
push 0x4a671c
push dword [0x502344]
mov dword [0x502338], eax
call esi
push str.getnameinfo
push dword [0x502344]
mov dword [0x50233c], eax
call esi
cmp dword [0x502338], 0
mov dword [0x502340], eax
pop esi
je 0x41f28b
cmp dword [0x50233c], 0
je 0x41f28b
test eax, eax
je 0x41f28b
mov dword [0x50232c], edi
movsx eax, word [0x502328]
pop edi
add esp, 0x190
ret
Function at 0x423836
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x50333c]
call fcn.0042fbe2
mov ebx, eax
test ebx, ebx
je 0x42389a
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x42385f
push dword [esp + 0xc]
push ebx
call eax
jmp 0x42389a
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.00430870
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.00430910
pop edi
pop esi
pop ebx
ret 8

Function at 0x424787
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 0x4248df
mov eax, dword [esp + 0x20]
dec eax
je 0x4248c2
dec eax
jne 0x4248df
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.00424740
pop ecx
test eax, eax
je 0x4247f3
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x424820
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x424825
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x424825
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x4248be
dec ebx
je 0x4248ba
dec ebx
je 0x424899
dec ebx
je 0x424853
sub ebx, 4
jne 0x4248df
test edi, edi
jne 0x4248df
push 0x6e
jmp 0x4248de
sub edi, 0
je 0x42488b
dec edi
je 0x42487d
dec edi
je 0x42486f
dec edi
jne 0x4248df
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x4248df
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x4248df
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x4248df
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x4248df
sub edi, 0
je 0x4248b6
dec edi
je 0x4248b2
dec edi
jne 0x4248df
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x4248df
push 0x3c
jmp 0x4248de
push 0x32
jmp 0x4248de
push 0x14
jmp 0x4248de
push 5
jmp 0x4248de
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4248dc
cmp eax, 0xa
je 0x4248d8
cmp eax, 0x5a
jne 0x4248df
push 0x28
jmp 0x4248de
push 0x1e
jmp 0x4248de
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x425bb7
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 0x425c31
push 9
call esi
test al, al
jns 0x425c31
push 0x11
call esi
test al, al
js 0x425c31
push 0x10
call esi
test al, al
js 0x425c31
push 0x12
call esi
test al, al
js 0x425c31
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 0x425c31
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x425c31
xor eax, eax
jmp 0x425cb2
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x425c59
push 0x11
call esi
test al, al
js 0x425c51
push 0x10
call esi
test al, al
js 0x425c51
push 0x12
call esi
test al, al
jns 0x425c59
push 1
push edi
call fcn.00425cba
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x425c6f
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x425caf
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x425caf
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x425caf
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x425caf
lea eax, [esi - 1]
push eax
push dword [0x50334c]
call fcn.0042fbe2
test eax, eax
je 0x425caf
mov eax, dword [eax + 8]
jmp 0x425cb1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x425e4b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x425ec3
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 0x425ea4
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x425ea1
cmp ecx, 0x5c
je 0x425ea1
cmp ecx, 0x2f
jne 0x425eae
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x425e8e
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x425ec5
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x425ecb
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x425ef4
test byte [esp + 8], 2
je 0x425ee8
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 0x425ef6
xor eax, eax
ret 8