joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454f30
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4dbe18]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov ebx, ecx
push ebx
mov dword [ebp - 0x408], 0x1388
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x454f84
lea eax, [edi + 1]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x408]
push eax
push 2
push 0
call esi
push 4
lea ecx, [ebp - 0x408]
push ecx
push 5
push 0
call esi
push 4
lea edx, [ebp - 0x408]
push edx
push 6
push 0
call esi
push 4
lea eax, [ebp - 0x408]
push eax
push 8
push 0
call esi
push 0
push 0x80080000
push 0
push 0
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x454ffd
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
pop edi
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x40c]
push edx
push 0x20000013
push esi
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x410], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [ebp - 0x40c]
add eax, 0xffffff38
cmp eax, 0x63
ja 0x455070
push 0x400
lea ecx, [ebp - 0x404]
push 0
push ecx
mov dword [ebp - 0x414], ebx
call fcn.0048f0a0
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
test ebx, ebx
pop esi
sete al
pop edi
xor ecx, ebp
pop ebx
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret

Function at 0x4550c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
test eax, eax
jne 0x4550ce
xor al, al
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0x4550a0
push 0
push 0
mov dword [ebp - 4], 0
call fcn.0048d484
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
je 0x4550f9
test esi, esi
jne 0x455100
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0xfa0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4556f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afdc8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x4dbe18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
xor ebx, ebx
call fcn.0047aec0
test al, al
je 0x45579a
push 0x38
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0048f0a0
add esp, 0xc
lea ecx, [ebp - 0x5c]
push ecx
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x58], 0x1040
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], str.runas
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x45587c
mov edx, dword [ebp - 0x24]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4e3954]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3954
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x4557cb
push esi
push edi
push str.__s___s
lea edi, [ebp - 0x10]
call fcn.00406770
add esp, 0xc
jmp 0x4557dc
push edi
push str.__s_
lea edi, [ebp - 0x10]
call fcn.00406770
add esp, 8
push 0x40
lea ecx, [ebp - 0x60]
push ebx
push ecx
call fcn.0048f0a0
mov edi, dword [ebp - 0x10]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x64]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
mov edx, 5
push ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x64], 0x44
mov word [ebp - 0x34], dx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
cmp esi, ebx
je 0x455845
mov edx, dword [ebp - 0x20]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov ecx, dword [ebp - 0x20]
push ecx
call ebx
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x455868
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
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 0x464950
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
call fcn.00407980
test al, al
mov eax, str.Q360PromoClass
jne 0x46496f
mov eax, str.Q360PromoClassLow
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
push 0x40
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x30]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4e47ac]
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4649b5
push eax
call edi
mov ecx, dword [0x4e47ac]
push ecx
call ebx
mov eax, dword [0x4e47b0]
mov dword [0x4e47ac], 0
test eax, eax
je 0x4649d4
push eax
call edi
mov edx, dword [0x4e47b0]
push edx
call ebx
mov ebx, dword [esi + 0x208]
add esi, 0x1f8
cmp dword [esi + 0xc], ebx
jbe 0x4649ea
call fcn.0048b3f2
mov edi, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [esp + 0x10], eax
cmp edi, dword [esi + 0x10]
jbe 0x4649fd
call fcn.0048b3f2
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ebx
push ecx
push edi
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00468f20
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x1b0]
test eax, eax
je 0x464a30
mov dword [ebx + 0x1b0], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebx + 0x1b4]
test eax, eax
je 0x464a4c
mov dword [ebx + 0x1b4], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea esi, [ebx + 0x210]
mov edi, 7
mov eax, dword [esi]
test eax, eax
je 0x464a6b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi], 0
add esi, 4
sub edi, 1
jne 0x464a57
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [0x4e44e4]
add edi, 0x10
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4e52bc]
mov ecx, dword [edx + 8]
xor eax, eax
test ecx, ecx
jle 0x464ab5
mov edx, dword [edx]
lea esp, [esp]
cmp dword [edx], esi
je 0x464ab0
inc eax
add edx, 4
cmp eax, ecx
jl 0x464aa0
xor esi, esi
jmp 0x464acd
cmp eax, 0xffffffff
jne 0x464ab9
xor esi, esi
jmp 0x464acd
test eax, eax
jl 0x464b0a
cmp eax, ecx
jge 0x464b0a
mov ecx, dword [0x4e52bc]
mov edx, dword [ecx + 4]
mov esi, dword [edx + eax*4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx + 0x50]
add esi, 4
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.00409c30
mov byte [ebx + 0x22d], 0
add ebx, 0x54
push ebx
call fcn.00434870
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x4653e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, eax
mov ebx, 3
call fcn.00406c20
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x46540c
cmp dword [eax + 0x18], ecx
je 0x465416
call fcn.00406f80
mov ecx, dword [eax]
test ecx, ecx
je 0x465416
cmp ecx, dword [esi + 0x30]
je 0x465416
mov ebx, 0x17
mov ecx, dword [esi + 0x30]
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
push ecx
mov dword [ebp - 0x2c], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
cmp dword [ebp - 0x24], 2
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
jne 0x46545f
mov edx, dword [esi + 0x30]
push 9
push edx
call edi
mov eax, dword [esi + 0x30]
push 5
push eax
call edi
mov ecx, dword [esi + 0x30]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
call edi
mov edx, dword [esi + 0x30]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [esi + 0x30]
push 1
push ecx
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
mov edx, dword [esi + 0x30]
push ebx
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push edx
call edi
mov esi, dword [esi + 0x30]
call fcn.00412750
test eax, eax
jne 0x4654c2
mov ecx, esi
call fcn.00412870
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x467000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b6011
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
mov eax, dword [0x4dbe18]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, ebx
mov dword [esp + 0x10], edi
call fcn.00463f90
test al, al
je 0x467195
push 0x206
lea ecx, [esp + 0x32]
mov eax, 0x2f30
push 0
push ecx
mov word [esp + 0x38], ax
call fcn.0048f0a0
add esp, 0xc
lea esi, [esp + 0x20]
call fcn.0047e760
push 0x104
push 0
push 0xffffffffffffffff
push edi
mov dword [esp + 0x258], 0
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [esp + 0x1c], eax
test eax, eax
jbe 0x467159
xor edi, edi
test eax, eax
jbe 0x467159
mov eax, dword [esp + 0x10]
push 0x104
lea edx, [esp + 0x30]
push edx
push edi
push eax
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46714e
lea esi, [esp + 0x2c]
test al, 0x10
je 0x467107
lea edx, [esp + 0x18]
push edx
call fcn.00403c50
push 1
lea eax, [esp + 0x1c]
push eax
push ebx
mov byte [esp + 0x254], 1
call fcn.004668e0
mov byte [esp + 0x248], 0
mov eax, dword [esp + 0x18]
jmp 0x467132
lea ecx, [esp + 0x14]
push ecx
call fcn.00403c50
push 2
lea edx, [esp + 0x18]
push edx
push ebx
mov byte [esp + 0x254], 2
call fcn.004668e0
mov byte [esp + 0x248], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46714e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
cmp edi, dword [esp + 0x1c]
jb 0x4670ac
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.SHELL32.dll_DragFinish]
mov dword [esp + 0x248], 0xffffffff
mov eax, dword [0x4e47f8]
test eax, eax
je 0x467186
cmp dword [esp + 0x28], 1
jne 0x467186
mov edx, dword [esp + 0x24]
push edx
call eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x467195
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret
Function at 0x467680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b533d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x1c0], eax
push esi
mov eax, dword [0x4dbe18]
xor eax, esp
push eax
lea eax, [esp + 0x1d0]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
mov esi, ecx
call fcn.0045f230
push ecx
mov eax, esp
mov dword [esp + 0xc], esp
push ecx
mov dword [esp + 0x1e0], 0
mov dword [eax], 0
mov eax, esp
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x10], esp
push ecx
lea esi, [esp + 0x44]
call fcn.00468cb0
test eax, eax
je 0x467736
call fcn.00406c20
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x467718
cmp dword [eax + 0x18], ecx
je 0x467718
call fcn.00406f80
mov ecx, dword [eax]
mov eax, dword [esp + 0x3c]
cmp ecx, eax
je 0x467736
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea edx, [esp + 0x1b0]
push edx
call fcn.00460ec0
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x1dc], 0xffffffff
call fcn.0045f330
mov ecx, dword [esp + 0x1d0]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret
Function at 0x470ca0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b13e2
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4dbe18]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov edi, ecx
push 0x206
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 0x220], 0
push ecx
mov dword [ebp - 0x224], edi
mov word [ebp - 0x218], ax
call fcn.0048f0a0
add esp, 0xc
push edi
mov esi, 0x4bcd08
call fcn.00403c50
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x21c]
push edx
push eax
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x220], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x470d5a
mov edx, dword [ebp - 0x21c]
lea ecx, [ebp - 0x218]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x470d5a
lea edx, [ebp - 0x218]
call fcn.00403c10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret

Function at 0x471000
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af19b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4dbe18]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00406650
add eax, 0x10
add esp, 4
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 4], 0
call fcn.00421550
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.0048f0a0
mov esi, dword [esi]
lea eax, [ebp - 0x218]
mov ecx, eax
add esp, 0xc
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4710b0
movzx ecx, word [esi + eax]
test cx, cx
je 0x4710b0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x471090
jmp 0x4710b4
test edx, edx
jne 0x4710b7
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x471105
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret 4
Function at 0x471130
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af19b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4dbe18]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00406650
add eax, 0x10
add esp, 4
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 4], 0
call fcn.00421550
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.0048f0a0
mov esi, dword [esi]
lea eax, [ebp - 0x218]
mov ecx, eax
add esp, 0xc
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4711e0
movzx ecx, word [esi + eax]
test cx, cx
je 0x4711e0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4711c0
jmp 0x4711e4
test edx, edx
jne 0x4711e7
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x471235
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret 4
Function at 0x471260
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af15b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4dbe18]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00406650
add eax, 0x10
add esp, 4
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00421550
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x218], cx
call fcn.0048f0a0
mov esi, dword [esi]
lea eax, [ebp - 0x218]
mov ecx, eax
add esp, 0xc
mov edx, 0x104
sub esi, ecx
jmp 0x4712f0
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x471310
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x471310
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4712f0
jmp 0x471314
cmp edx, ebx
jne 0x471317
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, dword [ebp - 0x21c]
mov edi, eax
mov eax, dword [esi - 0xc]
cmp eax, ebx
jge 0x47134a
or eax, 0xffffffff
jmp 0x471365
push 0x4bf0b4
push esi
call fcn.0048ad43
add esp, 8
cmp eax, ebx
jne 0x471361
or eax, 0xffffffff
jmp 0x471365
sub eax, esi
sar eax, 1
cmp eax, ebx
sete al
cmp edi, 4
je 0x471375
cmp al, bl
jne 0x471375
mov bl, 1
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x471398
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret 4
Function at 0x47a2f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x88
push 0xffffffffffffffff
push 0x4ad4fb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4dbe18]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [0x4e6228], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
mov ecx, 0x41
lea ebx, [ebp]
call fcn.0047a070
add esp, 0xc
xor eax, eax
mov word [ebp + 0x80], ax
xor ebx, ebx
xor esi, esi
lea ecx, [ebp]
push ecx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x47a44a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x47a394
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], ebx
call fcn.0047a0e0
cmp eax, ebx
je 0x47a3aa
mov dword [0x4e6228], eax
jmp 0x47a42b
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, ebx
je 0x47a3c5
push 0x5c0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x47a3d9
push edi
push esi
call fcn.0047a770
jmp 0x47a3db
xor eax, eax
mov byte [ebp - 4], bl
mov dword [0x4e6228], eax
cmp eax, ebx
jne 0x47a3fc
mov dword [ebp - 0x1c], 1
push 0x4cd9e8
lea edx, [ebp - 0x1c]
push edx
call fcn.0048f048
mov esi, 1
mov dword [ebp - 0x24], esi
push eax
call fcn.0047a1b0
add esp, 4
test eax, eax
jne 0x47a426
mov dword [ebp - 0x18], 3
push 0x4cd9e8
lea eax, [ebp - 0x18]
push eax
call fcn.0048f048
mov eax, dword [0x4e6228]
inc dword [eax + 0x5bc]
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp esi, ebx
jne 0x47a44a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x4e6228
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.0048ac3c
add ebp, 0x88
mov esp, ebp
pop ebp
ret