joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
jne 0x43f46a
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
je 0x43f45f
cmp dword [edi + 0x7c], ebx
je 0x43f47d
push edi
call fcn.0043d3c0
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.0043d1e0
add esp, 0x10
test eax, eax
je 0x43f4a4
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
push 0x84
call fcn.00450cb4
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x43f4e5
push 0x4000
call fcn.00450cb4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x43f4f1
push esi
call fcn.0044e99e
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x43f53d
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0043c5c0
add esp, 4
test eax, eax
jne 0x43f53d
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x43f567
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x43f570
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
movzx ecx, byte [esi + 0x6c]
neg ecx
sbb ecx, ecx
push ebp
mov ebp, dword [esp + 0x20]
and ecx, 0xc
lea ebx, [esi + 0x70]
mov dword [esi + 0x7c], ecx
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebp, ebp
je 0x43f5b7
mov edi, edi
movzx eax, byte [ebp]
test al, al
je 0x43f5b7
push eax
push ebx
call fcn.0043c310
add esp, 8
add ebp, 1
jne 0x43f5a0
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
pop ebp
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x43f840
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x43f972
cmp dword [ebx + 4], 0xffffffff
jne 0x43f972
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea esi, [ebx + 0x244]
push esi
push 0x104
call edi
lea ebp, [ebx + 0x44c]
push ebp
push 0x104
call edi
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43f880
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x43f8bb
cmp ax, 0x2f
je 0x43f8bb
add esi, 0xfffffffe
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x43f8a6
mov eax, dword [0x464acc]
mov edi, esi
mov dword [edi], eax
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43f8c0
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x44a]
cmp ax, 0x5c
je 0x43f904
cmp ax, 0x2f
je 0x43f904
add ebp, 0xfffffffe
mov edi, ebp
jmp 0x43f8f0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x43f8f0
mov ecx, dword [0x464acc]
mov dword [edi], ecx
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
cmp edi, 1
jne 0x43f92f
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x43f92f
pop edi
pop esi
pop ebp
mov eax, 0x2000000
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push edi
push eax
push esi
call fcn.0043c670
add esp, 0x10
test eax, eax
jne 0x43f952
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push eax
call fcn.0043f280
add esp, 4
mov dword [ebx], eax
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0xfffffe00
pop ebp
add eax, 0x200
pop ebx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc
Function at 0x4411d0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x3014
call fcn.0044f450
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x3010], eax
cmp byte [0x48050c], 0
jne 0x4411fe
cmp byte [0x48050d], 0
je 0x4412a4
mov eax, dword [esp + 0x3018]
push eax
lea ecx, [esp + 0x1014]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x301c]
push edx
lea eax, [esp + 0x1014]
push eax
lea ecx, [esp + 0x2018]
push ecx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0xe]
movzx ecx, word [esp + 0xc]
movzx edx, word [esp + 0xa]
push eax
movzx eax, word [esp + 0xc]
push ecx
movzx ecx, word [esp + 8]
push edx
movzx edx, word [esp + 0x12]
push eax
movzx eax, word [esp + 0x12]
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
push str._02i__02i__02i__02i:_02i:_02i:_03i
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x2034]
push edx
lea eax, [esp + 0x38]
push 0x1000
push eax
call fcn.00452233
add esp, 0x30
cmp byte [0x48050c], 0
je 0x4412a4
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x3010]
xor ecx, esp
call fcn.0044e1a0
add esp, 0x3014
ret

Function at 0x4412c0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4014
call fcn.0044f450
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x4010], eax
cmp byte [0x48050c], 0
jne 0x4412ee
cmp byte [0x48050d], 0
je 0x441376
mov ecx, dword [esp + 0x4018]
lea eax, [esp + 0x401c]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x400
push edx
call fcn.0044fcff
add esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0xe]
movzx eax, word [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
movzx ecx, word [esp + 0xe]
push edx
movzx edx, word [esp + 0x10]
push eax
movzx eax, word [esp + 0xc]
push ecx
movzx ecx, word [esp + 0x16]
push edx
movzx edx, word [esp + 0x16]
push eax
push ecx
push edx
lea eax, [esp + 0x2030]
push str._02i__02i__02i__02i:_02i:_02i:_03i__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
cmp byte [0x48050c], 0
je 0x441376
lea ecx, [esp + 0x2010]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x4010]
xor ecx, esp
call fcn.0044e1a0
add esp, 0x4014
ret

Function at 0x441390
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4413c6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x4414d0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1014
call fcn.0044f450
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x1010], eax
cmp byte [0x48050e], 0
je 0x441603
mov ecx, dword [esp + 0x1018]
lea eax, [esp + 0x101c]
push eax
push ecx
lea edx, [esp + 0x818]
push 0x400
push edx
call fcn.0044fcff
add esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0xe]
movzx eax, word [esp + 0xc]
lea ecx, [esp + 0x810]
push ecx
movzx ecx, word [esp + 0xe]
push edx
movzx edx, word [esp + 0x10]
push eax
movzx eax, word [esp + 0xc]
push ecx
movzx ecx, word [esp + 0x16]
push edx
movzx edx, word [esp + 0x16]
push eax
push ecx
push edx
lea eax, [esp + 0x30]
push str._02i__02i__02i__02i:_02i:_02i:_03i__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x48050e], 0
je 0x441603
cmp byte [0x480510], 0
je 0x44159f
push 0x480510
call fcn.00441390
add esp, 4
cmp eax, dword [0x47f034]
jle 0x4415d5
movzx edx, word [esp + 0xa]
movzx eax, word [esp + 8]
movzx ecx, word [esp + 6]
push edx
movzx edx, word [esp + 6]
push eax
movzx eax, word [esp + 8]
push ecx
push edx
push eax
push 0x480408
push str._sLOG._02i._02i._02i._02i._02i.txt
push 0x480510
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
push esi
push 0x475b9c
push 0x480510
call fcn.004524d7
mov esi, eax
add esp, 8
test esi, esi
je 0x441602
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00452367
push esi
call fcn.0045022a
add esp, 0xc
pop esi
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.0044e1a0
add esp, 0x1014
ret
Function at 0x4449f0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebx
push esi
push edi
push 2
push 0
mov edi, ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
cmp esi, 0x80010106
je 0x444a0d
test esi, esi
jl 0x444a50
push edi
push 0x4760c8
push 1
push 0
push 0x4760b8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x444a50
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
lea ebx, [edi + 4]
push ebx
push eax
call edx
mov esi, eax
test esi, esi
jl 0x444a50
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [edi + 8]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
test esi, esi
jge 0x444a59
mov ecx, edi
call fcn.004448f0
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x445560
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x414
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x418]
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 0
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x438]
push SysReAllocString
xor bl, bl
push eax
mov dword [esp + 0x28], ecx
mov byte [esp + 0x27], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44565e
push ebp
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jle 0x445650
push esi
lea ebx, [ebp + 4]
push ebx
call fcn.0044e29f
mov esi, eax
add esp, 4
test esi, esi
je 0x44564f
push ebx
push 0
push esi
call fcn.0044e1b0
add esp, 0xc
push 0
lea edx, [esp + 0x20]
push edx
push ebp
push esi
push edi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x3ff
lea eax, [esp + 0x25]
push 0
push eax
mov byte [esp + 0x2c], 0
call fcn.0044e1b0
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
call fcn.00445250
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00452520
add esp, 8
test eax, eax
je 0x445646
mov byte [esp + 0x13], 1
push esi
call fcn.0044e22a
add esp, 4
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0xf]
pop ebp
jmp 0x445660
mov al, bl
mov ecx, dword [esp + 0x418]
pop edi
pop ebx
xor ecx, esp
call fcn.0044e1a0
add esp, 0x414
ret 8
Function at 0x445680
Capabilities:
Create directory

Disassembly:
sub esp, 0x41c
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x424]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x420]
lea edx, [esp + 8]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4456b0
push ebx
push ebp
push esi
push edi
push 2
mov byte [esp + 0x17], cl
lea ecx, [esp + 0x1c]
push 0x476144
push ecx
xor bl, bl
call fcn.004525a6
add esp, 0xc
test eax, eax
jne 0x4456e3
mov bl, 1
lea edx, [esp + 0x18]
push 0x5c
push edx
call fcn.0044e936
mov esi, eax
add esp, 8
test esi, esi
je 0x4457c6
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x445710
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0x18]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x445720
sub eax, edx
sar eax, 1
cmp eax, 2
jbe case.0x44575c.161
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call ebp
test eax, eax
jne case.0x44575c.161
call edi
lea ecx, [eax - 5]
cmp ecx, 0xb2
ja case.0x44575c.6
movzx ecx, byte [ecx + 0x445808]
jmp dword [ecx*4 + 0x4457f8]
lea edx, [esp + 0x18]
push 0x5c
push edx
call fcn.0044e936
add esp, 8
test eax, eax
jne 0x4457f4
jmp case.0x44575c.161
test bl, bl
je 0x4457f4
mov eax, 0x5c
mov word [esi], ax
add esi, 2
cmp word [esi], 0
je 0x445792
mov byte [esp + 0x13], 1
push 0x5c
push esi
call fcn.0044e936
mov esi, eax
add esp, 8
test esi, esi
jne 0x445710
cmp byte [esp + 0x13], al
je 0x4457c6
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call ebp
test eax, eax
jne 0x4457c6
call edi
cmp eax, 0xb7
jne 0x4457f4
mov eax, 1
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044e1a0
add esp, 0x41c
ret 8
push eax
push str.KXAPI::CreateDirectory___failed__ld_n
call fcn.004411d0
add esp, 8
xor eax, eax
jmp 0x4457cb
Function at 0x445e70
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push str.KXAPI::DeleteFile_____s__n
mov ebx, ecx
call fcn.004412c0
add esp, 8
push 0x80
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x445f1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x445ec3
push str.KXAPI::DeleteFile___ERROR_FILE_NOT_FOUND_n
call fcn.004411d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
cmp eax, 3
jne 0x445edd
push str.KXAPI::DeleteFile___Can_not_find_the_file_path._n
call fcn.004411d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
cmp byte [ebx + 5], 0
je 0x445efd
push str.WIN9X___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.004411d0
add esp, 4
mov edi, 2
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
push str.WINNT___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.004411d0
add esp, 4
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, 2
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x445f30
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
push str.KXAPI::DeleteFileAfterReboot_____s__n
mov edi, ecx
call fcn.004412c0
add esp, 8
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [edi + 5], 0
je 0x445f6f
push str.WIN9X___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.004411d0
add esp, 4
pop edi
mov eax, 2
pop esi
ret 4
push str.WINNT___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.004411d0
add esp, 4
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
mov eax, 2
pop esi
ret 4

Function at 0x445fa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
mov esi, dword [esp + 0x428]
push edi
mov edi, dword [esp + 0x424]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x16]
push ecx
xor ebx, ebx
mov word [esp + 0x18], ax
call fcn.0044e1b0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22a]
push eax
mov word [esp + 0x22c], dx
call fcn.0044e1b0
add esp, 0x18
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x446022
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, dword [esp + 0x428]
lea eax, [esp + 0x214]
push eax
push ecx
push edi
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x446066
lea eax, [esp + 0x214]
mov edx, esi
mov ecx, eax
sub edx, ecx
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x446050
mov eax, 1
jmp 0x446068
mov eax, ebx
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044e1a0
add esp, 0x414
ret 0xc
Function at 0x446410
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x6c
push 0x6c
lea eax, [esp + 4]
push 0
push eax
call fcn.0044e1b0
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
add esp, 0xc
lea eax, [esp]
push eax
push 0x446090
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], edx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x60]
add esp, 0x6c
ret 8
Function at 0x4471d0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
mov dword [esp + 0x30], 0
call esi
mov ecx, dword [esp + 0x20]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push ecx
mov ebp, eax
call esi
mov ebx, eax
mov dword [esp + 0x20], ebx
cmp ebp, 0xffffffff
je 0x44732e
cmp ebx, 0xffffffff
je 0x44732e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push ebp
call edi
push 0
push ebx
mov esi, eax
call edi
mov edi, eax
cmp esi, edi
jne 0x447314
push esi
call fcn.0044e29f
push edi
mov ebx, eax
call fcn.0044e29f
xor ecx, ecx
add esp, 8
mov dword [esp + 0x20], eax
cmp ebx, ecx
je 0x447303
cmp eax, ecx
je 0x4472f6
push ecx
lea edx, [esp + 0x14]
push edx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
call esi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ecx
push edx
call esi
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jne 0x4472f6
mov ecx, dword [esp + 0x20]
mov esi, ebx
cmp eax, 4
jb 0x4472ca
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x4472f6
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x4472b6
test eax, eax
je 0x4472ee
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x4472f6
cmp eax, 1
jbe 0x4472ee
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x4472f6
cmp eax, 2
jbe 0x4472ee
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x4472f6
mov dword [esp + 0x18], 1
push ebx
call fcn.0044e22a
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x447310
push eax
call fcn.0044e22a
add esp, 4
mov ebx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push ebx
call esi
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
Function at 0x447430
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, dword [esp + 0x21c]
push edi
lea ecx, [esp + 0xc]
push ecx
xor eax, eax
push 0x23
push eax
xor edi, edi
mov word [esp + 0x1c], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4474a4
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x4474a4
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp word [esp + 0x10], di
je 0x4474e7
test esi, esi
je 0x4474cf
lea eax, [esp + 0x10]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4474c0
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4474d6
sub eax, edx
sar eax, 1
jmp 0x4474e9
mov eax, edi
mov ecx, dword [esp + 0x218]
pop edi
pop esi
xor ecx, esp
call fcn.0044e1a0
add esp, 0x214
ret 4

Function at 0x447590
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4475c6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x4480f0
Capabilities:
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0xa84
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0xa80], eax
mov eax, dword [esp + 0xa8c]
push ebx
mov ebx, dword [esp + 0xa9c]
push esi
mov esi, dword [esp + 0xa90]
push edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x448151
lea edx, [esp + 0x474]
mov eax, ebx
sub edx, ebx
jmp 0x448140
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x448140
jmp 0x448177
xor eax, eax
jmp 0x448160
movzx ecx, word [eax + 0x464af4]
mov word [esp + eax + 0x474], cx
add eax, 2
test cx, cx
jne 0x448160
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x474]
push ecx
push esi
lea edx, [esp + 0x88c]
push 0x464ad0
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x888]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4482f1
mov esi, dword [esp + 0xa9c]
push ebp
mov ebp, dword [esp + 0xaa4]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0x688]
push 0x464ad0
push ecx
call edi
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x5c]
push edx
push eax
lea ecx, [esp + 0x288]
push 0x464ad0
push ecx
call edi
add esp, 0x20
test byte [esp + 0x20], 0x10
je 0x4482b1
test ebp, ebp
je 0x4482cd
mov ecx, 0x464ae4
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44823e
test dx, dx
je 0x44823a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44823e
add eax, 4
add ecx, 4
test dx, dx
jne 0x448218
xor eax, eax
jmp 0x448243
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4482cd
mov ecx, 0x464adc
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44827a
test dx, dx
je 0x448276
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44827a
add eax, 4
add ecx, 4
test dx, dx
jne 0x448254
xor eax, eax
jmp 0x44827f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4482cd
push 0
lea edx, [esp + 0x274]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push ebp
push esi
lea eax, [esp + 0x27c]
push eax
lea ecx, [esp + 0x690]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004480f0
jmp 0x4482cd
mov ecx, dword [esp + 0x10]
push 0
push esi
lea edx, [esp + 0x278]
push edx
lea eax, [esp + 0x68c]
push eax
call fcn.00447d30
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4481c7
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov ecx, dword [esp + 0xa8c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044e1a0
add esp, 0xa84
ret 0x14