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

Disassembly:
mov eax, 0x182c
call fcn.004a5100
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x1828], eax
push 0
push str.AppDataCopied
push str.General
call fcn.0045b940
test eax, eax
jne 0x497058
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, str.Themes
call fcn.00451c30
lea esp, [esp]
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
test cx, cx
jne 0x496f00
lea edx, [esp + 0x102c]
push edx
call fcn.00452430
xor eax, eax
pop esi
jmp 0x496f30
movzx ecx, word [esp + eax + 0x1028]
mov word [esp + eax + 0x20], cx
add eax, 2
test cx, cx
jne 0x496f30
lea eax, [esp + 0x20]
push eax
call fcn.004516d0
lea eax, [esp + 0x20]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x496f56
mov ecx, dword [str.Themes]
mov edx, dword [0x4c1670]
mov dword [eax], ecx
mov ecx, dword [0x4c1674]
mov dword [eax + 4], edx
mov dx, word [0x4c1678]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0x824]
push eax
call fcn.004317c0
test al, al
je 0x497047
lea ecx, [esp + 0x20]
push ecx
call fcn.004317c0
test al, al
jne 0x497047
lea eax, [esp + 0x824]
lea edx, [eax + 2]
jmp 0x496fc0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x496fc0
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 0x496fe0
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 str.General
call fcn.0045b860
mov ecx, dword [esp + 0x1828]
xor ecx, esp
call fcn.004a48d3
add esp, 0x182c
ret
Function at 0x497070
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], 0x40000
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0xc
push 0
lea ecx, [esp + 8]
push ecx
push str.VerInfo
push str.General
call fcn.0045b960
lea edx, [esp + 0x24]
push edx
call fcn.004523b0
lea eax, [esp + 0x24]
push eax
call fcn.004520f0
lea eax, [esp + 0x24]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4970c8
mov ecx, dword [str.version.dat]
mov edx, dword [0x4c169c]
mov dword [eax], ecx
mov ecx, dword [0x4c16a0]
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.004a7df7
mov esi, eax
add esp, 8
test esi, esi
je 0x497123
push esi
push 0xc
lea eax, [esp + 0x18]
push 1
push eax
call fcn.004a65f2
push esi
call fcn.004a6995
add esp, 0x14
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
je 0x4971d5
mov ecx, dword [esp + 0x10]
push 0xc
cmp ecx, eax
je 0x4971a1
lea ecx, [esp + 0x20]
push ecx
push str.VerInfo
push str.General
call fcn.0045b8c0
lea edx, [esp + 0x28]
push 0x4bae08
push edx
call fcn.004a7df7
mov esi, eax
add esp, 8
test esi, esi
je 0x497181
push esi
push 0xc
lea eax, [esp + 0x24]
push 1
push eax
call fcn.004a6bc4
push esi
call fcn.004a6995
add esp, 0x14
mov dword [0x4ea428], 0
pop esi
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.004a48d3
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 str.General
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.0045b8c0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x49721f
cmp dword [esp + 0x10], eax
je 0x49721f
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.004a7df7
mov esi, eax
add esp, 8
test esi, esi
je 0x49721f
push esi
push 0xc
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.004a6bc4
push esi
call fcn.004a6995
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.004a5730
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.004a5c80
push esi
push 0xe10
push edx
push eax
call fcn.004a5c80
push esi
push 0x18
push edx
push eax
call fcn.004a5c80
mov dword [0x4ea428], eax
test eax, eax
jge 0x497282
mov dword [0x4ea428], 0x168
mov ecx, dword [esp + 0x428]
pop esi
xor ecx, esp
call fcn.004a48d3
add esp, 0x428
ret
Function at 0x497e20
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 [0x4f981c]
push esi
xor esi, esi
cmp dword [eax + 0x20], esi
je 0x498004
push esi
push 1
push 0x4f901c
mov ecx, 0x4f0da0
call fcn.00416320
cmp eax, 1
jne 0x498004
cmp dword [0x4f54b0], 3
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 4], esi
push eax
jne 0x497e8c
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
mov ecx, 0x4f0da0
call fcn.004133a0
jmp 0x497ea0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x4f0da0
call fcn.004132c0
cmp dword [esp + 4], esi
je 0x498004
mov ecx, dword [0x4f981c]
push 0x400
lea edx, [esp + 0x14]
push edx
call fcn.0046b390
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x497f11
push esi
push esi
push 0x7fffffff
push 0x7fffffff
lea ecx, [esp + 0x20]
push ecx
push esi
call fcn.0040af70
cmp al, 0x43
je 0x497eee
cmp al, 0x4e
jne 0x497f11
mov edx, dword [esp + 8]
push edx
call fcn.004a5515
add esp, 4
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.004a48d3
add esp, 0x810
ret
push edi
push esi
push 0x4bae08
lea eax, [esp + 0x1c]
push eax
call fcn.00432060
mov edi, eax
cmp edi, esi
jne 0x497f66
lea ecx, [esp + 0x14]
push ecx
push 0x1f6
call fcn.004611c0
push eax
push 0x4f901c
call fcn.00493840
mov edx, dword [esp + 0x18]
push edx
call fcn.004a5515
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.004a48d3
add esp, 0x810
ret
mov eax, dword [0x4f54b0]
cmp eax, 3
jne 0x497fbb
push edi
push 0xff
call fcn.004a83d0
push edi
push 0xfe
call fcn.004a83d0
add esp, 0x10
cmp dword [esp + 8], esi
jbe 0x497fe6
nop
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + esi*2]
push edi
push ecx
call fcn.004a83d0
mov edx, dword [esp + 0x18]
movzx eax, byte [edx + esi*2 + 1]
push edi
push eax
call fcn.004a83d0
inc esi
add esp, 0x10
cmp esi, dword [esp + 8]
jb 0x497f90
jmp 0x497fe6
cmp eax, 2
jne 0x497fd1
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.004a6bc4
add esp, 0x10
push edi
call fcn.004a6995
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004a5515
mov edx, dword [esp + 0x18]
push edx
call fcn.004a5515
add esp, 0xc
pop edi
mov ecx, dword [esp + 0x810]
pop esi
xor ecx, esp
call fcn.004a48d3
add esp, 0x810
ret
Function at 0x49c600
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1044
call fcn.004a5100
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.004a5130
add esp, 0xc
cmp byte [esp + 0x1068], 0
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x500
jne 0x49c676
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.00451c30
cmp eax, esi
jne 0x49c6b0
push esi
lea edx, [esp + 0x54]
push str.._s
push edx
mov edx, 0x800
call fcn.004a29f0
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 0x49c6e1
cmp dword [esp + 0x20], eax
je 0x49c6e1
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
call esi
mov byte [0x4e9b8b], 0
test eax, eax
je 0x49c792
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
je 0x49c792
cmp byte [esp + 0x1068], 0
jne 0x49c78e
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x49c742
mov eax, dword [0x516120]
mov edx, dword [esp + 0x34]
mov dword [eax*4 + 0x5160e0], ecx
mov dword [eax*4 + 0x5160a0], edx
inc eax
and eax, 0x8000000f
jns 0x49c73b
dec eax
or eax, 0xfffffff0
inc eax
mov dword [0x516120], eax
jmp 0x49c784
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
lea ebx, [ebx]
mov eax, dword [esi + 0x5160a0]
cmp eax, dword [esp + 0x34]
jne 0x49c778
mov ecx, dword [esi + 0x5160e0]
push 0
push ecx
call edi
cmp eax, 0x102
jne 0x49c778
mov edx, dword [esi + 0x5160e0]
mov dword [esp + 0x4c], edx
add esi, 4
cmp esi, 0x40
jl 0x49c750
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49c78e
mov dword [eax], ecx
mov al, bl
jmp 0x49c794
xor al, al
mov ecx, dword [esp + 0x1050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a48d3
add esp, 0x1044
ret 0x1c

Function at 0x49e4e0
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 0x49e519
push 0x40
push 0x2bc
call fcn.004611c0
push eax
push 0x2bd
call fcn.004611c0
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.0049d730
pop esi
ret
Function at 0x49fa30
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 [0x51ecbc], eax
mov dword [0x51ecc0], edx
mov dword [0x51ecc4], esi
mov cl, byte [edi]
test cl, cl
je 0x49fab0
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 [0x51ecbc], eax
mov dword [0x51ecc0], edx
mov dword [0x51ecc4], esi
mov cl, byte [edi]
test cl, cl
jne 0x49fa60
pop edi
pop esi
ret

Function at 0x49fac0
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.0049fa30
push 0xa
lea eax, [esp + 0x14]
push eax
call fcn.00420e40
mov eax, esi
call fcn.0049fa30
xor edi, edi
jmp 0x49fb00
movzx ebp, byte [esp + edi + 0x10]
mov esi, dword [0x51ecbc]
mov ecx, dword [0x51ecc4]
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 [0x51ecbc], eax
movzx eax, al
add eax, dword [0x51ecc0]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x51ecc0], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4d3b58]
or edx, 2
mov dword [0x51ecc4], 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.004a83d0
inc edi
add esp, 8
cmp edi, 0xa
jl 0x49fb00
mov esi, dword [esp + 0x28]
mov edi, dword [0x51ecbc]
mov ebp, esi
mov ecx, dword [0x51ecc4]
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 [0x51ecbc], eax
movzx eax, al
add eax, dword [0x51ecc0]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x51ecc0], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4d3b58]
or edx, 2
mov dword [0x51ecc4], 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.004a83d0
mov edi, dword [0x51ecbc]
mov ecx, dword [0x51ecc4]
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 [0x51ecbc], eax
movzx eax, al
add eax, dword [0x51ecc0]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x51ecc0], 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 [0x51ecc4], ecx
call fcn.004a83d0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a48d3
add esp, 0x10
ret 0xc
Function at 0x49fcb0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Write file on windows

Disassembly:
cmp word [0x4f60b8], 0
push ebp
mov ebp, dword [esp + 0x10]
je 0x49fd4c
push ebx
mov ebx, dword [esp + 0x10]
imul ebx, ebp
push edi
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x49fd4a
push esi
movsx eax, byte [edi]
mov esi, dword [0x51ecbc]
xor eax, esi
and eax, 0xff
mov ecx, dword [0x51ecc4]
shr esi, 8
xor esi, dword [eax*4 + 0x4d3b58]
mov edx, ecx
mov eax, esi
mov dword [0x51ecbc], eax
movzx eax, al
add eax, dword [0x51ecc0]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x51ecc0], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4d3b58]
or edx, 2
mov dword [0x51ecc4], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
xor byte [edi], cl
inc edi
sub ebx, 1
jne 0x49fcd5
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.004a6bc4
add esp, 0x10
pop ebp
ret 0x10
Function at 0x4a1d10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [esp + 0x40c]
push edi
mov edi, dword [esp + 0x414]
push edi
push 0x50
call fcn.004a83d0
push edi
push 0x4b
call fcn.004a83d0
push edi
push 3
call fcn.004a83d0
push edi
push 4
call fcn.004a83d0
movsx eax, byte [esi + 2]
push edi
push eax
call fcn.004a83d0
movsx ecx, byte [esi + 3]
push edi
push ecx
call fcn.004a83d0
movsx edx, byte [esi + 0x2c]
push edi
push edx
call fcn.004a83d0
movsx eax, byte [esi + 0x2d]
push edi
push eax
call fcn.004a83d0
movsx ecx, byte [esi + 6]
add esp, 0x40
push edi
push ecx
call fcn.004a83d0
movsx edx, byte [esi + 7]
push edi
push edx
call fcn.004a83d0
movsx eax, byte [esi + 8]
push edi
push eax
call fcn.004a83d0
movsx ecx, byte [esi + 9]
push edi
push ecx
call fcn.004a83d0
movsx edx, byte [esi + 0xa]
push edi
push edx
call fcn.004a83d0
movsx eax, byte [esi + 0xb]
push edi
push eax
call fcn.004a83d0
movsx ecx, byte [esi + 0xc]
push edi
push ecx
call fcn.004a83d0
movsx edx, byte [esi + 0xd]
push edi
push edx
call fcn.004a83d0
movsx eax, byte [esi + 0xe]
add esp, 0x40
push edi
push eax
call fcn.004a83d0
movsx ecx, byte [esi + 0xf]
push edi
push ecx
call fcn.004a83d0
movsx edx, byte [esi + 0x10]
push edi
push edx
call fcn.004a83d0
movsx eax, byte [esi + 0x11]
push edi
push eax
call fcn.004a83d0
movsx ecx, byte [esi + 0x12]
push edi
push ecx
call fcn.004a83d0
movsx edx, byte [esi + 0x13]
push edi
push edx
call fcn.004a83d0
movsx eax, byte [esi + 0x14]
push edi
push eax
call fcn.004a83d0
movsx ecx, byte [esi + 0x15]
push edi
push ecx
call fcn.004a83d0
movsx edx, byte [esi + 0x16]
add esp, 0x40
push edi
push edx
call fcn.004a83d0
movsx eax, byte [esi + 0x17]
push edi
push eax
call fcn.004a83d0
movsx ecx, byte [esi + 0x18]
push edi
push ecx
call fcn.004a83d0
mov edx, dword [esi + 0x18]
shr edx, 8
movsx eax, dl
push edi
push eax
call fcn.004a83d0
movsx ecx, byte [esi + 0x1c]
push edi
push ecx
call fcn.004a83d0
mov edx, dword [esi + 0x1c]
shr edx, 8
movsx eax, dl
push edi
push eax
call fcn.004a83d0
mov edx, dword [esi + 0x48]
add esp, 0x30
push 0x400
lea ecx, [esp + 0xc]
push ecx
push edx
call fcn.00452d70
mov eax, dword [esi + 0x18]
push edi
push eax
lea ecx, [esp + 0x10]
push 1
push ecx
call fcn.004a6bc4
add esp, 0x10
cmp eax, dword [esi + 0x18]
jne 0x4a1ed4
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4a1ed0
mov edx, dword [esi + 0x3c]
push edi
push eax
push 1
push edx
call fcn.004a6bc4
add esp, 0x10
cmp eax, dword [esi + 0x1c]
jne 0x4a1ed4
xor eax, eax
jmp 0x4a1ed9
mov eax, 0xa
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.004a48d3
add esp, 0x404
ret 8
Function at 0x4a2280
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
push esi
push 0x50
call fcn.004a83d0
push esi
push 0x4b
call fcn.004a83d0
push esi
push 5
call fcn.004a83d0
push esi
push 6
call fcn.004a83d0
push esi
push 0
call fcn.004a83d0
push esi
push 0
call fcn.004a83d0
push esi
push 0
call fcn.004a83d0
push esi
push 0
call fcn.004a83d0
mov ebx, dword [esp + 0x50]
add esp, 0x40
movsx edi, bl
push esi
push edi
call fcn.004a83d0
sar ebx, 8
movsx ebx, bl
push esi
push ebx
call fcn.004a83d0
push esi
push edi
call fcn.004a83d0
push esi
push ebx
call fcn.004a83d0
mov ebx, dword [esp + 0x34]
movsx eax, bl
push esi
push eax
call fcn.004a83d0
mov ecx, ebx
shr ecx, 8
movsx edx, cl
push esi
push edx
call fcn.004a83d0
mov eax, ebx
shr eax, 0x10
movsx ecx, al
push esi
push ecx
call fcn.004a83d0
shr ebx, 0x18
movsx edx, bl
push esi
push edx
call fcn.004a83d0
mov ebx, dword [esp + 0x58]
add esp, 0x40
movsx eax, bl
push esi
push eax
call fcn.004a83d0
mov ecx, ebx
shr ecx, 8
movsx edx, cl
push esi
push edx
call fcn.004a83d0
push esi
mov eax, ebx
shr eax, 0x10
movsx ecx, al
push ecx
call fcn.004a83d0
shr ebx, 0x18
movsx edx, bl
push esi
push edx
call fcn.004a83d0
mov ebx, dword [esp + 0x3c]
movsx eax, bl
push esi
push eax
call fcn.004a83d0
mov ecx, ebx
shr ecx, 8
movsx edx, cl
push esi
push edx
call fcn.004a83d0
add esp, 0x30
test ebx, ebx
je 0x4a23ac
mov eax, dword [esp + 0x20]
push esi
push ebx
push 1
push eax
call fcn.004a6bc4
add esp, 0x10
cmp eax, ebx
je 0x4a23ac
pop edi
pop esi
mov eax, 0xa
pop ebx
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x18
Function at 0x4a48d3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4cc3b0]
jne 0x4a48dd
repz ret
jmp fcn.004a9b0a

Function at 0x4a5e28
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x4a5e5a
call fcn.004a9115
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.004a90b6
add esp, 0x14
or eax, 0xffffffff
jmp 0x4a5edb
push esi
call fcn.004ac5f4
push 0x214
push 1
call fcn.004ad35a
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x4a5ebe
call fcn.004ac7da
push dword [eax + 0x6c]
push esi
call fcn.004ac67c
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
push esi
push 4
push esi
push 0x4a5db4
push dword [ebp + 0xc]
mov dword [esi + 0x54], edi
push ebx
mov dword [esi + 0x58], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov dword [esi + 4], edi
cmp edi, ebx
je 0x4a5eb5
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4a5ed8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
call fcn.004a4a6f
pop ecx
cmp dword [ebp - 4], ebx
je 0x4a5ed3
push dword [ebp - 4]
call fcn.004a913b
pop ecx
or eax, 0xffffffff
jmp 0x4a5eda
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4a6354
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], edi
je 0x4a6391
cmp dword [ebp + 0x14], edi
je 0x4a6391
cmp ecx, edi
jne 0x4a6398
call fcn.004a9115
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004a90b6
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4a63ac
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4a63cd
cmp ebx, 0xffffffff
je 0x4a63bc
push ebx
push edi
push ecx
call fcn.004a5130
add esp, 0xc
cmp esi, edi
je 0x4a6379
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4a6379
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test dword [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4a63ea
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4a63f1
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4a64e3
test dword [esi + 0xc], 0x10c
je 0x4a6446
mov eax, dword [esi + 4]
test eax, eax
je 0x4a6446
jl 0x4a6544
mov edi, ebx
cmp ebx, eax
jb 0x4a6417
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4a64eb
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004aec73
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4a64db
cmp ebx, dword [ebp - 0xc]
jb 0x4a64b3
cmp dword [ebp - 0xc], 0
je 0x4a6470
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x4a6465
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4a646c
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4a647b
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4a647b
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4a6517
push eax
push dword [ebp - 8]
push esi
call fcn.004aec46
pop ecx
push eax
call fcn.004aeb49
add esp, 0xc
test eax, eax
je 0x4a6556
cmp eax, 0xffffffff
je 0x4a6544
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4a64db
push esi
call fcn.004ae463
pop ecx
cmp eax, 0xffffffff
je 0x4a6548
cmp dword [ebp - 4], 0
je 0x4a6517
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4a63f9
mov eax, dword [ebp + 0x14]
jmp 0x4a6393
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a6502
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004a5130
add esp, 0xc
call fcn.004a9115
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4a6389
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a652d
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004a5130
add esp, 0xc
call fcn.004a9115
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4a6389
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4a6393
or dword [esi + 0xc], 0x10
jmp 0x4a6548