joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52ad88
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x52adb9
dec al
je 0x52adf5
dec al
je 0x52ae39
dec al
je 0x52aea4
jmp 0x52af2e
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x52af2e
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x52adc9
jmp 0x52af2e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x52af2e
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x52ae05
jmp 0x52af2e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x52af2e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x52ae67
xor ebp, ebp
jmp 0x52ae78
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x52ae81
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x52ae49
jmp 0x52af2e
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x52af2e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x52aefc
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00528330
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x52aeb8
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x542010
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5420fb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404448
cmp dword [ebp - 4], 0
je 0x54205a
mov eax, dword [ebp - 4]
call fcn.00404680
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x54205a
lea eax, [ebp - 4]
mov edx, 0x542110
call fcn.00404688
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.00404a0c
cmp dword [ebp - 4], 0
jne 0x542099
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.00404a0c
lea eax, [ebp - 4]
call fcn.004048d8
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, eax
lea eax, [ebp - 4]
call fcn.00404a0c
jmp 0x5420b3
lea eax, [ebp - 4]
mov edx, 0x54211c
call fcn.00404688
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.00404a0c
lea eax, [ebp - 8]
call fcn.004048d8
push eax
push 0
push 0x542120
lea eax, [ebp - 4]
call fcn.004048d8
push eax
call sub.kernel32.dll_GetTempFileNameA
lea eax, [ebp - 8]
call fcn.004048d8
mov edx, esi
call fcn.0040a1d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x542102
lea eax, [ebp - 8]
mov edx, 2
call fcn.004043d4
ret
Function at 0x40aec0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b6a8]
jne 0x40aeca
repz ret
jmp fcn.00411f9c

Function at 0x420eed
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b6a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040f72b
and dword [ebp - 0x14], 0
cmp dword [0x462eec], 0
mov dword [ebp - 0x18], eax
jne 0x420fa0
push 0x404348
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x421048
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40433c
push ebx
call edi
test eax, eax
je 0x421048
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40432c
push ebx
mov dword [0x462eec], eax
call edi
push eax
call esi
push 0x404318
push ebx
mov dword [0x462ef0], eax
call edi
push eax
call esi
push 0x4042fc
push ebx
mov dword [0x462ef4], eax
call edi
push eax
call esi
mov dword [0x462efc], eax
test eax, eax
je 0x420fa0
push 0x4042e4
push ebx
call edi
push eax
call esi
mov dword [0x462ef8], eax
mov eax, dword [0x462ef8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x420ff9
cmp dword [0x462efc], ecx
je 0x420ff9
push eax
call esi
push dword [0x462efc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x420ff9
test ebx, ebx
je 0x420ff9
call edi
test eax, eax
je 0x420ff0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x420ff0
test byte [ebp - 8], 1
jne 0x420ff9
or dword [ebp + 0x10], 0x200000
jmp 0x42102c
mov eax, dword [0x462ef0]
cmp eax, dword [ebp - 0x18]
je 0x42102c
push eax
call esi
test eax, eax
je 0x42102c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42102c
mov eax, dword [0x462ef4]
cmp eax, dword [ebp - 0x18]
je 0x42102c
push eax
call esi
test eax, eax
je 0x42102c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x462eec]
call esi
test eax, eax
je 0x421048
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42104a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aec0
leave
ret
Function at 0x422c40
Capabilities:
Access the windows event log
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1804
call fcn.00421d20
cmp dword [0x803c00], 0x37
jne 0x422d0a
push 0
call dword [sym.imp.KERNEL32.dll_DebugActiveProcessStop]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x404520
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x404538
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x4045a0
push 0
lea ecx, [esp + 0x80c]
push ecx
push 0x4045c0
push 0x4045e8
push 0x404608
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0
lea eax, [esp + 0x1008]
push eax
push 0x404640
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov ecx, dword [0x803c04]
mov eax, dword [0x800070]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0x1804
ret
Function at 0x4010f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8a40
call fcn.004397d0
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.0040ae00
add esp, 0xc
mov dword [ebp - 0x8a18], 0x104
lea eax, [ebp - 0x8a40]
mov dword [ebp - 0x8a14], 0
mov dword [ebp - 0x8a10], 0
push eax
lea eax, [ebp - 0x8a28]
push eax
lea eax, [ebp - 0x8a2c]
push eax
lea eax, [ebp - 0x8a30]
push eax
lea eax, [ebp - 0x8a10]
push eax
lea eax, [ebp - 0x8a34]
push eax
lea eax, [ebp - 0x8a38]
push eax
lea eax, [ebp - 0x8a14]
push eax
push 0
lea eax, [ebp - 0x8a18]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x8a10]
test eax, eax
je 0x40126c
xor esi, esi
test eax, eax
je 0x40126c
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x8a1c], 0x3fff
push eax
push eax
push eax
push eax
mov word [ebp - 0x8a0c], ax
lea eax, [ebp - 0x8a1c]
push eax
lea eax, [ebp - 0x8a0c]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40125f
lea eax, [ebp - 0x8a0c]
push edi
push eax
call fcn.0040a439
add esp, 8
test eax, eax
jne 0x40127f
push 0x800
push eax
lea eax, [ebp - 0xa0c]
push eax
call fcn.0040ae00
add esp, 0xc
mov dword [ebp - 0x8a20], 0x400
lea eax, [ebp - 0x8a20]
mov dword [ebp - 0x8a24], 1
push eax
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0x8a24]
push eax
push 0
lea eax, [ebp - 0x8a0c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40125f
lea eax, [ebp - 0xa0c]
push edi
push eax
call fcn.0040a439
add esp, 8
test eax, eax
jne 0x40127f
inc esi
cmp esi, dword [ebp - 0x8a10]
jb 0x4011b0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408f56
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f56
mov esp, ebp
pop ebp
ret
Function at 0x4012a0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44ff50
push str.kernel32
mov ebx, ecx
mov dword [ebp - 0x808], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4012ef
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
lea eax, [ebp - 0x814]
push eax
mov eax, dword [ebp - 0x808]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4013fa
push 0x800
lea eax, [ebp - 0x804]
mov dword [ebp - 0x810], 7
push 0
push eax
call fcn.0040ae00
add esp, 0xc
mov dword [ebp - 0x80c], 0x400
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x814]
mov esi, eax
call edi
test esi, esi
jne 0x4013fa
mov eax, dword [ebp - 0x80c]
lea esi, [ebp - 0x804]
xor edi, edi
mov dword [ebp - 0x818], eax
test eax, eax
je 0x4013f4
push ebx
push esi
call fcn.0040a439
add esp, 8
test eax, eax
jne 0x401447
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4013c0
sub ecx, edx
mov eax, esi
sar ecx, 1
inc edi
add edi, ecx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4013d7
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp edi, dword [ebp - 0x818]
jb 0x4013a3
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x814]
push eax
mov eax, dword [ebp - 0x808]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call esi
test eax, eax
jne 0x40145c
mov ecx, dword [ebp - 0x814]
mov edx, ebx
call fcn.004010f0
push dword [ebp - 0x814]
test al, al
je 0x40145a
call edi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408f56
mov esp, ebp
pop ebp
ret
call edi
lea eax, [ebp - 0x814]
push eax
mov eax, dword [ebp - 0x808]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
call esi
test eax, eax
jne 0x4014a3
mov ecx, dword [ebp - 0x814]
mov edx, ebx
call fcn.004010f0
push dword [ebp - 0x814]
test al, al
jne 0x401445
call edi
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f56
mov esp, ebp
pop ebp
ret
Function at 0x4014c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x45604c]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea ecx, [ebx - 1]
cmp ecx, 0x100
ja 0x401647
cmp word [esi + ebx*2 - 2], 0x5c
je 0x40150d
mov eax, 0x5c
mov word [esi + ebx*2], ax
inc ebx
lea eax, [esi + ebx*2]
xor ecx, ecx
mov dword [eax], 0x2a
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4015a4
test byte [esp + 0x18], 0x10
je 0x401589
push 0x450090
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x401585
push 0x450094
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x401585
mov eax, 0x104
sub eax, ebx
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
push esi
mov dl, 1
xor cl, cl
call fcn.004014c0
add esp, 8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x401531
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esi + ebx*2]
mov dword [eax], 0x2a
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x401628
test byte [esp + 0x18], 0x10
jne 0x40160b
mov eax, 0x104
sub eax, ebx
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4015fd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x40160b
test eax, eax
jne 0x40160b
push 4
push eax
push esi
call edi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4015c2
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
xor ecx, ecx
push esi
mov word [eax - 2], cx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x401647
test edi, edi
je 0x401647
push 4
push eax
push esi
call edi
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408f56
mov esp, ebp
pop ebp
ret
Function at 0x401990
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
xor eax, eax
mov dword [ebp - 0x210], edi
push str.shell32.dll
mov word [edi], ax
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x401b72
cmp esi, 0xffffffff
je 0x401b72
push str.SHGetSpecialFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401b6b
push 0
push 0x1c
push edi
push 0
call eax
test eax, eax
je 0x401b6b
push str.GoToAssist_Remote_Support
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Applet
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401a31
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401b6b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401a40
sub ecx, edx
sar ecx, 1
je 0x401b72
cmp ecx, 0x103
ja 0x401b72
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, ebx
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x401a70
sub esi, ecx
sar esi, 1
cmp word [ebx + esi*2 - 2], 0x5c
je 0x401a97
mov eax, 0x5c
mov word [ebx + esi*2], ax
inc esi
xor eax, eax
mov word [ebx + esi*2], ax
push 0x4500e0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea esi, [esi + 3]
mov edi, 1
lea esi, [ebx + esi*2]
nop
push edi
push str._04X.tmp
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esi - 6]
inc edi
call fcn.004012a0
test al, al
jne 0x401ae7
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401b05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401aef
cmp edi, 0xffff
jl 0x401ab0
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408f56
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
call esi
test eax, eax
jne 0x401b58
push dword [ebp - 0x210]
call esi
push 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x20c]
push eax
call fcn.004014c0
add esp, 8
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408f56
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408f56
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f56
mov esp, ebp
pop ebp
ret
Function at 0x4025d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xa
push 0x7d00
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40262e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x40262e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40262e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40263d
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor edi, edi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0xc], ebx
test edi, edi
je 0x40274b
cmp edi, 0xffffffff
je 0x40274b
cmp ebx, 0xd
jb 0x402738
mov ebx, dword [esi + 5]
mov dword [ebp - 0x18], ebx
cmp ebx, 0xffffffff
je 0x402738
mov al, byte [esi]
cmp al, 0xe1
jae 0x402738
xor edx, edx
movzx eax, al
mov ecx, 9
div ecx
mov ecx, 5
mov dword [ebp - 0x10], edx
xor edx, edx
movzx eax, al
div ecx
push ebx
mov ecx, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
mov edx, 0x300
add cl, byte [ebp - 0x10]
shl edx, cl
lea eax, [edx*2 + 0xe6c]
mov dword [ebp - 0x14], eax
call fcn.00410d40
push dword [ebp - 0x14]
mov ebx, eax
call fcn.00410d40
add esp, 8
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ebx, ebx
je 0x40276c
test ecx, ecx
je 0x40275c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff3
mov dword [ebp - 8], 0
push ebx
push eax
lea eax, [esi + 0xd]
push eax
mov eax, dword [ebp - 0x1c]
movzx eax, al
push eax
mov eax, dword [ebp - 0x20]
movzx eax, al
push eax
mov eax, dword [ebp - 0x10]
movzx eax, al
push eax
call fcn.004034f0
push dword [ebp - 0x24]
mov esi, eax
call fcn.0040c957
add esp, 0x24
test esi, esi
jne 0x40272f
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 8], eax
jne 0x40272f
push ecx
mov edx, eax
mov ecx, ebx
call fcn.004032c0
push ebx
mov esi, eax
call fcn.0040c957
add esp, 8
push esi
jmp 0x40273e
push ebx
call fcn.0040c957
add esp, 4
mov eax, 0xd
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f56
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0040c957
add esp, 4
mov eax, 0xe
jmp 0x40273d
test ecx, ecx
je 0x402779
push ecx
call fcn.0040c957
add esp, 4
mov eax, 0xe
jmp 0x40273d
Function at 0x402780
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x820
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.0040ae00
add esp, 0xc
mov byte [ebp - 0x82a], 0
lea eax, [ebp - 0x824]
mov byte [ebp - 0x829], 0
push str.params.json
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xa
push 0x2710
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x402818
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x830], eax
test eax, eax
je 0x402818
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402818
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x40282c
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x830], 0
test esi, esi
je 0x4028c0
cmp esi, 0xffffffff
je 0x4028c0
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x40289a
cmp edi, 0xffffffff
je 0x40289a
push 2
push 0
push 0
push edi
mov byte [ebp - 0x82a], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x828]
push eax
push dword [ebp - 0x830]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
setne byte [ebp - 0x829]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp byte [ebp - 0x829], 0
jne 0x4028c0
cmp byte [ebp - 0x82a], 0
je 0x4028c0
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f56
mov esp, ebp
pop ebp
ret
Function at 0x4031a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004397d0
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.0040c870
lea ecx, [ebp - 0x2004]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4031d5
push ebx
sub ecx, edx
lea eax, [ebp - 0x2004]
sar ecx, 1
lea ebx, [ebp - 0x2004]
push 0x5c
push eax
lea ebx, [ebx + ecx*2]
call fcn.0040a76b
add esp, 8
test eax, eax
je 0x4032ae
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2004]
push 0x5c
push eax
call fcn.0040a76b
add esp, 8
test eax, eax
je 0x40323b
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2004]
push 0x5c
push eax
call fcn.0040a76b
add esp, 8
test eax, eax
jne 0x403221
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403244
sub ecx, edx
sar ecx, 1
push esi
lea esi, [ebp - 0x2004]
lea esi, [esi + ecx*2]
cmp esi, ebx
je 0x4032ad
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x2004]
push eax
call edi
test esi, esi
je 0x4032ac
mov eax, 0x5c
mov word [esi], ax
lea eax, [ebp - 0x2004]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403290
sub eax, edx
lea esi, [ebp - 0x2004]
sar eax, 1
lea esi, [esi + eax*2]
cmp esi, ebx
jne 0x403270
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408f56
mov esp, ebp
pop ebp
ret