joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f5d4
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
test byte [ebp + 0x18], 2
mov eax, 0x8404f300
je 0x40f5e7
mov eax, 0x8444f300
test byte [ebp + 0x18], 4
je 0x40f5f2
or eax, 0x800000
test byte [ebp + 0x18], 1
mov ecx, 0x4040b0
jne 0x40f602
mov ecx, 0x4040b8
push esi
push edi
xor esi, esi
push esi
push eax
push section..data
push esi
push 0x4040a4
push dword [ebp + 0xc]
push ecx
push dword [ebp + 8]
call dword [0x416b90]
mov edi, eax
cmp edi, esi
je 0x40f670
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push esi
push edi
call dword [0x416b94]
test eax, eax
je 0x40f669
push esi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x18]
push eax
push 0x20000013
push edi
mov dword [ebp + 0x18], esi
mov dword [ebp + 0xc], 4
call dword [0x416ba4]
test eax, eax
je 0x40f669
cmp dword [ebp + 0x18], 0xc8
jne 0x40f669
mov eax, edi
jmp 0x40f672
push edi
call dword [0x416b84]
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x14

Function at 0x40fd06
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x418020]
cmp eax, 0x270
jl 0x40fc40
push esi
push edi
xor edx, edx
mov esi, 0x7fffffff
mov ecx, edx
shl ecx, 2
mov eax, dword [ecx + 0x41765c]
xor eax, dword [ecx + 0x417658]
and eax, esi
xor eax, dword [ecx + 0x417658]
mov edi, eax
shr eax, 1
and edi, 1
xor eax, dword [edi*4 + 0x4164f8]
xor eax, dword [ecx + 0x417c8c]
inc edx
cmp edx, 0xe3
mov dword [ecx + 0x417658], eax
jl 0x40fb9a
cmp edx, 0x26f
jge 0x40fc12
lea ecx, [edx*4 + 0x417658]
mov eax, dword [ecx]
lea edx, [ecx + 4]
xor eax, dword [edx]
and eax, esi
xor eax, dword [ecx]
mov edi, eax
and edi, 1
mov edi, dword [edi*4 + 0x4164f8]
xor edi, dword [edx - 0x390]
shr eax, 1
xor edi, eax
mov dword [ecx], edi
mov ecx, edx
cmp ecx, 0x418014
jl 0x40fbe5
mov ecx, dword [0x418014]
mov eax, dword [0x417658]
xor eax, ecx
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x4164f8]
pop edi
xor eax, dword [0x417c88]
pop esi
mov dword [0x418014], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x417658]
inc eax
mov dword [0x418020], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
call dword [0x416eec]
cmp eax, dword [0x417024]
je 0x40fd4d
xor ecx, ecx
mov dword [0x417024], eax
mov dword [0x417658], eax
inc ecx
mov eax, 0x417658
push esi
mov edx, dword [eax]
mov esi, edx
shr esi, 0x1e
xor esi, edx
imul esi, esi, 0x6c078965
add esi, ecx
mov dword [eax + 4], esi
add eax, 4
inc ecx
cmp eax, 0x418014
jl 0x40fd27
mov dword [0x418020], ecx
pop esi
jmp 0x40fb81
Function at 0x40fd7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x416786], 0
jne 0x40fdb5
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x40fd99
shr eax, 1
xor eax, 0xedb88320
jmp 0x40fd9b
shr eax, 1
dec edx
jne 0x40fd8c
mov dword [ecx*4 + 0x417028], eax
inc ecx
cmp ecx, 0x100
jb 0x40fd87
mov byte [0x416786], 1
xor ecx, ecx
or eax, 0xffffffff
cmp dword [esp + 8], ecx
jbe 0x40fde1
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x417028]
inc ecx
cmp ecx, dword [esp + 8]
jb 0x40fdc0
not eax
ret 8

Function at 0x40fde6
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov cl, byte [eax + 0x100]
push edi
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x101]
xor edi, edi
mov byte [ebp - 2], cl
cmp dword [ebp + 0xc], edi
jbe 0x40fe41
push ebx
push esi
inc byte [ebp - 1]
movzx ecx, byte [ebp - 1]
lea esi, [ecx + eax]
mov dl, byte [esi]
add byte [ebp - 2], dl
movzx ecx, byte [ebp - 2]
add ecx, eax
mov bl, byte [ecx]
mov byte [esi], bl
mov byte [ecx], dl
movzx esi, byte [esi]
mov ecx, dword [ebp + 8]
movzx edx, dl
add esi, edx
and esi, 0xff
mov dl, byte [esi + eax]
add ecx, edi
xor byte [ecx], dl
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x40fe06
pop esi
pop ebx
mov cl, byte [ebp - 1]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 2]
mov byte [eax + 0x101], cl
pop edi
leave
ret 8

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401070
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit

Function at 0x4010e0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40117b
cmp ax, 9
je 0x401168
cmp ax, 0x20
je 0x401168
mov dword [ebp - 0x6c], 0
xor esi, esi
lea esi, [esi]
cmp ax, 0x5c
je 0x4011d0
cmp ax, 0x22
je 0x4011e0
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40117b
cmp ax, 9
sete dl
cmp ax, 0x20
sete cl
or dl, cl
je 0x401120
test esi, 1
jne 0x401120
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x401168
cmp ax, 0x20
je 0x401168
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x4011f8
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.wWinMain@16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add dword [ebp - 0x6c], 1
jmp 0x40113b
and dword [ebp - 0x6c], 1
jne 0x401134
xor esi, 1
jmp 0x40113b
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x401194
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402000
Capabilities:
Access peb ldr_data

Disassembly:
push 0
push 2
push 0x403068
push 0x403053
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
je 0x40201c
ret
mov edi, edi
mov esi, 0x4020c7
mov edi, esi
push 1
push 0x403086
push 1
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
mov edx, eax
pop ebx
mov ecx, 0x3ab
mov al, byte [esi]
sub al, bl
stosb byte es:[edi], al
inc esi
loop 0x402040
push dword fs:[0x30]
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
je 0x402066
xor eax, eax
mov dword [0x403099], eax
add esp, 4
ret
Function at 0x4028d0
Capabilities:
Terminate process

Disassembly:
call fcn.00401000
push 0x18
push 0x4029f8
call fcn.004032a6
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.MSVCR120_CLR0400.dll___crtGetShowWindowMode]
movzx ebx, ax
mov dword [ebp - 4], esi
mov eax, dword fs:[0x18]
mov edx, dword [eax + 4]
mov edi, esi
mov esi, 0x4150e8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x404373
xor esi, esi
inc esi
cmp dword [0x4150ec], esi
je 0x404385
cmp dword [0x4150ec], 0
jne 0x402a1e
mov dword [0x4150ec], esi
push 0x4029f4
push 0x4029e4
call 0x59b000
pop ecx
pop ecx
test eax, eax
jne 0x404392
cmp dword [0x4150ec], esi
jne 0x402973
push 0x4029e0
push 0x4029cc
call sub.MSVCR120_CLR0400.dll__initterm
pop ecx
pop ecx
mov dword [0x4150ec], 2
test edi, edi
jne 0x402980
xor eax, eax
mov ecx, 0x4150e8
xchg dword [ecx], eax
cmp dword [0x4150f8], 0
jne 0x4043a3
mov eax, dword [sym.imp.MSVCR120_CLR0400.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
nop
nop
nop
nop
nop
nop
mov cl, byte [esi]
cmp cl, 0x20
jbe 0x402a14
cmp cl, 0x22
je 0x4043d1
movzx eax, cl
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll__ismbblead]
pop ecx
test eax, eax
jne 0x4043e2
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4029a0
test cl, cl
je 0x402a29
test edi, edi
je 0x402a29
jmp 0x4029a7
mov dword [0x415244], esi
jmp 0x402950
mov al, byte [esi]
test al, al
je 0x402a39
cmp al, 0x20
ja 0x402a39
inc esi
mov dword [ebp - 0x20], esi
jmp 0x402a29
push ebx
push esi
push 0
push 0x400000
call fcn.00403044
mov dword [0x415060], eax
cmp dword [0x415064], 0
jne 0x40441a
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll_exit]
test ecx, ecx
je 0x402a82
push ecx
call fcn.0040117d
jmp 0x402a82
mov eax, esi
pop esi
pop ebp
ret 4
cmp eax, edx
jne 0x402905
xor esi, esi
inc esi
mov edi, esi
jmp 0x402918
push 0x1f
call sub.MSVCR120_CLR0400.dll__amsg_exit
pop ecx
jmp 0x402950
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x404435
push 0x4150f8
call fcn.0040fdd0
pop ecx
test eax, eax
je 0x40298d
push 0
push 2
push 0
mov esi, dword [0x4150f8]
mov ecx, esi
call dword [0x416268]
call esi
jmp 0x40298d
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
jmp 0x4029b0
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4029c3
cmp dword [0x415244], 0
jne 0x40442e
call dword [sym.imp.MSVCR120_CLR0400.dll__cexit]
mov eax, dword [0x415060]
mov dword [ebp - 4], 0xfffffffe
call fcn.004032ee
ret
Function at 0x4085d5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
push eax
push dword [esp + 0xc]
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x4085f7
mov dword [esp], 1
jmp 0x408607
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x408740
mov ebx, dword [esp + 0x10]
cmp ebx, 1
je 0x40863f
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x40862f
mov dword [esp], 1
jmp 0x40863f
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x408740
mov ebx, dword [esp + 0x14]
cmp ebx, 1
je 0x408677
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x408667
mov dword [esp], 1
jmp 0x408677
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x408740
mov ebx, dword [esp + 0x18]
cmp ebx, 1
je 0x4086af
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x40869f
mov dword [esp], 1
jmp 0x4086af
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x408740
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jne 0x4086db
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x4086db
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x408740
mov ebx, dword [esp + 0x14]
cmp ebx, 1
jne 0x408707
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x408707
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x408740
mov ebx, dword [esp + 0x18]
cmp ebx, 1
jne 0x408733
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x408733
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x408740
xor edx, edx
mov eax, 1
jmp 0x408740
add esp, 4
pop ebx
ret 0x10
Function at 0x40bc3c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40bd20
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [ebp + 0x10], 1
mov ebx, eax
je 0x40bcd6
push edi
push edi
push edi
push dword [ebp + 0xc]
call fcn.0040c7d0
mov ebx, eax
cmp ebx, edi
je 0x40bd15
push dword [ebp + 8]
push dword [0x4a0f94]
call fcn.00413667
mov esi, eax
mov eax, 0x10000
push eax
push ebx
mov dword [esi + 0x18], eax
call fcn.0040c773
push eax
push ebx
call fcn.0040c759
push eax
call fcn.0040c365
mov dword [esi], eax
cmp eax, edi
je 0x40bcce
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], esi
jmp 0x40bd15
push ebx
call fcn.0040c780
jmp 0x40bd15
push ebx
push edi
push dword [0x4a0808]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x40bd15
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push esi
push dword [ebp + 8]
call fcn.0040c34f
push esi
push edi
push dword [0x4a0808]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 0xc
Function at 0x40be65
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
push dword [0x4a0f94]
xor ebx, ebx
call fcn.00413704
mov esi, eax
test esi, esi
je 0x40bfeb
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x40bf17
push dword [ebp + 8]
call fcn.0040c497
jmp 0x40bea8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x40bea0
push dword [esi + 0x14]
call fcn.0040c7a9
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
xor ebx, ebx
push ebx
mov eax, esi
mov byte [esi + 0x1c], 1
call fcn.0040bd3a
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x40bdad
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40beec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40befd
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040c567
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
mov esi, dword [esi]
mov eax, dword [esi]
push 1
push ebx
push ebx
push esi
call dword [eax + 0x30]
jmp 0x40bfeb
test byte [ebp + 0xc], 1
je 0x40bf20
xor ebx, ebx
inc ebx
test byte [ebp + 0xc], 2
je 0x40bfad
push esi
call fcn.0040c004
lea eax, [esi + 4]
push 0x10
push eax
call fcn.00413f30
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov edi, eax
mov eax, dword [0x4a0fa8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x40bfeb
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov byte [edi + 5], bl
mov byte [edi + 4], 1
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40bf91
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040c4c7
jmp 0x40bf9d
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push 0
push 0
push eax
call dword [ecx + 0x30]
jmp 0x40bfeb
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40bfcf
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040c567
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push 0
push 0
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x40bfeb
xor edi, edi
inc edi
mov byte [esi + 0x1c], 1
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40c989
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x40c9d8
push dword [esp + 0x10]
push 0x40c907
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4a0fd8]
cmp esi, ebx
je 0x40ca2c
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40c9d0
cmp byte [esi + 0x10], bl
je 0x40c9d0
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x40c9ad
jmp 0x40ca2c
mov esi, dword [0x4a0fd8]
cmp esi, ebx
je 0x40ca2c
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40ca25
cmp byte [esi + 0x11], bl
je 0x40ca02
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x40ca18
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x4a0fd8
call fcn.00413f5d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x40c9e3
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40d0df
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4a0fe8], 0
jne 0x40d0f1
call fcn.0040d030
push esi
push edi
push dword [0x4a0fe4]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
mov esi, eax
test esi, esi
jne 0x40d116
call fcn.0040d030
push dword [0x4a0fe4]
call edi
mov esi, eax
mov eax, dword [ebp + 8]
push 0x11
lea ecx, [esi + 8]
pop edx
mov edi, eax
imul edi, edi, 0x53a9b4fb
xor eax, eax
inc eax
sub eax, edi
mov dword [ecx + 0x44], eax
imul eax, eax, 0x53a9b4fb
xor edi, edi
inc edi
sub edi, eax
mov eax, edi
mov dword [ecx], eax
add ecx, 4
dec edx
jne 0x40d11f
and dword [esi], edx
push 0x1f
mov dword [esi + 4], 0xa
pop edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, esi
call fcn.0040cfe9
dec edi
pop ecx
pop ecx
jne 0x40d150
pop edi
pop esi
leave
ret 4

Function at 0x40ff85
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x410001
push 9
call esi
test bl, al
je 0x410001
push 0x11
call esi
test bl, al
jne 0x410001
push 0x10
call esi
test bl, al
jne 0x410001
push 0x12
call esi
test bl, al
jne 0x410001
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x410001
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x410001
xor eax, eax
jmp 0x410083
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x41002a
push 0x11
call esi
test bl, al
jne 0x410022
push 0x10
call esi
test bl, al
jne 0x410022
push 0x12
call esi
test bl, al
je 0x41002a
push 1
push ebp
call fcn.0040ff3e
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x410040
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x410080
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x410080
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x410080
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x410080
dec esi
push esi
push dword [0x4a15ec]
call fcn.00413704
test eax, eax
je 0x410080
mov eax, dword [eax + 8]
jmp 0x410082
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x410beb
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x410d23
cmp byte [eax], 0
je 0x410d23
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea ecx, [ebp + eax - 0x109]
cmp eax, 2
je 0x410c45
cmp eax, 3
jne 0x410c85
cmp byte [ebp - 0x107], 0x3a
jne 0x410c85
cmp eax, 2
jne 0x410c66
lea eax, [ebp - 0x108]
push 0x4492bc
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x410d23
jmp 0x410d20
mov byte [ecx], 0
dec ecx
cmp byte [ecx], 0x5c
je 0x410c81
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x410ccf
test byte [ebp - 0x248], 0x10
je 0x410cb4
push 0xfffffffffffffffe
pop edi
or esi, 0xffffffff
jmp 0x410cc6
mov esi, dword [ebp - 0x22c]
xor edi, edi
or edi, dword [ebp - 0x228]
xor edx, edx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x410d23
cmp byte [ebp - 0x108], 0x5c
jne 0x410ce1
cmp byte [ebp - 0x107], 0x5c
je 0x410cf3
cmp byte [ebp - 0x108], 0x2e
jne 0x410d23
cmp byte [ebp - 0x107], 0x2e
jne 0x410d23
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410d0b
test al, 0x10
je 0x410d23
jmp 0x410d1d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x410d23
or esi, 0xffffffff
push 0xfffffffffffffffe
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4

Function at 0x410d30
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x410d65
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x4111c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x411219
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x411218
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4a1610]
push eax
push ecx
call fcn.00413704
test eax, eax
je 0x411214
cmp dword [eax + 4], 0
je 0x411202
push esi
push edi
push eax
call fcn.00411580
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc