joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b910
Capabilities:
Move file

Disassembly:
mov eax, 0x1054
call fcn.004a53e0
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x1050], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
mov ecx, 0x4f04a8
xor esi, esi
call fcn.004404c0
push edi
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4f04a8
call fcn.004404c0
test al, al
je 0x48b9de
lea ecx, [esp + 0x85c]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00451890
lea eax, [esp + 0x85c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48b970
sub eax, edx
sar eax, 1
lea ebx, [eax + edi + 1]
lea eax, [ebx + ebx + 2]
push eax
push esi
call fcn.004a4ddd
mov esi, eax
add esp, 8
test esi, esi
je 0x48baa4
lea eax, [esp + 0x85c]
mov edx, eax
lea ecx, [edi + edi]
sub ecx, edx
lea edx, [ecx + esi]
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x48b9b0
push 0
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4f04a8
mov edi, ebx
call fcn.004404c0
test al, al
jne 0x48b953
test edi, edi
jne 0x48ba05
push 0x30
push 0x65
call fcn.004612e0
push eax
push 0x14c
call fcn.004612e0
mov ecx, dword [0x4eacd4]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x48baa4
xor eax, eax
xor edx, edx
mov word [esi + edi*2], dx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
mov eax, dword [0x4eacd4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 3
cmp byte [esp + 0x1064], dl
je 0x48ba52
mov ecx, 0x40
mov word [esp + 0x1c], cx
lea edx, [esp + 0xc]
mov edi, 1
add dword [0x4ea434], edi
push edx
mov dword [esp + 0x18], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete bl
sub dword [0x4ea434], edi
push esi
call fcn.004a4d4f
add esp, 4
test bl, bl
je 0x48baa4
cmp dword [esp + 0x1e], 0
jne 0x48baa4
mov ecx, 0x4f0480
call fcn.00470e50
push 0x4bad38
mov ecx, 0x4f04a8
call fcn.004430b0
mov ecx, dword [esp + 0x105c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a4bb3
add esp, 0x1054
ret 4
Function at 0x48d540
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x2d0], eax
push esi
mov esi, dword [esp + 0x2dc]
mov eax, dword [esi + 0x2c]
push edi
add eax, 0x41
push eax
lea ecx, [esp + 0x2c8]
push 0x4ba858
push ecx
mov edx, 0xa
call fcn.0049c880
add esp, 0xc
push 0x301
push 0x2b4
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x2d4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test byte [esi + 0x10], 1
je 0x48d5cf
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xd
call edi
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0xe
mov dword [esp + 0x10], eax
call edi
mov edx, dword [esi + 0x18]
push eax
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push ebx
push ebp
push 0
push 0
push 0x4bad38
lea edi, [esi + 0x1c]
push edi
push 2
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x31
call ebx
push 0x32
mov ebp, eax
call ebx
mov ecx, dword [esi + 0x20]
mov edx, dword [edi]
push 3
push 0
push 0
push eax
mov eax, dword [esp + 0x28]
push ebp
push eax
mov eax, dword [esi + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_DrawIconEx]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_DestroyIcon]
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48d632
mov ecx, dword [edi]
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x28]
push edx
add eax, 2
push eax
mov eax, dword [esi + 0x18]
lea edx, [ecx + ebp + 7]
push edx
push eax
call dword [sym.imp.GDI32.dll_TextOutW]
test byte [esi + 0x10], 1
pop ebp
pop ebx
je 0x48d685
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x18]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 8]
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x2d8]
pop edi
pop esi
xor ecx, esp
call fcn.004a4bb3
add esp, 0x2d4
ret 4
Function at 0x493300
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
mov eax, 0x1a64
call fcn.004a53e0
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x1a60], eax
cmp byte [esp + 0x1a6c], 0
mov dword [0x4ea3a0], 1
je 0x4934b0
push esi
push 0x400
lea eax, [esp + 0xa68]
push eax
call fcn.00484c80
lea ecx, [esp + 0xa64]
push ecx
call fcn.00451670
lea edx, [esp + 0xa64]
push edx
lea eax, [esp + 0x1268]
push str._sRar_
push eax
mov edx, 0x400
call fcn.0049c880
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1268]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 8], esi
cmp esi, 0xffffffff
je 0x4934a8
push ebx
push edi
cmp dword [0x4ea3a0], 1
jne 0x4934a6
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x24]
cmp ecx, 8
setae byte [esp + 0xf]
xor eax, eax
movzx ecx, word [esp + eax + 0xa6c]
mov word [esp + eax + 0x26c], cx
add eax, 2
test cx, cx
jne 0x4933c0
lea eax, [esp + 0x48]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4933e0
lea edi, [esp + 0x26c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x493400
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x493400
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [esp + 0x1c], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x493481
push 6
lea edx, [esp + 0x4c]
push str.Rar_DI
push edx
call fcn.004a7663
add esp, 0xc
test eax, eax
jne 0x49344b
call fcn.0043ee10
cmp eax, 0x400
je 0x49344b
mov bl, 1
jmp 0x49344d
xor bl, bl
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x49348e
cmp byte [esp + 0xf], al
je 0x49346e
cmp byte [esp + 0x1a74], al
je 0x493472
test bl, bl
je 0x49348e
lea ecx, [esp + 0x26c]
push ecx
call fcn.00485ab0
jmp 0x49348e
lea edx, [esp + 0x26c]
push edx
call fcn.00485840
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4933a1
pop edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
cmp byte [esp + 0x1a68], 0
jne 0x4934de
cmp byte [0x4d70a0], 0
je 0x4934de
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 1
call fcn.00490a00
mov byte [0x4d70a0], al
mov ecx, dword [esp + 0x1a60]
xor ecx, esp
mov dword [0x4ea3a0], 0
call fcn.004a4bb3
add esp, 0x1a64
ret 8
Function at 0x493fd0
Capabilities:
Copy file
Move file

Disassembly:
mov eax, 0x202c
call fcn.004a53e0
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x2028], eax
cmp byte [0x4e9b89], 0
je 0x4941e5
push ebx
push 0x401
lea eax, [esp + 0x828]
push eax
mov ecx, 0x4f0dd0
call fcn.004130a0
push 1
push 0x4bb584
push 0x4bade8
call fcn.0045ba60
test eax, eax
setne bl
test bl, bl
je 0x494045
push 0x400
push 0x4bad38
lea ecx, [esp + 0x2c]
push ecx
push str.SaveArcFolder
push 0x4bc270
call fcn.0045ba30
cmp word [esp + 0x24], 0
jne 0x494057
lea edx, [esp + 0x24]
push edx
call fcn.0043cc30
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x24]
mov word [esp + eax + 0x1028], cx
add eax, 2
test cx, cx
jne 0x494060
lea eax, [esp + 0x1028]
push eax
call fcn.00451670
lea ecx, [esp + 0x824]
push ecx
call fcn.00451bd0
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x494091
push esi
push edi
lea edi, [esp + 0x1030]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4940b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 1
push 0
lea edx, [esp + 0x1038]
mov ecx, eax
push edx
and ecx, 3
push 0x5af
rep movsb byte es:[edi], byte [esi]
call fcn.004612e0
push eax
mov eax, dword [0x4eacd4]
push eax
call fcn.00419830
pop edi
pop esi
test al, al
je 0x4941e4
push 0x400
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1030]
push edx
call fcn.00452110
test bl, bl
je 0x494127
lea eax, [esp + 0x24]
push eax
push str.SaveArcFolder
push 0x4bc270
call fcn.0045b960
lea eax, [esp + 0x824]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x494131
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x826], cx
lea eax, [esp + 0x1028]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x494154
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x102a], dx
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 4], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], ax
lea edx, [esp + 4]
lea eax, [esp + 0x824]
lea ecx, [esp + 0x1028]
push edx
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x4941e4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push 0x5b0
call fcn.004612e0
push eax
call fcn.00493500
add esp, 0xc
mov ecx, 0x4d76b4
call fcn.00428fc0
pop ebx
mov ecx, dword [esp + 0x2028]
xor ecx, esp
call fcn.004a4bb3
add esp, 0x202c
ret
Function at 0x497110
Capabilities:
Copy file
Move file

Disassembly:
mov eax, 0x182c
call fcn.004a53e0
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x1828], eax
push 0
push str.AppDataCopied
push 0x4bade8
call fcn.0045ba60
test eax, eax
jne 0x4972c8
push esi
push 0x401
lea eax, [esp + 0x82c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x828]
push ecx
mov esi, 0x4c1694
call fcn.00451bd0
lea esp, [esp]
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
test cx, cx
jne 0x497170
lea edx, [esp + 0x102c]
push edx
call fcn.004523d0
xor eax, eax
pop esi
jmp 0x4971a0
movzx ecx, word [esp + eax + 0x1028]
mov word [esp + eax + 0x20], cx
add eax, 2
test cx, cx
jne 0x4971a0
lea eax, [esp + 0x20]
push eax
call fcn.00451670
lea eax, [esp + 0x20]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4971c6
mov ecx, dword [0x4c1694]
mov edx, dword [0x4c1698]
mov dword [eax], ecx
mov ecx, dword [0x4c169c]
mov dword [eax + 4], edx
mov dx, word [0x4c16a0]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0x824]
push eax
call fcn.00431770
test al, al
je 0x4972b7
lea ecx, [esp + 0x20]
push ecx
call fcn.00431770
test al, al
jne 0x4972b7
lea eax, [esp + 0x824]
lea edx, [eax + 2]
jmp 0x497230
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x497230
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x826], dx
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x497250
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x22], cx
xor eax, eax
mov dword [esp + 8], eax
lea edx, [esp + 0x824]
mov dword [esp + 4], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
lea edx, [esp]
lea eax, [esp + 0x20]
mov ecx, 0x14
push edx
mov dword [esp + 8], 2
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push 1
push str.AppDataCopied
push 0x4bade8
call fcn.0045b980
mov ecx, dword [esp + 0x1828]
xor ecx, esp
call fcn.004a4bb3
add esp, 0x182c
ret
Function at 0x4972e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x428
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x424], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], 0x40101
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0xc
push 0
lea ecx, [esp + 8]
push ecx
push str.VerInfo
push 0x4bade8
call fcn.0045ba80
lea edx, [esp + 0x24]
push edx
call fcn.00452350
lea eax, [esp + 0x24]
push eax
call fcn.00452090
lea eax, [esp + 0x24]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x497338
mov ecx, dword [str.version.dat]
mov edx, dword [0x4c16c4]
mov dword [eax], ecx
mov ecx, dword [0x4c16c8]
push esi
mov dword [eax + 4], edx
lea edx, [esp + 0x28]
push 0x4baa34
push edx
mov dword [eax + 8], ecx
mov dword [esp + 0x18], 0
call fcn.004a80d7
mov esi, eax
add esp, 8
test esi, esi
je 0x497393
push esi
push 0xc
lea eax, [esp + 0x18]
push 1
push eax
call fcn.004a68d2
push esi
call fcn.004a6c75
add esp, 0x14
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
je 0x497445
mov ecx, dword [esp + 0x10]
push 0xc
cmp ecx, eax
je 0x497411
lea ecx, [esp + 0x20]
push ecx
push str.VerInfo
push 0x4bade8
call fcn.0045b9e0
lea edx, [esp + 0x28]
push 0x4bae08
push edx
call fcn.004a80d7
mov esi, eax
add esp, 8
test esi, esi
je 0x4973f1
push esi
push 0xc
lea eax, [esp + 0x24]
push 1
push eax
call fcn.004a6ea4
push esi
call fcn.004a6c75
add esp, 0x14
mov dword [0x4ea428], 0
pop esi
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.004a4bb3
add esp, 0x428
ret
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x1c]
push str.VerInfo
push 0x4bade8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.0045b9e0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x49748f
cmp dword [esp + 0x10], eax
je 0x49748f
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x28]
push 0x4bae08
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.004a80d7
mov esi, eax
add esp, 8
test esi, esi
je 0x49748f
push esi
push 0xc
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.004a6ea4
push esi
call fcn.004a6c75
add esp, 0x14
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
xor eax, eax
push 1
xor esi, esi
sub ecx, edx
push eax
sbb esi, eax
push esi
push ecx
call fcn.004a5a10
mov ecx, dword [esp + 8]
xor esi, esi
sub eax, ecx
mov ecx, dword [esp + 0x20]
sbb edx, esi
push esi
add eax, ecx
push 0x989680
adc edx, esi
push edx
push eax
call fcn.004a5f60
push esi
push 0xe10
push edx
push eax
call fcn.004a5f60
push esi
push 0x18
push edx
push eax
call fcn.004a5f60
mov dword [0x4ea428], eax
test eax, eax
jge 0x4974f2
mov dword [0x4ea428], 0x168
mov ecx, dword [esp + 0x428]
pop esi
xor ecx, esp
call fcn.004a4bb3
add esp, 0x428
ret
Function at 0x498090
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x810
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x80c], eax
mov eax, dword [0x4f987c]
push esi
xor esi, esi
cmp dword [eax + 0x20], esi
je 0x498274
push esi
push 1
push 0x4f907c
mov ecx, 0x4f0dd0
call fcn.004162e0
cmp eax, 1
jne 0x498274
cmp dword [0x4f54e0], 3
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 4], esi
push eax
jne 0x4980fc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
mov ecx, 0x4f0dd0
call fcn.00413360
jmp 0x498110
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x4f0dd0
call fcn.00413280
cmp dword [esp + 4], esi
je 0x498274
mov ecx, dword [0x4f987c]
push 0x400
lea edx, [esp + 0x14]
push edx
call fcn.0046b550
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x498181
push esi
push esi
push 0x7fffffff
push 0x7fffffff
lea ecx, [esp + 0x20]
push ecx
push esi
call fcn.0040af50
cmp al, 0x43
je 0x49815e
cmp al, 0x4e
jne 0x498181
mov edx, dword [esp + 8]
push edx
call fcn.004a57f5
add esp, 4
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.004a4bb3
add esp, 0x810
ret
push edi
push esi
push 0x4bae08
lea eax, [esp + 0x1c]
push eax
call fcn.00432010
mov edi, eax
cmp edi, esi
jne 0x4981d6
lea ecx, [esp + 0x14]
push ecx
push 0x1f6
call fcn.004612e0
push eax
push 0x4f907c
call fcn.00493af0
mov edx, dword [esp + 0x18]
push edx
call fcn.004a57f5
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.004a4bb3
add esp, 0x810
ret
mov eax, dword [0x4f54e0]
cmp eax, 3
jne 0x49822b
push edi
push 0xff
call fcn.004a86b0
push edi
push 0xfe
call fcn.004a86b0
add esp, 0x10
cmp dword [esp + 8], esi
jbe 0x498256
nop
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + esi*2]
push edi
push ecx
call fcn.004a86b0
mov edx, dword [esp + 0x18]
movzx eax, byte [edx + esi*2 + 1]
push edi
push eax
call fcn.004a86b0
inc esi
add esp, 0x10
cmp esi, dword [esp + 8]
jb 0x498200
jmp 0x498256
cmp eax, 2
jne 0x498241
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push ecx
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemBuffA]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push edi
push edx
push 1
push eax
call fcn.004a6ea4
add esp, 0x10
push edi
call fcn.004a6c75
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004a57f5
mov edx, dword [esp + 0x18]
push edx
call fcn.004a57f5
add esp, 0xc
pop edi
mov ecx, dword [esp + 0x810]
pop esi
xor ecx, esp
call fcn.004a4bb3
add esp, 0x810
ret
Function at 0x49c8a0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1044
call fcn.004a53e0
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x1040], eax
mov eax, dword [esp + 0x105c]
push ebx
mov ebx, dword [esp + 0x1064]
push ebp
mov ebp, dword [esp + 0x105c]
push esi
mov esi, dword [esp + 0x1058]
push edi
mov edi, dword [esp + 0x1060]
push 0x3c
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x1c], eax
call fcn.004a5410
add esp, 0xc
cmp byte [esp + 0x1068], 0
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x500
jne 0x49c916
mov dword [esp + 0x18], 0x540
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebp
call fcn.00451bd0
cmp eax, esi
jne 0x49c950
push esi
lea edx, [esp + 0x54]
push str.._s
push edx
mov edx, 0x800
call fcn.0049c880
lea eax, [esp + 0x5c]
add esp, 0xc
mov dword [esp + 0x24], eax
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [esp + 0x14]
mov ebx, 1
push ecx
mov dword [esp + 0x34], ebx
mov byte [0x4e9b8b], bl
call esi
test eax, eax
jne 0x49c981
cmp dword [esp + 0x20], eax
je 0x49c981
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
call esi
mov byte [0x4e9b8b], 0
test eax, eax
je 0x49ca32
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
je 0x49ca32
cmp byte [esp + 0x1068], 0
jne 0x49ca2e
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x49c9e2
mov eax, dword [0x5155a8]
mov edx, dword [esp + 0x34]
mov dword [eax*4 + 0x515568], ecx
mov dword [eax*4 + 0x515528], edx
inc eax
and eax, 0x8000000f
jns 0x49c9db
dec eax
or eax, 0xfffffff0
inc eax
mov dword [0x5155a8], eax
jmp 0x49ca24
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
lea ebx, [ebx]
mov eax, dword [esi + 0x515528]
cmp eax, dword [esp + 0x34]
jne 0x49ca18
mov ecx, dword [esi + 0x515568]
push 0
push ecx
call edi
cmp eax, 0x102
jne 0x49ca18
mov edx, dword [esi + 0x515568]
mov dword [esp + 0x4c], edx
add esi, 4
cmp esi, 0x40
jl 0x49c9f0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49ca2e
mov dword [eax], ecx
mov al, bl
jmp 0x49ca34
xor al, al
mov ecx, dword [esp + 0x1050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a4bb3
add esp, 0x1044
ret 0x1c

Function at 0x49e790
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push 0x4e9b90
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49e7c9
push 0x40
push 0x2bc
call fcn.004612e0
push eax
push 0x2bd
call fcn.004612e0
push eax
mov eax, dword [0x4eacd4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
ret
push 0
push 0x4e9b90
mov ecx, esi
call fcn.0049d9d0
pop esi
ret
Function at 0x49fd40
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
mov edi, eax
mov eax, 0x12345678
mov edx, 0x23456789
mov esi, 0x34567890
mov dword [0x51e144], eax
mov dword [0x51e148], edx
mov dword [0x51e14c], esi
mov cl, byte [edi]
test cl, cl
je 0x49fdc0
lea ebx, [ebx]
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4d3b58]
inc edi
movzx ecx, al
add ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov edx, ecx
shr ecx, 0x18
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x4d3b58]
mov dword [0x51e144], eax
mov dword [0x51e148], edx
mov dword [0x51e14c], esi
mov cl, byte [edi]
test cl, cl
jne 0x49fd70
pop edi
pop esi
ret

Function at 0x49fdd0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x10
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, esi
call fcn.0049fd40
push 0xa
lea eax, [esp + 0x14]
push eax
call fcn.00420e50
mov eax, esi
call fcn.0049fd40
xor edi, edi
jmp 0x49fe10
movzx ebp, byte [esp + edi + 0x10]
mov esi, dword [0x51e144]
mov ecx, dword [0x51e14c]
mov eax, ebp
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4d3b58]
mov edx, ecx
mov eax, esi
mov dword [0x51e144], eax
movzx eax, al
add eax, dword [0x51e148]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x51e148], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4d3b58]
or edx, 2
mov dword [0x51e14c], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
and ecx, 0xff
xor ecx, ebp
push ebx
push ecx
call fcn.004a86b0
inc edi
add esp, 8
cmp edi, 0xa
jl 0x49fe10
mov esi, dword [esp + 0x28]
mov edi, dword [0x51e144]
mov ebp, esi
mov ecx, dword [0x51e14c]
shr ebp, 0x10
mov eax, ebp
xor eax, edi
and eax, 0xff
shr edi, 8
xor edi, dword [eax*4 + 0x4d3b58]
mov edx, ecx
mov eax, edi
mov dword [0x51e144], eax
movzx eax, al
add eax, dword [0x51e148]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x51e148], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4d3b58]
or edx, 2
mov dword [0x51e14c], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
mov edx, esi
shr edx, 8
xor ecx, edx
shr ecx, 8
and ecx, 0xff
push ebx
push ecx
call fcn.004a86b0
mov edi, dword [0x51e144]
mov ecx, dword [0x51e14c]
shr esi, 0x18
xor esi, edi
and esi, 0xff
shr edi, 8
xor edi, dword [esi*4 + 0x4d3b58]
mov edx, ecx
mov eax, edi
mov dword [0x51e144], eax
movzx eax, al
add eax, dword [0x51e148]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x51e148], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
or edx, 2
shr ecx, 8
xor ecx, dword [eax*4 + 0x4d3b58]
mov eax, edx
xor eax, 1
imul eax, edx
and eax, 0xff00
xor eax, ebp
shr eax, 8
push ebx
push eax
mov dword [0x51e14c], ecx
call fcn.004a86b0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a4bb3
add esp, 0x10
ret 0xc
Function at 0x49ffc0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Write file on windows

Disassembly:
cmp word [0x4f60e8], 0
push ebp
mov ebp, dword [esp + 0x10]
je 0x4a005c
push ebx
mov ebx, dword [esp + 0x10]
imul ebx, ebp
push edi
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x4a005a
push esi
movsx eax, byte [edi]
mov esi, dword [0x51e144]
xor eax, esi
and eax, 0xff
mov ecx, dword [0x51e14c]
shr esi, 8
xor esi, dword [eax*4 + 0x4d3b58]
mov edx, ecx
mov eax, esi
mov dword [0x51e144], eax
movzx eax, al
add eax, dword [0x51e148]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x51e148], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4d3b58]
or edx, 2
mov dword [0x51e14c], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
xor byte [edi], cl
inc edi
sub ebx, 1
jne 0x49ffe5
pop esi
pop edi
pop ebx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edx
push ebp
push eax
push ecx
call fcn.004a6ea4
add esp, 0x10
pop ebp
ret 0x10