joyce8/EMBER2024-capa huggingface dataset:
Function at 0x549500
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [0x599100]
mov esi, ecx
test eax, eax
je 0x54952d
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x549545
cmp dword [eax + 4], 0
mov ebx, eax
je 0x549545
add ebx, 8
jmp 0x549618
push 0x599100
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x54951d
mov eax, dword [0x599100]
test eax, eax
je 0x5495fa
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x549616
mov edi, eax
test eax, eax
jne 0x5495bd
mov eax, dword [0x6074b4]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
jne 0x54958b
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x54962e
mov dword [0x6320d0], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x54962e
mov dword [eax], 0x599100
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x599100]
test eax, eax
je 0x54961f
dec eax
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
test esi, esi
je 0x5495d2
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x5495d4
mov eax, dword [esi + 4]
jmp 0x5495d4
xor eax, eax
mov ecx, dword [edi + 8]
cmp dword [edi + 4], 0
lea ebx, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], eax
je 0x549618
test ecx, ecx
je 0x549618
lock dec dword [ecx]
jne 0x549618
call fcn.005157f0
jmp 0x549618
push 0x599100
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x549562
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x599100
call fcn.00541e40
add esp, 4
jmp 0x5495b6
push 0xc
push 4
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x549640
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x599110]
test eax, eax
je 0x549755
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x549670
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x549750
mov eax, dword [0x599110]
test eax, eax
je 0x549776
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x549792
mov esi, eax
test eax, eax
jne 0x5496f3
mov eax, dword [0x6074b4]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
jne 0x5496b6
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5497ae
mov dword [0x6320d0], eax
push 0x20
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x5497ae
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x599110
mov esi, eax
mov eax, dword [0x599110]
test eax, eax
je 0x54979c
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov eax, dword [ebp + 8]
test eax, eax
je 0x549712
mov ecx, dword [eax]
movups xmm0, xmmword [eax + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
cmp ecx, 1
je 0x54973f
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x549731
movaps xmm0, xmmword [esp]
jmp 0x54973f
lea ecx, [esp + 0x10]
call fcn.00541420
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
jmp 0x549794
push 0x599110
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x549663
jmp 0x549670
push 0x599110
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x54968d
xor esi, esi
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x599110
call fcn.00541e40
add esp, 4
jmp 0x5496ec
push 0x20
push 8
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x54d6b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xffffffc0
sub esp, 0x180
movaps xmm0, xmmword [0x601980]
mov edi, dword [0x6074b4]
mov esi, dword [0x6074a0]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0xc0], 0
mov byte [esp + 0xc4], 0
mov dword [esp + 0xc8], 4
mov dword [esp + 0xcc], 0
movaps xmmword [esp + 0xd0], xmm0
mov byte [esp + 0xe0], 1
mov dword [esp + 0x100], 1
mov dword [esp + 0x104], 1
mov byte [esp + 0x108], 0
movzx eax, byte [edi]
mov eax, dword [esi]
test eax, eax
jne 0x54d767
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x54d8c2
mov dword [esi], eax
push 0x140
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x54d8c2
mov ecx, eax
and ecx, 0xffffffc0
mov dword [ecx + 0x3c], eax
add ecx, 0x40
lea ebx, [esp + 0x40]
push 0x100
push ebx
mov dword [esp + 0x44], ecx
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0x54d7ab
mov ebx, dword [ecx + 4]
jmp 0x54d7cd
xorps xmm0, xmm0
mov dword [esp + 0x60], 0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
push ebx
call sub.KERNEL32.dll_GetSystemInfo
mov ebx, dword [esp + 0x54]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x18]
movsd xmm0, qword [ecx + 0x10]
mov dword [esp + 0x58], eax
movsd qword [esp + 0x50], xmm0
movsd xmm0, qword [ecx + 8]
mov eax, dword [esp + 0x3c]
movsd qword [esp + 0x48], xmm0
mov dword [esp + 0x5c], 0
mov byte [esp + 0x60], 0
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0
mov byte [esp + 0x70], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], 0
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], 1
movzx eax, byte [edi]
mov eax, dword [esi]
test eax, eax
jne 0x54d86d
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x54d8d3
mov dword [esi], eax
push 0x4c
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x54d8d3
lea esi, [esp + 0x40]
mov ecx, 0x13
mov edi, eax
inc ebx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
nop dword [eax + eax]
dec ebx
je 0x54d8a1
lock inc dword [edi]
jle 0x54d8be
mov ecx, edi
call fcn.0054dc10
jmp 0x54d890
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x3c]
mov dword [ecx], 1
mov dword [ecx + 4], eax
mov dword [ecx + 8], edi
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
push 0x100
push 0x40
call fcn.0041a8c0
add esp, 8
jmp 0x54d8df
push 0x4c
push 4
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x556bb0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
xorps xmm0, xmm0
mov edi, ecx
lea esi, [ebp - 0x30]
mov dword [ebp - 0x10], edx
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
push 2
push 0x20
push esi
push 0
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x556bed
mov ebx, eax
push 0x20
push esi
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x556c2f
movups xmm0, xmmword [ebp - 0x30]
movups xmm1, xmmword [ebp - 0x20]
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
movups xmmword [edi], xmm0
xorps xmm0, xmm0
movups xmmword [edi + 0x10], xmm1
movups xmmword [edi + 0x20], xmm0
mov edx, dword [ebp + 8]
add eax, 0xffffff00
adc ecx, 0xffffffff
mov dword [edi + 0x40], edx
mov edx, dword [ebp - 0x10]
mov dword [edi + 0x3c], ecx
mov ecx, edi
mov dword [edi + 0x38], eax
call fcn.00557020
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x6074b4]
mov esi, dword [0x6074a0]
movzx eax, byte [eax]
mov eax, dword [esi]
test eax, eax
jne 0x556c4e
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x556c76
mov dword [esi], eax
push 4
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x556c76
add ebx, 0x80000000
mov dword [eax], ebx
push eax
push 0
push dword [esi]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
jmp 0x556c09
push 4
push 4
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x55e940
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0
call sub.advapi32.dll_GetUserNameW
test eax, eax
jne 0x55ea85
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x55e9c8
xor ebx, ebx
cmp esi, 0x40000000
setb al
jae 0x55eaa9
mov bl, al
lea ecx, [esi + esi]
add ebx, ebx
test ecx, ecx
mov dword [ebp - 0x14], ecx
js 0x55eab0
je 0x55e9cf
mov eax, dword [0x6074b4]
mov edi, dword [0x6074a0]
movzx eax, byte [eax]
mov eax, dword [edi]
test eax, eax
jne 0x55e9b2
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x55ea9b
mov dword [edi], eax
push dword [ebp - 0x14]
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov edi, eax
test edi, edi
jne 0x55e9d9
jmp 0x55ea9b
mov edi, 2
jmp 0x55e9d9
mov edi, ebx
test edi, edi
je 0x55ea9b
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x10]
push eax
push edi
call sub.advapi32.dll_GetUserNameW
mov ebx, dword [ebp + 8]
test eax, eax
je 0x55ea11
mov eax, dword [ebp - 0x10]
xor ecx, ecx
sub eax, 1
cmovb eax, ecx
push eax
push edi
push ebx
call fcn.0052f440
add esp, 0xc
test esi, esi
je 0x55ea7b
mov eax, dword [0x6074a0]
push edi
push 0
jmp 0x55ea74
mov eax, dword [0x6074b4]
movzx eax, byte [eax]
mov eax, dword [0x6074a0]
mov eax, dword [eax]
test eax, eax
jne 0x55ea39
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x55eab7
mov ecx, dword [0x6074a0]
mov dword [ecx], eax
push 7
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x55eab7
test esi, esi
mov dword [eax + 3], 0x6e776f6e
mov dword [eax], 0x6e6b6e75
mov dword [ebx], eax
mov dword [ebx + 4], 7
mov dword [ebx + 8], 7
mov byte [ebx + 0xc], 1
je 0x55ea7b
push edi
push 0
mov eax, dword [0x6074a0]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x6038b4
push 0x19
push 0x60383f
call fcn.004251d0
add esp, 0xc
ud2
push dword [ebp - 0x14]
push ebx
call fcn.0041a8c0
add esp, 8
ud2
call fcn.0041a880
ud2
call fcn.0041a880
ud2
push 7
push 1
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x577ce0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov edx, dword [eax + 8]
mov ecx, esi
call fcn.005810a0
mov dword [ebp - 0x10], edx
mov edi, eax
push eax
call sub.KERNEL32.dll_GetDriveTypeW
mov ebx, eax
cmp eax, 7
mov dword [ebp - 0x14], eax
jb 0x577d4a
lea eax, [ebp - 0x14]
mov dword [ebp - 0x34], 0x6054a4
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0x42bbb0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 1
lea eax, [ebp - 0x34]
push eax
call fcn.0044fbf0
add esp, 4
xor ebx, ebx
cmp dword [ebp - 0x10], 0
mov word [edi], 0
je 0x577d64
mov eax, dword [0x6074a0]
push edi
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x577d7c
mov eax, dword [0x6074a0]
push esi
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, ebx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41b2d2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00413428
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41b30a
xor eax, eax
jmp 0x41b336
cmp esi, dword [ebp - 4]
je 0x41b333
cmp dword [ebp + 0xc], 0
je 0x41b333
push dword [edi + 0x9c]
call fcn.0041aee0
push dword [edi + 0x9c]
mov esi, eax
call fcn.0040e2d6
pop ecx
pop ecx
cmp esi, eax
je 0x41b306
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x282702f9
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3a0c438b
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401300
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x218
mov eax, dword [0x40a004]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
push edi
mov edi, dword [0x40bf90]
xor ebx, ebx
push 0x20a
lea eax, [esp + 0x18]
push ebx
push eax
mov dword [esp + 0x18], ebx
call fcn.004057a0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.WRD2431.tmp
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401411
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push esi
call ebp
push eax
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x401409
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x4013fa
push 0
push esi
call ebp
push 4
mov dword [edi + 0x14], eax
push 0x3000
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [edi + 0x10], eax
test eax, eax
je 0x4013f3
mov edx, dword [edi + 0x14]
push edx
push ebx
push eax
call fcn.00403c70
add esp, 0xc
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov ecx, dword [esp + 0x220]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040154d
add esp, 0x218
ret

Function at 0x401430
Capabilities:
Set current directory

Disassembly:
sub esp, 0x10c
mov eax, dword [0x40a004]
xor eax, esp
mov dword [esp + 0x108], eax
push 0x105
lea eax, [esp + 4]
push 0
push eax
call fcn.004057a0
add esp, 0xc
push 0x105
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401470
sub eax, edx
add eax, 0xffffffff
js 0x401490
mov cl, 0x5c
cmp byte [esp + eax], cl
je 0x40148c
sub eax, 1
jns 0x401480
jmp 0x401490
mov byte [esp + eax], 0
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0040154d
add esp, 0x10c
ret

Function at 0x401702
Capabilities:
Encode data using xor

Disassembly:
xchg dh, dh
mov dl, 0x91
xchg edi, edx
jo fcn.0040170c
inc edx
Function at 0x4124ab
Capabilities:
Get graphical window text

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
call fcn.00420490
mov edx, dword [esp + 0x14]
lea ecx, [esp]
call fcn.00414010
mov dword [section..data], 0x25
mov dword [section..data], 0x28
call fcn.00420310
push eax
push eax
push 0x64
call fcn.00414490
lea ecx, [esp + 8]
pop edx
call fcn.00414000
mov dword [section..data], 0x2a
push dword [esp]
push 0
call sub.USER32.dll_FindWindowA
mov dword [esp + 8], eax
mov dword [section..data], 0x2b
push 0x64
mov eax, dword [esp + 8]
push eax
push dword [esp + 0x10]
call sub.USER32.dll_GetWindowTextA
mov dword [section..data], 0x2d
cmp dword [esp + 8], 0
je 0x4125c8
mov dword [section..data], 0x2e
push 0
call sub.USER32.dll_MessageBeep
mov dword [section..data], 0x2f
push 0x43
push 0
push 0
push 0
push 0
push 0xffffffff
push dword [esp + 0x20]
call sub.USER32.dll_SetWindowPos
mov dword [section..data], 0x30
push 0x3e8
call sub.KERNEL32.dll_Sleep
mov dword [section..data], 0x31
push 0x43
push 0
push 0
push 0
push 0
push 0xfffffffe
push dword [esp + 0x20]
call sub.USER32.dll_SetWindowPos
mov dword [section..data], 0x32
mov dword [section..data], 0x34
mov eax, dword [esp + 8]
jmp 0x4125ee
push dword [esp]
call fcn.00420530
push dword [esp + 4]
call fcn.00420530
add esp, 0xc
pop ebx
ret 4
Function at 0x417026
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x41703e
push dword [esp + 4]
push 0x416fbf
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x41707b
push esi
mov esi, dword [0x432fb8]
test esi, esi
je 0x41707a
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x417072
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x432fb8
call fcn.0042026b
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x41704b
pop edi
pop ebx
pop esi
ret 4
Function at 0x41daf5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 9
call esi
test al, al
jns 0x41db63
push 0x11
call esi
test al, al
js 0x41db63
push 0x10
call esi
test al, al
js 0x41db63
push 0x12
call esi
test al, al
js 0x41db63
mov esi, dword [sym.imp.USER32.dll_GetFocus]
push 5
lea eax, [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 4
lea eax, [ebp - 8]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x41db63
push eax
push eax
push 0x44e
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test ax, 0x800
je 0x41db87
push str.PB_WindowID
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x41db87
dec eax
push eax
push dword [0x473b14]
call fcn.0041fefb
mov eax, dword [eax + 8]
jmp 0x41db89
xor eax, eax
pop esi
leave
ret 4

Function at 0x41de30
Capabilities:
Copy file

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x41de4f
cmp dword [esp + 8], eax
je 0x41de4f
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x41de51
xor eax, eax
ret 8

Function at 0x41dfdd
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
cmp dword [0x433550], ebx
jne 0x41e00b
push fcn.0041dfaa
push 0x10
push 0x148
call fcn.0041ffa7
mov dword [0x433550], eax
mov esi, dword [ebp + 0xc]
cmp esi, ebx
jne 0x41e017
mov esi, 0x42200b
push 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call sub.MSVCRT.dll_strncpy
push esi
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp eax, ebx
je 0x41e053
cmp byte [eax + esi - 1], 0x5c
je 0x41e053
lea eax, [ebp - 0x108]
push 0x42259c
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x41e05e
cmp byte [eax], bl
jne 0x41e063
mov eax, 0x422598
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push dword [ebp + 8]
push dword [0x433550]
call fcn.0041fe64
mov esi, eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x41e09f
mov dword [esi + 4], ebx
jmp 0x41e0b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41e0b5
mov dword [esi + 4], 1
mov edi, esi
jmp 0x41e0c9
cmp dword [ebp + 8], 0xffffffff
jne 0x41e0c7
push esi
push dword [0x433550]
call fcn.0041ff3f
mov dword [esi], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41e298
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x41e2a6
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 8
Function at 0x41e2a9
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
test eax, eax
push edi
mov edi, esi
je 0x41e3ba
cmp byte [eax], 0
je 0x41e3ba
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
cmp eax, 2
lea ecx, [ebp + eax - 0x109]
je 0x41e303
cmp eax, 3
jne 0x41e340
cmp byte [ebp - 0x107], 0x3a
jne 0x41e340
cmp eax, 2
jne 0x41e324
lea eax, [ebp - 0x108]
push 0x42259c
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 0x41e3ba
jmp 0x41e3b4
mov byte [ecx], 0
dec ecx
cmp byte [ecx], 0x5c
je 0x41e33c
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x41e38c
test byte [ebp - 0x248], 0x10
je 0x41e36f
push 0xfffffffffffffffe
pop edi
or esi, 0xffffffff
jmp 0x41e383
mov ecx, dword [ebp - 0x228]
mov esi, dword [ebp - 0x22c]
xor edi, edi
xor edx, edx
or edi, ecx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41e3ba
cmp byte [ebp - 0x108], 0x5c
jne 0x41e3ba
cmp byte [ebp - 0x107], 0x5c
jne 0x41e3ba
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41e3ba
test al, 0x10
je 0x41e3ba
push 0xfffffffffffffffe
or esi, 0xffffffff
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4

Function at 0x41e420
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x41e455
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 0x41e6e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x473b28]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
call fcn.0041fefb
mov esi, eax
test esi, esi
je 0x41e764
cmp dword [esi + 4], 0
je 0x41e733
push 1
lea edx, [esp + 8]
push edx
push esi
call fcn.0041edd0
test eax, eax
je 0x41e727
add dword [esi + 0xc], 1
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
mov edx, dword [esi]
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e76f
cmp dword [esp + 8], 0
je 0x41e76f
mov eax, dword [esi]
push 1
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4