joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417983
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4577d0]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
mov esi, ecx
cmp dword [esi + 0x50], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x4179d4
push edi
call fcn.004192dd
mov esi, eax
test esi, esi
je 0x4179f8
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x4179f8
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x41c018
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405fce
leave
ret 0xc

Function at 0x417cea
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4577d0]
xor eax, ebp
cmp dword [ebp + 8], 0x800
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x11c]
jne 0x417d1d
push 0x41ba3c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x417d2f
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x417d64
lea eax, [ebp - 0x11c]
push eax
push esi
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004062d7
add esp, 0x10
cmp eax, 0xffffffff
je 0x417d64
cmp eax, esi
jae 0x417d64
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x417d66
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405fce
leave
ret
Function at 0x417d89
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4577d0]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x41bab0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push 0x41ba94
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x417e33
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
call esi
push 0x41ba78
push dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x38], eax
call esi
mov dword [ebp - 0x34], eax
push 4
xor ebx, ebx
jmp 0x417f35
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x417ee3
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push 0x41ba50
push 0x80000001
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x417f36
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x417ed8
cmp dword [ebp - 0x24], 1
jne 0x417ed8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x41ba4c
push eax
call fcn.0040632e
add esp, 0xc
cmp eax, 1
jne 0x417ed8
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x40], eax
call esi
push 2
mov dword [ebp - 0x3c], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x417f36
push 0x41ba40
call edi
cmp eax, ebx
je 0x417f36
lea ecx, [ebp - 0x18]
push ecx
push 0x417d73
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x417f36
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x40], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x417f5b
push dword [ebp + edi*4 - 0x40]
mov ecx, dword [ebp - 0x2c]
call fcn.00417cea
cmp eax, ebx
pop ecx
jne 0x417f5d
inc edi
cmp edi, esi
jl 0x417f45
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405fce
leave
ret 4
Function at 0x417f6e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [0x4571c4], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x4571c4
je 0x41802a
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418012
mov esi, dword [ebx + 4]
jmp 0x41800c
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x417ffc
cmp dword [ebp - 0xc], 4
jne 0x417ffc
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x417ff4
or dword [eax + 0x9c], ecx
jmp 0x417ffc
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x417fc0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x417fa3
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x41841e
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x41a54f
call fcn.004060cc
sub esp, 0x124
mov eax, dword [0x4577d0]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x124]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edx
push eax
push ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x41852c
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x418500
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.004019b0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0041841e
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401180
test bl, bl
jne 0x418500
or dword [ebp - 4], 0xffffffff
jmp 0x41846b
cmp esi, 0x103
je 0x418510
cmp esi, 0x3f2
jne 0x418520
push dword [edi]
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405fce
leave
ret 8
Function at 0x418d2d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x418d62
cmp edi, dword [esi + 0xc]
jge 0x418d62
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x418d62
cmp edi, dword [eax + 8]
jge 0x418d62
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x418d64
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x418e68
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x418e9c
jmp fcn.004111e7
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x418f0d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x419006
cmp eax, dword [edi + 0xc]
jge 0x419006
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x418f5e
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x418fef
cmp dword [ebp + 0xc], ebx
je 0x418fef
jmp 0x418f88
push 0x10
call fcn.00418bf9
cmp eax, ebx
je 0x418f74
mov ecx, eax
call fcn.00418e5f
mov esi, eax
jmp 0x418f76
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x418f9f
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x418faf
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x418fc1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004111e7
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00406560
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x419001
cmp ecx, dword [esi + 8]
jge 0x419001
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x419007
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4190c5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4190f3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x419111
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041902f
jmp 0x419111
mov eax, dword [esi + 0x14]
test eax, eax
je 0x419111
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041902f
test edi, edi
mov eax, edi
jne 0x4190fb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x458ce4]
test ecx, ecx
je 0x4191c4
jmp 0x4190c4
ret 8
Function at 0x4016d4
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x90
mov eax, dword [0x6336a0]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], 0
lea ecx, [esi + 4]
je 0x40178e
push ebx
push edi
lea edx, [esp + 0xc]
push 0x5d2a04
push edx
call fcn.00401c80
add esp, 8
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x5d2b58
push eax
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x401756
cmp dword [esp + 0x10], 1
jne 0x401756
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.00577334
add esp, 8
test eax, eax
je 0x401756
mov ebx, dword [esp + 0xc]
push str.Backup
push closesocket
lea edi, [esp + 0x20]
call fcn.00401990
mov edi, dword [esi + 0x18]
mov ebx, dword [esp + 0xc]
push 0x5d2b58
push closesocket
call fcn.00401990
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
pop ebx
jg 0x40178e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x90]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00577139
add esp, 0x90
ret

Function at 0x401990
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebp
xor ebp, ebp
cmp ebx, ebp
je 0x401a13
cmp word [ebx], bp
je 0x401a13
cmp dword [esp + 0x14], ebp
je 0x401a13
cmp edi, ebp
je 0x401a13
push esi
push edi
mov dword [esp + 0xc], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x14]
mov esi, eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push ebp
push 2
push ebp
push ebp
push ebp
push ebx
push edx
add esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4019fa
mov ecx, dword [esp + 8]
add esi, 2
push esi
push edi
push 1
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4019fa
mov ebp, 1
mov eax, dword [esp + 8]
test eax, eax
pop esi
je 0x401a0a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop ebp
add esp, 8
ret 8
push 0x80070057
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebp
add esp, 8
ret 8

Function at 0x4025f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402609
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402644
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402640
lea ebx, [ebx]
cmp esi, eax
jae 0x402644
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402630
cmp esi, eax
jb 0x40264a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40cd30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0a70
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
push 0x5d64ec
push 0xde
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40ce1d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 0x20]
mov esi, eax
mov dword [ebp - 4], 0
call fcn.0055db77
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00414c50
test ebx, ebx
mov byte [ebp - 4], 2
je 0x40cde7
lea eax, [ebp - 0x34]
push eax
push 0x1001
push ebx
lea ecx, [ebp - 0x20]
call fcn.0055dfa6
test eax, eax
je 0x40cde7
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0055d8c5
lea ecx, [ebp - 0x20]
call fcn.0055db15
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov dword [ebp - 0x34], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.0055dc4b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d6d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x6336a0]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x5d63cc]
mov edx, dword [0x5d63d0]
push esi
push edi
push 0x78
mov dword [esp + 0xc], eax
lea eax, [esp + 0x24]
push 0
push eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call fcn.0057bb20
mov eax, dword [0x5d63dc]
mov edx, dword [0x5d63d8]
mov ecx, dword [str.DCEFG]
mov dword [esp + 0x20], eax
mov eax, dword [0x63c13c]
mov dword [esp + 0x1c], edx
add esp, 0xc
mov dword [esp + 0xc], ecx
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d740
lea edi, [esp + 0x18]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40d754
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
mov cx, word [esp + esi*2 + 0xc]
lea edx, [esp + 0x18]
push edx
mov word [esp + 0x1c], cx
call fcn.0044adc0
add esp, 4
test eax, eax
jne 0x40d797
add esi, 1
cmp esi, 5
jl 0x40d772
jmp 0x40d7be
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d7a0
mov ecx, dword [esp + 8]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00402270
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
cmp dword [edx - 0xc], 0
jne 0x40d825
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor esi, esi
mov ax, word [esp + esi*2 + 0xc]
lea ecx, [esp + 0x18]
push ecx
mov word [esp + 0x1c], ax
mov word [esp + 0x20], 0
call edi
cmp eax, 3
je 0x40d7f9
add esi, 1
cmp esi, 5
jl 0x40d7d2
jmp 0x40d825
lea eax, [esp + 0x18]
mov word [esp + 0x1c], 0x5c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d807
mov ecx, dword [esp + 8]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00402270
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x40d83b
push 0x63c670
call fcn.00402330
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
call fcn.00577139
mov esp, ebp
pop ebp
ret 4
Function at 0x40dc40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ad8d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x5d616c
lea edx, [esp + 0x18]
push 0x63c670
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ecx
call fcn.00401ba0
add esp, 0xc
push 0x63c6c0
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x3c], 0
call fcn.00401ae0
add esp, 0xc
push str..down
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x3c], 1
call fcn.00401ba0
add esp, 0xc
mov byte [esp + 0x30], 2
mov eax, dword [eax]
push 2
push 0
mov ebx, eax
call fcn.00503eb0
mov edi, eax
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dcfc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x40dd7f
mov ecx, dword [esp + 0xc]
push esi
mov edx, edi
call fcn.0040dde0
cmp dword [edi], 2
mov ebx, eax
sete al
test al, al
mov dword [esp + 0x18], ebx
je 0x40dd70
call fcn.00507d30
jmp 0x40dd7b
mov ebx, edi
call fcn.00503fc0
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x40ddbd
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
test edx, edx
je 0x40dda7
mov ecx, dword [esp + 0xc]
push esi
call fcn.0040dde0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x424ef0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5aa868
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00560f93
push 0x5dd530
lea ecx, [esp + 0x14]
call fcn.004023b0
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0xa0]
push ecx
mov dword [esp + 0x38], 0
call fcn.0048b5e0
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x424f71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x150]
push ecx
push esi
call fcn.00425ba0
push 0x3e9
mov ecx, esi
call fcn.0055c02c
mov edx, dword [eax + 0x20]
lea edi, [esi + 0x88]
push edi
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
call fcn.0055b2ac
push 0x440
mov ecx, esi
call fcn.0055c02c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push 1
sub edx, ecx
push edx
mov edx, dword [esp + 0x1c]
sub edi, edx
push edi
push ecx
push edx
mov ecx, eax
call fcn.0055c18a
push 0
push 0x3e9
mov ecx, esi
call fcn.0055c02c
mov ecx, eax
call fcn.0055c1c8
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret