joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ed5c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x21c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x22c]
push edi
xor ebp, ebp
push esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebp
call fcn.004ed390
mov ebx, eax
test esi, esi
mov dword [esp + 0x20], ebx
je 0x4ed77a
mov ax, word [0x52a480]
mov ecx, 0x81
mov word [esp + 0x24], ax
xor eax, eax
lea edi, [esp + 0x26]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push ecx
push 0x50f4e4
push 0x103
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x51b1ec
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4ed77a
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push ebp
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov ebp, eax
call edi
lea edi, [ebp + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
add esp, 0x20
test edx, edx
mov dword [esp + 0x14], edx
je 0x4ed75f
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp ebx, 1
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
jne 0x4ed6c2
push esi
push 1
lea eax, [esp + 0x1b]
push 1
push eax
call ebx
mov al, byte [esp + 0x23]
add esp, 0x10
cmp al, 0x3c
je 0x4ed6c2
push esi
push 1
lea ecx, [esp + 0x1b]
push 1
push ecx
call ebx
mov al, byte [esp + 0x23]
add esp, 0x10
inc edi
cmp al, 0x3c
jne 0x4ed6aa
push 0
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esp + 0x20]
mov edx, ebp
push esi
sub edx, edi
push 1
push edx
push eax
call ebx
lea ecx, [ebp + ebp*2]
lea edx, [ecx + ecx + 2]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 0x20
test ebx, ebx
je 0x4ed752
lea ebp, [ebp + ebp*2]
xor eax, eax
mov edi, ebx
push ebp
lea ecx, [ebp + 1]
push ebx
mov edx, ecx
push 0xffffffffffffffff
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [esp + 0x2c], 1
jne 0x4ed724
mov eax, dword [esp + 0x20]
push eax
push 0
push 0xfde9
jmp 0x4ed72d
mov ecx, dword [esp + 0x20]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [esp + 0x234]
mov ecx, dword [esp + 0x1c]
push edx
push ebx
call fcn.004ecc50
push ebx
mov dword [esp + 0x1c], eax
call fcn.004ba355
add esp, 4
mov eax, dword [esp + 0x14]
push eax
call fcn.004ba355
add esp, 4
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret 8
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret 8
Function at 0x4ee200
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push esi
mov esi, ecx
push edi
push 0
push 0x3eb
mov eax, dword [esi + 0x68]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebp
mov ecx, dword [esi + 0x68]
push 0
push 0x3ef
push ecx
call ebx
push eax
call ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
push 0x103
stosw word es:[edi], ax
mov eax, dword [0x607afc]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push edx
push 0xea81
push eax
call edi
mov edx, dword [esi + 0x68]
lea ecx, [esp + 0x10]
push ecx
push 2
push edx
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi + 0x68]
push 5
push 2
push eax
call ebx
push eax
call ebp
mov eax, dword [esi + 0x74]
push 0x103
test eax, eax
je 0x4ee2ab
mov edx, dword [0x607afc]
lea ecx, [esp + 0x14]
push ecx
push 0xea82
push edx
jmp 0x4ee2bc
mov ecx, dword [0x607afc]
lea eax, [esp + 0x14]
push eax
push 0xea8e
push ecx
call edi
mov eax, dword [esi + 0x68]
lea edx, [esp + 0x10]
push edx
push 0x419
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [esi + 0x60], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret

Function at 0x4ee2f0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x68]
push 0x423
push eax
call ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
mov ecx, dword [esi + 0x68]
push 0
push 0x424
push ecx
call ebx
push eax
call edi
mov edx, dword [esi + 0x68]
push 0
push 0x410
push edx
call ebx
push eax
call edi
mov eax, dword [esi + 0x68]
push 0
push 0x40f
push eax
call ebx
push eax
call edi
mov ecx, dword [esi + 0x68]
push 0
push 0x411
push ecx
call ebx
push eax
call edi
mov edx, dword [esi + 0x68]
push 0
push 0x412
push edx
call ebx
push eax
call edi
mov eax, dword [esi + 0x68]
push 0
push 1
push eax
call ebx
push eax
call edi
mov ecx, dword [esi + 0x68]
push 0
push 0x420
push ecx
call ebx
push eax
call edi
mov edx, dword [esi + 0x68]
push 0
push 0x3ee
push edx
call ebx
push eax
call edi
mov eax, dword [esi + 0x68]
push 5
push 0x3eb
push eax
mov dword [esi + 0x78], 0
call ebx
push eax
call edi
mov ecx, dword [esi + 0x68]
push 5
push 0x3ef
push ecx
call ebx
push eax
call edi
mov edx, dword [esi + 0x68]
push 0
push 2
push edx
call ebx
push eax
call edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x74]
push 0x103
test eax, eax
je 0x4ee3fd
mov ecx, dword [0x607afc]
lea eax, [esp + 0x10]
push eax
push 0xea8b
push ecx
jmp 0x4ee40d
mov eax, dword [0x607afc]
lea edx, [esp + 0x10]
push edx
push 0xea8c
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [esi + 0x68]
lea ecx, [esp + 0xc]
push ecx
push 0x419
push edx
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x4ee440
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x208
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4ee488
mov eax, dword [esi + 0x68]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x423
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
mov ecx, dword [esi + 0x68]
push 0
push 0x424
push ecx
call edi
push eax
call ebx
pop edi
pop esi
pop ebx
add esp, 0x208
ret
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
push ebp
lea edx, [esp + 0x10]
push 0x103
stosw word es:[edi], ax
mov eax, dword [0x607afc]
push edx
push 0xea85
push eax
call ebx
mov edx, dword [esi + 0x68]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0x10]
push ecx
push 0x419
push edx
call edi
mov ebp, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call ebp
mov ecx, dword [0x607afc]
lea eax, [esp + 0x10]
push 0x103
push eax
push 0xea86
push ecx
call ebx
mov eax, dword [esi + 0x68]
lea edx, [esp + 0x10]
push edx
push eax
call ebp
mov edx, dword [0x607afc]
lea ecx, [esp + 0x10]
push 0x103
push ecx
push 0xea87
push edx
call ebx
mov ecx, dword [esi + 0x68]
lea eax, [esp + 0x10]
push eax
push 1
push ecx
call edi
push eax
call ebp
mov edx, dword [esi + 0x68]
push 0
push 0x411
push edx
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
mov eax, dword [esi + 0x68]
push 0
push 0x412
push eax
call edi
push eax
call ebx
mov ecx, dword [esi + 0x68]
push 0
push 0x420
push ecx
call edi
push eax
call ebx
mov edx, dword [esi + 0x68]
push 0
push 0x3ee
push edx
call edi
push eax
call ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x208
ret

Function at 0x4eea70
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x208
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x5c]
cmp eax, 2
je 0x4eeabd
test eax, eax
je 0x4eeabd
mov eax, dword [esi + 0x68]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x411
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
mov ecx, dword [esi + 0x68]
push 0
push 0x412
push ecx
call edi
push eax
call ebx
pop edi
pop esi
pop ebx
add esp, 0x208
ret
mov edx, dword [esi + 0x68]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 5
push 0x411
push edx
call ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
mov eax, dword [esi + 0x68]
push 5
push 0x412
push eax
call ebx
push eax
call edi
cmp dword [esi + 0x5c], 2
jne 0x4eeb0f
mov ecx, dword [esi + 0x68]
push 0
push 0x412
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0xc]
push edx
stosw word es:[edi], ax
call fcn.004f19a0
mov ecx, dword [esi + 0x68]
add esp, 4
lea eax, [esp + 0xc]
push eax
push 0x411
push ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x4eeb60
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [ecx + 0x5c]
test eax, eax
je 0x4eeb8b
cmp eax, 1
jne 0x4eeb86
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push str.bookmarks.dat
push ecx
push edx
call fcn.004bac30
add esp, 0xc
ret 8
cmp eax, 2
jne 0x4eebac
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
dec eax
push eax
mov eax, dword [ecx + 0x68]
push edx
push 0x411
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret 8
Function at 0x4efa60
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fc45b
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4efc5b
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x4efc5b
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4efc5b
push edi
call fcn.004efc80
add esp, 4
test al, al
jne 0x4efac6
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xa1
jmp 0x4efc68
push edi
mov ecx, esi
call fcn.004ef9d0
test eax, eax
je 0x4efada
push edi
mov ecx, esi
call fcn.004efdb0
call fcn.004ef110
mov eax, dword [edi]
push 0
push 0x42000000
push 3
push 0
push 3
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4efb14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x4efc68
push 0xa05c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x18], 0
je 0x4efb5b
mov ecx, dword [esi + 0x44]
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov dl, byte [esi + 0x40]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push ecx
push ebp
push edx
push edi
push ebx
mov ecx, eax
call fcn.004f0400
mov edi, eax
jmp 0x4efb5d
xor edi, edi
test edi, edi
mov dword [esp + 0x18], 0xffffffff
jne 0x4efb82
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xe
jmp 0x4efc68
mov eax, dword [esi + 4]
push 0
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
mov dword [esi + 4], eax
jne 0x4efbb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov ecx, edi
mov esi, eax
call fcn.004f0680
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x4efc68
mov eax, dword [esi + 8]
test eax, eax
jne 0x4efc06
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
push 0x4f0890
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 8], eax
jne 0x4efbf8
push eax
mov ecx, edi
call fcn.004f0680
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
mov eax, 0xa4
je 0x4efc68
call esi
jmp 0x4efc68
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x20]
test eax, eax
mov dword [esi + 0xc], edx
je 0x4efc49
mov eax, dword [esi + 4]
mov ecx, edi
push eax
call fcn.004f0710
mov ebx, eax
test ebx, ebx
je 0x4efc2b
push 0
mov ecx, edi
call fcn.004f0680
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x4efc68
mov ecx, dword [esp + 0x28]
push esi
call fcn.004ef330
push edi
mov ecx, esi
call fcn.004effc0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4efc68
push 0xa4
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xa4
jmp 0x4efc68
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0x57
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x18
Function at 0x4efc80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4efc9c
test al, 0x10
je 0x4efc9c
mov eax, 1
ret
xor eax, eax
ret
Function at 0x4f1640
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
call fcn.004f1000
mov edx, eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], bx
push edx
rep stosd dword es:[edi], eax
mov ecx, esi
stosw word es:[edi], ax
call fcn.004f0fb0
push eax
push str._s_d.dat
lea eax, [esp + 0x18]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, 1
jne 0x4f169f
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x208
ret

Function at 0x4f2130
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x201a]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4f215f
add esi, 0x181a
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x4f215f
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x4f27f0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0xa54
push ebx
mov dword [esp + 4], ecx
push esi
mov esi, dword [esp + 0xa60]
lea ecx, [esp + 0x25c]
mov edx, 0x400
lea eax, [esp + 0x25c]
sub esi, ecx
lea ecx, [edx + 0x7ffffbfe]
test ecx, ecx
je 0x4f2836
mov cx, word [esi + eax]
test cx, cx
je 0x4f2836
mov word [eax], cx
add eax, 2
dec edx
jne 0x4f2818
jmp 0x4f283a
test edx, edx
jne 0x4f283d
sub eax, 2
lea edx, [esp + 0x25c]
push 0x51169c
push edx
mov word [eax], 0
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x25c]
push eax
push ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4f28e5
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea edx, [esp + 0x40]
push 0x511698
push edx
call edi
add esp, 8
test eax, eax
je 0x4f28c3
lea eax, [esp + 0x40]
push 0x511690
push eax
call edi
add esp, 8
test eax, eax
je 0x4f28c3
mov ecx, dword [esp + 0x14]
not ecx
test cl, 0x10
je 0x4f28c2
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x40]
push edx
call fcn.004f27b0
test eax, eax
je 0x4f28c3
inc ebx
lea eax, [esp + 0x14]
push eax
push esi
call ebp
test eax, eax
jne 0x4f287f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebp
mov eax, ebx
pop esi
pop ebx
add esp, 0xa54
ret 4
mov eax, ebx
pop esi
pop ebx
add esp, 0xa54
ret 4
Function at 0x4f2fd0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0xa5c
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4f2fee
mov eax, dword [esp + 0xa68]
push eax
call fcn.004f2900
mov edi, dword [esp + 0xa68]
lea ecx, [esp + 0x264]
mov edx, 0x400
lea eax, [esp + 0x264]
sub edi, ecx
lea ecx, [edx + 0x7ffffbfe]
test ecx, ecx
je 0x4f3028
mov cx, word [edi + eax]
test cx, cx
je 0x4f3028
mov word [eax], cx
add eax, 2
dec edx
jne 0x4f300a
jmp 0x4f302c
test edx, edx
jne 0x4f302f
sub eax, 2
lea edx, [esp + 0x264]
push 0x51169c
push edx
mov word [eax], 0
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [esi + 0xc]
mov ecx, dword [esi + 0x18]
sub edi, ecx
cmp edi, 1
jl 0x4f31a5
lea eax, [esp + 0x14]
lea ecx, [esp + 0x264]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4f31a5
push ebx
push ebp
mov ebx, dword [sym.imp.MSVCRT.dll_wcscmp]
lea edx, [esp + 0x48]
push 0x511698
push edx
call ebx
add esp, 8
test eax, eax
je 0x4f3184
lea eax, [esp + 0x48]
push 0x511690
push eax
call ebx
add esp, 8
test eax, eax
je 0x4f3184
mov ebp, dword [esp + 0x1c]
not ebp
shr ebp, 4
and ebp, 1
mov dword [esp + 0x10], ebp
je 0x4f30d4
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call fcn.004f27b0
test eax, eax
je 0x4f3184
mov eax, dword [esi + 0x18]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], ebx
jle 0x4f3119
xor ebp, ebp
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x48]
push edx
lea ecx, [eax + ebp + 0x1a]
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x4f310d
mov eax, dword [esi + 0x18]
inc ebx
add ebp, 0x3864
cmp ebx, eax
jl 0x4f30e3
jmp 0x4f3115
mov dword [esp + 0x14], 1
mov ebp, dword [esp + 0x10]
test edi, edi
jle 0x4f3184
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4f3184
mov eax, dword [esi + 0xc]
sub eax, edi
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
shl ecx, 4
add ecx, eax
mov eax, dword [esi + 0x10]
lea edx, [ecx + ecx*8]
lea ecx, [esi + 0x828]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0xa70]
push edx
mov dword [eax], ecx
add eax, 0x181a
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
lea eax, [esp + 0x48]
mov edx, dword [esi + 0x10]
push 0xffffffffffffffff
push ebp
push eax
mov eax, dword [esi + 0xc]
sub eax, edi
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
shl ecx, 4
add ecx, eax
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
call fcn.004f2030
dec edi
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4f307a
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xa5c
ret 4
Function at 0x4f3260
Capabilities:
Check os version

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x828]
mov ecx, 0x47
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push esi
mov dword [esi], 0x11c
call edi
test eax, eax
jne 0x4f3296
push esi
mov dword [esi], 0x114
call edi
test eax, eax
je 0x4f32bf
mov eax, dword [ebx + 0x838]
sub eax, 2
jne 0x4f32bf
cmp dword [ebx + 0x82c], 5
jne 0x4f32bf
mov eax, dword [ebx + 0x830]
test eax, eax
jbe 0x4f32bf
pop edi
mov dword [ebx + 0x20], 1
pop esi
pop ebx
ret
pop edi
mov dword [ebx + 0x20], 0
pop esi
pop ebx
ret

Function at 0x4f3a40
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 0x6cf50c
push 0
push esi
push 0x4f3ae0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [0x6cf508], eax
test eax, eax
je 0x4f3a79
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x6cf508]
test eax, eax
setne al
pop esi
ret
Function at 0x40a0e0
Capabilities:
Check for vm using instruction vpcext

Disassembly:
inc edx
mov ebp, esp
sub esp, 0x34
push esi
push edi
add bh, byte [ebp + 0x10]
mov cl, byte [eax]
sub al, 0x84
rol byte [eax - 0x6417a8f2], 0x68
add byte [eax], al
test eax, eax
invalid

Function at 0x40a340
Capabilities:
Terminate process

Disassembly:
daa
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
fld dword [ecx + 4]
test eax, eax
jne 0x40a35f
add ecx, 0xc
dec esi
call dword [0x7e40c01e]
cmp eax, eax
pop esi
cmp dl, al
add al, 0
adc ecx, 1
jne 0x40a370
das
inc ecx
or byte [eax - 1], dl
adc eax, sym.imp.KERNEL32.dll_SetEvent
jmp 0x40a37f
cmp eax, 2
push edx
jecxz 0x40a301
dec ecx
or byte [ecx - 0x80], dl
adc eax, 0x40596e
test eax, eax
jne 0x40a358
jle 0x40a3ba
cwde
fist word [ecx]
call [edi - 0x7b]
invalid
nop
nop
nop
daa
nop
nop
xor edi, dword [ebx - 0x4afffb3e]
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [ebx + 0x8458bec]
je 0x40a418
adc al, 0x85
sal byte [ebx + esi - 0x75], 0x7a
or al, 0x51
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40a40a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
salc
test eax, eax
xor eax, dword [0xa2c25d8b]
add byte [edx - 0x2a], bl
shr dword [edx + 0x5e006f33], cl
pop ebp
adc eax, 0xc03300d9
xor eax, eax
pop ebp
ret 8
add byte [eax - 0x6f6f6f70], dl
nop
nop
ret
Function at 0x40301c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x484020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4030b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403094
xor eax, eax
push ebp
push 0x40308d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4030d0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403094
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x484020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x484020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d80
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48704c], 0
je 0x403de1
cmp word [0x487220], 0xd7b2
jne 0x403da9
cmp dword [0x487228], 0
jbe 0x403da9
mov eax, 0x48721c
call dword [0x487238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48406c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403e08
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x484030], 0
jne 0x403dfd
push 0
push 0x484064
push 0x48406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret