joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a411
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x519864]
call fcn.0043ff90
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x42a511
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x42a467
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x42a45f
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x42a4a7
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x42a4e9
push 0x22
pop edx
cmp cx, dx
je 0x42a499
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x42a489
xor ecx, ecx
cmp word [eax], cx
je 0x42a4e9
mov ecx, eax
add eax, 2
jmp 0x42a4eb
test dx, dx
je 0x42a4f1
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x42a499
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x42a4df
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x42a4e9
cmp cx, dx
je 0x42a4dc
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x42a4cc
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x42a4b1
jmp 0x42a499
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x42a4f3
xor edx, edx
cmp dword [ebp], ebx
jne 0x42a4fc
test edi, edi
jne 0x42a519
test edx, edx
je 0x42a501
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x42a455
test edi, edi
jne 0x42a52a
mov eax, ebx
jmp 0x42a52e
test esi, esi
je 0x42a52a
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x42a52e
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x42d2f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x42d39e
cmp dword [ebp + 0xc], edi
je 0x42d39e
push esi
push 0x60
push 8
push dword [0x518680]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0x14]
mov dword [esi + 0xc], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0x40], eax
add esp, 0xc
mov eax, dword [0x516090]
mov dword [esi + 0x28], eax
mov eax, dword [0x518a2c]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
test al, 1
je 0x42d38d
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x42d520
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42d385
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x42d39d
push esi
call fcn.0042d5cb
jmp 0x42d39c
push esi
call fcn.0042d3b7
push esi
mov edi, eax
call fcn.0042d5cb
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0x10

Function at 0x42d3b7
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov ebp, dword [edi + 0xc]
push dword [edi + 8]
mov dword [esp + 0x18], ebp
call fcn.004d1b20
push dword [edi + 0x40]
mov dword [esp + 0x20], eax
call fcn.004d1b20
mov dword [esp + 0x10], eax
call fcn.0049c1d0
mov esi, eax
test esi, esi
je 0x42d4f6
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x42d4e1
test byte [edi + 0x24], 2
mov dword [edi + 0x10], ebp
jne 0x42d429
push 1
push 0x34
push esi
call fcn.0049f120
add esp, 0xc
mov eax, dword [0x518a20]
test eax, eax
je 0x42d441
push eax
push 0x2714
push esi
call fcn.0049f120
add esp, 0xc
mov eax, dword [0x518a24]
test eax, eax
je 0x42d472
cmp dword [0x518a28], ebx
je 0x42d472
push eax
push 0x27bf
push esi
call fcn.0049f120
push dword [0x518a28]
push 0x27c0
push esi
call fcn.0049f120
add esp, 0x18
push dword [esp + 0x1c]
push 0x2712
push esi
call fcn.0049f120
push dword [esp + 0x1c]
push 0x2722
push esi
call fcn.0049f120
push 0x42d52f
push 0x4e2b
push esi
call fcn.0049f120
push edi
push 0x2711
push esi
call fcn.0049f120
push 1
push 0x63
push esi
call fcn.0049f120
push esi
call fcn.0049c270
add esp, 0x40
test eax, eax
jne 0x42d4cc
cmp dword [edi + 4], 0xfffffffb
je 0x42d4cc
xor ebx, ebx
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x42d4e1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.0049c190
pop ecx
cmp ebx, 1
jne 0x42d4f6
mov dword [edi + 4], 0xfffffffe
jmp 0x42d505
xor ecx, ecx
cmp dword [edi + 4], 0xfffffffb
setne cl
add ecx, 0xfffffffc
mov dword [edi + 4], ecx
push dword [esp + 0x1c]
call fcn.004d1b10
push dword [esp + 0x10]
call fcn.004d1b10
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret
Function at 0x42e097
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x42e141
push ebx
push esi
push 0x60
push 8
push dword [0x518680]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
xor ebx, ebx
inc ebx
or dword [esi + 4], 0xffffffff
mov dword [esi], ebx
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0x10]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x40], eax
mov dword [esi + 0x24], ecx
mov eax, dword [0x516090]
mov dword [esi + 0x28], eax
mov eax, dword [0x518a2c]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x58], ebx
test bl, cl
je 0x42e12f
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x42e2b8
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42e11c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42e11f
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x42e127
mov edi, esi
jmp 0x42e13f
push esi
call fcn.0042d5cb
jmp 0x42e13e
push esi
call fcn.0042e156
push esi
mov edi, eax
call fcn.0042d5cb
pop ecx
pop ecx
pop esi
pop ebx
mov eax, edi
pop edi
pop ebp
ret 0xc

Function at 0x42e756
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
push edi
xor edi, edi
cmp dword [esp + 0xc], edi
je 0x42e843
push ebx
push ebp
push esi
push 0x60
push 8
push dword [0x518680]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [esp + 0x18]
mov esi, eax
xor ebp, ebp
inc ebp
or dword [esi + 4], 0xffffffff
mov dword [esi], ebp
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 8], eax
mov dword [esp], str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
call sub.MSVCRT.dll__wcsdup
mov ebx, dword [esp + 0x24]
pop ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x40], eax
mov dword [esi + 0x24], ecx
mov eax, dword [0x516090]
mov dword [esi + 0x28], eax
mov eax, dword [0x518a2c]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], eax
test cl, 1
je 0x42e830
test ebx, ebx
je 0x42e7fa
push ebx
push edi
push dword [0x518680]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x48], eax
test eax, eax
je 0x42e7f5
push ebx
push dword [esp + 0x20]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [esi + 0x48], edi
je 0x42e827
lea eax, [esp + 0x18]
push eax
push edi
push esi
push 0x42e849
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42e81f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42e823
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x42e83e
push esi
call fcn.0042d5cb
pop ecx
jmp 0x42e840
mov eax, dword [esp + 0x1c]
push esi
mov dword [esi + 0x48], eax
call fcn.0042e34d
pop ecx
mov edi, esi
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
ret 0x18
Function at 0x42ea15
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x42e964
push 0x10
push 0x2c
call fcn.004406a3
push 0
push 0
push 8
mov dword [0x518a38], eax
call fcn.0043fffb
cmp word [0x518a30], 0
mov dword [0x51989c], eax
jne 0x42eafa
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x42ea6d
mov word [0x518a30], di
jmp 0x42ea75
xor eax, eax
mov word [0x518a30], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x518a4c], eax
test eax, eax
je 0x42eaf9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4ee168
push eax
call esi
push 0x4ee174
push dword [0x518a4c]
mov dword [0x518a3c], eax
call esi
push str.getnameinfo
push dword [0x518a4c]
mov dword [0x518a40], eax
call esi
push str.WSAStringToAddressA
push dword [0x518a4c]
mov dword [0x518a44], eax
call esi
cmp dword [0x518a3c], 0
mov dword [0x518a48], eax
pop esi
je 0x42eaf9
cmp dword [0x518a40], 0
je 0x42eaf9
cmp dword [0x518a44], 0
je 0x42eaf9
test eax, eax
je 0x42eaf9
mov dword [0x518a34], edi
pop edi
add esp, 0x190
ret

Function at 0x42f2a4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x5198c4]
call fcn.004405d0
mov ebx, eax
test ebx, ebx
je 0x42f308
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x42f2cd
push dword [esp + 0xc]
push ebx
call eax
jmp 0x42f308
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00440cb0
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.00440d90
pop edi
pop esi
pop ebx
ret 8
Function at 0x433933
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x5198a8]
call fcn.0043ff90
xor ebp, ebp
mov esi, eax
cmp dword [0x519170], ebp
jne 0x433a0f
xor ebx, ebx
inc ebx
mov dword [0x519170], ebx
call fcn.00435cc5
mov edi, 0xa4
push edi
push ebp
push 0x519178
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x519178], 0x13
lea eax, [esp + 0x10]
mov dword [0x51917c], edi
mov dword [0x519188], 0x43387e
mov dword [0x51918c], 0x433bc9
push eax
mov dword [0x5191e0], 0x433859
mov dword [0x5191e4], 0x433b14
mov dword [0x519184], 0x433834
mov dword [0x519208], 0x433899
mov dword [0x51921c], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x433a0f
cmp dword [esp + 0x20], ebx
je 0x4339f7
cmp dword [esp + 0x20], 2
jne 0x433a0f
cmp dword [esp + 0x14], 5
jae 0x4339ff
mov dword [0x51921c], ebp
jmp 0x433a0f
jne 0x433a0f
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x51921c], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.00437f99
mov eax, dword [esp + 0x140]
push ebp
push dword [0x518684]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x433ae5
push dword [esp + 0x128]
push dword [0x5198c4]
call fcn.0044060f
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x433ab4
push edi
call fcn.0043b733
test eax, eax
je 0x433ab4
push ebp
push ebp
push edi
call fcn.0043b37d
mov dword [esi + 0x18], eax
jmp 0x433ab7
mov dword [esi + 0x18], ebp
push 0x433583
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x519178
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x519174], eax
call fcn.004353ac
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x436955
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x5198d4]
call fcn.004405d0
mov esi, eax
test esi, esi
je 0x436a2f
cmp dword [ebp + 0xc], 0
je 0x4369a1
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x436992
cmp dword [esi + 0x1c], 0
jne 0x436992
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x436a2f
test byte [ebp + 0x10], 3
je 0x4369bc
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004371ab
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x4369e1
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x4369f5
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x436a12
test ebx, ebx
je 0x436a06
push 8
jmp 0x436a18
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x436a25
test ebx, ebx
je 0x436a1b
push 3
pop ecx
jmp 0x436a25
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x43733e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x4373d1
push 9
call esi
test al, al
jns 0x4373d1
push 0x11
call esi
test al, al
js 0x4373d1
push 0x10
call esi
test al, al
js 0x4373d1
push 0x12
call esi
test al, al
js 0x4373d1
push 0x10
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
push 5
lea eax, [ebp - 0x24]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x4373b3
push 4
lea eax, [ebp - 0x24]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4373d1
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
jne 0x4373d1
xor eax, eax
jmp 0x437452
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4373f9
push 0x11
call esi
test al, al
js 0x4373f1
push 0x10
call esi
test al, al
js 0x4373f1
push 0x12
call esi
test al, al
jns 0x4373f9
push 1
push edi
call fcn.0043745a
mov esi, dword [sym.imp.USER32.dll_GetPropW]
test ebx, ebx
je 0x43740f
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x43744f
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x43744f
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x43744f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x43744f
lea eax, [esi - 1]
push eax
push dword [0x5198d4]
call fcn.004405d0
test eax, eax
je 0x43744f
mov eax, dword [eax + 8]
jmp 0x437451
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4380b1
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4381f9
xor ecx, ecx
cmp word [eax], cx
je 0x4381f9
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x43810a
cmp eax, 3
jne 0x438144
cmp word [esp + 0xa], 0x3a
jne 0x438144
cmp eax, 2
jne 0x438128
lea eax, [esp + 8]
push 0x4ee778
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4381f9
push 0xfffffffffffffffe
pop edi
jmp 0x4381f9
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x438159
cmp ax, bx
jne 0x438163
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x43814c
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4381a2
test byte [esp + 0x21c], 0x10
je 0x438189
push 0xfffffffffffffffe
pop edi
jmp 0x438199
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4381f7
cmp word [esp + 0x10], bp
jne 0x4381b0
cmp word [esp + 0x12], bp
je 0x4381cf
cmp word [esp + 0x10], bx
jne 0x4381be
cmp word [esp + 0x12], bx
je 0x4381cf
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4381f7
cmp word [esp + 0x12], ax
jne 0x4381f7
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4381e4
test al, 0x10
je 0x4381f7
jmp 0x4381f4
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4381f7
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x438208
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x438228
cmp dword [esp + 8], 0
je 0x438228
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x43822a
xor eax, eax
ret 8

Function at 0x438246
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x43826f
test byte [esp + 8], 2
je 0x438263
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x438271
xor eax, eax
ret 8
Function at 0x438304
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x5193d0]
push esi
test eax, eax
jne 0x438329
push 0x438431
push 0x10
push 0x258
call fcn.004406a3
mov dword [0x5193d0], eax
push dword [esp + 0xc]
push eax
call fcn.0044060f
mov esi, eax
test esi, esi
je 0x43842a
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x43834b
mov edi, 0x4d9dc8
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x43835b
xor eax, eax
cmp word [ebx], ax
jne 0x438360
mov ebx, 0x4ee77c
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x518680]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x438411
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x4383c1
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x4383c5
push 0x4ee778
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x4383c5
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4383e9
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x4383ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4383fd
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x518680]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x438428
cmp dword [esp + 0x14], 0xffffffff
je 0x43841c
mov esi, dword [esp + 0x14]
push esi
push dword [0x5193d0]
call fcn.00440581
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x4384a7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x43851f
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x438500
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4384fd
cmp ecx, 0x5c
je 0x4384fd
cmp ecx, 0x2f
jne 0x43850a
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4384ea
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x438521
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4385a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x4385dc
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x4388e0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x4389e8
cmp word [edx], 0
je 0x4389e8
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x43890e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x43896d
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x438940
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438920
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00438a60
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438940
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.00438b70
mov edi, eax
test edi, edi
je 0x438963
cmp dword [esi + 4], 0
je 0x4389bb
push dword [esp + 0x14]
push edi
push esi
call fcn.00438a60
push edi
push 0
push dword [0x518680]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x518680]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc