joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cd00
Capabilities:
Check mutex on windows
Get session user name

Disassembly:
push 0x240
mov eax, 0x4a8767
call fcn.00473acf
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x24c], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp + 8]
mov esi, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41cd38
lea edi, [ebp - 0x218]
sub eax, esi
sub edi, 2
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x41cd4e
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x218]
push eax
push ebx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
test esi, esi
je 0x41ce69
cmp eax, 0xb7
jne 0x41ce69
push 0
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x248], eax
test eax, eax
je 0x41ce39
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x240]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x248]
mov dword [ebp - 0x244], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x41ce0f
cmp dword [ebp - 0x23c], 2
jne 0x41cdfc
cmp dword [ebp - 0x240], 2
jne 0x41cdf8
push 3
jmp 0x41ce07
push 9
jmp 0x41ce07
cmp dword [ebp - 0x23c], 3
je 0x41cdf4
push 5
push dword [ebp - 0x248]
call esi
mov edi, dword [ebp - 0x248]
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x41ce27
push 5
push edi
call esi
call ebx
push edi
call fcn.0041cb65
pop ecx
push 1
push 0
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00409a10
mov dword [ebp - 4], 3
xor esi, esi
inc esi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00409a10
mov eax, esi
call fcn.00473b52
ret
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00409a10
mov dword [ebp - 4], 5
xor esi, esi
jmp 0x41ce52
Function at 0x41cf82
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.00477a70
mov eax, dword [0x4f9340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x2d10], ecx
call fcn.0040a6fe
xor esi, esi
xor edi, edi
push edi
lea eax, [ebp - 0x204]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
push esi
push 3
push esi
push 3
push esi
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41cfe8
inc edi
cmp edi, 4
jl 0x41cfab
jmp 0x41d073
xor eax, eax
lea edi, [ebp - 0x2d08]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x2710
push edi
lea eax, [ebp - 0x2cfc]
push esi
push eax
mov dword [ebp - 0x2d0c], esi
mov dword [ebp - 0x2d08], esi
mov dword [ebp - 0x2d04], esi
call fcn.00473120
add esp, 0xc
push esi
lea eax, [ebp - 0x2d0c]
push eax
push edi
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41d073
mov eax, dword [ebp - 0x2ce4]
push 1
lea esi, [ebp - 0x5ec]
lea ecx, [ebp - 0x2cfc]
call fcn.0041c6fe
pop ecx
mov ecx, dword [ebp - 0x2d10]
mov eax, esi
push eax
call fcn.0040aa78
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00473108
leave
ret
Function at 0x41d082
Capabilities:
Get file version info

Disassembly:
push 0x228
mov eax, 0x4a87e8
call fcn.00473acf
mov eax, dword [ebp + 8]
mov esi, ecx
xor edi, edi
push 0x4f930c
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], edi
call fcn.0040a6cc
push 2
pop ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x218]
cmp esi, edi
jne 0x41d0d3
push 0x208
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x41d0db
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x228], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x234], eax
cmp eax, edi
je 0x41d1cd
push eax
push ebx
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x230], edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, edi
jne 0x41d13d
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push eax
call fcn.0040a8a7
mov dword [ebp - 0x224], 1
jmp 0x41d1e9
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push esi
push dword [ebp - 0x234]
lea eax, [ebp - 0x218]
push dword [ebp - 0x228]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x230]
push eax
push 0x4c1938
push esi
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x22c], edi
je 0x41d206
mov eax, dword [ebp - 0x230]
cmp eax, edi
je 0x41d206
mov cx, word [eax + 0x12]
mov dx, word [eax + 0x10]
mov si, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
movzx eax, si
push eax
movzx eax, dx
push eax
movzx eax, cx
push eax
lea eax, [ebp - 0x21c]
push 0x4c193c
push eax
call fcn.0040ab53
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push eax
call fcn.0040a8a7
mov dword [ebp - 0x224], 1
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.00409a10
mov eax, dword [ebp - 0x220]
call fcn.00473b52
ret
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push eax
call fcn.0040a8a7
mov dword [ebp - 0x224], 1
jmp 0x41d1e9
Function at 0x41d224
Capabilities:
Create directory

Disassembly:
push 0x14
mov eax, 0x4a8840
call fcn.00473a66
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov ecx, dword [ecx - 0xc]
xor ebx, ebx
cmp ecx, ebx
jne 0x41d245
xor al, al
jmp 0x41d345
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a8a7
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
cmp eax, ebx
jl 0x41d34b
cmp eax, ecx
jg 0x41d34b
cmp word [edx + eax*2], 0x5c
je 0x41d27b
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0042f795
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
push 0x4f930c
lea ecx, [ebp - 0x14]
call fcn.0040a6cc
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
xor esi, esi
mov byte [ebp + 0xb], bl
cmp ecx, ebx
jle 0x41d2ed
cmp esi, ebx
jl 0x41d34b
cmp esi, ecx
jg 0x41d34b
movzx eax, word [eax + esi*2]
cmp eax, 0x5c
je 0x41d2cc
cmp esi, ecx
jg 0x41d34b
push eax
jmp 0x41d2da
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.0042f7c2
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0042f795
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
inc esi
cmp esi, ecx
jl 0x41d2a8
xor esi, esi
cmp dword [ebp - 0x1c], ebx
jle 0x41d319
cmp esi, ebx
jl 0x41d355
cmp esi, dword [ebp - 0x1c]
jge 0x41d355
mov eax, dword [ebp - 0x20]
lea eax, [eax + esi*4]
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne byte [ebp + 0xb]
inc esi
cmp esi, dword [ebp - 0x1c]
jl 0x41d2f4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00409a10
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.0042ecc3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00409a10
mov al, byte [ebp + 0xb]
call fcn.00473b3e
ret
push 0x80070057
call fcn.0040987d
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x41d365
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push 8
mov eax, 0x4a8883
call fcn.00473a66
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41d394
test al, 1
je 0x41d394
and eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x41d450
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41d3bf
mov dword [ebp - 0x10], 1
jmp 0x41d450
mov ecx, dword [ebp + 8]
call fcn.0041c8c5
push 0x4f930c
lea ecx, [ebp - 0x14]
call fcn.0040a6cc
mov byte [ebp - 4], 2
push 0
call fcn.00477234
mov edi, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
pop ecx
mov ebx, edx
jle 0x41d3fb
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.0040a631
mov eax, dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
lea eax, [ebp - 0x14]
push edx
push ebx
push edi
push esi
push 0x4c202c
push eax
call fcn.0040ab53
mov esi, dword [ebp - 0x14]
add esp, 0x18
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x41d444
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
lea ecx, [esi - 0x10]
call fcn.00409a10
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00409a10
mov eax, dword [ebp - 0x10]
call fcn.00473b3e
ret
Function at 0x41d794
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x41d7b4
xor eax, eax
jmp 0x41d82c
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
jne 0x41d7d2
xor eax, eax
jmp 0x41d82b
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 8]
push ebx
push eax
call fcn.004731a0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push esi
push dword [ebp - 4]
call fcn.00431fce
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x41e645
Capabilities:
Write file on windows

Disassembly:
push 0xf0
mov eax, 0x4a8de9
call fcn.00473acf
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xdc], eax
call fcn.0042d1df
mov dword [ebp - 4], 1
push 0x4f930c
lea ecx, [ebp - 0xd4]
call fcn.0040a6cc
mov byte [ebp - 4], 3
push 0
call fcn.00477234
pop ecx
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xc8], edx
call fcn.00425b36
test eax, eax
je 0x41e6af
mov esi, dword [eax + 0xc]
jmp 0x41e6b1
xor esi, esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xcc]
call fcn.00425b36
test eax, eax
je 0x41e6ca
mov eax, dword [eax + 0x10]
inc eax
jmp 0x41e6cc
xor eax, eax
push esi
push eax
lea ecx, [ebp - 0xcc]
call fcn.00425b8b
push eax
lea eax, [ebp - 0xd4]
push str.pcmastertray_log__d__d__d.log
push eax
call fcn.0040ab53
add esp, 0x10
lea eax, [ebp - 0xd4]
mov ecx, esp
mov dword [ebp - 0xd0], esp
push eax
call fcn.0040a8a7
mov byte [ebp - 4], 4
push ecx
mov eax, esp
mov dword [ebp - 0xd8], esp
push eax
lea ecx, [ebp - 0xfc]
call fcn.00432d79
mov byte [ebp - 4], 5
lea eax, [ebp - 0xe0]
push eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xfc]
call fcn.004330ec
mov byte [ebp - 4], 6
push 0x4c00dc
push dword [ebp - 0xe0]
call fcn.0047679b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41e856
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xcc]
call fcn.00425b36
test eax, eax
je 0x41e772
mov eax, dword [eax]
mov dword [ebp - 0xd8], eax
jmp 0x41e779
or dword [ebp - 0xd8], 0xffffffff
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xcc]
call fcn.00425b36
test eax, eax
je 0x41e797
mov eax, dword [eax + 4]
mov dword [ebp - 0xd0], eax
jmp 0x41e79e
or dword [ebp - 0xd0], 0xffffffff
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0xcc]
call fcn.00425b36
test eax, eax
je 0x41e7b9
mov ebx, dword [eax + 8]
jmp 0x41e7bc
or ebx, 0xffffffff
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0xcc]
call fcn.00425b36
test eax, eax
je 0x41e7d7
mov esi, dword [eax + 0xc]
jmp 0x41e7d9
xor esi, esi
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0xcc]
call fcn.00425b36
test eax, eax
je 0x41e7f2
mov eax, dword [eax + 0x10]
inc eax
jmp 0x41e7f4
xor eax, eax
push dword [ebp - 0xd8]
lea ecx, [ebp - 0xcc]
push dword [ebp - 0xd0]
push ebx
push esi
push eax
call fcn.00425b8b
push eax
push str.__4d__2d__2d__2d:_2d:_2d_
push edi
call fcn.004751c9
mov eax, dword [ebp - 0xdc]
add esp, 0x20
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41e826
push edi
sub eax, ecx
push eax
push 1
push dword [ebp - 0xdc]
call fcn.00474f57
push edi
push 2
push 1
push 0x4c00fc
call fcn.00474f57
push edi
call fcn.00473ecb
add esp, 0x24
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xe0]
add ecx, 0xfffffff0
call fcn.00409a10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xd4]
add ecx, 0xfffffff0
call fcn.00409a10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf8]
call fcn.0042d237
call fcn.00473b52
ret
Function at 0x41ffd9
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4f9340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 5
pop ecx
mov esi, str.mshtml.dll
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
movsw word es:[edi], word [esi]
mov dword [ebp - 0x28], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x420064
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x420064
push edi
push esi
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42005d
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x4bd73c
push edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42005d
cmp dword [ebp - 0x20], ebx
je 0x42005d
mov eax, dword [ebp - 0x24]
movzx ebx, word [eax + 0xa]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00473108
leave
ret

Function at 0x4200af
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4f9340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
mov esi, ecx
push ebx
mov dword [ebp - 0x10c], esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x108], eax
cmp eax, ebx
jne 0x420101
cmp dword [ebp + 0xc], ebx
je 0x420183
push 0x10
push str.Internet_open_failed_
push esi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x420183
push 4
lea ecx, [ebp + 8]
push ecx
push 2
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push 0x102
push ebx
push ebx
push esi
push dword [ebp - 0x108]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, ebx
jne 0x42016d
cmp dword [ebp + 0xc], ebx
je 0x420177
push edi
push 0x13
pop ecx
push 0xb4
lea eax, [ebp - 0xb8]
push ebx
mov esi, str.Internet_open_url_failed__error_code
lea edi, [ebp - 0x104]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00473120
add esp, 0xc
push 0x10
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x10c]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
jmp 0x420177
xor ebx, ebx
push eax
inc ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x108]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00473108
leave
ret

Function at 0x420193
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
xor edx, edx
pop esi
pop ebp
ret
Function at 0x4201c5
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe5c
mov eax, dword [0x4f9340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edx, [ebp - 0x404]
push 2
mov dword [ebp - 0xe58], 1
sub edx, eax
pop ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, ebx
test cx, cx
jne 0x4201f3
lea ecx, [ebp - 0x404]
call fcn.0041c8c5
test eax, eax
jne 0x420216
and dword [ebp - 0xe58], eax
lea edi, [ebp - 0x404]
sub edi, 2
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x42021f
mov esi, 0x4c19bc
movsd dword es:[edi], dword [esi]
xor eax, eax
movzx ecx, word [ebp + eax - 0x404]
mov word [ebp + eax - 0xc04], cx
add eax, ebx
test cx, cx
jne 0x420232
lea edi, [ebp - 0xc04]
sub edi, 2
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x420252
mov esi, 0x4c19c0
lea eax, [ebp - 0xe54]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0xc04]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xe5c], eax
test byte [ebp - 0xe54], 0x10
je 0x420367
mov ecx, 0x4c19c8
lea eax, [ebp - 0xe28]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4202bc
test dx, dx
je 0x4202b8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4202bc
add eax, 4
add ecx, 4
test dx, dx
jne 0x420296
xor eax, eax
jmp 0x4202c1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4203cd
mov ecx, 0x4c19cc
lea eax, [ebp - 0xe28]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4202fa
test dx, dx
je 0x4202f6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4202fa
add eax, 4
add ecx, 4
test dx, dx
jne 0x4202d4
xor eax, eax
jmp 0x4202ff
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4203cd
xor eax, eax
movzx ecx, word [ebp + eax - 0x404]
mov word [ebp + eax - 0x804], cx
add eax, ebx
test cx, cx
jne 0x420309
lea eax, [ebp - 0xe28]
mov edx, eax
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x420328
lea edi, [ebp - 0x804]
sub eax, edx
sub edi, 2
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x42033d
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x804]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004201c5
pop ecx
jmp 0x4203c3
xor eax, eax
movzx ecx, word [ebp + eax - 0x404]
mov word [ebp + eax - 0x804], cx
add eax, ebx
test cx, cx
jne 0x420369
lea eax, [ebp - 0xe28]
mov edx, eax
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x420388
lea edi, [ebp - 0x804]
sub eax, edx
sub edi, 2
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x42039d
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]
lea ecx, [ebp - 0x804]
call fcn.0041c8c5
test eax, eax
jne 0x4203cd
and dword [ebp - 0xe58], eax
lea eax, [ebp - 0xe54]
push eax
push dword [ebp - 0xe5c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42027e
push dword [ebp - 0xe5c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe58]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00473108
leave
ret
Function at 0x420578
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4f9340]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x18]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x20]
push eax
push 0x4c1eb4
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x20]
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push 0
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00473108
leave
ret

Function at 0x4205ea
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x4c1ed8
mov esi, 0x8000
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
xor ebx, ebx
mov dword [ebp - 8], edi
cmp edi, ebx
je 0x4206f6
push 0x4c1eec
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x42062b
push edi
jmp 0x4206f0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 4], eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x10], edi
cmp edi, ebx
je 0x4206ed
push ebx
push esi
push edi
push 5
call dword [ebp - 0xc]
cmp eax, 0xc0000004
jne 0x42066a
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esi, esi
jmp 0x420634
cmp eax, ebx
jge 0x420672
push edi
push ebx
jmp 0x4206e4
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, edi
push 0x4c1f08
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4206b1
mov edi, dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
je 0x4206b1
push edi
push 0
push 1
call ebx
mov edi, eax
test edi, edi
je 0x4206d5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4206ce
push dword [esi + 0x44]
push 0
push pe_nt_image_headers32
call ebx
mov edi, eax
test edi, edi
je 0x4206d5
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
test eax, eax
je 0x4206df
add esi, eax
jmp 0x42067a
push dword [ebp - 0x10]
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4206fb
Capabilities:
Check internet connectivity via wininet

Disassembly:
push 8
mov eax, 0x4a940f
call fcn.00473a99
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
push edi
push 1
push 0x4c1f24
mov esi, dword [sym.imp.WININET.dll_InternetCheckConnectionW]
call esi
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x420733
push edi
push 1
push 0x4c1f50
call esi
mov dword [ebp - 0x14], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
call fcn.00473b3e
ret