joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e120
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1804
call fcn.004b1040
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x1800], eax
push esi
push 0x1000
push 0
lea eax, [esp + 0x80c]
push eax
push str.rarreg.key
push 0x4c79a8
call fcn.00460f00
mov esi, eax
test esi, esi
je 0x49e1b1
push edi
lea ecx, [esp + 8]
push ecx
push str.Rar_RK
call fcn.0048c630
mov edi, eax
test edi, edi
je 0x49e1a1
push edi
push esi
lea edx, [esp + 0x810]
push 1
push edx
call fcn.004b39f8
push edi
call fcn.004b3dae
add esp, 0x14
lea eax, [esp + 8]
push eax
call fcn.0049adc0
lea ecx, [esp + 8]
push ecx
call fcn.00435da0
push str.rarreg.key
push 0x4c79a8
call fcn.00460a60
pop edi
mov ecx, dword [esp + 0x1804]
pop esi
xor ecx, esp
call fcn.004b102c
add esp, 0x1804
ret

Function at 0x49e1d0
Capabilities:
Copy file
Move file

Disassembly:
mov eax, 0x182c
call fcn.004b1040
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x1828], eax
push 0
push str.AppDataCopied
push str.General
call fcn.00460ee0
test eax, eax
jne 0x49e388
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.00456820
lea esp, [esp]
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
test cx, cx
jne 0x49e230
lea edx, [esp + 0x102c]
push edx
call fcn.00457020
xor eax, eax
pop esi
jmp 0x49e260
movzx ecx, word [esp + eax + 0x1028]
mov word [esp + eax + 0x20], cx
add eax, 2
test cx, cx
jne 0x49e260
lea eax, [esp + 0x20]
push eax
call fcn.004561a0
lea eax, [esp + 0x20]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x49e286
mov ecx, dword [str.Themes]
mov edx, dword [0x4cef60]
mov dword [eax], ecx
mov ecx, dword [0x4cef64]
mov dword [eax + 4], edx
mov dx, word [0x4cef68]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0x824]
push eax
call fcn.00435ac0
test al, al
je 0x49e377
lea ecx, [esp + 0x20]
push ecx
call fcn.00435ac0
test al, al
jne 0x49e377
lea eax, [esp + 0x824]
lea edx, [eax + 2]
jmp 0x49e2f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49e2f0
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 0x49e310
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.00460e00
mov ecx, dword [esp + 0x1828]
xor ecx, esp
call fcn.004b102c
add esp, 0x182c
ret
Function at 0x49e3a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x428
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x424], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], 0x41400
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.00460f00
lea edx, [esp + 0x24]
push edx
call fcn.00456fa0
lea eax, [esp + 0x24]
push eax
call fcn.00456ce0
lea eax, [esp + 0x24]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x49e3f8
mov ecx, dword [str.version.dat]
mov edx, dword [0x4cef8c]
mov dword [eax], ecx
mov ecx, dword [0x4cef90]
push esi
mov dword [eax + 4], edx
lea edx, [esp + 0x28]
push 0x4c9388
push edx
mov dword [eax + 8], ecx
mov dword [esp + 0x18], 0
call fcn.004b57d4
mov esi, eax
add esp, 8
test esi, esi
je 0x49e453
push esi
push 0xc
lea eax, [esp + 0x18]
push 1
push eax
call fcn.004b3d1a
push esi
call fcn.004b3dae
add esp, 0x14
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
je 0x49e505
mov ecx, dword [esp + 0x10]
push 0xc
cmp ecx, eax
je 0x49e4d1
lea ecx, [esp + 0x20]
push ecx
push str.VerInfo
push str.General
call fcn.00460e60
lea edx, [esp + 0x28]
push 0x4ca078
push edx
call fcn.004b57d4
mov esi, eax
add esp, 8
test esi, esi
je 0x49e4b1
push esi
push 0xc
lea eax, [esp + 0x24]
push 1
push eax
call fcn.004b39f8
push esi
call fcn.004b3dae
add esp, 0x14
mov dword [0x51c028], 0
pop esi
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.004b102c
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.00460e60
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x49e54f
cmp dword [esp + 0x10], eax
je 0x49e54f
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x28]
push 0x4ca078
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.004b57d4
mov esi, eax
add esp, 8
test esi, esi
je 0x49e54f
push esi
push 0xc
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.004b39f8
push esi
call fcn.004b3dae
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.004b1ad0
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.004b2110
push esi
push 0xe10
push edx
push eax
call fcn.004b2110
push esi
push 0x18
push edx
push eax
call fcn.004b2110
mov dword [0x51c028], eax
test eax, eax
jge 0x49e5b2
mov dword [0x51c028], 0x168
mov ecx, dword [esp + 0x428]
pop esi
xor ecx, esp
call fcn.004b102c
add esp, 0x428
ret
Function at 0x49f0e0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x810
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x80c], eax
mov eax, dword [0x52b4a4]
push esi
xor esi, esi
cmp dword [eax + 0x20], esi
je 0x49f2c4
push esi
push 1
push 0x52aca2
mov ecx, 0x5229e0
call fcn.00416a50
cmp eax, 1
jne 0x49f2c4
cmp dword [0x5270f4], 3
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 4], esi
push eax
jne 0x49f14c
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
mov ecx, 0x5229e0
call fcn.004135e0
jmp 0x49f160
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x5229e0
call fcn.00413500
cmp dword [esp + 4], esi
je 0x49f2c4
mov ecx, dword [0x52b4a4]
push 0x400
lea edx, [esp + 0x14]
push edx
call fcn.00471480
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49f1d1
push esi
push esi
push 0x7fffffff
push 0x7fffffff
lea ecx, [esp + 0x20]
push ecx
push esi
call fcn.0040b2d0
cmp al, 0x43
je 0x49f1ae
cmp al, 0x4e
jne 0x49f1d1
mov edx, dword [esp + 8]
push edx
call fcn.004b1895
add esp, 4
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.004b102c
add esp, 0x810
ret
push edi
push esi
push 0x4ca078
lea eax, [esp + 0x1c]
push eax
call fcn.00436260
mov edi, eax
cmp edi, esi
jne 0x49f226
lea ecx, [esp + 0x14]
push ecx
push 0x1f6
call fcn.004671c0
push eax
push 0x52aca2
call fcn.0049ac10
mov edx, dword [esp + 0x18]
push edx
call fcn.004b1895
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.004b102c
add esp, 0x810
ret
mov eax, dword [0x5270f4]
cmp eax, 3
jne 0x49f27b
push edi
push 0xff
call fcn.004b4ac3
push edi
push 0xfe
call fcn.004b4ac3
add esp, 0x10
cmp dword [esp + 8], esi
jbe 0x49f2a6
nop
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + esi*2]
push edi
push ecx
call fcn.004b4ac3
mov edx, dword [esp + 0x18]
movzx eax, byte [edx + esi*2 + 1]
push edi
push eax
call fcn.004b4ac3
inc esi
add esp, 0x10
cmp esi, dword [esp + 8]
jb 0x49f250
jmp 0x49f2a6
cmp eax, 2
jne 0x49f291
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.004b39f8
add esp, 0x10
push edi
call fcn.004b3dae
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004b1895
mov edx, dword [esp + 0x18]
push edx
call fcn.004b1895
add esp, 0xc
pop edi
mov ecx, dword [esp + 0x810]
pop esi
xor ecx, esp
call fcn.004b102c
add esp, 0x810
ret
Function at 0x4a36a0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1044
call fcn.004b1040
mov eax, dword [0x4da8f0]
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.004b14b0
add esp, 0xc
cmp byte [esp + 0x1068], 0
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x500
jne 0x4a3716
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.00456820
cmp eax, esi
jne 0x4a3750
push esi
lea edx, [esp + 0x54]
push str.._s
push edx
mov edx, 0x800
call fcn.00483770
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 [0x51b78b], bl
call esi
test eax, eax
jne 0x4a3781
cmp dword [esp + 0x20], eax
je 0x4a3781
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
call esi
mov byte [0x51b78b], 0
test eax, eax
je 0x4a3832
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
je 0x4a3832
cmp byte [esp + 0x1068], 0
jne 0x4a382e
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x4a37e2
mov eax, dword [0x544318]
mov edx, dword [esp + 0x34]
mov dword [eax*4 + 0x5442d8], ecx
mov dword [eax*4 + 0x544298], edx
inc eax
and eax, 0x8000000f
jns 0x4a37db
dec eax
or eax, 0xfffffff0
inc eax
mov dword [0x544318], eax
jmp 0x4a3824
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
lea ebx, [ebx]
mov eax, dword [esi + 0x544298]
cmp eax, dword [esp + 0x34]
jne 0x4a3818
mov ecx, dword [esi + 0x5442d8]
push 0
push ecx
call edi
cmp eax, 0x102
jne 0x4a3818
mov edx, dword [esi + 0x5442d8]
mov dword [esp + 0x4c], edx
add esi, 4
cmp esi, 0x40
jl 0x4a37f0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a382e
mov dword [eax], ecx
mov al, bl
jmp 0x4a3834
xor al, al
mov ecx, dword [esp + 0x1050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b102c
add esp, 0x1044
ret 0x1c
Function at 0x4a3850
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4c636b
mov eax, dword fs:[0]
push eax
mov eax, 0x40ac
call fcn.004b1040
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x40a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4da8f0]
xor eax, esp
push eax
lea eax, [esp + 0x40c0]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x40d4]
mov ebp, dword [esp + 0x40d0]
push eax
call fcn.00456820
mov ebx, eax
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a38b0
sub eax, edx
mov ecx, ebx
sar eax, 1
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4a38c4
sub ecx, esi
sar ecx, 1
lea eax, [ecx + eax + 1]
cmp eax, 0x800
jae 0x4a3a72
lea edx, [esp + 0x10bc]
mov eax, edi
sub edx, edi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a38f0
lea ecx, [esp + 0x10bc]
push ecx
call fcn.004561a0
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a3910
lea edi, [esp + 0x10bc]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4a3930
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4a3930
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.004710c0
mov dword [esp + 0x40c8], 0
push 0x1000
push 0x4c79a8
lea edx, [esp + 0x20c4]
push edx
push str.ViewerIgnoreModifications
push str.Viewer
call fcn.00460eb0
cmp word [esp + 0x20bc], 0
je 0x4a39a2
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x20c8]
push ecx
call fcn.004714c0
push 0x400
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0x1c]
call fcn.00471480
test al, al
je 0x4a3a5e
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x4a39d0
push 0x400
lea eax, [esp + 0x8c0]
push eax
lea ecx, [esp + 0xc4]
push ecx
call edi
lea edx, [esp + 0x8be]
push 0x4cf310
push edx
call fcn.004b4526
mov esi, eax
add esp, 8
test esi, esi
je 0x4a3a9e
xor eax, eax
mov word [esi], ax
add esi, 4
cmp word [esi], ax
jne 0x4a3a18
mov esi, 0x4c7f44
push 4
push ebp
lea ecx, [esp + 0x8c4]
push ecx
call fcn.0044c4e0
test al, al
je 0x4a3a40
push 4
lea edx, [esp + 0x10c0]
push edx
push esi
call fcn.0044c4e0
test al, al
jne 0x4a3aa7
push 0x400
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x1c]
call fcn.00471480
test al, al
jne 0x4a39d0
mov dword [esp + 0x40c8], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401bb0
xor al, al
mov ecx, dword [esp + 0x40c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40a8]
xor ecx, esp
call fcn.004b102c
add esp, 0x40b8
ret 8
lea esi, [esp + 0x8bc]
jmp 0x4a3a2c
mov dword [esp + 0x40c8], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401bb0
mov al, 1
jmp 0x4a3a74
Function at 0x4a58f0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4c649e
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4da8f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
test byte [0x54856c], 1
jne 0x4a5949
or dword [0x54856c], 1
mov dword [esp + 0x14], 0
mov ecx, 0x546448
call fcn.004a3340
push 0x4c6ca0
call fcn.004b2e7f
add esp, 4
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esp + 0x1c]
push 1
push esi
mov ecx, 0x546448
call fcn.004a3f10
mov bl, byte [esp + 0x20]
push 0
test bl, bl
push 0x546448
sete al
movzx ecx, al
push ecx
push 0
push 0
push esi
push 0
call fcn.004a36a0
test al, al
jne 0x4a59b9
mov eax, dword [0x546450]
cmp eax, 0xffffffff
je 0x4a5999
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x546450], 0xffffffff
mov ecx, 0x54846a
call fcn.0046a880
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 8
test bl, bl
je 0x4a59d6
push 0x546448
push 0x10000
push 0x4a4390
call fcn.004b22bb
add esp, 0xc
jmp 0x4a59fb
mov eax, dword [0x546450]
cmp eax, 0xffffffff
je 0x4a59f1
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x546450], 0xffffffff
mov ecx, 0x54846a
call fcn.0046a880
mov al, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 8

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

Disassembly:
push esi
push 0x51b790
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a5a59
push 0x40
push 0x2bc
call fcn.004671c0
push eax
push 0x2bd
call fcn.004671c0
push eax
mov eax, dword [0x51c8dc]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
ret
push 0
push 0x51b790
mov ecx, esi
call fcn.004a4bd0
pop esi
ret
Function at 0x4a5a70
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4c64ce
mov eax, dword fs:[0]
push eax
mov eax, 0x1804
call fcn.004b1040
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x1800], eax
push esi
mov eax, dword [0x4da8f0]
xor eax, esp
push eax
lea eax, [esp + 0x180c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x181c]
test esi, esi
je 0x4a5af5
push 0x4cf2fc
push esi
call fcn.00456c20
test al, al
jne 0x4a5acf
call fcn.004a34b0
test al, al
je 0x4a5af5
push 0x30
push 0x65
call fcn.004671c0
push eax
push 0x596
call fcn.004671c0
push eax
mov eax, dword [0x51c8dc]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4a5c52
cmp byte [0x51b789], 0
jne 0x4a5b31
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call fcn.004a36a0
test al, al
jne 0x4a5c52
push esi
push 0x201
call fcn.004671c0
push eax
call fcn.0049a620
add esp, 8
jmp 0x4a5c52
push 1
lea ecx, [esp + 0x80c]
push ecx
push str.Rar_EX
call fcn.0048c720
test al, al
je 0x4a5c52
push 0x400
lea edx, [esp + 0x100c]
push edx
call fcn.0048cf70
lea eax, [esp + 0x808]
push eax
call fcn.0048cf50
push 1
call fcn.00488820
push 0x400
push 0x52aca2
mov ecx, 0x5229e0
call fcn.00413320
mov ecx, dword [0x522bec]
mov dword [0x528c34], ecx
mov ecx, dword [0x52b4a4]
push 0x4c77ac
call fcn.00471160
push 0
push 0
mov ecx, 0x5229e0
mov dword [0x528820], 4
call fcn.00417e10
cmp byte [0x51b788], 0
jne 0x4a5c52
lea edx, [esp + 8]
push edx
push esi
call fcn.00456a00
lea eax, [esp + 8]
push eax
mov ecx, eax
push ecx
call fcn.004564e0
test byte [0x54a694], 1
jne 0x4a5c1d
or dword [0x54a694], 1
mov dword [esp + 0x1814], 0
mov ecx, 0x548570
call fcn.004a3340
push 0x4c6cf0
call fcn.004b2e7f
add esp, 4
mov dword [esp + 0x1814], 0xffffffff
push 0
lea edx, [esp + 0xc]
push edx
mov ecx, 0x548570
call fcn.004a3f10
lea eax, [esp + 0x1008]
push eax
call fcn.0048cf50
push 0x548570
push 0x10000
push 0x4a4390
call fcn.004b22bb
add esp, 0xc
mov ecx, dword [esp + 0x180c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1800]
xor ecx, esp
call fcn.004b102c
add esp, 0x1810
ret 4
Function at 0x4a7050
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, 0x12345678
mov edx, 0x23456789
mov esi, 0x34567890
mov dword [0x54b6b4], eax
mov dword [0x54b6b8], edx
mov dword [0x54b6bc], esi
mov cl, byte [edi]
test cl, cl
je 0x4a70d0
lea esp, [esp]
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4e28c0]
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 + 0x4e28c0]
mov dword [0x54b6b4], eax
mov dword [0x54b6b8], edx
mov dword [0x54b6bc], esi
mov cl, byte [edi]
test cl, cl
jne 0x4a7080
pop edi
pop esi
ret 4
Function at 0x4a7620
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
cmp byte [0x527dfc], 0
push ebp
mov ebp, dword [esp + 0x10]
je 0x4a76bb
push ebx
mov ebx, dword [esp + 0x10]
imul ebx, ebp
push edi
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x4a76b9
push esi
movsx eax, byte [edi]
mov esi, dword [0x54b6b4]
xor eax, esi
and eax, 0xff
mov ecx, dword [0x54b6bc]
shr esi, 8
xor esi, dword [eax*4 + 0x4e28c0]
mov edx, ecx
mov eax, esi
mov dword [0x54b6b4], eax
movzx eax, al
add eax, dword [0x54b6b8]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x54b6b8], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4e28c0]
or edx, 2
mov dword [0x54b6bc], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
xor byte [edi], cl
inc edi
sub ebx, 1
jne 0x4a7644
pop esi
pop edi
pop ebx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0
push ebp
push edx
push eax
call fcn.004387e0
pop ebp
ret 0xc
Function at 0x4ab150
Capabilities:
Read file on windows

Disassembly:
push ecx
push eax
push 4
lea ecx, [esp + 8]
push 1
push ecx
call fcn.004b3d1a
add esp, 0x10
cmp eax, 4
je 0x4ab16e
xor eax, eax
pop ecx
ret 4
mov ecx, dword [esp + 8]
lea edx, [esp]
xor eax, eax
sub ecx, edx
lea esp, [esp]
lea edx, [ecx + eax]
mov dl, byte [esp + edx]
cmp dl, byte [esp + eax]
jne 0x4ab191
inc eax
cmp eax, 4
jl 0x4ab180
xor ecx, ecx
cmp eax, 4
sete cl
mov eax, ecx
pop ecx
ret 4
Function at 0x4afac0
Capabilities:
Read file on windows

Disassembly:
cmp byte [0x51c858], 0
je 0x4aface
xor eax, eax
ret 8
mov eax, dword [esp + 8]
mov ecx, dword [0x54b704]
push esi
push edi
mov edi, dword [esp + 0xc]
push eax
push edi
push ecx
call fcn.004bcfeb
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x4afb9e
test esi, esi
je 0x4afb9e
mov edx, dword [0x54bb08]
push ebx
push esi
push edi
push edx
call fcn.00422310
mov ecx, dword [0x54b6f0]
mov dword [0x54bb08], eax
mov eax, dword [0x54b6f4]
xor edi, edi
mov ebx, ecx
add ecx, esi
mov edx, eax
adc eax, edi
cmp eax, edx
mov dword [0x54b6f0], ecx
mov dword [0x54b6f4], eax
jg 0x4afb41
jl 0x4afb3a
cmp ecx, ebx
jae 0x4afb41
push 6
call fcn.004a78d0
mov eax, dword [0x54b6c8]
mov ecx, dword [0x54b6cc]
mov edx, dword [0x54bb18]
mov ebx, dword [0x54bb1c]
add eax, esi
adc ecx, edi
add edx, esi
adc ebx, edi
mov edi, dword [0x54b6d4]
push edi
mov edi, dword [0x54b6d0]
push edi
push ecx
push eax
mov dword [0x54b6c8], eax
mov eax, dword [0x54bb14]
push eax
mov dword [0x54b6cc], ecx
mov ecx, dword [0x54bb10]
push ecx
push ebx
push edx
mov dword [0x54bb18], edx
mov dword [0x54bb1c], ebx
call fcn.00409e00
mov eax, esi
pop ebx
pop edi
pop esi
ret 8
Function at 0x4b0730
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b0759
and eax, 0xffffffdf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4b0759
mov eax, 1
pop esi
ret 4
push esi
push 0x4bf
call fcn.004671c0
push eax
mov eax, dword [0x508354]
push eax
call fcn.0049ac10
add esp, 0xc
xor eax, eax
pop esi
ret 4

Function at 0x4b102c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4da8f0]
jne 0x4b1036
repz ret
jmp fcn.004b80bc

Function at 0x4c0735
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004b79f7
and dword [ebp - 4], 0
cmp dword [0x54c8d8], 0
mov ebx, eax
jne 0x4c07e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4c0897
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4c0897
push eax
call fcn.004b7985
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x54c8d8], eax
call esi
push eax
call fcn.004b7985
mov dword [esp], 0x4d0908
push edi
mov dword [0x54c8dc], eax
call esi
push eax
call fcn.004b7985
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x54c8e0], eax
call esi
push eax
call fcn.004b7985
pop ecx
mov dword [0x54c8e8], eax
test eax, eax
je 0x4c07e6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004b7985
pop ecx
mov dword [0x54c8e4], eax
mov eax, dword [0x54c8e4]
cmp eax, ebx
je 0x4c083e
cmp dword [0x54c8e8], ebx
je 0x4c083e
push eax
call fcn.004b7a00
push dword [0x54c8e8]
mov esi, eax
call fcn.004b7a00
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4c083e
test edi, edi
je 0x4c083e
call esi
test eax, eax
je 0x4c0835
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4c0835
test byte [ebp - 0xc], 1
jne 0x4c083e
or dword [ebp + 0x10], 0x200000
jmp 0x4c0877
mov eax, dword [0x54c8dc]
cmp eax, ebx
je 0x4c0877
push eax
call fcn.004b7a00
pop ecx
test eax, eax
je 0x4c0877
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4c0877
mov eax, dword [0x54c8e0]
cmp eax, ebx
je 0x4c0877
push eax
call fcn.004b7a00
pop ecx
test eax, eax
je 0x4c0877
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x54c8d8]
call fcn.004b7a00
pop ecx
test eax, eax
je 0x4c0897
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4c0899
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4011b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401204
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401200
lea ebx, [ebx]
cmp esi, eax
jae 0x401204
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011f0
cmp esi, eax
jb 0x40120a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret