joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10078e12
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10082330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006b5b4
mov dword [ebp - 0x14], eax
cmp dword [0x1066effc], esi
jne 0x10078f05
push 0x800
push esi
push 0x100079cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10078e92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10078fe5
push esi
push esi
push 0x100079cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10078fe5
push 0x100079e4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10078fe5
push eax
call ebx
push 0x100079f0
push edi
mov dword [0x1066effc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007a00
push edi
mov dword [0x1066f000], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007a14
push edi
mov dword [0x1066f004], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066f00c], eax
test eax, eax
je 0x10078f02
push 0x10007a30
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066f008], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10078f2a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10078f1d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10078f3f
push 4
pop eax
jmp 0x10078fe7
cmp dword [ebp - 0x14], esi
je 0x10078f3f
push dword [0x1066effc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10078f24
mov eax, dword [0x1066f008]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10078f9d
cmp dword [0x1066f00c], edi
je 0x10078f9d
push eax
call ebx
push dword [0x1066f00c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10078f9d
test eax, eax
je 0x10078f9d
call ecx
test eax, eax
je 0x10078f92
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10078f92
test byte [ebp - 8], 1
jne 0x10078f9d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10078fcd
mov eax, dword [0x1066f000]
cmp eax, edi
je 0x10078fca
push eax
call ebx
test eax, eax
je 0x10078fca
call eax
mov esi, eax
test esi, esi
je 0x10078fca
mov eax, dword [0x1066f004]
cmp eax, edi
je 0x10078fca
push eax
call ebx
test eax, eax
je 0x10078fca
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1066effc]
call ebx
test eax, eax
je 0x10078fe5
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10078fe7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x72881b46
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
push edi
cmp ebx, ecx
jne 0x72881b62
mov eax, dword [esi + 0x28]
jmp 0x72881b64
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x7288a034]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
mov byte [ebp - 8], cl
mov dword [ebp - 4], ecx
call edi
push dword [esi + 0x10]
push dword [esi + 0x14]
push dword [esi + 0xc]
call fcn.72881bcd
add esp, 0xc
test ebx, ebx
jne 0x72881bab
push dword [ebp - 0x14]
jmp 0x72881bad
push 0
push dword [0x7288a034]
call edi
mov edi, dword [ebp - 4]
test edi, edi
je 0x72881bc1
call fcn.72887365
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x72881cec
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea esi, [ebx + 4]
mov eax, dword [esi]
cmp eax, 2
je 0x72881d5b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
mov eax, dword [0x7288a3c0]
mov ecx, dword [esi]
cmp ecx, 2
je 0x72881d5a
pause
dec eax
test eax, eax
jg 0x72881d16
call edi
sub eax, dword [ebp - 4]
cmp eax, 0x64
jb 0x72881d0b
xor ecx, ecx
inc ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x72881d5a
cmp dword [ebx + 0xc], eax
jne 0x72881d4f
lea esi, [ebp - 0xc]
mov byte [ebp - 0xc], 1
call fcn.728821a0
mov dword [ebx + 0xc], eax
push 0xffffffffffffffff
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
leave
ret

Function at 0x7288211b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x7288212e
xor eax, eax
jmp 0x728821c7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
invalid
Function at 0x728857f4
Capabilities:
Allocate thread local storage
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, 1
jne 0x7288582d
push esi
push edi
call fcn.7288234a
mov eax, 0x72881104
mov esi, 0x72881108
mov edi, eax
cmp eax, esi
jae 0x7288582b
mov eax, dword [edi]
test eax, eax
je 0x72885824
call eax
add edi, 4
cmp edi, esi
jb 0x7288581c
pop edi
pop esi
and dword [0x7288a3a8], 0
cmp ebx, 1
jne 0x72885866
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x7288a034], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x7288585a
mov dword [0x7288a010], eax
call fcn.7288592a
call fcn.728859b1
jmp 0x72885880
test ebx, ebx
jne 0x72885871
call fcn.7288588d
jmp 0x72885880
cmp ebx, 2
je 0x72885880
cmp ebx, 3
jne 0x72885880
call fcn.728858e0
xor eax, eax
inc eax
pop ebx
leave
ret 0xc
Function at 0x72887aae
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [section..data]
xor eax, esp
mov dword [eax + esi*2 + 0x142], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x14], eax
xor eax, eax
push 0x208
mov word [esp + 0x1c], ax
xor esi, esi
lea eax, [esp + 0x1e]
push esi
push eax
call fcn.72888170
add esp, 0xc
push esi
push esi
mov dword [esp + 0x18], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x72881168
call esi
mov edi, eax
lea eax, [edi + edi]
cmp eax, edi
ja 0x72887b23
xor eax, eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.72887da8
mov esp, ebp
pop ebp
ret
push eax
call fcn.72881c36
pop ecx
push edi
push eax
xor ecx, ecx
push 0x72881174
mov dword [esp + 0x18], eax
mov word [eax], cx
mov ebx, eax
call esi
test eax, eax
je 0x72887bbe
mov eax, ebx
cmp word [eax], 0
je 0x72887bbe
mov edi, 0x104
movzx eax, word [ebx]
cmp eax, 0x20
je 0x72887b5c
cmp eax, 0x3b
jne 0x72887b61
add ebx, 2
jmp 0x72887b4f
movzx eax, word [ebx]
test ax, ax
je 0x72887bbe
xor edx, edx
lea ecx, [esp + 0x18]
cmp ax, 0x3b
je 0x72887b8b
inc edx
cmp edx, edi
jge 0x72887b8b
add ebx, 2
mov word [ecx], ax
movzx eax, word [ebx]
add ecx, 2
test ax, ax
jne 0x72887b6f
xor eax, eax
mov word [ecx], ax
test edx, edx
je 0x72887bb8
cmp edx, edi
jge 0x72887bb8
push dword [esp + 0x14]
lea edx, [esp + 0x14]
push 0x72881180
lea ecx, [esp + 0x20]
call fcn.728874a4
mov esi, dword [esp + 0x18]
pop ecx
pop ecx
test esi, esi
jne 0x72887bc0
cmp word [ebx], 0
jne 0x72887b4f
xor esi, esi
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
jmp 0x72887b0e

Function at 0x72887cc7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x7288a3dc]
test eax, eax
jne 0x72887ced
call fcn.72887bdf
mov dword [0x7288a3dc], eax
test eax, eax
jne 0x72887ced
mov eax, 0x72880000
mov dword [0x7288a3dc], eax
mov ecx, dword [ebp + 8]
sar ecx, 4
inc ecx
movzx ecx, cx
push 6
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x72887d0c
mov eax, 0x728811c8
pop ebp
ret
push eax
push dword [0x7288a3dc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x72887d24
mov eax, 0x728811cc
pop ebp
ret
mov ecx, dword [ebp + 8]
and ecx, 0x8000000f
jns 0x72887d34
dec ecx
or ecx, 0xfffffff0
inc ecx
je 0x72887d40
dec ecx
movzx edx, word [eax]
lea eax, [eax + edx*2 + 2]
jne 0x72887d36
cmp word [eax], 0
jne 0x72887d4d
mov eax, 0x728811d0
pop ebp
ret
add eax, 2
pop ebp
ret
Function at 0x401100
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [0x54735c]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
xor edi, edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
cmp dword [esi + 0x10], edi
je 0x401168
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x401168
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40117f
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.004f313b
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x401311
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4011a0
mov eax, dword [esi]
lea ecx, [esp + 0x44]
push ecx
push eax
call fcn.004fb47c
add esp, 8
test eax, eax
jne 0x4012f6
cmp dword [ebx + 0x10], eax
je 0x401332
push dword [esp + 0x28]
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4012f6
push 0x208
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.004f53d0
add esp, 0xc
lea eax, [esp + 0x268]
push 0x104
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x4012f6
xor eax, eax
mov dword [esp + 0x260], 0
mov word [esp + 0x250], ax
lea eax, [esp + 0x268]
mov dword [esp + 0x264], 7
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401240
sub eax, edx
lea ecx, [esp + 0x250]
sar eax, 1
push eax
lea eax, [esp + 0x26c]
push eax
call fcn.00403ab0
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x40126e
mov eax, dword [ebx]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x250]
mov ebx, dword [esp + 0x264]
cmp ebx, 8
mov esi, dword [esp + 0x250]
cmovae ecx, esi
push dword [edx + 0x10]
mov edx, dword [esp + 0x264]
push eax
push 0
call fcn.00402f40
add esp, 0xc
mov dword [esp + 0x1c], eax
cmp ebx, 8
jb 0x4012da
lea ecx, [ebx*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x4012cc
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401338
push ecx
push esi
call fcn.004f2ead
mov eax, dword [esp + 0x24]
add esp, 8
cmp eax, 0xffffffff
je 0x4012ee
mov eax, dword [esp + 0x28]
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401196
mov edi, dword [esp + 0x18]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x474]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f313b
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x28]
jmp 0x401311
call fcn.004f855c
int3
Function at 0x4016c0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x448
mov eax, dword [0x54735c]
xor eax, esp
mov dword [esp + 0x444], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x14], edi
mov esi, dword [edx]
test esi, esi
jne 0x4016f4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push 0x208
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.004f53d0
push 0x208
lea eax, [esp + 0x250]
push 0
push eax
call fcn.004f53d0
add esp, 0x18
mov dword [esp + 0x18], 0x104
xor eax, eax
mov dword [esp + 0x14], 0x104
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
push 0x10
push str.SeDebugPrivilege
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 7
mov word [esp + 0x28], ax
call fcn.00403ab0
lea ecx, [esp + 0x20]
call fcn.004018b0
mov edx, dword [esp + 0x34]
cmp edx, 8
jb 0x4017a8
mov ecx, dword [esp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40179e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4018a2
push edx
push ecx
call fcn.004f2ead
add esp, 8
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x401855
lea ecx, [esp + 0x10]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401855
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push 0
push 1
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4017fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401855
push dword [esp + 0xc]
call fcn.004fb5e7
mov esi, eax
add esp, 4
test esi, esi
je 0x401855
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push esi
push 1
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40184c
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x48]
push eax
push dword [esi]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
push esi
call fcn.004f85ad
add esp, 4
xor eax, eax
mov dword [edi + 0x10], 0
lea ecx, [esp + 0x38]
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401870
sub ecx, edx
lea eax, [esp + 0x38]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00403ab0
mov ecx, dword [esp + 0x44c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004f313b
mov esp, ebp
pop ebp
ret
call fcn.004f855c
int3
Function at 0x401b70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
xor eax, eax
mov dword [ebp - 0x54], 0x44
cmp byte [ebp + 0x14], al
mov ecx, 5
push esi
mov esi, dword [ebp + 8]
mov edx, 2
mov word [ebp - 0x12], ax
xorps xmm0, xmm0
cmovne eax, ecx
movlpd qword [ebp - 0x50], xmm0
mov word [ebp - 0x24], ax
xor ecx, ecx
mov eax, dword [esi + 0x10]
inc eax
movlpd qword [ebp - 0x48], xmm0
mul edx
movups xmmword [ebp - 0x10], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
push edi
movlpd qword [ebp - 0x30], xmm0
seto cl
movlpd qword [ebp - 0x22], xmm0
neg ecx
movlpd qword [ebp - 0x1a], xmm0
or ecx, eax
mov dword [ebp - 0x28], 1
push ecx
call fcn.004f3397
mov edi, eax
add esp, 4
test edi, edi
jne 0x401bf3
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
inc eax
push eax
push 0
push edi
call fcn.004f53d0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x401c0b
mov esi, dword [esi]
push ebx
push esi
push 0x5361c4
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov bl, 1
cmp dword [eax + 0x10], 0
ja 0x401c2b
xor eax, eax
jmp 0x401c33
cmp dword [eax + 0x14], 8
jb 0x401c33
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x10], 0
ja 0x401c40
xor ecx, ecx
jmp 0x401c48
cmp dword [ecx + 0x14], 8
jb 0x401c48
mov ecx, dword [ecx]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x54]
push edx
push eax
movzx eax, byte [ebp + 0x18]
push 0
push 0x20
push eax
push 0
push 0
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401c6e
xor bl, bl
jmp 0x401cbb
cmp byte [ebp + 0x1c], 0
je 0x401c89
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401c89
push dword [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401c6a
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x401ca3
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401ca3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401c6a
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x401caf
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x401cbb
mov eax, dword [ebp - 8]
mov dword [ecx], eax
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push edi
call fcn.004f33a0
add esp, 4
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403d00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b386
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x54735c]
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 edi, edx
mov esi, ecx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x84], esi
cmp dword [edi + 0x10], 0
jne 0x403d66
push 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push 0x536330
mov byte [esi], 0
call fcn.00409bb0
jmp 0x403eef
push ecx
lea ecx, [ebp - 0x140]
call fcn.004067b0
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x403d81
mov edi, dword [edi]
cmp dword [ebp - 0xe4], 0
jne 0x403e49
push 0x40
push 0x21
push edi
call fcn.004ab8bf
add esp, 0xc
test eax, eax
je 0x403e49
push 1
push eax
lea ecx, [ebp - 0x130]
call fcn.00407cd0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xfc]
mov edi, dword [eax + 4]
mov ecx, edi
mov dword [ebp - 0x84], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 2
push eax
call fcn.00408390
mov ebx, eax
add esp, 4
mov ecx, ebx
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
call edx
test al, al
je 0x403df9
mov dword [ebp - 0xf8], 0
jmp 0x403e0a
lea ecx, [ebp - 0x130]
mov dword [ebp - 0xf8], ebx
call fcn.00407f80
mov byte [ebp - 4], 3
test edi, edi
je 0x403e25
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x403e25
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x140]
mov eax, dword [ebp - 0x140]
xor edx, edx
mov eax, dword [eax + 4]
add ecx, eax
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x403e6c
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x140]
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push 0
push eax
call fcn.00409a10
cmp dword [ebp - 0xe4], 0
jne 0x403e9e
push 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 0xf
push 0x536330
mov byte [esi], 0
call fcn.00409bb0
jmp 0x403ee4
lea eax, [ebp - 0x140]
mov byte [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x80], 0x67452301
mov dword [ebp - 0x7c], 0xefcdab89
mov dword [ebp - 0x78], 0x98badcfe
mov dword [ebp - 0x74], 0x10325476
call fcn.00419b70
push esi
lea ecx, [ebp - 0x80]
call fcn.0041a3f0
lea ecx, [ebp - 0x140]
call fcn.00403f10
mov eax, esi
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.004f313b
mov esp, ebp
pop ebp
ret
Function at 0x403fa0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x54735c]
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, ecx
cmp dword [esi + 0x10], 0
jne 0x403fdc
xor al, al
jmp 0x4040cf
push esi
lea ecx, [ebp - 0x28]
call fcn.004031b0
mov edx, 0x2f
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040a140
mov edx, 0x5c
lea ecx, [ebp - 0x28]
call fcn.0040a140
cmp dword [ebp - 0x18], 3
ja case.default.0x404023
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
ja case.default.0x404023
jmp dword [eax*4 + 0x4040f4]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x278]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40407b
mov eax, dword [esi + 0x10]
lea edx, [eax - 1]
cmp eax, edx
jbe 0x4040ea
mov eax, dword [esi + 0x14]
mov ecx, esi
cmp eax, 8
jb 0x404062
mov ecx, dword [esi]
cmp word [ecx + edx*2], 0x5c
je case.0x404023.3
cmp eax, 8
jb 0x404070
mov esi, dword [esi]
cmp word [esi + edx*2], 0x2f
jne case.0x404023.0
mov bl, 1
jmp 0x404097
test byte [ebp - 0x278], 0x10
push eax
je 0x40408f
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
jmp 0x404097
call dword [sym.imp.KERNEL32.dll_FindClose]
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4040cd
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4040c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4040ef
push edx
push ecx
call fcn.004f2ead
add esp, 8
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.004f313b
mov esp, ebp
pop ebp
ret
call fcn.004024b0
call fcn.004f855c
xchg ebp, eax
inc eax
inc eax
add byte [ebp - 0x6affbfc0], dl
inc eax
inc eax
add byte [ebx - 0x74ffbfc0], cl
inc eax
inc eax
add ah, cl
int3
Function at 0x4047b0
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b498
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x54735c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
push ecx
lea ecx, [ebp - 0x28]
call fcn.004031b0
mov edx, 0x20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040a200
cmp dword [ebp - 0x18], 0
je 0x4048b8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4048b8
mov eax, dword [ebp - 0x18]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f3397
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov esi, eax
cmovae ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, 2
push ecx
push esi
call fcn.004fb5f2
mov eax, dword [ebp - 0x18]
xor ecx, ecx
add esp, 0x10
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x18]
mov word [esi + eax*2 + 2], cx
mov eax, 0x454
mov dword [ebp - 0x36], ecx
mov dword [ebp - 0x32], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x2e], ecx
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], ecx
test bl, bl
jne 0x40488f
mov eax, 0x414
mov word [ebp - 0x38], ax
mov bl, 1
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
test esi, esi
je 0x4048ba
push esi
call fcn.004f33a0
add esp, 4
jmp 0x4048ba
mov bl, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4048f0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4048e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40490d
push edx
push ecx
call fcn.004f2ead
add esp, 8
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.004f313b
mov esp, ebp
pop ebp
ret
call fcn.004f855c
int3