joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4183c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4b9b20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], 0
test ebx, ebx
je 0x41841c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jg 0x41841c
lea eax, [edi + edi]
call fcn.00466e80
mov esi, esp
test esi, esi
je 0x41841c
push edi
push esi
push 0xffffffffffffffff
xor eax, eax
push ebx
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x41841e
xor eax, eax
push 0
push 0
push 3
push 0
push 7
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x418529
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
xor edx, edx
mov dword [ecx], eax
div ebx
mov esi, eax
add esi, 2
shl esi, 4
push esi
call fcn.004666b2
mov ecx, dword [ebp - 0x10]
add esp, 4
mov edi, eax
xor eax, eax
push eax
lea edx, [ebp - 0x28]
push edx
push esi
push edi
push 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push 0x90073
push ecx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x418516
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
xor edx, edx
lea eax, [eax + ebx - 1]
div ebx
mov ecx, dword [ebp + 0x10]
lea edx, [eax*8]
push edx
mov dword [ecx], eax
call fcn.004666b2
mov ebx, dword [edi + 8]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
add esp, 4
xor ecx, ecx
test eax, eax
jbe 0x418516
add edi, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
sub eax, ebx
mov edx, dword [edi + 8]
mov esi, dword [edi + 0xc]
je 0x418502
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
mov dword [ebp - 0x14], ebx
cmp ecx, dword [ebp - 0x14]
jae 0x4184f6
mov ebx, dword [ebp - 8]
mov dword [ebx + ecx*8], edx
mov dword [ebx + ecx*8 + 4], esi
dec eax
inc ecx
add edx, 1
adc esi, 0
test eax, eax
jne 0x4184e7
mov edx, dword [edi + 4]
mov ebx, dword [edi]
add edi, 0x10
sub dword [ebp - 0xc], 1
mov dword [ebp - 0x14], edx
jne 0x4184d3
mov edi, dword [ebp - 0x1c]
push edi
call fcn.004665d5
mov eax, dword [ebp - 0x10]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466e70
mov esp, ebp
pop ebp
ret 0x10
Function at 0x418b70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4b9b20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
inc eax
lea ebx, [eax + eax*2]
add ebx, ebx
add ebx, ebx
push ebx
mov dword [ebp - 0x218], ebx
call fcn.004435be
mov esi, eax
add esp, 4
test esi, esi
je 0x418c9e
mov dword [esi], 0
mov dword [esi], 0x34532008
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
push ecx
push edx
lea eax, [esi + 0xc]
push eax
call fcn.00466270
add ebx, 0xfffffff8
lea eax, [esi + 8]
push ebx
push eax
call fcn.00433c30
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x212]
mov dword [esi + 4], eax
push edx
mov word [ebp - 0x214], cx
call fcn.004661f0
add esp, 0x20
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov cl, byte [ebp - 0x214]
xor eax, eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov al, 0x5c
lea edx, [ebp - 0xc]
push edx
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], 0x2e
mov byte [ebp - 9], al
mov byte [ebp - 8], cl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x418c58
xor eax, eax
jmp 0x418c6f
lea eax, [ebx + ebx]
call fcn.00466e80
mov eax, esp
push 3
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.00417e90
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
push edx
mov edx, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x10]
push edx
mov edx, dword [ebp - 0x218]
push ecx
push edx
push esi
push eax
push 4
mov ecx, edi
call fcn.004177b0
push esi
mov edi, eax
call fcn.004435c9
add esp, 4
mov eax, edi
lea esp, [ebp - 0x224]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466e70
mov esp, ebp
pop ebp
ret
Function at 0x418e90
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x230]
sub esp, 0x230
push 0xffffffffffffffff
push 0x487eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b9b20]
xor eax, ebp
mov dword [ebp + 0x22c], 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 + 0x238]
mov edi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 8]
inc eax
lea ebx, [eax + eax*2]
add ebx, ebx
add ebx, ebx
push ebx
call fcn.004435be
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x418ff6
mov dword [esi], 0
mov dword [esi], 0x34532008
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov eax, dword [edi + 8]
lea edx, [eax + eax*2]
mov eax, dword [edi + 4]
add edx, edx
add edx, edx
push edx
push eax
lea ecx, [esi + 0xc]
push ecx
call fcn.00466270
lea edx, [ebx - 8]
push edx
lea eax, [esi + 8]
push eax
call fcn.00433c30
mov edi, dword [ebp - 0x14]
add esp, 0x14
push edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
call fcn.00443a6e
push 0
push 0x9002
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00443e7c
test eax, eax
je 0x418f80
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.004437a4
lea ecx, [ebp - 0x28]
call fcn.00443a08
mov dword [ebp - 0x14], 1
push 0x22c
lea eax, [ebp]
push 0
push eax
call fcn.004661f0
add esp, 0xc
lea ecx, [ebp]
push ecx
push edi
call fcn.004442fa
test eax, eax
je 0x418faf
or byte [ebp + 0x20], 6
lea edx, [ebp]
push edx
push edi
call fcn.004444d1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00443b5a
jmp 0x418fea
push esi
call fcn.004435c9
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.00466e70
add ebp, 0x230
mov esp, ebp
pop ebp
ret 4

Function at 0x419230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x419249
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x419284
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x419280
lea ebx, [ebx]
cmp esi, eax
jae 0x419284
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x419270
cmp esi, eax
jb 0x41928a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x41a7a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x487f8e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b9b20]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.00445f21
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esi], vtable.CBroListCtrl.0
lea ebp, [esi + 0x54]
call fcn.0044c107
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41a7f9
push 0x80004005
call fcn.00419210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x20], 1
lea edi, [esi + 0x58]
call fcn.0044c107
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41a82a
push 0x80004005
call fcn.00419210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push ebx
push 0x49f170
mov ecx, edi
mov byte [esp + 0x28], 2
call fcn.00419e20
mov ecx, dword [edi]
push ebx
push ebx
push ecx
push ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push edi
mov ecx, ebp
call fcn.0041a2a0
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x41ace0
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x488078
mov eax, dword fs:[0]
push eax
sub esp, 0x708
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x704], eax
push esi
push edi
mov eax, dword [0x4b9b20]
xor eax, esp
push eax
lea eax, [esp + 0x714]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x724]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea ecx, [esp + 0x304]
push ecx
mov dword [esp + 0x724], 0
call edi
push 0x49f170
lea ecx, [esp + 0x10]
call fcn.0041a8d0
push 0x701
push 4
lea edx, [esp + 0x54]
push edx
push 0
lea eax, [esp + 0x310]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x304]
push edx
call edi
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x50c]
push ecx
call edi
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x50]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x10]
push eax
push 0
push 0x104d
push ecx
mov dword [esp + 0x20], 7
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0x48dc78
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 1
call edi
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x104c
lea edx, [esp + 0x514]
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], 2
mov dword [esp + 0x34], edx
call edi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ae22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x724]
add eax, 0xfffffff0
mov dword [esp + 0x71c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ae50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x714]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x704]
xor ecx, esp
call fcn.00466e70
add esp, 0x714
ret 4
Function at 0x41e340
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, ecx
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0xe]
push ecx
mov dword [esi], vtable.COpenAsDialog.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov word [esp + 0x10], ax
call fcn.004661f0
add esp, 0xc
push 0x104
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._shell32.dll
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
je 0x41e3cd
push str.OpenAs_RunDLLW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00466e70
add esp, 0x210
ret
Function at 0x41e6c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x234
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x230], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x114
call esi
test eax, eax
je 0x41e900
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x41e86e
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x41e7b2
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41e72f
mov eax, 7
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466e70
add esp, 0x234
ret
cmp eax, 1
jne 0x41e74f
mov eax, 8
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466e70
add esp, 0x234
ret
cmp eax, 2
jne 0x41e900
lea ecx, [esp + 0x118]
push ecx
mov dword [esp + 0x11c], 0x11c
call esi
mov al, byte [esp + 0x232]
cmp al, 3
je 0x41e797
cmp al, 2
je 0x41e797
mov eax, 9
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466e70
add esp, 0x234
ret
mov eax, 0xa
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466e70
add esp, 0x234
ret
cmp eax, 6
jne 0x41e84a
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41e81d
lea edx, [esp + 0x118]
push edx
mov dword [esp + 0x11c], 0x11c
call esi
mov al, byte [esp + 0x232]
cmp al, 3
je 0x41e802
cmp al, 2
je 0x41e802
mov eax, 0xb
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466e70
add esp, 0x234
ret
mov eax, 0xc
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466e70
add esp, 0x234
ret
cmp eax, 1
jne 0x41e900
call fcn.0041e650
neg eax
sbb eax, eax
neg eax
add eax, 0xd
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466e70
add esp, 0x234
ret
cmp eax, 4
jne 0x41e900
mov eax, 6
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466e70
add esp, 0x234
ret
cmp eax, 1
jne 0x41e8e1
cmp dword [esp + 8], 4
jne 0x41e900
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41e8a1
mov eax, 2
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466e70
add esp, 0x234
ret
cmp eax, 0xa
jne 0x41e8c1
mov eax, 3
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466e70
add esp, 0x234
ret
cmp eax, 0x5a
jne 0x41e900
mov eax, 4
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466e70
add esp, 0x234
ret
test eax, eax
jne 0x41e900
mov eax, 1
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466e70
add esp, 0x234
ret
mov ecx, dword [esp + 0x234]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00466e70
add esp, 0x234
ret

Function at 0x41eb10
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
add ecx, 0x230
push ecx
push 0x41e920
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
cmp dword [esp], eax
setne al
pop ecx
ret
Function at 0x41ef80
Capabilities:
Get file attributes

Disassembly:
sub esp, 0xa80
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0xa7c], eax
mov eax, dword [esp + 0xa88]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa90]
push edi
mov dword [esp + 0x18], ecx
xor ecx, ecx
push 0x40e
push ecx
lea edx, [esp + 0x276]
push edx
mov dword [esp + 0x20], eax
mov word [esp + 0x278], cx
call fcn.004661f0
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x692]
push ecx
mov word [esp + 0x694], ax
call fcn.004661f0
mov eax, esi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41eff0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x41f015
push 0x49ebd0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea edx, [esp + 0x680]
push edx
call ebx
push 0x48dc94
lea eax, [esp + 0x680]
push eax
call edi
push 0x250
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.004661f0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebp, 0xffffffff
je 0x41f19b
test ebp, ebp
je 0x41f19b
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
mov ecx, 0x48e72c
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f0b6
test dx, dx
je 0x41f0b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f0b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f090
xor eax, eax
jmp 0x41f0bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f171
mov ecx, 0x48dc78
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f0f6
test dx, dx
je 0x41f0f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f0f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f0d0
xor eax, eax
jmp 0x41f0fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f171
push esi
lea ecx, [esp + 0x270]
push ecx
call ebx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x270]
push eax
call edi
lea ecx, [esp + 0x26c]
push ecx
call ebp
test al, 0x10
je 0x41f13f
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x270]
push eax
call fcn.0041ef80
jmp 0x41f171
test al, 1
je 0x41f155
and eax, 0xfffffffe
push eax
lea ecx, [esp + 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x18]
push 2
add edx, 0x8c5
push edx
lea eax, [esp + 0x274]
push eax
call dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41f080
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x41f19d
xor eax, eax
mov ecx, dword [esp + 0xa8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466e70
add esp, 0xa80
ret 8
Function at 0x41f1c0
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0xe8c
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0xe88], eax
push ebx
mov ebx, dword [esp + 0xe98]
push ebp
mov ebp, dword [esp + 0xe98]
push esi
push edi
push 0
push ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41f203
mov dword [esp + 0x10], eax
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x682]
push ecx
mov word [esp + 0x684], ax
call fcn.004661f0
xor edx, edx
push 0x40e
push edx
lea eax, [esp + 0xa9e]
push eax
mov word [esp + 0xaa0], dx
call fcn.004661f0
xor ecx, ecx
push 0x40e
push ecx
lea edx, [esp + 0x28a]
push edx
mov word [esp + 0x28c], cx
call fcn.004661f0
mov eax, ebp
add esp, 0x24
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f262
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
mov edi, 0x5c
cmp word [ebp + eax*2 - 2], di
je 0x41f28b
push 0x49ebd0
push ebp
call esi
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f290
sub eax, edx
sar eax, 1
cmp word [ebx + eax*2 - 2], di
je 0x41f2ae
push 0x49ebd0
push ebx
call esi
push ebp
lea eax, [esp + 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x48dc94
lea ecx, [esp + 0x67c]
push ecx
call esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41f2ed
xor eax, eax
jmp 0x41f418
test edi, edi
je 0x41f40d
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x41f300
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41f40d
lea edx, [esp + 0x44]
push edx
push ebp
lea eax, [esp + 0xa90]
push 0x48e6d8
push eax
call esi
lea ecx, [esp + 0x54]
push ecx
push ebx
lea edx, [esp + 0x280]
push 0x48e6d8
push edx
call esi
add esp, 0x20
test byte [esp + 0x18], 0x10
jne 0x41f36a
push 0
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0xa90]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41f300
mov dword [esp + 0x10], eax
jmp 0x41f300
mov ecx, 0x48e72c
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f399
test dx, dx
je 0x41f395
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f399
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f373
xor eax, eax
jmp 0x41f39e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f300
mov ecx, 0x48dc78
lea eax, [esp + 0x44]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f3d6
test dx, dx
je 0x41f3d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f3d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f3b0
xor eax, eax
jmp 0x41f3db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f300
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x268]
push edx
lea eax, [esp + 0xa8c]
push eax
call fcn.0041f1c0
test eax, eax
jne 0x41f300
mov dword [esp + 0x10], eax
jmp 0x41f300
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xe98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466e70
add esp, 0xe8c
ret 8
Function at 0x41f9e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4b9b20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x41faff
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x41fa36
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x41fa22
xor eax, eax
jmp 0x41fa36
lea eax, [esi + esi]
call fcn.00466e80
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00417e90
mov ecx, dword [ebp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x41faff
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xc0000000
cmp eax, 0x80000000
jne 0x41fa75
mov edx, dword [ebp + 8]
push edx
call fcn.0041e2f0
add esp, 4
mov edi, eax
jmp 0x41fa78
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call esi
test eax, eax
jne 0x41faff
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x41faff
mov ebx, dword [edi + 0x3c]
push 0xf8
add ebx, edi
push ebx
call esi
test eax, eax
jne 0x41faff
cmp dword [ebx], 0x4550
jne 0x41faff
mov esi, dword [ebx + 0x80]
add esi, edi
cmp esi, ebx
je 0x41faff
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41fadd
lea ecx, [ecx]
mov ecx, dword [ebp + 0xc]
add eax, edi
push ecx
push eax
call fcn.00468c78
add esp, 8
test eax, eax
je 0x41fadd
mov eax, dword [esi + 0x20]
add esi, 0x14
test eax, eax
jne 0x41fac0
cmp dword [esi + 0xc], 0
je 0x41faff
mov esi, dword [esi + 0x10]
add esi, edi
cmp dword [esi], 0
je 0x41faff
lea ecx, [ecx]
mov ebx, dword [ebp - 0xc]
cmp dword [esi], ebx
je 0x41fb17
add esi, 4
cmp dword [esi], 0
jne 0x41faf0
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466e70
mov esp, ebp
pop ebp
ret 0x10
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x41fb4b
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 8]
push edx
push 0x40
push 4
push esi
call edi
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
push ecx
mov dword [esi], eax
mov edx, dword [ebp - 8]
push edx
push 4
push esi
call edi
mov eax, ebx
jmp 0x41fb01
mov eax, dword [ebp + 0x14]
mov dword [esi], eax
mov eax, ebx
jmp 0x41fb01