joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b00
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402d50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov ecx, dword [ebp + 0x10]
xor edx, edx
push ebx
push esi
mov eax, dword [ecx + 4]
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0
mov dx, word [eax + 0x14]
lea eax, [edx + eax + 0x18]
mov ecx, dword [ecx]
xor edx, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dx, word [ecx + 6]
cmp eax, edx
jge 0x401c7f
mov eax, dword [ebp - 0x14]
push 0x4034d8
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x401bba
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x24], 0x36
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x401bb4
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push 4
push 0x1000
mov eax, dword [ebx + 0xc]
push esi
add eax, ecx
push eax
call dword [0x531b3c]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, 0x401c63
ret
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x28], 0x43
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
push 4
push 0x1000
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [ebp - 0x1c]
add edx, ecx
push edx
call dword [0x531b3c]
mov dword [ebp - 0x20], eax
mov eax, 0x401bf7
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406273
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406298
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x40628f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x40630b
cmp dword [0x440a40], ebx
je 0x40630b
cmp byte [0x440640], bl
je 0x4062d7
cmp dword [0x40a8a0], 0xffffffff
jne 0x4062e0
push 4
push 0x40000000
push 0x440640
call fcn.00405c27
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x40630b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x40630b
push esi
mov esi, 0x444a60
push 0x40aae8
push esi
call fcn.00405f75
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f68
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064bd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44023c], esi
push edi
jne 0x4064f7
mov ecx, 0x440238
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064d3
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440638
jl 0x4064ce
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40652c
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440238]
xor eax, esi
inc ecx
dec edx
jne 0x40650f
pop edi
pop esi
not eax
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x408ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408d39
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408d39
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x408d28
cmp esi, edx
jae 0x408d39
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x408d16
cmp esi, edx
jae 0x408d39
cmp word [esi], 0
je 0x408d39
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x409920
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c758
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
push esi
push edi
mov eax, dword [0x48d06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x1c], esi
mov edi, ecx
mov dword [ebp - 0x20], edi
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x78], 0x44
mov dword [ebp - 0x4c], 0x181
call fcn.004014e0
mov ecx, eax
test ecx, ecx
je 0x409abb
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push 0x46d138
push eax
call fcn.00409180
mov edi, dword [ebx + 0xc]
add esp, 0x10
test edi, edi
je 0x4099ef
mov eax, 0xa
jmp 0x4099f1
xor eax, eax
mov esi, dword [ebp - 0x14]
push esi
mov word [ebp - 0x48], ax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x409a45
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push edi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
push 0x48dac0
call fcn.00417ab0
add esp, 0x1c
jmp 0x409a5d
mov eax, dword [ebx + 8]
test eax, eax
je 0x409a56
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x409a74
push eax
call edi
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x409a85
push eax
call edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x409aa4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.00408740
int3
Function at 0x40a080
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x48d06c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00409fd0
mov esi, eax
test esi, esi
jne 0x40a177
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x40a149
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040a080
mov esi, eax
test esi, esi
jne 0x40a177
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x40a110
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a160
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.00409ef0
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a186
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00422308
mov esp, ebp
pop ebp
ret 4
Function at 0x40a610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c826
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x48d06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x40a6bc
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x40a6bc
call fcn.00408760
mov edi, eax
jmp 0x40a7db
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40a6df
call fcn.00408760
jmp 0x40a7ce
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40a6fd
call fcn.00408760
jmp 0x40a7ce
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40a71e
mov edi, 0x8007000e
jmp 0x40a7d0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x40a814
jb 0x40a73c
cmp eax, 0xffffffff
ja 0x40a814
cmp eax, 0x400
jbe 0x40a751
push eax
lea ecx, [ebp - 0x418]
call fcn.0040ce40
jmp 0x40a777
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40a777
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x40a78e
mov edi, 0x8007000e
jmp 0x40a7d0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40a7ae
call fcn.00408760
jmp 0x40a7ce
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040b3e0
mov edi, eax
test esi, esi
je 0x40a7db
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40a7f4
lea ecx, [ebp - 0x418]
call fcn.0040ce30
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00422308
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00408740
int3
Function at 0x40ca20
Capabilities:
Check mutex on windows
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push str.GlobalQingDaoFuUninst
push 0
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call fcn.00410750
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
test eax, eax
je 0x40cb77
xor ebx, ebx
cmp dword [0x48f350], ebx
jne 0x40cb86
push str.C47FDC4D_1A67_4f40_AC64_318730C895A2
push 4
push ebx
push 4
push ebx
push 0xffffffffffffffff
mov dword [0x48f34c], 4
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x48f350], eax
test eax, eax
jne 0x40ca8a
call fcn.00408760
mov esi, eax
jmp 0x40caf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [0x48f34c]
xor ebx, ebx
mov dword [0x48f360], 0xf001f
push 0
push 0
push 0xf001f
push dword [0x48f350]
cmp eax, 0xb7
xorps xmm0, xmm0
movlpd qword [0x48f358], xmm0
sete bl
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [0x48f348], eax
test eax, eax
jne 0x40caff
call fcn.00408760
push dword [0x48f350]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x48f350], 0
test esi, esi
js 0x40cb86
mov eax, dword [0x48f348]
test ebx, ebx
je 0x40cb81
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40cb77
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov ebx, eax
push 1
push esi
push ebx
call edi
mov esi, dword [ebp - 4]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push dword [ebp - 8]
push ebx
call edi
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040d790
call fcn.00410750
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x40cbab
call fcn.00410750
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0040c530
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d790
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x48d06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20a
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.00424870
add esp, 0xc
lea eax, [ebp - 0x430]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00424870
add esp, 0xc
lea eax, [ebp - 0x640]
push 0x20a
push 0
push eax
call fcn.00424870
add esp, 0xc
lea eax, [ebp - 0x850]
push 0x20a
push 0
push eax
call fcn.00424870
add esp, 0xc
lea eax, [ebp - 0x850]
lea edx, [ebp - 0x640]
lea ecx, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0040d4a0
xor ecx, ecx
add esp, 8
xor edi, edi
xor eax, eax
mov ebx, 1
cmp cx, word [ebp - 0x220]
je 0x40d8d0
lea eax, [ebp - 0x220]
push 0x2e
push eax
call fcn.00423bbf
mov esi, eax
add esp, 8
test esi, esi
je 0x40d8c7
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x220]
push eax
call fcn.00437c8c
lea edi, [esi + 2]
movzx ebx, ax
add esp, 4
test edi, edi
je 0x40d8c7
push 0x2e
push edi
call fcn.00423bbf
mov esi, eax
add esp, 8
test esi, esi
je 0x40d8c7
xor eax, eax
push edi
mov word [esi], ax
call fcn.00437c8c
add esp, 4
movzx edi, ax
add esi, 2
je 0x40d8c7
push 0x2e
push esi
call fcn.00423bbf
add esp, 8
test eax, eax
je 0x40d8bc
xor ecx, ecx
mov word [eax], cx
push esi
call fcn.00437c8c
add esp, 4
jmp 0x40d8d0
xor edi, edi
mov ebx, 1
xor eax, eax
sub esp, 0x14
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x430]
push eax
lea edx, [ebp - 0x640]
call fcn.0040ce90
mov esi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
add esp, 0x28
push fcn.0040d400
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x854]
push eax
push 5
lea eax, [ebp - 0xc]
mov dword [ebp - 0x854], 0
push eax
push esi
mov dword [ebp - 0xc], 0x4c2c033
mov byte [ebp - 8], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push eax
call ebx
mov eax, dword [0x48f408]
test eax, eax
je 0x40d943
mov dword [eax + 0x1c], 0x2710
push fcn.0040d400
call esi
lea eax, [ebp - 0x854]
mov dword [ebp - 0x854], 0
push eax
push 5
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x4c2c033
push eax
push esi
mov byte [ebp - 8], 0
call edi
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422308
mov esp, ebp
pop ebp
ret
Function at 0x40d9d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ca0b
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x48d06c]
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 ebx, edx
mov dword [ebp - 0x638], ebx
mov edi, ecx
mov dword [ebp - 0x63c], edi
mov dword [ebp - 0x634], edi
mov dword [ebp - 0x634], edi
call fcn.004014e0
mov ecx, eax
test ecx, ecx
je 0x40dc01
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x634], esi
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x220], ax
test ebx, ebx
je 0x40dbb8
lea eax, [ebp - 0x220]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x40dbb8
mov eax, dword [0x470718]
lea edi, [ebp - 0x220]
movzx ecx, word [ebp - 0x220]
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov ax, word [0x47071c]
mov word [ebp - 0x14], ax
nop word [eax + eax]
push 0x104
lea eax, [ebp - 0x428]
mov word [ebp - 0x18], cx
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40db62
push 0xffffffffffffffff
push 0x470714
lea eax, [ebp - 0x428]
push 0x104
push eax
call fcn.00437eda
lea esi, [ebp - 0x428]
add esp, 0x10
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40dad6
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x40db62
push esi
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x638]
call fcn.004380be
xor ebx, ebx
add esp, 0xc
test eax, eax
sete bl
test eax, eax
jne 0x40db62
mov eax, dword [ebp - 0x638]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x470708
lea eax, [ebp - 0x630]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea ecx, [ebp - 0x630]
add esp, 0x14
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40db40
sub ecx, edx
lea eax, [ebp - 0x630]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x634]
call fcn.00409090
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x40db62
test ebx, ebx
jne 0x40db7f
movzx eax, word [edi]
mov ecx, eax
test ax, ax
jne 0x40da90
mov esi, dword [ebp - 0x634]
add esi, 0xfffffff0
mov ecx, esi
call fcn.004094a0
mov edi, dword [ebp - 0x63c]
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40dbe3
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x40dbe3
add esi, 0xfffffff0
mov ecx, esi
call fcn.004094a0
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40dbe3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.00422308
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408740
int3
Function at 0x40f4f0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cbf0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x48d06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 4], 0
je 0x40f687
lea ecx, [ebp - 0x28]
call fcn.0041ba80
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
jb 0x40f570
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
movzx ecx, word [eax + ecx*2 - 2]
xor eax, eax
nop
cmp cx, word [eax + 0x482750]
je 0x40f570
add eax, 2
cmp eax, 4
jb 0x40f550
push 1
push 0x486c90
lea ecx, [ebp - 0x28]
call fcn.00407dd0
lea eax, [ebp - 0x40]
lea esi, [edi + 8]
push eax
mov ecx, esi
call fcn.00418b90
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004196a0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40f5c9
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f5bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f6a2
push edx
push ecx
call fcn.0042297a
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, esi
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x40f5de
mov ecx, dword [esi]
push eax
push ecx
push str.Copy_File___s______s_
push 0x48dac0
call fcn.00417de0
add esp, 0x10
cmp dword [0x48dac0], 0
jne 0x40f62d
mov eax, dword [0x48dacc]
mov dword [0x48dac0], 1
test eax, eax
je 0x40f62d
mov ecx, dword [0x48dac8]
test ecx, ecx
je 0x40f624
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x48dacc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x40f640
mov esi, dword [esi]
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x14]
mov dword [edi + 4], 0
cmp edx, 8
jb 0x40f687
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f67d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f6a7
push edx
push ecx
call fcn.0042297a
add esp, 8
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.00422308
mov esp, ebp
pop ebp
ret
call fcn.004309e5
call fcn.004309e5
int3
Function at 0x40f910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
push ebx
mov dword [ebp - 0xc], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [eax]
test eax, eax
je 0x40f9d5
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
jne 0x40f9d5
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.00408e70
mov edx, dword [ebp - 4]
shr edx, 1
add edx, 1
js 0x40f9de
mov edi, dword [esi]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x40f97c
push edx
mov ecx, esi
call fcn.00408a90
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f9d3
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
mov word [edi + eax*2], cx
mov eax, dword [esi]
test eax, eax
je 0x40f9bc
push dword [eax - 8]
push eax
call fcn.00436a2a
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40f9de
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40f9de
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
mov word [eax + ecx*2], dx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00408740
int3