joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4db3e0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x4db5c1
mov dl, byte [ebx]
test dl, dl
je 0x4db426
mov esi, 0x1505
lea ecx, [ebx + 1]
mov eax, esi
nop word cs:[eax + eax]
nop dword [eax]
shl eax, 5
movsx edx, dl
add eax, esi
add eax, edx
movzx edx, byte [ecx]
inc ecx
mov esi, eax
test dl, dl
jne 0x4db410
jmp 0x4db42b
mov eax, 0x1505
mov ebp, dword [0x5da0e0]
cmp eax, 1
mov edi, 1
adc eax, 0
xor edx, edx
div ebp
mov eax, dword [0x5da0e4]
test edx, edx
cmovne edi, edx
mov dword [esp], edi
mov ecx, dword [eax + edi*8]
test ecx, ecx
je 0x4db51a
mov edi, dword [esp]
mov esi, dword [eax + edi*8 + 4]
cmp ecx, edi
jne 0x4db47f
test esi, esi
mov eax, str._NULL_
cmovne eax, esi
push eax
push ebx
call sub.msvcrt.dll_strcmp
add esp, 8
test eax, eax
je 0x4db5c3
push esi
push ebx
push str.hash_collision___s_vs__s_
push str.htab_hash
push 4
push 0
call fcn.004cd4b0
add esp, 0x18
mov ebp, dword [0x5da0e0]
mov eax, edi
xor edx, edx
lea ecx, [ebp - 2]
div ecx
mov ecx, edi
lea eax, [edx + 1]
not edx
mov dword [esp + 8], edx
mov edx, dword [0x5da0e4]
mov dword [esp + 4], eax
nop dword [eax + eax]
cmp edi, dword [esp + 4]
mov eax, ebp
mov esi, 0
cmova eax, esi
add edi, dword [esp + 8]
add edi, eax
cmp edi, ecx
je 0x4db514
mov ebx, dword [edx + edi*8]
cmp ebx, ecx
jne 0x4db50e
mov eax, dword [edx + edi*8 + 4]
mov ecx, str._NULL_
test eax, eax
cmove eax, ecx
push eax
push dword [esp + 0x24]
mov esi, ebp
mov ebp, edx
call sub.msvcrt.dll_strcmp
mov ecx, dword [esp + 8]
mov edx, ebp
mov ebp, esi
add esp, 8
test eax, eax
je 0x4db5c3
test ebx, ebx
jne 0x4db4c0
jmp 0x4db516
mov edi, ecx
mov ebx, dword [esp + 0x20]
cmp dword [0x5da0e8], ebp
jae 0x4db585
push 0x5da0ec
call fcn.004d3b00
add esp, 4
mov eax, dword [0x5da0e4]
mov ecx, dword [eax + edi*8 + 4]
test ecx, ecx
je 0x4db552
push ecx
call fcn.00537860
add esp, 4
mov eax, dword [0x5da0e4]
mov dword [eax + edi*8 + 4], 0
mov ecx, dword [esp]
mov dword [eax + edi*8], ecx
push ebx
call dword [sym.imp.msvcrt.dll__strdup]
add esp, 4
mov ecx, dword [0x5da0e4]
test eax, eax
mov dword [ecx + edi*8 + 4], eax
je 0x4db59e
inc dword [0x5da0e8]
push 0x5da0ec
call fcn.004d3b30
add esp, 4
jmp 0x4db5c3
push ebp
push str.hash_table_is_full___d_entries_
push str.htab_hash
push 1
push 0
call fcn.004cd4b0
add esp, 0x14
jmp 0x4db5c1
push str.could_not_duplicate_string_for_hash_table
push str.htab_hash
push 1
push 0
call fcn.004cd4b0
add esp, 0x10
push 0x5da0ec
call fcn.004d3b30
add esp, 4
xor edi, edi
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4db5d0
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x5da0f0], 0
je 0x4db648
push 0
push 0
push 0x402
push dword [0x5da0f8]
call dword [0x5da0f4]
test eax, eax
je 0x4db604
push 0xffffffffffffffff
push dword [0x5da0f0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4db628
push str.could_not_wait_for_timer_thread_to_quit
push str.windows_destroy_clock
push 4
push 0
call fcn.004cd4b0
add esp, 0x10
push 1
push dword [0x5da0f0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x5da0f0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5da0f0], 0
mov dword [0x5da0f8], 0
ret
Function at 0x4dc870
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x238
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test byte [esi], 1
jne 0x4dc891
mov word [esi], 0
jmp 0x4dc89e
mov eax, dword [esi + 8]
mov byte [eax], 0
mov dword [esi + 4], 0
mov eax, esp
push eax
push edi
call dword [sym.imp.msvcrt.dll__fstati64]
add esp, 8
cmp eax, 0xffffffff
je 0x4dc8c8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp eax, 1
sbb ecx, 0
jl 0x4dc8c8
mov ecx, esi
push eax
call fcn.005567e0
lea ebx, [esp + 0x34]
jmp 0x4dc8d9
mov ecx, esi
push eax
push ebx
call fcn.00555860
push 0x200
push ebx
push edi
call sub.msvcrt.dll__read
add esp, 0xc
cmp eax, 0xffffffff
je 0x4dc900
test eax, eax
jg 0x4dc8d0
jmp 0x4dc90f
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x4dc8d9
xor eax, eax
jmp 0x4dc912
sete al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x502d40
Capabilities:
Get system information on windows

Disassembly:
push esi
mov esi, ecx
push ecx
call fcn.00504280
add esp, 4
test al, al
jne 0x502d25
push esi
call fcn.00504360
add esp, 4
test eax, eax
jne 0x502d2a
mov dword [esi], 0
pop esi
ret
mov eax, 0x16
push str.thread::detach_failed
push eax
call fcn.00502b10
nop word cs:[eax + eax]
nop
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov dword [ebp - 0x28], 0x4dffd0
mov dword [ebp - 0x24], 0x57fcc8
mov dword [ebp - 0x20], ebp
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0x502d9a
mov dword [ebp - 0x3c], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00521b40
add esp, 4
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x40]
push eax
call fcn.00521ba0
add esp, 4
mov eax, esi
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x504290
Capabilities:
Create thread

Disassembly:
push ebx
push edi
push esi
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
push 8
call fcn.004fc150
add esp, 4
mov dword [eax], ebx
mov dword [eax + 4], edi
push 0
push 0
push eax
push 0x5042e0
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi], eax
je 0x5042d1
xor eax, eax
pop esi
pop edi
pop ebx
ret
pop esi
pop edi
pop ebx
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x51c45f
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
jne 0x51c472
jmp 0x51c5a6
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0051bc88
cmp eax, 1
jne 0x51c59e
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea edx, [ebp - 0x4f]
mov ebx, 0x43
mov eax, 0
mov ecx, edx
and ecx, 1
test ecx, ecx
je 0x51c4ea
mov byte [edx], al
add edx, 1
sub ebx, 1
mov ecx, edx
and ecx, 2
test ecx, ecx
je 0x51c4fc
mov word [edx], ax
add edx, 2
sub ebx, 2
mov ecx, ebx
shr ecx, 2
mov edi, edx
rep stosd dword es:[edi], eax
mov edx, edi
mov ecx, ebx
and ecx, 2
test ecx, ecx
je 0x51c516
mov word [edx], ax
add edx, 2
and ebx, 1
mov ecx, ebx
test ecx, ecx
je 0x51c524
mov byte [edx], al
add edx, 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x51c554
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x51c56b
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x51c550
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x51c589
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sub.msvcrt.dll_abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x51d532
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], 0x51d3a7
mov dword [esp], 0x5dad08
call fcn.0051caf9
mov eax, dword [0x580340]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x51d579
mov eax, dword [ebp - 0x20]
jmp 0x51d6c4
call fcn.0051c368
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x51d590
cmp dword [ebp - 0x20], 0
jne 0x51d59a
mov eax, 0
jmp 0x51d6c4
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0051c45f
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x51d66c
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x580340]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x51d6c1
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x51d788
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.0051d532
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call fcn.0051d3ca
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x51d7e1
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_longjmp
mov eax, dword [0x580340]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x51d90b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x51d873
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x51d830
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0051c27c
mov dword [ebp - 0x10], 0
mov eax, dword [0x580340]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
jmp 0x51d90b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x51d8a3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x51d90b
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0051c27c
mov dword [ebp - 0x10], 0
mov eax, dword [0x580340]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__endthreadex]
call eax
Function at 0x520920
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.005379b0
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.005379b0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x520980
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x5db0c0]
test eax, eax
jle 0x520a90
mov edx, dword [0x5db0c4]
xor ebx, ebx
mov ecx, dword [edx + 0xc]
cmp ecx, esi
ja 0x5209b1
mov edi, dword [edx + 0x10]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x520a2a
add ebx, 1
add edx, 0x14
cmp ebx, eax
jne 0x5209a0
mov dword [esp], esi
call fcn.00521230
test eax, eax
mov edi, eax
je 0x520ab7
lea esi, [ebx + ebx*4]
mov ebx, dword [0x5db0c4]
shl esi, 2
add ebx, esi
mov dword [ebx + 0x10], eax
mov dword [ebx], 0
call fcn.00521320
add eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x5db0c4]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x520a97
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x520a32
add dword [0x5db0c0], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x520a23
cmp eax, 0x80
je 0x520a23
cmp eax, 8
je 0x520a23
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
add esi, dword [0x5db0c4]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x520a23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00520920
nop
lea esi, [esi]
xor ebx, ebx
jmp 0x5209bb
mov eax, dword [0x5db0c4]
mov eax, dword [eax + esi + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00520920
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00520920
mov esi, esi
lea edi, [edi]

Function at 0x521150
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x521188
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x52117e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x52118a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x521170
xor eax, eax
pop ebx
pop esi
ret
Function at 0x5232c0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
jmp fcn.00522cc0

Function at 0x528650
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x22c
mov ebx, dword [ebp + 8]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x5287e3
cmp word [ebx], 0
je 0x5287b0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x5287c5
test al, 0x10
je 0x5287b0
lea esi, [ebp - 0x220]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], esi
call sub.msvcrt.dll__wfullpath
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x5bbb20
mov edi, eax
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x5bbb24
mov ebx, eax
call sub.msvcrt.dll_wcslen
lea edx, [edi + ebx + 0x21d]
add eax, edx
add eax, eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x5287d4
lea edi, [eax + 0x434]
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_wcscpy
cmp word [ebx + 0x434], 0
jne 0x528770
mov dword [esp], edi
mov dword [esp + 4], 0x5bbb24
call sub.msvcrt.dll_wcscat
xor edx, edx
xor eax, eax
mov word [ebx + 0x222], dx
lea edx, [ebx + 0x224]
mov ecx, 0x82
mov word [ebx + 0x220], ax
mov edi, edx
xor eax, eax
mov dword [ebx + 0x42c], 0xffffffff
mov dword [ebx + 0x430], 0
mov dword [ebx + 0x21c], 0
rep stosd dword es:[edi], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x2f
je 0x528710
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x5c
je 0x528710
mov dword [esp + 4], 0x5bbb20
mov dword [esp], edi
call sub.msvcrt.dll_wcscat
jmp 0x528710
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x528763
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x528763
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x528763
Function at 0x52fad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov ebx, dword [ebp + 8]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x52fc7e
cmp byte [ebx], 0
je 0x52fc48
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x52fc60
test al, 0x10
je 0x52fc48
lea edi, [ebp - 0x11c]
mov dword [esp + 4], ebx
mov ebx, edi
mov dword [esp + 8], 0x104
mov dword [esp], edi
call sub.msvcrt.dll__fullpath
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x52fb34
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ebx + 2]
cmove ebx, edx
add al, al
sbb ebx, 3
sub ebx, edi
lea eax, [ebx + 0x233]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x52fc6f
lea edx, [eax + 0x22c]
lea eax, [ebx + 1]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [ebp - 0x12c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x12c]
cmp byte [esi + 0x22c], 0
je 0x52fbc3
movzx eax, byte [esi + ebx + 0x22b]
cmp al, 0x2f
je 0x52fbc3
cmp al, 0x5c
je 0x52fbc3
mov edi, 0x5c
mov word [edx + ebx], di
mov eax, edx
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x52fbc5
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
add dl, dl
sbb eax, 3
mov edx, 0x2a
mov word [eax], dx
xor ecx, ecx
xor eax, eax
lea edx, [esi + 0x120]
xor ebx, ebx
mov word [esi + 0x11c], cx
mov edi, edx
mov ecx, 0x41
mov dword [esi + 0x224], 0xffffffff
mov dword [esi + 0x228], 0
mov dword [esi + 0x118], 0
mov word [esi + 0x11e], bx
rep stosd dword es:[edi], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x52fc40
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x52fc40
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x52fc40
Function at 0x53a4b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [esp + 0x1c]
mov esi, ecx
lea ecx, [ecx + 8]
push ebx
call fcn.00556f30
movzx eax, byte [esi + 0x14]
test al, 1
jne 0x53a4d8
shr eax, 1
test eax, eax
jne 0x53a4e3
jmp 0x53a56e
mov eax, dword [esi + 0x18]
test eax, eax
je 0x53a56e
mov edi, esp
push ebx
push edi
call fcn.004dcf30
add esp, 8
test byte [esi + 0x20], 1
lea ebx, [esi + 0x20]
jne 0x53a4ff
mov word [ebx], 0
jmp 0x53a524
mov eax, dword [esi + 0x28]
mov byte [eax], 0
mov dword [esi + 0x24], 0
test byte [esi + 0x20], 1
je 0x53a524
push dword [esi + 0x28]
call fcn.004fc300
add esp, 4
mov dword [esi + 0x20], 0
mov eax, dword [esp + 8]
mov ecx, esi
mov dword [ebx + 8], eax
movsd xmm0, qword [esp]
movsd qword [ebx], xmm0
mov byte [esp], 0x14
mov word [esp + 9], 0x676e
mov dword [esp + 5], 0x69746172
mov dword [esp + 1], 0x656e6567
mov byte [esp + 0xb], 0
push edi
call fcn.0053a960
test byte [esp], 1
je 0x53a56e
push dword [esp + 8]
call fcn.004fc300
add esp, 4
add esp, 0xc
pop esi
pop edi
pop ebx
ret 4
Function at 0x53d200
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edx, dword [esp + 0x20]
movzx ebx, byte [edx]
test bl, 1
je 0x53d21d
mov ebp, dword [edx + 8]
mov ebx, dword [edx + 4]
mov edx, ebp
jmp 0x53d220
inc edx
shr ebx, 1
cmp ebx, 4
mov eax, ebx
mov ebp, ebx
mov dword [esp], edx
jb 0x53d278
mov esi, dword [esp]
lea ebp, [ebx - 4]
mov edx, ebx
mov eax, ebx
mov dword [esp + 8], ebx
nop word [eax + eax]
imul ebx, dword [esi], 0x5bd1e995
imul eax, eax, 0x5bd1e995
add edx, 0xfffffffc
add esi, 4
mov edi, ebx
shr edi, 0x18
xor edi, ebx
imul edi, edi, 0x5bd1e995
xor eax, edi
cmp edx, 3
ja 0x53d240
mov edx, dword [esp]
mov ebx, dword [esp + 8]
mov esi, ebp
and esi, 0xfffffffc
sub ebp, esi
lea edx, [edx + esi + 4]
cmp ebp, 1
je 0x53d29e
cmp ebp, 2
je 0x53d290
cmp ebp, 3
jne 0x53d2ae
movzx esi, byte [edx + 2]
shl esi, 0x10
xor eax, esi
movzx esi, byte [edx + 1]
mov ebp, dword [esp]
shl esi, 8
xor eax, esi
jmp 0x53d2a1
mov ebp, dword [esp]
movzx edx, byte [edx]
xor edx, eax
imul eax, edx, 0x5bd1e995
jmp 0x53d2b1
mov ebp, dword [esp]
mov edi, dword [ecx + 4]
test edi, edi
je 0x53d3b4
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov esi, eax
shr esi, 0xf
xor esi, eax
lea eax, [edi - 1]
test eax, edi
mov dword [esp], eax
je 0x53d2e8
cmp esi, edi
mov edx, esi
jb 0x53d2ec
mov eax, esi
xor edx, edx
div edi
jmp 0x53d2ec
mov edx, esi
and edx, eax
mov eax, dword [ecx]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x53d3b4
mov dword [esp + 8], edi
mov edi, dword [eax]
mov eax, 0
test edi, edi
je 0x53d3b6
mov dword [esp + 4], edx
mov eax, dword [edi + 4]
cmp esi, eax
jne 0x53d370
movzx edx, byte [edi + 8]
mov eax, edx
shr eax, 1
test dl, 1
mov ecx, eax
je 0x53d329
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
jne 0x53d391
lea ecx, [edi + 8]
inc ecx
test dl, 1
je 0x53d339
mov ecx, dword [edi + 0x10]
jne 0x53d39d
test ebx, ebx
je 0x53d3b0
xor ecx, ecx
nop word cs:[eax + eax]
nop dword [eax + eax]
movzx edx, byte [edi + ecx + 9]
cmp dl, byte [ebp + ecx]
jne 0x53d391
inc ecx
cmp eax, ecx
jne 0x53d350
jmp 0x53d3b0
mov ecx, dword [esp + 8]
mov edx, dword [esp]
test edx, ecx
je 0x53d387
cmp eax, ecx
jb 0x53d389
xor edx, edx
div ecx
mov eax, edx
jmp 0x53d389
and eax, edx
mov ecx, dword [esp + 4]
cmp eax, ecx
jne 0x53d3b4
mov edi, dword [edi]
test edi, edi
jne 0x53d310
jmp 0x53d3b4
test ebx, ebx
je 0x53d3b0
push ebx
push ebp
push ecx
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x53d391
mov eax, edi
jmp 0x53d3b6
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4