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

Disassembly:
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x10]
mov dword [0x46bdcc], eax
mov eax, dword [0x46bdcc]
push eax
push eax
push 0x104
call fcn.00428df0
add dword [0x46bdcc], 2
lea eax, [esp + 4]
push eax
call fcn.004299b0
lea eax, [esp + 4]
push eax
push 0x17
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov eax, dword [esp]
push eax
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListW
cmp byte [esp + 0xc], 0
je 0x406bd9
mov eax, dword [0x46bdcc]
push eax
push eax
push 1
push dword [esp + 0xc]
call fcn.00428c10
add dword [0x46bdcc], 2
mov edx, 0x43956a
pop ecx
mov dword [0x46bdcc], ecx
add ecx, dword [0x465cec]
call fcn.00429a30
jne 0x406bd9
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
mov edx, 0x43956a
call fcn.00429950
lea eax, [esp + 4]
push eax
call fcn.004299b0
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
pop eax
add eax, dword [0x465cec]
jmp 0x406c00
push dword [esp]
call fcn.00429a70
add esp, 8
ret 4

Function at 0x406c0e
Capabilities:
Get common file path
Get startup folder

Disassembly:
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x10]
mov dword [0x46bdcc], eax
mov eax, dword [0x46bdcc]
push eax
push eax
push 0x104
call fcn.00428df0
add dword [0x46bdcc], 2
lea eax, [esp + 4]
push eax
call fcn.004299b0
lea eax, [esp + 4]
push eax
push 7
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov eax, dword [esp]
push eax
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListW
cmp byte [esp + 0xc], 0
je 0x406cbc
mov eax, dword [0x46bdcc]
push eax
push eax
push 1
push dword [esp + 0xc]
call fcn.00428c10
add dword [0x46bdcc], 2
mov edx, 0x43956a
pop ecx
mov dword [0x46bdcc], ecx
add ecx, dword [0x465cec]
call fcn.00429a30
jne 0x406cbc
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
mov edx, 0x43956a
call fcn.00429950
lea eax, [esp + 4]
push eax
call fcn.004299b0
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
pop eax
add eax, dword [0x465cec]
jmp 0x406ce3
push dword [esp]
call fcn.00429a70
add esp, 8
ret 4

Function at 0x406cf1
Capabilities:
Get common file path
Get startup folder

Disassembly:
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x10]
mov dword [0x46bdcc], eax
mov eax, dword [0x46bdcc]
push eax
push eax
push 0x104
call fcn.00428df0
add dword [0x46bdcc], 2
lea eax, [esp + 4]
push eax
call fcn.004299b0
lea eax, [esp + 4]
push eax
push 0x18
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov eax, dword [esp]
push eax
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListW
cmp byte [esp + 0xc], 0
je 0x406d9f
mov eax, dword [0x46bdcc]
push eax
push eax
push 1
push dword [esp + 0xc]
call fcn.00428c10
add dword [0x46bdcc], 2
mov edx, 0x43956a
pop ecx
mov dword [0x46bdcc], ecx
add ecx, dword [0x465cec]
call fcn.00429a30
jne 0x406d9f
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
mov edx, 0x43956a
call fcn.00429950
lea eax, [esp + 4]
push eax
call fcn.004299b0
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
pop eax
add eax, dword [0x465cec]
jmp 0x406dc6
push dword [esp]
call fcn.00429a70
add esp, 8
ret 4
Function at 0x406de3
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
mov eax, dword [esp + 0xc]
mov dword [0x46bdcc], eax
mov eax, dword [0x46bdcc]
push eax
push eax
push 0x104
call fcn.00428df0
lea eax, [esp + 4]
push eax
call fcn.004299b0
push 0x104
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
cmp byte [esp + 8], 0
je 0x406e77
mov eax, dword [0x46bdcc]
push eax
push eax
push 1
push dword [esp + 0xc]
call fcn.00428c10
add dword [0x46bdcc], 2
mov edx, 0x43956a
pop ecx
mov dword [0x46bdcc], ecx
add ecx, dword [0x465cec]
call fcn.00429a30
jne 0x406e77
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
mov edx, 0x43956a
call fcn.00429950
lea eax, [esp + 4]
push eax
call fcn.004299b0
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
pop eax
add eax, dword [0x465cec]
jmp 0x406e9e
push dword [esp]
call fcn.00429a70
add esp, 4
ret 4
Function at 0x40c6a4
Capabilities:
Get common file path

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x20]
mov dword [0x46bdcc], eax
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jne 0x40c756
mov eax, dword [0x46bdcc]
push eax
push eax
push 0xff
call fcn.00428df0
lea eax, [esp + 8]
push eax
call fcn.004299b0
mov eax, dword [esp + 4]
push eax
lea ebp, [esp + 0xc]
push dword [ebp]
call sub.SHELL32.DLL_SHGetPathFromIDListW
mov dword [esp], eax
mov eax, dword [0x46bdcc]
push eax
push eax
mov eax, dword [0x46bdcc]
push eax
push eax
push dword [esp + 0x14]
call fcn.004295a0
mov edx, 0x466750
call fcn.00429950
mov edx, dword [0x465cec]
add dword [esp], edx
call fcn.004295c0
lea eax, [esp + 8]
push eax
call fcn.004299b0
mov edx, dword [esp + 4]
push dword [0x46bdcc]
call fcn.00429950
pop eax
add eax, dword [0x465cec]
jmp 0x40c77f
mov edx, 0x465cfc
push dword [0x46bdcc]
call fcn.00429950
pop eax
add eax, dword [0x465cec]
jmp 0x40c77f
push dword [esp + 4]
call fcn.00429a70
add esp, 0x10
pop ebx
pop ebp
ret 4

Function at 0x40e1cd
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
xor esi, esi
push esi
push dword [esp + 0x14]
push dword [esp + 0x14]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esp + 0xc], eax
je 0x40e265
push ebx
push ebp
mov ebp, 0x46bf18
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x46b43c]
test esi, esi
mov ebx, 0x46b43c
je 0x40e23d
push edi
push 0
lea edi, [esi + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40e236
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi]
push edi
push ebx
call fcn.00428590
pop ecx
pop ecx
jmp 0x40e238
mov esi, dword [esi]
test esi, esi
jne 0x40e210
pop edi
mov esi, dword [0x46906c]
inc dword [0x46906c]
push 0x10
push ebx
call fcn.004285d0
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
push ebp
mov dword [eax], ecx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 8
Function at 0x40e3d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40e4b4
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [ebp + 0x10], 1
mov ebx, eax
je 0x40e46a
push edi
push edi
push edi
push dword [ebp + 0xc]
call fcn.0040ef26
mov ebx, eax
cmp ebx, edi
je 0x40e4a9
push dword [ebp + 8]
push dword [0x46b440]
call fcn.00427e22
mov esi, eax
mov eax, 0x10000
push eax
push ebx
mov dword [esi + 0x18], eax
call fcn.0040f003
push eax
push ebx
call fcn.0040efe9
push eax
call fcn.0040eafd
cmp eax, edi
mov dword [esi], eax
je 0x40e462
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], esi
jmp 0x40e4a9
push ebx
call fcn.0040f010
jmp 0x40e4a9
push ebx
push edi
push dword [0x46af80]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x40e4a9
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push esi
push dword [ebp + 8]
call fcn.0040eae7
push esi
push edi
push dword [0x46af80]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 0xc
Function at 0x40e5f1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
push dword [0x46b440]
mov dword [ebp - 8], ebx
xor edi, edi
call fcn.00427eaa
mov esi, eax
cmp esi, ebx
je 0x40e76c
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x40e6a1
push dword [ebp + 8]
call fcn.0040ec1a
jmp 0x40e634
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x40e62c
push dword [esi + 0x14]
call fcn.0040f039
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
push ebx
mov eax, esi
mov byte [esi + 0x1c], 1
call fcn.0040e4ce
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x40e543
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40e676
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40e687
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040ecb0
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
mov esi, dword [esi]
mov eax, dword [esi]
push 1
push ebx
push ebx
push esi
call dword [eax + 0x30]
jmp 0x40e76c
test byte [ebp + 0xc], 1
je 0x40e6aa
xor edi, edi
inc edi
test byte [ebp + 0xc], 2
je 0x40e734
push esi
call fcn.0040e786
lea eax, [esi + 4]
push 0xc
push eax
call fcn.004285d0
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [0x46b454]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x40e76c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40e71a
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040ec4a
jmp 0x40e726
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push ebx
push ebx
push eax
call dword [ecx + 0x30]
jmp 0x40e76c
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40e755
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040ecb0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push ebx
push ebx
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x40e76c
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40f37d
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esp + 8], ebx
push esi
push edi
je 0x40f3cc
push dword [esp + 0x10]
push 0x40f2f9
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x46b490]
cmp esi, ebx
je 0x40f420
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40f3c4
cmp byte [esi + 0x10], bl
je 0x40f3c4
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
cmp edi, ebx
mov esi, edi
jne 0x40f3a1
jmp 0x40f420
mov esi, dword [0x46b490]
cmp esi, ebx
je 0x40f420
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40f419
cmp byte [esi + 0x11], bl
je 0x40f3f6
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x40f40c
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x46b490
call fcn.00428590
pop ecx
pop ecx
cmp ebp, ebx
mov esi, ebp
jne 0x40f3d7
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x410a40
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x41b3f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x41b425
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x41b6f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x46c2ac]
push eax
push ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00427eaa
test eax, eax
je 0x41b74a
cmp dword [eax + 4], 0
lea edx, [esp]
je 0x41b737
push 8
push edx
push eax
call fcn.0041bc80
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 8
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0x10]
push ecx
push 8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 8
ret 4

Function at 0x41b760
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x46c2ac]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00427eaa
test eax, eax
je 0x41b7aa
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x41b797
push 1
push edx
push eax
call fcn.0041bc80
movsx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x41b7c0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x46c2ac]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.00427eaa
test eax, eax
je 0x41b808
cmp dword [eax + 4], 0
lea edx, [esp + 0xc]
je 0x41b7f5
push 1
push edx
push eax
call fcn.0041bdb0
pop ecx
ret 8
mov eax, dword [eax]
push 0
lea ecx, [esp + 4]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp]
pop ecx
ret 8

Function at 0x41b810
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov dword [esp + 4], eax
je 0x41b869
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x41b868
mov eax, dword [esp + 0x10]
mov ecx, dword [0x46c2ac]
push eax
push ecx
call fcn.00427eaa
test eax, eax
je 0x41b864
cmp dword [eax + 4], 0
je 0x41b852
push esi
push edi
push eax
call fcn.0041bdb0
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc
Function at 0x41b870
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x46c2ac]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
call fcn.00427eaa
mov esi, eax
test esi, esi
je 0x41b8f4
cmp dword [esi + 4], 0
je 0x41b8c3
push 1
lea edx, [esp + 8]
push edx
push esi
call fcn.0041bc80
test eax, eax
je 0x41b8b7
add dword [esi + 0xc], 1
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
mov edx, dword [esi]
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b8ff
cmp dword [esp + 8], 0
je 0x41b8ff
mov eax, dword [esi]
push 1
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x41b910
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x46af80]
push ebx
push ebp
push esi
push edi
mov ebx, 0x1000
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x46c2ac]
push ecx
mov esi, eax
push edx
mov ebp, esi
call fcn.00427eaa
test eax, eax
mov dword [esp + 0x1c], eax
je 0x41ba2e
jmp 0x41b954
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x13], 0
cmp dword [eax + 4], 0
lea ecx, [esp + 0x13]
je 0x41b972
push 1
push ecx
push eax
call fcn.0041bc80
mov dword [esp + 0x14], eax
jmp 0x41b985
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [eax]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x13]
test al, al
je 0x41b997
mov byte [ebp], al
mov al, byte [esp + 0x13]
add ebp, 1
mov edi, ebp
sub edi, esi
cmp edi, ebx
jl 0x41b9be
mov eax, dword [0x46af80]
add ebx, 0x1000
push ebx
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov al, byte [esp + 0x13]
lea ebp, [edi + esi]
test al, al
je 0x41ba2e
cmp dword [esp + 0x14], 0
je 0x41b9d5
cmp al, 0xd
je 0x41b9d5
cmp al, 0xa
jne 0x41b950
sub ebp, 1
cmp al, 0xd
jne 0x41ba2e
mov edi, dword [esp + 0x1c]
cmp dword [edi + 4], 0
je 0x41b9f5
push 1
lea ecx, [esp + 0x17]
push ecx
push edi
call fcn.0041bc80
jmp 0x41ba0c
mov ecx, dword [edi]
push 0
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [esp + 0x1f]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x41ba2e
cmp dword [edi + 4], 0
je 0x41ba1f
add dword [edi + 0xc], 1
jmp 0x41ba2e
mov edx, dword [edi]
push 1
push 0
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
mov byte [ebp], 0
call ebx
mov edi, eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [edi - 1]
push ecx
call fcn.00429c80
push edi
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebx
mov edx, dword [0x46af80]
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x41bc80
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x41bca1
push esi
call fcn.0041b3f0
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x41bd1a
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
sub ecx, 1
je 0x41bd07
sub ecx, 1
je 0x41bcf2
sub ecx, 2
je 0x41bcdf
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ax, word [eax]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov dl, byte [eax]
mov eax, dword [esp + 0x14]
mov byte [eax], dl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ecx, ebx
add ecx, dword [esi + 4]
push ebx
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
cmp edi, eax
push 0
jl 0x41bd63
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
pop esi
add eax, ebx
pop ebx
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp edi, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
jle 0x41bd86
mov edi, eax
mov ecx, dword [esi + 4]
push edi
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
add esp, 0xc
pop ebp
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x41bdb0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x41bde5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x41be5e
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
sub ecx, 1
je 0x41be4b
sub ecx, 1
je 0x41be36
sub ecx, 2
je 0x41be23
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.0041b3f0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x41be8b
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc

Function at 0x41c006
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x41c07f
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
and word [ebp - 4], 0
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea eax, [ebp + eax*2 - 0x20c]
jmp 0x41c060
lea ecx, [eax - 2]
movzx edx, word [ecx]
cmp dx, 0x20
je 0x41c05e
cmp dx, 0x5c
je 0x41c05e
cmp dx, 0x2f
jne 0x41c06a
mov eax, ecx
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x41c046
and word [eax], 0
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x41c081
xor eax, eax
leave
ret 4
Function at 0x41c085
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [ebp + 8]
push ebx
or ebx, 0xffffffff
test eax, eax
mov dword [ebp - 8], ebx
je 0x41c1d7
cmp word [eax], 0
je 0x41c1d7
push 0x104
push eax
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_wcsncpy
and word [ebp - 0xc], 0
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
cmp eax, 2
lea ecx, [ebp + eax*2 - 0x216]
je 0x41c0e1
cmp eax, 3
jne 0x41c125
cmp word [ebp - 0x212], 0x3a
jne 0x41c125
cmp eax, 2
jne 0x41c103
lea eax, [ebp - 0x214]
push 0x4368f0
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41c1d7
mov dword [ebp - 8], 0xfffffffe
jmp 0x41c1d7
push esi
push 0x5c
pop esi
jmp 0x41c131
and word [ecx], 0
dec ecx
dec ecx
cmp word [ecx], si
je 0x41c12b
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, ebx
je 0x41c180
test byte [ebp - 0x464], 0x10
je 0x41c160
mov dword [ebp - 8], 0xfffffffe
jmp 0x41c177
mov edx, dword [ebp - 0x444]
mov ebx, dword [ebp - 0x448]
xor ecx, ecx
or ecx, edx
xor esi, esi
mov dword [ebp - 8], ecx
or ebx, esi
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41c1d6
cmp word [ebp - 0x214], si
jne 0x41c192
cmp word [ebp - 0x212], si
je 0x41c1a6
cmp word [ebp - 0x214], 0x2e
jne 0x41c1d6
cmp word [ebp - 0x212], 0x2e
jne 0x41c1d6
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
je 0x41c1bd
test al, 0x10
je 0x41c1d6
jmp 0x41c1cf
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41c1d6
mov dword [ebp - 8], 0xfffffffe
pop esi
mov eax, dword [ebp - 8]
mov edx, ebx
pop ebx
leave
ret 4