joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418b60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4b9b30]
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.0044383e
mov esi, eax
add esp, 4
test esi, esi
je 0x418c8e
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.004663d0
add ebx, 0xfffffff8
lea eax, [esi + 8]
push ebx
push eax
call fcn.004340f0
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.00466350
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 0x418c48
xor eax, eax
jmp 0x418c5f
lea eax, [ebx + ebx]
call fcn.00466fe0
mov eax, esp
push 3
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.00417e80
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.004177a0
push esi
mov edi, eax
call fcn.00443849
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.00466fd0
mov esp, ebp
pop ebp
ret
Function at 0x418e80
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x230]
sub esp, 0x230
push 0xffffffffffffffff
push 0x488a58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b9b30]
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.0044383e
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x418fe6
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.004663d0
lea edx, [ebx - 8]
push edx
lea eax, [esi + 8]
push eax
call fcn.004340f0
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.00443cee
push 0
push 0x9002
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004440fc
test eax, eax
je 0x418f70
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.00443a24
lea ecx, [ebp - 0x28]
call fcn.00443c88
mov dword [ebp - 0x14], 1
push 0x22c
lea eax, [ebp]
push 0
push eax
call fcn.00466350
add esp, 0xc
lea ecx, [ebp]
push ecx
push edi
call fcn.0044459c
test eax, eax
je 0x418f9f
or byte [ebp + 0x20], 6
lea edx, [ebp]
push edx
push edi
call fcn.00444773
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00443dda
jmp 0x418fda
push esi
call fcn.00443849
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.00466fd0
add ebp, 0x230
mov esp, ebp
pop ebp
ret 4

Function at 0x419220
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 0x419239
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x419274
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x419270
lea ebx, [ebx]
cmp esi, eax
jae 0x419274
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x419260
cmp esi, eax
jb 0x41927a
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 0x41a780
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x488b2e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b9b30]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.004461b1
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esi], vtable.CBroListCtrl.0
lea ebp, [esi + 0x54]
call fcn.0044c39b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41a7d9
push 0x80004005
call fcn.00419200
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.0044c39b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41a80a
push 0x80004005
call fcn.00419200
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push ebx
push 0x49feb0
mov ecx, edi
mov byte [esp + 0x28], 2
call fcn.00419e00
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.0041a280
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 0x41acc0
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x488be8
mov eax, dword fs:[0]
push eax
sub esp, 0x708
mov eax, dword [0x4b9b30]
xor eax, esp
mov dword [esp + 0x704], eax
push esi
push edi
mov eax, dword [0x4b9b30]
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 0x49feb0
lea ecx, [esp + 0x10]
call fcn.0041a8b0
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], 0x48ec38
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 0x41ae02
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 0x41ae30
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.00466fd0
add esp, 0x714
ret 4
Function at 0x41c470
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x38c8
call fcn.004681d0
mov eax, dword [0x4b9b30]
xor eax, esp
mov dword [esp + 0x38c4], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
xor edi, edi
lea ebx, [ebx]
push 0x1fe
lea ecx, [esp + 0x2a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x30], ax
call fcn.00466350
push edi
lea edx, [esp + 0x34]
push 0x49fc38
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c67c
xor eax, eax
push 0x2710
lea ecx, [esp + 0x11c8]
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.00466350
add esp, 0xc
push ebx
lea edx, [esp + 0x18]
push edx
push 0x2710
lea eax, [esp + 0x11d0]
push eax
push 0xc
lea ecx, [esp + 0x2c]
push ecx
push 0x2d1400
push esi
call ebp
test eax, eax
je 0x41c66f
mov eax, dword [esp + 0x11d0]
lea edx, [esp + 0x9f4]
push edx
push ebx
push eax
lea ecx, [esp + 0x11d0]
push ecx
call fcn.0041c310
mov eax, dword [esp + 0x11e4]
lea edx, [esp + 0x61c]
push edx
push ebx
push eax
lea ecx, [esp + 0x11e0]
push ecx
call fcn.0041c310
mov eax, dword [esp + 0x11f8]
lea edx, [esp + 0xdfc]
push edx
push ebx
push eax
lea ecx, [esp + 0x11f0]
push ecx
call fcn.0041c310
mov eax, dword [esp + 0x120c]
lea edx, [esp + 0x254]
push edx
push 1
push eax
lea ecx, [esp + 0x1200]
push ecx
call fcn.0041c310
add esp, 0x40
cmp byte [0x4bdb38], bl
jne 0x41c63a
movsx edx, byte [esp + 0x224]
push edx
call fcn.00467f3d
add esp, 4
test eax, eax
jne 0x41c5f1
movsx eax, byte [esp + 0x237]
push eax
call fcn.00467f3d
add esp, 4
test eax, eax
je 0x41c63a
xor eax, eax
jmp 0x41c600
mov cl, byte [esp + eax + 0x224]
mov byte [eax + 0x4bdb38], cl
inc eax
cmp cl, bl
jne 0x41c600
xor eax, eax
jmp 0x41c620
mov cl, byte [esp + eax + 0x60c]
mov byte [eax + 0x4bd738], cl
inc eax
cmp cl, bl
jne 0x41c620
mov dword [esp + 0x10], 1
push 0x2710
lea ecx, [esp + 0x11c8]
push ebx
push ecx
call fcn.00466350
add esp, 0xc
push ebx
lea edx, [esp + 0x18]
push edx
push 0x2710
lea eax, [esp + 0x11d0]
push eax
push ebx
push ebx
push 0x700a0
push esi
call ebp
jmp 0x41c675
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, 0x10
jl 0x41c4a0
mov ecx, dword [esp + 0x38d4]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466fd0
add esp, 0x38c8
ret
Function at 0x41cea0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4b9b30]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
push 0x114
xor edi, edi
lea eax, [esp + 0x14]
push edi
xor ebx, ebx
push eax
xor esi, esi
mov byte [0x4bdb38], bl
call fcn.00466350
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], 2
jne 0x41cf07
call fcn.0041c8e0
call fcn.0041cd10
call fcn.0041c470
call fcn.0041caa0
jmp 0x41cf29
xor ebp, ebp
lea esp, [esp]
test ebx, ebx
jne 0x41cf29
cmp byte [0x4bdb38], bl
jne 0x41cf30
call fcn.0041cc00
inc ebp
cmp ebp, 0xa
mov ebx, eax
jl 0x41cf10
cmp byte [0x4bdb38], 0
jle 0x41d068
push 4
mov ebp, 0x4bdb38
push str.WD_W
push ebp
call fcn.004683a4
add esp, 0xc
test eax, eax
jne 0x41cf54
mov ebp, 0x4bdb3d
mov bl, byte [ebp]
test bl, bl
je 0x41d068
cmp bl, 0x2d
je case.0x41cf8d.48
push 0
push 0xa
push edi
push esi
call fcn.004668e0
mov esi, eax
movsx eax, bl
add eax, 0xffffffd0
mov edi, edx
cmp eax, 0x4a
ja case.0x41cf8d.48
movzx edx, byte [eax + 0x41d1a4]
jmp dword [edx*4 + 0x41d110]
add esi, 1
jmp 0x41d05c
add esi, 2
jmp 0x41d05c
add esi, 3
jmp 0x41d05c
add esi, 4
jmp 0x41d05c
add esi, 5
jmp 0x41d05c
add esi, 6
jmp 0x41d05c
add esi, 7
jmp 0x41d05c
add esi, 8
jmp 0x41d05c
add esi, 9
jmp 0x41d05c
add esi, 0xa
jmp 0x41d05c
add esi, 0xb
jmp 0x41d05c
add esi, 0xc
jmp 0x41d05c
add esi, 0xd
jmp 0x41d05c
add esi, 0xe
jmp 0x41d05c
add esi, 0xf
jmp 0x41d05c
add esi, 0x10
jmp 0x41d05c
add esi, 0x11
jmp 0x41d05c
add esi, 0x12
jmp 0x41d05c
add esi, 0x13
jmp 0x41d05c
add esi, 0x14
jmp 0x41d05c
add esi, 0x15
jmp 0x41d05c
add esi, 0x16
jmp 0x41d05c
add esi, 0x17
jmp 0x41d05c
add esi, 0x18
jmp 0x41d05c
add esi, 0x19
jmp 0x41d05c
add esi, 0x1a
jmp 0x41d05c
add esi, 0x1b
jmp 0x41d05c
add esi, 0x1c
jmp 0x41d05c
add esi, 0x1d
jmp 0x41d05c
add esi, 0x1e
jmp 0x41d05c
add esi, 0x1f
jmp 0x41d05c
add esi, 0x20
jmp 0x41d05c
add esi, 0x21
jmp 0x41d05c
add esi, 0x22
jmp 0x41d05c
add esi, 0x23
adc edi, 0
add ebp, 1
jne 0x41cf54
push 0
push 0x5f5e100
push edi
push esi
call fcn.00468470
push str.IBM_
push 0x4bd738
mov esi, eax
mov edi, edx
call fcn.00468140
add esp, 8
test eax, eax
je 0x41d098
add esi, 0x11e1a300
jmp 0x41d0f0
push str.MAXTOR
push 0x4bd738
call fcn.00468140
add esp, 8
test eax, eax
jne 0x41d0ea
push str.Maxtor
push 0x4bd738
call fcn.00468140
add esp, 8
test eax, eax
jne 0x41d0ea
push str.WDC
push 0x4bd738
call fcn.00468140
add esp, 8
test eax, eax
je 0x41d0e2
add esi, 0x1dcd6500
jmp 0x41d0f0
add esi, 0x23c34600
jmp 0x41d0f0
add esi, 0x17d78400
mov ecx, dword [esp + 0x124]
adc edi, 0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466fd0
add esp, 0x118
ret
Function at 0x41f220
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4b9b30]
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.00466350
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 0x41f2ad
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.00466fd0
add esp, 0x210
ret
Function at 0x41f5a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x234
mov eax, dword [0x4b9b30]
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 0x41f7e0
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x41f74e
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x41f692
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41f60f
mov eax, 7
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466fd0
add esp, 0x234
ret
cmp eax, 1
jne 0x41f62f
mov eax, 8
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466fd0
add esp, 0x234
ret
cmp eax, 2
jne 0x41f7e0
lea ecx, [esp + 0x118]
push ecx
mov dword [esp + 0x11c], 0x11c
call esi
mov al, byte [esp + 0x232]
cmp al, 3
je 0x41f677
cmp al, 2
je 0x41f677
mov eax, 9
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466fd0
add esp, 0x234
ret
mov eax, 0xa
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466fd0
add esp, 0x234
ret
cmp eax, 6
jne 0x41f72a
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41f6fd
lea edx, [esp + 0x118]
push edx
mov dword [esp + 0x11c], 0x11c
call esi
mov al, byte [esp + 0x232]
cmp al, 3
je 0x41f6e2
cmp al, 2
je 0x41f6e2
mov eax, 0xb
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466fd0
add esp, 0x234
ret
mov eax, 0xc
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466fd0
add esp, 0x234
ret
cmp eax, 1
jne 0x41f7e0
call fcn.0041f530
neg eax
sbb eax, eax
neg eax
add eax, 0xd
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466fd0
add esp, 0x234
ret
cmp eax, 4
jne 0x41f7e0
mov eax, 6
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466fd0
add esp, 0x234
ret
cmp eax, 1
jne 0x41f7c1
cmp dword [esp + 8], 4
jne 0x41f7e0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41f781
mov eax, 2
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466fd0
add esp, 0x234
ret
cmp eax, 0xa
jne 0x41f7a1
mov eax, 3
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466fd0
add esp, 0x234
ret
cmp eax, 0x5a
jne 0x41f7e0
mov eax, 4
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466fd0
add esp, 0x234
ret
test eax, eax
jne 0x41f7e0
mov eax, 1
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00466fd0
add esp, 0x234
ret
mov ecx, dword [esp + 0x234]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00466fd0
add esp, 0x234
ret

Function at 0x41f9f0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
add ecx, 0x230
push ecx
push 0x41f800
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 0x41fe60
Capabilities:
Get file attributes

Disassembly:
sub esp, 0xa80
mov eax, dword [0x4b9b30]
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.00466350
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x692]
push ecx
mov word [esp + 0x694], ax
call fcn.00466350
mov eax, esi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fed0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x41fef5
push 0x49f910
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea edx, [esp + 0x680]
push edx
call ebx
push 0x48ec54
lea eax, [esp + 0x680]
push eax
call edi
push 0x250
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.00466350
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 0x42007b
test ebp, ebp
je 0x42007b
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
mov ecx, 0x48f7ac
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ff96
test dx, dx
je 0x41ff92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ff96
add eax, 4
add ecx, 4
test dx, dx
jne 0x41ff70
xor eax, eax
jmp 0x41ff9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x420051
mov ecx, 0x48ec38
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ffd6
test dx, dx
je 0x41ffd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ffd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41ffb0
xor eax, eax
jmp 0x41ffdb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x420051
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 0x42001f
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x270]
push eax
call fcn.0041fe60
jmp 0x420051
test al, 1
je 0x420035
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 0x41ff60
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x42007d
xor eax, eax
mov ecx, dword [esp + 0xa8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466fd0
add esp, 0xa80
ret 8
Function at 0x4200a0
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0xe8c
mov eax, dword [0x4b9b30]
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 0x4200e3
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.00466350
xor edx, edx
push 0x40e
push edx
lea eax, [esp + 0xa9e]
push eax
mov word [esp + 0xaa0], dx
call fcn.00466350
xor ecx, ecx
push 0x40e
push ecx
lea edx, [esp + 0x28a]
push edx
mov word [esp + 0x28c], cx
call fcn.00466350
mov eax, ebp
add esp, 0x24
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420142
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 0x42016b
push 0x49f910
push ebp
call esi
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420170
sub eax, edx
sar eax, 1
cmp word [ebx + eax*2 - 2], di
je 0x42018e
push 0x49f910
push ebx
call esi
push ebp
lea eax, [esp + 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x48ec54
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 0x4201cd
xor eax, eax
jmp 0x4202f8
test edi, edi
je 0x4202ed
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x4201e0
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4202ed
lea edx, [esp + 0x44]
push edx
push ebp
lea eax, [esp + 0xa90]
push str._s_s
push eax
call esi
lea ecx, [esp + 0x54]
push ecx
push ebx
lea edx, [esp + 0x280]
push str._s_s
push edx
call esi
add esp, 0x20
test byte [esp + 0x18], 0x10
jne 0x42024a
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 0x4201e0
mov dword [esp + 0x10], eax
jmp 0x4201e0
mov ecx, 0x48f7ac
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x420279
test dx, dx
je 0x420275
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x420279
add eax, 4
add ecx, 4
test dx, dx
jne 0x420253
xor eax, eax
jmp 0x42027e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4201e0
mov ecx, 0x48ec38
lea eax, [esp + 0x44]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4202b6
test dx, dx
je 0x4202b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4202b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x420290
xor eax, eax
jmp 0x4202bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4201e0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x268]
push edx
lea eax, [esp + 0xa8c]
push eax
call fcn.004200a0
test eax, eax
jne 0x4201e0
mov dword [esp + 0x10], eax
jmp 0x4201e0
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.00466fd0
add esp, 0xe8c
ret 8