joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460ec4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x486be4]
cmp dword [eax + 0x30], 0
je 0x460f6e
cmp dword [ebx + 0x94], 0
jne 0x460f68
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x460e54
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x460f68
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x460f2e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x460f68
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418304
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x460f3d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x461ad0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x461b05
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040472c
jmp 0x461b12
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404690
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x462b64
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x462ba5
mov eax, esi
call fcn.00449308
test al, al
je 0x462ba5
mov eax, dword [ebx + 0x84]
call fcn.00449004
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x462ba5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00449004
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4726d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4726d8
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4728ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4728e0
mov eax, esi
call fcn.0047055c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404690
lea ecx, [ebp - 0x10]
mov edx, 0x4728f4
mov eax, esi
call fcn.0047055c
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404690
lea ecx, [ebp - 0x14]
mov edx, 0x47290c
mov eax, esi
call fcn.0047055c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404690
lea ecx, [ebp - 0x18]
mov edx, 0x472928
mov eax, esi
call fcn.0047055c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404690
lea ecx, [ebp - 0x1c]
mov edx, 0x472944
mov eax, esi
call fcn.0047055c
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404690
lea ecx, [ebp - 0x24]
mov edx, 0x47295c
mov eax, esi
call fcn.0047055c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408924
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408e6c
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x472974
mov eax, esi
call fcn.0047055c
mov eax, dword [ebp - 0x28]
call fcn.0046a034
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x472984
mov eax, esi
call fcn.0047055c
mov eax, dword [ebp - 0x2c]
call fcn.0046a034
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x47299c
mov eax, esi
call fcn.0047055c
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408e6c
inc eax
je 0x47286d
lea ecx, [ebp - 0x34]
mov edx, 0x47299c
mov eax, esi
call fcn.0047055c
mov eax, dword [ebp - 0x34]
call fcn.00408e30
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a3bc
fstp qword [ebp - 0x3c]
wait
call fcn.0040a720
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x472888
lea ecx, [ebp - 0x40]
mov edx, 0x47299c
mov eax, esi
call fcn.0047055c
mov eax, dword [ebp - 0x40]
call fcn.0046a034
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4729ac
mov eax, esi
call fcn.0047055c
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404690
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4728d1
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404660
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404660
ret
Function at 0x47965c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4796b6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0047964c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00468ca0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004688a0
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4796bd
lea eax, [ebp - 4]
call fcn.0040463c
ret
Function at 0x47f040
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00407458
ret

Function at 0x4806bc
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x480670
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret
Function at 0x401599
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x407fc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x407504]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x20c]
push esi
push 0x2b
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40160f
cmp word [ebp - 0x20c], si
je 0x40160f
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
push 0x4077e4
push eax
call fcn.00401414
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004051a4
mov esp, ebp
pop ebp
ret 8

Function at 0x4042bf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x4042d7
mov eax, dword [edi]
mov ebx, dword [ebp + 0x14]
lea ecx, [ebp + 0x18]
push ecx
push ebx
lea ecx, [ebp + 0xc]
push ecx
push 0xffff
push dword [ebp + 0x10]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov edx, dword [ebp + 0x18]
mov esi, eax
mov ecx, dword [ebp + 0xc]
push 2
pop eax
cmp edx, eax
jae 0x40430e
cmp ecx, 1
je 0x40430c
cmp ecx, eax
jne 0x40430e
mov esi, eax
push esi
call fcn.00403fbe
test eax, eax
je 0x404325
push edi
mov ecx, 0x40a340
call fcn.00403e8b
jmp 0x404358
test esi, esi
jne 0x404352
cmp ecx, 2
je 0x404333
cmp ecx, 1
jne 0x40433f
shr edx, 1
xor eax, eax
mov word [ebx + edx*2 - 2], ax
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x1c]
push eax
push ecx
call fcn.00404181
test eax, eax
push 2
pop eax
cmove esi, eax
push edi
call fcn.004044ff
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x4051b1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x407fc0], eax
je 0x4051d3
cmp dword [0x407fc0], ebx
jne 0x405267
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x407fc0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x407fc0
push 4
push edi
mov dword [0x407fc0], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x407fc0]
not eax
mov dword [0x40a0f8], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40549d
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x408830
call fcn.0040600c
push 1
call fcn.0040576a
pop ecx
test al, al
jne 0x405340
push 7
call fcn.00405e0a
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00405735
mov byte [ebp - 0x24], al
mov eax, dword [0x40a914]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x405339
test eax, eax
jne 0x4053aa
mov dword [0x40a914], ecx
push 0x407218
push 0x407200
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40538d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x405497
push 0x4071fc
push 0x4071dc
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40a914], 2
jmp 0x4053af
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004058c7
pop ecx
call fcn.00405dfe
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4053df
push esi
call fcn.0040583a
pop ecx
test al, al
je 0x4053df
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00406006
call esi
call fcn.00405e04
mov esi, eax
cmp dword [esi], edi
je 0x4053fd
push esi
call fcn.0040583a
pop ecx
test al, al
je 0x4053fd
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv
mov edi, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov esi, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_wide_environment
push eax
push dword [edi]
push dword [esi]
call main
mov esi, eax
push 0
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
add esp, 0x14
call fcn.00405f1f
test al, al
jne 0x40543b
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x405444
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push 0
push 1
call fcn.004058e4
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x405497
call fcn.00406052
ret
call fcn.004051b1
jmp 0x405321
Function at 0x10032bb
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0xc], esi
je 0x100347e
mov eax, dword [ebp + 0x10]
cmp dword [eax], esi
je 0x100347e
cmp byte [0x10062a8], 0
push ebx
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
jne 0x10032fc
call fcn.0100300f
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x10033b3
cmp dword [0x10062a4], esi
je 0x10033b3
mov ebx, 0x100628c
cmp dword [ebp + 8], esi
je 0x10033b8
push ebx
call edi
mov eax, dword [0x10062a4]
mov esi, eax
test eax, eax
je 0x100333a
push dword [esi + 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1003345
mov esi, dword [esi]
test esi, esi
jne 0x1003324
push ebx
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
xor esi, esi
jmp 0x10033b8
add esi, 8
mov eax, esi
mov dword [ebp + 8], esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1003350
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi]
sub eax, edx
sar eax, 1
lea edx, [ecx - 1]
cmp edx, eax
jae 0x100336e
mov eax, edx
jmp 0x1003381
mov eax, esi
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1003373
sub eax, esi
sar eax, 1
mov esi, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
push ecx
push esi
call fcn.01003238
mov eax, dword [edi]
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x100339d
sub eax, ecx
sar eax, 1
mov dword [edi], eax
push ebx
jmp 0x1003476
mov ebx, 0x100628c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01003066
cmp dword [ebp - 4], esi
jne 0x100347c
cmp dword [ebp + 8], esi
je 0x100347c
push ebx
call edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
push ebx
call esi
mov edi, eax
pop ecx
test edi, edi
je 0x1003471
push dword [ebp + 8]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x1003469
push 0x34
call esi
mov esi, eax
pop ecx
test esi, esi
je 0x1003469
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1003419
sub eax, edx
sar eax, 1
cmp eax, 0x14
jbe 0x1003431
push 0x14
pop eax
jmp 0x1003445
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1003437
sub eax, edx
sar eax, 1
push eax
push dword [ebp + 0xc]
lea eax, [esi + 8]
push 0x15
push eax
call fcn.01003238
xor eax, eax
mov word [esi + 0x30], ax
mov eax, dword [0x10062a4]
mov dword [esi], eax
mov dword [0x10062a4], esi
jmp 0x1003471
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push 0x100628c
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x1004287
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100625c]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
je 0x100431c
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10042a5
sub eax, edx
sar eax, 1
mov ecx, 0x104
cmp eax, ecx
ja 0x100431c
push esi
push ecx
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_wcscpy_s
lea eax, [ebp - 0x20c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10042d6
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x20c]
dec eax
dec eax
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x10042fc
cmp cx, 0x2f
jne 0x1004303
xor ecx, ecx
mov word [eax], cx
jmp 0x10042eb
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x100431e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01004d09
leave
ret
Function at 0x100432f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x768
mov eax, dword [0x100625c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push dword [edi + 4]
mov dword [ebp - 0x768], eax
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_wcscpy_s
mov ecx, dword [edi + 4]
mov eax, ecx
add esp, 0xc
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x100436f
sub eax, edx
sar eax, 1
sub ebx, eax
mov eax, ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1004384
sub eax, ecx
sar eax, 1
push 0x1001e40
lea eax, [ebp + eax*2 - 0x20c]
push ebx
push eax
mov dword [ebp - 0x764], eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
lea eax, [ebp - 0x75c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x760], eax
cmp eax, 0xffffffff
jne 0x10043df
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x12
neg eax
sbb eax, eax
jmp 0x100456a
mov ecx, 0x1001e3c
lea eax, [ebp - 0x730]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1004410
test dx, dx
je 0x100440c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1004410
add eax, 4
add ecx, 4
test dx, dx
jne 0x10043ea
xor eax, eax
jmp 0x1004415
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1004530
mov ecx, 0x1001e34
lea eax, [ebp - 0x730]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100444e
test dx, dx
je 0x100444a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100444e
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004428
xor eax, eax
jmp 0x1004453
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1004530
lea eax, [ebp - 0x730]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
push eax
push ebx
push dword [ebp - 0x764]
call sub.msvcrt.dll_wcscpy_s
mov eax, dword [edi + 0xc]
add esp, 0x10
test eax, eax
je 0x1004494
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
add esp, 0xc
push 0x104
lea eax, [ebp - 0x730]
push eax
push dword [edi + 8]
call fcn.010047ee
test eax, eax
je 0x1004530
cmp dword [edi + 0xc], 0
je 0x100450d
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x30c]
push eax
lea edx, [ebp - 0x20c]
call fcn.010041b4
test eax, eax
je 0x100450d
test byte [ebp - 0x75c], 0x10
je 0x1004530
lea esi, [ebp - 0x30c]
call fcn.01004287
test eax, eax
je 0x1004530
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
mov eax, esi
push eax
mov eax, dword [ebp + 8]
call fcn.01003ff9
jmp 0x1004530
lea esi, [ebp - 0x20c]
call fcn.01004287
test eax, eax
je 0x1004530
mov eax, esi
push eax
mov eax, dword [ebp - 0x768]
call fcn.010040d2
mov esi, eax
test esi, esi
jne 0x100454d
lea eax, [ebp - 0x75c]
push eax
push dword [ebp - 0x760]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
test esi, esi
jne 0x10043df
push dword [ebp - 0x760]
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
jne 0x1004568
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1004568
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01004d09
leave
ret 8
Function at 0x1004ce3
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x10051a8
call fcn.01004ed4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1007acc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1004af8
cmp eax, esi
jne 0x1004aeb
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1004afb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1004ad2
xor esi, esi
inc esi
mov eax, dword [0x1007ac8]
cmp eax, esi
jne 0x1004b0e
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1004b49
mov eax, dword [0x1007ac8]
test eax, eax
jne 0x1004b43
mov dword [0x1007ac8], esi
push 0x10011c8
push 0x10011bc
call fcn.01004a4f
pop ecx
pop ecx
test eax, eax
je 0x1004b49
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1004c13
mov dword [0x1006314], esi
mov eax, dword [0x1007ac8]
cmp eax, esi
jne 0x1004b6d
push 0x10011b8
push 0x10011b0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1007ac8], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1004b7a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1007ad0], ebx
je 0x1004b9b
push 0x1007ad0
call fcn.01004e49
pop ecx
test eax, eax
je 0x1004b9b
push ebx
push 2
push ebx
call dword [0x1007ad0]
push dword [0x10062fc]
push dword [0x1006300]
push dword [0x10062f8]
call fcn.0100234a
add esp, 0xc
mov dword [0x1006310], eax
cmp dword [0x1006304], ebx
jne 0x1004bf9
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1006314], ebx
jne 0x1004c07
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1006310]
call fcn.01004f19
ret
call fcn.01005021
jmp 0x1004ab0
Function at 0x1205bc8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1205bd2
pushal
call 0x1205bd8
pop ebp
sub ebp, 0x10
sub ebp, 0xe05bc8
jmp 0x1205bee
mov eax, 0xe05bc8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d7
mov edx, 0x11b678b2
xor byte [eax], dl
inc eax
dec ecx
jne 0x1205c05
jmp 0x1205c18
cmp dword [edi + 0x39], edi
cmp ecx, dword [esi + 0x33b2b2b2]
jae 0x1205c6d
mov dl, 0xb2
mov dl, 0xb1
jg 0x1205c33
mov ah, 0xb2
mov dl, 0xb2
or byte [edx + 0x45b2b2b2], bl
push eax
mov cl, 0x7a
cmp dword [ebx], esi
mov esi, 0xb1b2b2b2
jp 0x1205c70
xor edi, dword [esi - 0x4e4d4d4e]
ja 0x1205c21
loop 0x1205c1b
sub ah, byte [esi]
xchg edx, eax
mov dl, 0xda
xor byte [ebp + 0xd], 0xb2
mov bl, 0x9e
xchg esi, eax
fimul dword [ebx + 0x5a3b7b90]
mov bh, 0xb2
mov dl, 0xb2
pop ebx
xchg byte [edx - 0x29c04d4e], dh
salc
xchg esi, eax
dec esi
cmp ebx, dword [esi + 0x39efe696]
aaa
mov edx, 0x39b2b2b2
daa
mov esi, 0x39b2b2b2
mov dl, 0x39
aas
mov byte [0x73b2b2b2], al
pop ebx
mov al, 0x83
mov al, 0x31
jo 0x1205c35
sti
mov ebp, 0x4d4d4637
dec ebp
cmp dword [esi - 0x6929c06a], ebx
mov dh, 0x70
mov esi, 0x963e39b2
mov dh, 0xb2
mov dl, 0xb2
fisubr dword [edx]
xchg edx, eax
mov dl, 0xda
xor byte [ebp + 0xd], 0xb2
mov bl, 0x9e
xchg esi, eax
jecxz 0x1205d00
mov bh, 0xb2
mov dl, 0xb2
pop ebx
jecxz 0x1205c5d
mov dl, 0xb2
aas
salc
xchg esi, eax
dec esi
cmp ebx, dword [esi + 0x4defe696]
invalid
pop edx
mov bh, 0xfa
mov ebp, 0xb2b2fc36
mov dl, 0xbd
cmp bh, dl
mov dl, 0xb2
mov dl, 0xd4
cmp dword [esi + 0x5a49328b], ebp
mov ebp, 0xb2b2a836
mov dl, 0x32
dec ecx
pop ebx
test al, 0xb2
mov dl, 0xb2
xor cl, byte [ecx + 0x5b]
mov ebp, 0xb2b2a336
mov dl, 0xd4
xor ecx, dword [ecx + 0x4d]
xchg edi, eax
mov ebp, 0xb2b2a736
mov dl, 0xf3
pop ebx
jle 0x1205d67
dec ebp
dec ebp
wait
dec byte [ebx - 0x488cce4d]
xor dword [edx - 0x4a], ebx
pop ebx
cmovge ecx, dword [ebp + 0x4d]
wait
out 0x8b, al
mov al, 0x31
jae 0x1205ce6
xor dword [eax - 0x4a], ebx
xor dword [edx - 0x49], ebx
pop ebx
sbb dword [ebp + 0x4d], ecx
dec ebp
out dx, eax
jo 0x1205cfe
mov dl, 0xe7
cmp dword [esi - 0x1c], ebx
in eax, 0xe7
cmp edi, eax
mov esi, 0x4ebacf39
add byte [edx], dh
cmp byte [ebx + esi - 0x4d4d4c8c], dh
mov dl, 0x3a
mov ch, 0x33
jne 0x1205d10
mov dl, 0xb2
mov dl, 9
mov al, 0xb2
mov dl, 0xb2
mov al, 0x60
mov ebp, 0xb2b2b737
mov dl, 0x38
movsb byte es:[edi], byte [esi]
hlt