joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435940
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
sub esp, 0x804
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
mov esi, dword [esp + 0x80c]
push 0x5405d0
push esi
call fcn.004c3458
add esp, 8
test eax, eax
je 0x435986
xor eax, eax
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004c31a1
add esp, 0x804
ret
mov eax, 0x4000
test word [0x5405d6], ax
je 0x435aa6
push edi
push esi
push str._s.
lea edx, [esp + 0x10]
call fcn.004023d0
add esp, 8
push 0x540380
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x435aa5
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [ecx]
mov ecx, 0x5161e4
mov eax, 0x5403ac
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435a06
test dx, dx
je 0x435a02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435a06
add eax, 4
add ecx, 4
test dx, dx
jne 0x4359e0
xor eax, eax
jmp 0x435a0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x435a8d
mov ecx, 0x5161e8
mov eax, 0x5403ac
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435a46
test dx, dx
je 0x435a42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435a46
add eax, 4
add ecx, 4
test dx, dx
jne 0x435a20
xor eax, eax
jmp 0x435a4b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x435a8d
push 0x5403ac
push esi
push 0x516224
lea edx, [esp + 0x18]
call fcn.004023d0
add esp, 0xc
test byte [0x540380], 0x10
je 0x435a7e
lea edx, [esp + 0xc]
push edx
call fcn.00435940
add esp, 4
jmp 0x435a8d
push 4
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x540380
push edi
call ebp
test eax, eax
jne 0x4359d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop edi
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x804]
pop esi
xor ecx, esp
call fcn.004c31a1
add esp, 0x804
ret
Function at 0x435ae0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x804
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x800], eax
push ebp
push esi
mov esi, dword [esp + 0x810]
push 0x540350
push esi
xor ebp, ebp
call fcn.004c3458
add esp, 8
test eax, eax
je 0x435b2a
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004c31a1
add esp, 0x804
ret
mov eax, 0x4000
test word [0x540356], ax
je 0x435c3e
push edi
push esi
push str._s.
lea edx, [esp + 0x14]
call fcn.004023d0
add esp, 8
push 0x540100
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x435c2a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, 0x5161e4
mov eax, 0x54012c
jmp 0x435b80
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435ba6
test dx, dx
je 0x435ba2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435ba6
add eax, 4
add ecx, 4
test dx, dx
jne 0x435b80
xor eax, eax
jmp 0x435bab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x435c12
mov ecx, 0x5161e8
mov eax, 0x54012c
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435be6
test dx, dx
je 0x435be2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435be6
add eax, 4
add ecx, 4
test dx, dx
jne 0x435bc0
xor eax, eax
jmp 0x435beb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x435c12
push 0x54012c
push esi
push 0x516224
lea edx, [esp + 0x1c]
call fcn.004023d0
lea edx, [esp + 0x1c]
push 1
push edx
call fcn.00435ae0
add esp, 0x14
push 0x540100
push edi
call ebx
test eax, eax
jne 0x435b71
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
cmp byte [esp + 0x818], 0
pop edi
je 0x435c47
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x435c45
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
mov ecx, dword [esp + 0x808]
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.004c31a1
add esp, 0x804
ret
Function at 0x436070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50131c
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x3a0], eax
push ebx
mov eax, dword [0x5355a0]
xor eax, esp
push eax
lea eax, [esp + 0x3b0]
mov dword fs:[0], eax
push 0x208
xor ebx, ebx
push ebx
push esi
call fcn.004cab10
add esp, 0xc
lea ecx, [esp + 0x280]
mov dword [esp + method.t_reg.virtual_0], vtable.t_reg.0
call fcn.004349d0
mov eax, str.HKEY_LOCAL_MACHINE
lea edx, [esp + 0x280]
mov dword [esp + 0x278], ebx
mov dword [esp + 0x27c], reloc.WS2_32.dll_bind
call fcn.00434c20
mov dword [esp + 0x3b8], ebx
lea ecx, [esp + 0x150]
mov dword [esp + method.t_reg.virtual_0], vtable.t_reg.0
call fcn.004349d0
mov eax, str.HKEY_CURRENT_USER
lea edx, [esp + 0x150]
mov dword [esp + 0x148], ebx
mov dword [esp + 0x14c], reloc.WS2_32.dll_accept
call fcn.00434c20
mov byte [esp + 0x10], bl
mov dword [esp + 0xc], ebx
push str.SoftwareSogouExplorer
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x27c]
mov byte [esp + 0x3c0], 2
call fcn.0043fea0
test al, al
jne 0x43618b
push str.SoftwareSogouExplorer
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x14c]
call fcn.0043fea0
test al, al
je 0x436228
lea ecx, [esp + 0x144]
jmp 0x436192
lea ecx, [esp + 0x274]
push 1
lea edx, [esp + 0x1c]
push edx
push esi
lea eax, [esp + 0x18]
push eax
xor eax, eax
mov dword [esp + 0x28], 0x208
call fcn.0043fff0
test al, al
je 0x436228
push str.SogouExplorer.exe
push 0x104
push esi
call fcn.004c3833
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.004349d0
mov eax, esi
lea edx, [esp + 0x1c]
call fcn.00434c20
lea eax, [esp + 0x28]
cmp byte [esp + 0x138], bl
jne 0x4361ea
mov eax, dword [esp + 0x24]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x436202
shr eax, 4
not al
and al, 1
jne 0x43624d
mov dword [esp + 0x1c], vtable.t_str.0
cmp byte [esp + 0x138], bl
jne 0x436228
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x436228
push eax
call fcn.004c31b0
add esp, 4
lea ecx, [esp + 0xc]
call fcn.00433d50
lea ecx, [esp + 0x144]
call fcn.0043fe50
lea ecx, [esp + 0x274]
call fcn.0043fe50
xor eax, eax
jmp 0x436299
mov dword [esp + 0x1c], vtable.t_str.0
cmp byte [esp + 0x138], bl
jne 0x436273
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
je 0x436273
push eax
call fcn.004c31b0
add esp, 4
lea ecx, [esp + 0xc]
call fcn.00433d50
lea ecx, [esp + 0x144]
call fcn.0043fe50
lea ecx, [esp + 0x274]
call fcn.0043fe50
mov eax, 1
mov ecx, dword [esp + 0x3b0]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x3a0]
xor ecx, esp
call fcn.004c31a1
mov esp, ebp
pop ebp
ret
Function at 0x4366f0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push ebp
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x436726
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
push esi
push eax
call fcn.004c328d
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
push esi
push ecx
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x436784
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0x516164
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x436784
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 0xa]
mov word [edi], cx
movzx edx, word [eax + 8]
mov word [edi + 2], dx
movzx ecx, word [eax + 0xe]
mov word [edi + 4], cx
movzx edx, word [eax + 0xc]
mov word [edi + 6], dx
mov byte [esp + 0xf], 1
cmp esi, ebx
je 0x436791
push esi
call fcn.004c31b0
add esp, 4
mov al, byte [esp + 0xf]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4367a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x210], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004cab10
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4367f9
xor al, al
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004c31a1
add esp, 0x214
ret
push edi
push 0x516168
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.004c3833
lea ecx, [esp + 0x18]
push ecx
lea edi, [esp + 0x14]
call fcn.004366f0
add esp, 0x10
pop edi
test al, al
je 0x4367e2
movzx ecx, word [esp + 4]
movzx edx, word [esp]
movzx eax, word [esp + 2]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x210]
mov dword [esi + 4], edx
xor edx, edx
mov dword [esi + 8], eax
xor ecx, esp
mov dword [esi], 0x114
mov dword [esi + 0x10], 2
mov word [esi + 0x14], dx
mov al, 1
call fcn.004c31a1
add esp, 0x214
ret
Function at 0x437390
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
mov ebx, eax
push edi
push ebx
call ebp
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push edi
push ebx
call ebp
push esi
call dword [sym.imp.USER32.dll_IsIconic]
pop edi
pop ebp
pop ebx
test eax, eax
je 0x43740d
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x437ec0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x501263
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5355a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
fld dword [0x524d8c]
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0x11
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
fstp dword [esi + 0xc]
fld dword [0x524d90]
mov ecx, esi
fstp dword [esi + 0x10]
fld dword [0x524d94]
fstp dword [esi + 0x14]
call fcn.00408000
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x438ad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5040a0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push edi
mov eax, dword [0x5355a0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebx, ebx
mov byte [esp + 0x10], bl
mov dword [esp + 0xc], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], fcn.004c328d
mov dword [esp + 0x28], fcn.004c53b2
mov dword [esp + 0x2c], fcn.004c31b0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x1fff8
mov dword [esp + 0x20], vtable.t_heap.0
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edi, [esp + 0x1c]
mov byte [esp + 0x48], 1
call fcn.0043e320
test al, al
jne 0x438ba8
mov byte [esp + 0x40], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x438b78
push eax
call fcn.004c31b0
add esp, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.allocator_unsigned_char__class_TAllocDefault_.0
call fcn.00403460
lea ecx, [esp + 0xc]
call fcn.00433d50
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x38
ret 8
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00439030
mov byte [esp + 0x40], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x438bd8
push eax
call fcn.004c31b0
add esp, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.allocator_unsigned_char__class_TAllocDefault_.0
call fcn.00403460
lea ecx, [esp + 0xc]
call fcn.00433d50
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x38
ret 8
Function at 0x439610
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5031ab
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x368], eax
push ebx
push esi
push edi
mov eax, dword [0x5355a0]
xor eax, esp
push eax
lea eax, [esp + 0x380]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], ecx
call fcn.0043a2a0
xor esi, esi
mov dword [esp + 0x1c], vtable.t_fileRead.0
mov dword [esp + method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [esp + 0x36c], esi
mov dword [esp + 0x370], esi
push esi
push ebx
lea eax, [esp + 0x24]
push eax
mov eax, edi
mov dword [esp + 0x394], esi
call fcn.0043a3e0
test al, al
je 0x4396f6
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4396c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x4396c6
xor edi, edi
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x374], edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43973c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x43973c
xor eax, eax
jmp 0x43973e
mov ecx, ebx
call fcn.00433db0
push 0x51f1fc
push 0x51620c
mov edx, eax
call fcn.004351e0
mov dword [esp + 0x390], 0xffffffff
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.t_fileRead.0
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.0043a310
xor al, al
jmp 0x439790
mov eax, edi
mov esi, dword [esp + 0x18]
push eax
mov dword [esi + 8], eax
call fcn.004c328d
mov edx, dword [esi + 8]
add esp, 4
push edx
push eax
push ebx
lea ecx, [esp + 0x374]
mov dword [esi + 4], eax
call fcn.00441fe0
test al, al
je 0x4396f6
mov dword [esp + 0x388], 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.t_fileRead.0
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.0043a310
mov al, 1
mov ecx, dword [esp + 0x380]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x368]
xor ecx, esp
call fcn.004c31a1
mov esp, ebp
pop ebp
ret 8
Function at 0x43a3e0
Capabilities:
Set file attributes

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov esi, eax
mov eax, dword [ebp + 0x130]
mov edx, dword [eax + 0x18]
lea edi, [ebp + 0x130]
push esi
push ebx
mov ecx, edi
call edx
test al, al
jne 0x43a431
mov ecx, ebx
call fcn.00433db0
push 0x51f1fc
push 0x51620c
mov edx, eax
call fcn.004351e0
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
push ebx
call fcn.0043ac80
test al, al
je 0x43a40a
mov ebx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
mov dword [ebp + 0x348], edi
mov edi, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
mov eax, edi
mov dword [ebp + 8], ebx
call fcn.0043a1f0
add esp, 0xc
test al, al
jne 0x43a4c0
cmp byte [esi + 0x11c], al
je 0x43a484
add esi, 0xc
jmp 0x43a487
mov esi, dword [esi + 8]
mov ecx, edi
call fcn.00433db0
mov edi, eax
push 0x51fa60
push 0x51620c
mov edx, edi
call fcn.004351e0
add esi, 4
push esi
push 0x51620c
mov edx, edi
call fcn.004351e0
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push 0
push 0x80
push edi
push 0
push eax
push ecx
mov ecx, esi
call fcn.00432030
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 4], eax
mov ebx, 1
cmp eax, 0xffffffff
jne 0x43a561
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x24], eax
cmp eax, 0x20
jne 0x43a515
cmp ebx, 3
jge 0x43a5af
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x43a536
cmp eax, 5
jne 0x43a576
cmp ebx, 3
jge 0x43a5af
push 0x80
mov ecx, esi
call fcn.00432030
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push 0
push 0x80
push edi
push 0
push edx
push eax
mov ecx, esi
call fcn.00432030
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
inc ebx
mov dword [ebp + 4], eax
cmp eax, 0xffffffff
je 0x43a4f3
push esi
lea ecx, [ebp + 0xc]
call fcn.00432110
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
test eax, eax
jne 0x43a5af
cmp byte [esi + 0x11c], al
je 0x43a587
add esi, 0xc
jmp 0x43a58a
mov esi, dword [esi + 8]
mov ecx, dword [esp + 0x20]
add esi, 4
push esi
push 0x51fa70
call fcn.00402790
mov ecx, eax
call fcn.00434720
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp byte [esi + 0x11c], 0
lea ebx, [esi + 0xc]
jne 0x43a5be
mov ebx, dword [esi + 8]
mov ecx, dword [esp + 0x20]
call fcn.00433db0
mov edi, dword [esp + 0x24]
mov esi, eax
call fcn.004345f0
mov ecx, dword [esp + 0x20]
call fcn.00433db0
add ebx, 4
push ebx
push 0x51fa60
mov ecx, eax
call fcn.00434720
mov ecx, eax
call fcn.00434720
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 0xc
Function at 0x43a6a0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
push 0
mov ebx, eax
mov edi, ecx
mov esi, edx
call ebp
test edi, edi
jne 0x43a6c9
test ebx, ebx
je 0x43a6bf
mov dword [ebx], edi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ecx
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43a74f
lea ebx, [esi + 0x18]
cmp byte [esi + 0x128], al
jne 0x43a6fa
mov ebx, dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
mov edi, eax
call fcn.00433db0
mov esi, eax
call fcn.004345f0
push 0
call ebp
mov ecx, dword [esp + 0x18]
call fcn.00433db0
mov esi, eax
push 0x51fa90
push 0x51620c
mov edx, esi
call fcn.004351e0
add ebx, 4
push ebx
push 0x51620c
mov edx, esi
call fcn.004351e0
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x43a759
mov dword [ebx], eax
test eax, eax
jne 0x43a6bf
cmp byte [esi + 0x128], al
je 0x43a76e
add esi, 0x18
jmp 0x43a771
mov esi, dword [esi + 0x14]
mov ecx, dword [esp + 0x18]
call fcn.00433db0
mov edi, eax
push 0x51faa0
push 0x51620c
mov edx, edi
call fcn.004351e0
add esi, 4
push esi
push 0x51620c
mov edx, edi
call fcn.004351e0
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8

Function at 0x43a7b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
push 0
mov edi, eax
mov esi, ecx
call ebp
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43a84d
push ebx
lea ebx, [esi + 0x18]
cmp byte [esi + 0x128], al
jne 0x43a7f8
mov ebx, dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
mov edi, eax
call fcn.00433db0
mov esi, eax
call fcn.004345f0
push 0
call ebp
mov ecx, dword [esp + 0x18]
call fcn.00433db0
mov esi, eax
push 0x51fac0
push 0x51620c
mov edx, esi
call fcn.004351e0
add ebx, 4
push ebx
push 0x51620c
mov edx, esi
call fcn.004351e0
add esp, 0x10
pop ebx
pop edi
pop esi
xor al, al
pop ebp
pop ecx
ret 0xc
test edi, edi
je 0x43a857
mov ecx, dword [esp + 0xc]
mov dword [edi], ecx
pop edi
pop esi
mov al, 1
pop ebp
pop ecx
ret 0xc
Function at 0x43b690
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5006fb
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x32c], eax
push esi
push edi
mov eax, dword [0x5355a0]
xor eax, esp
push eax
lea eax, [esp + 0x33c]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [esp + 0x13a]
push ecx
mov esi, edx
mov word [esp + 0x13c], ax
call fcn.004cab10
add esp, 0xc
lea edx, [esp + 0x130]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x43b73d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.00433db0
mov esi, eax
push 0x5206e8
push 0x51620c
mov edx, esi
call fcn.004351e0
push edi
push 0x51f4c8
mov edx, esi
call fcn.004351e0
add esp, 0x10
xor al, al
jmp 0x43b7eb
lea eax, [esp + 0x130]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b747
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x12e], 0x5c
jne 0x43b789
lea eax, [esp + 0x130]
lea edx, [eax + 2]
jmp 0x43b770
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b770
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x12e], cx
lea ecx, [esp + 0xc]
call fcn.004349d0
lea eax, [esp + 0x130]
lea edx, [esp + 0xc]
call fcn.00434c20
cmp byte [esp + 0x128], 0
lea eax, [esp + 0x18]
jne 0x43b7b4
mov eax, dword [esp + 0x14]
add eax, 4
lea edx, [edi + 0x130]
call fcn.00434c20
cmp byte [esp + 0x128], 0
mov dword [esp + 0xc], vtable.t_str.0
jne 0x43b7e9
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
cmp eax, edx
je 0x43b7e9
push eax
call fcn.004c31b0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x33c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.004c31a1
add esp, 0x33c
ret

Function at 0x43b820
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, eax
add esi, 0x4d4
cmp word [esi], 0
push edi
jne 0x43b859
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
push 0
push 0
push 0x23
push 0
call edi
test eax, eax
je 0x43b859
push esi
push 1
push 0
push 0x23
push 0
call edi
test eax, eax
je 0x43b859
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, esi
pop esi
ret