joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e1180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
mov ebp, dword [esp + 0x74]
push esi
push edi
mov edi, dword [esp + 0x78]
cmp ebp, 4
jb 0x4e11fc
nop
push edi
call fcn.004e5170
lea ecx, [edi + 2]
mov si, ax
push ecx
call fcn.004e5170
movzx ebx, ax
lea eax, [ebp - 4]
movzx ecx, si
cmp ebx, eax
ja 0x4e12dd
cmp ecx, 9
je 0x4e11d8
cmp ecx, 0x4453
je 0x4e1213
cmp ecx, 0x4c41
jne 0x4e11e9
push 0
push 4
push ebx
push edi
call fcn.004e48b0
mov esi, eax
test esi, esi
jne 0x4e1247
mov eax, 0xfffffffc
add edi, 4
sub eax, ebx
add edi, ebx
add ebp, eax
cmp ebp, 4
jae 0x4e11a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0052f708
add esp, 0x64
ret 8
cmp ebx, 5
jae 0x4e121f
mov esi, 0x4f
jmp 0x4e1239
cmp byte [edi + 8], 0
jbe 0x4e122c
mov esi, 0x4001
jmp 0x4e1239
push 0
push 5
push ebx
push edi
call fcn.004e48b0
mov esi, eax
test esi, esi
je 0x4e11e9
mov dword [esp + 0x14], str.NTFS_ACL
jmp 0x4e124f
mov dword [esp + 0x14], str.OS_2
xor eax, eax
mov dword [esp + 0x10], 0x5b232a
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], 0x48
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 0x557718
mov dword [esp + 0x28], 0x557718
mov dword [esp + 0x24], 0x557718
mov dword [esp + 0x20], 0x557718
mov dword [esp + 0x1c], 0x557718
mov dword [esp + 0x18], 0x5f1384
mov dword [esp + 0x50], 3
call fcn.004bed70
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0052f708
add esp, 0x64
ret 8
push ecx
push 0x5695f4
lea eax, [esp + 0x64]
push 0xa
push eax
call fcn.00404ce0
xor eax, eax
mov dword [esp + 0x2c], 0x557718
add esp, 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x20], 0x557718
mov dword [esp + 0x24], 0x557718
mov dword [esp + 0x28], 0x557718
mov dword [esp + 0x2c], 0x557718
mov dword [esp + 0x58], 0x48
mov dword [esp + 0x10], 0x5b232a
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x5f1384
mov dword [esp + 0x50], 3
call fcn.004bed70
mov ecx, dword [esp + 0x70]
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052f708
add esp, 0x64
ret 8
Function at 0x4e97b0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x10
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
push 0x5e0e10
call fcn.00482960
mov edx, dword [esp + 0x24]
mov ebx, 0x12345678
mov esi, 0x23456789
mov dword [0x5f23a0], ebx
mov ecx, 0x34567890
mov dword [0x5f23a4], esi
mov dword [0x5f23a8], ecx
mov al, byte [edx]
test al, al
je 0x4e984d
lea ebx, [ebx]
movsx eax, al
lea edx, [edx + 1]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x5e0e10]
movzx eax, bl
add eax, esi
mov dword [0x5f23a0], ebx
imul esi, eax, 0x8088405
inc esi
mov eax, esi
mov dword [0x5f23a4], esi
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5e0e10]
mov dword [0x5f23a8], ecx
mov al, byte [edx]
test al, al
jne 0x4e9800
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 8]
xor edi, edi
mov dword [esp + 0x14], eax
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor byte [esp + edi + 0xc], al
movzx eax, byte [esp + edi + 0xc]
inc edi
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x5e0e10]
movzx eax, bl
add eax, esi
imul esi, eax, 0x8088405
inc esi
mov eax, esi
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5e0e10]
cmp edi, 0xc
jl 0x4e9863
mov eax, dword [0x5e1268]
movzx edx, byte [0x5f12d7]
mov dword [0x5f23a4], esi
movzx esi, byte [esp + 0x17]
mov dword [0x5f23a8], ecx
mov dword [0x5f23a0], ebx
test byte [eax + 0x70], 2
jne 0x4e98e7
movzx edx, byte [0x5f12df]
cmp esi, edx
je 0x4e9902
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0052f708
add esp, 0x10
ret 0xc
cmp byte [esp + 0x28], 0
je 0x4e99b1
mov esi, dword [0x5f1280]
mov eax, esi
cdq
cmp edx, dword [0x5e123c]
jl 0x4e992a
mov edx, dword [0x5e1238]
jg 0x4e992c
cmp eax, edx
ja 0x4e992c
mov edx, esi
mov esi, dword [0x5f1278]
test edx, edx
je 0x4e99b1
jmp 0x4e9940
and ecx, 0xfffd
lea esi, [esi + 1]
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [esi - 1], al
movzx eax, byte [esi - 1]
mov ecx, dword [0x5f23a0]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x5e0e10]
movzx eax, cl
add eax, dword [0x5f23a4]
imul eax, eax, 0x8088405
mov dword [0x5f23a0], ecx
mov ecx, dword [0x5f23a8]
inc eax
mov dword [0x5f23a4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5e0e10]
mov dword [0x5f23a8], ecx
sub edx, 1
jne 0x4e9940
mov ecx, dword [esp + 0x18]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052f708
add esp, 0x10
ret 0xc
Function at 0x4e99d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x5f23a0]
mov eax, dword [esp + 4]
mov edx, dword [0x5f23a8]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x5e0e10]
movzx eax, cl
add eax, dword [0x5f23a4]
mov dword [0x5f23a0], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x5f23a4], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5e0e10]
mov dword [0x5f23a8], edx
ret 4

Function at 0x4e9c70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x4c]
push esi
mov esi, dword [esp + 0x54]
push edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x18], esi
call fcn.004bbbf0
xor edx, edx
mov ecx, dword [esp + edx + 0x18]
mov eax, ecx
shr eax, 0x18
mov byte [esp + edx + 0x2c], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + edx + 0x2d], al
mov eax, ecx
shr eax, 8
mov byte [esp + edx + 0x2e], al
mov byte [esp + edx + 0x2f], cl
add edx, 4
cmp edx, 0x14
jb 0x4e9ca7
test ebp, ebp
je 0x4e9cec
cmp byte [esi], 0
je 0x4e9cec
mov ecx, 0x18
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
jmp 0x4e9d14
lea edi, [ebx + 0x60]
mov ecx, 0x40
mov eax, edi
xor byte [eax], 0x6a
lea eax, [eax + 1]
sub ecx, 1
jne 0x4e9cf6
push ebx
call fcn.004bbd10
push 0x40
push edi
push ebx
call fcn.004bbd50
test ebp, ebp
je 0x4e9d2b
cmp byte [esi], 0
jne 0x4e9d2b
mov eax, dword [esp + 0x10]
mov ecx, 0x18
mov esi, ebx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x14
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.004bbd50
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004bbbf0
pop edi
pop esi
pop ebp
xor edx, edx
pop ebx
lea esp, [esp]
mov ecx, dword [esp + edx + 8]
mov eax, ecx
shr eax, 0x18
mov byte [esp + edx + 0x1c], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + edx + 0x1d], al
mov eax, ecx
shr eax, 8
mov byte [esp + edx + 0x1e], al
mov byte [esp + edx + 0x1f], cl
add edx, 4
cmp edx, 0x14
jb 0x4e9d50
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4e9d95
push eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0xc]
call fcn.00531230
add esp, 0xc
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0052f708
add esp, 0x34
ret 0x14
Function at 0x4e9db0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
lea ebx, [esi + 0x60]
cmp edi, 0x40
jbe 0x4e9de7
push esi
call fcn.004bbd10
push edi
push dword [esp + 0x18]
push esi
call fcn.004bbd50
push ebx
push esi
call fcn.004ea150
mov dword [esi + 0xa0], 0x14
jmp 0x4e9dff
push edi
push dword [esp + 0x18]
push ebx
call fcn.00531230
add esp, 0xc
mov dword [esi + 0xa0], edi
test edi, edi
je 0x4e9e23
mov edx, 0xffffffa0
mov eax, ebx
sub edx, esi
jmp 0x4e9e10
xor byte [eax], 0x36
lea eax, [eax + 1]
mov edi, dword [esi + 0xa0]
lea ecx, [edx + eax]
cmp ecx, edi
jb 0x4e9e10
mov eax, 0x40
sub eax, edi
push eax
lea eax, [esi + 0x60]
add eax, edi
push 0x36
push eax
call fcn.00531c60
add esp, 0xc
push esi
call fcn.004bbd10
push 0x40
push ebx
push esi
call fcn.004bbd50
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x4edaf0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x10c
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push edi
mov edi, dword [esp + 0x118]
push 0
push 0
push 0
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x55670c]
mov ecx, edi
call esi
mov eax, dword [edi]
push 0x40
mov esi, dword [eax + 0xc]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call dword [0x55670c]
mov ecx, edi
call esi
cmp eax, 0x40
jne 0x4edbef
cmp byte [esp + 8], 0x4d
jne 0x4edbef
cmp byte [esp + 9], 0x5a
jne 0x4edbef
mov eax, dword [edi]
push 0
push 0
push dword [esp + 0x4c]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x55670c]
mov ecx, edi
call esi
mov eax, dword [edi]
push 0x108
mov esi, dword [eax + 0xc]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call dword [0x55670c]
mov ecx, edi
call esi
cmp eax, 0x108
jne 0x4edbef
cmp byte [esp + 8], 0x50
jne 0x4edbef
cmp byte [esp + 9], 0x45
jne 0x4edbef
cmp byte [esp + 0xa], 0
jne 0x4edbef
cmp byte [esp + 0xb], 0
jne 0x4edbef
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x21]
cmp cl, 0xb
jne 0x4edbef
cmp al, 1
jne 0x4edbd3
cmp dword [esp + 0x7c], 4
jbe 0x4edbd3
mov eax, dword [esp + 0xa0]
jmp 0x4edbf1
cmp cl, 0xb
jne 0x4edbef
cmp al, 2
jne 0x4edbef
cmp dword [esp + 0x8c], 4
jbe 0x4edbef
mov eax, dword [esp + 0xb0]
jmp 0x4edbf1
xor eax, eax
mov ecx, dword [esp + 0x110]
pop edi
pop esi
xor ecx, esp
call fcn.0052f708
add esp, 0x10c
ret 4
Function at 0x4f0130
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x2004
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x2000], eax
cmp dword [ecx + 0x34], 2
mov eax, 5
push ebx
mov ebx, dword [esp + 0x200c]
push ebp
push esi
push edi
jne 0x4f0227
push 0x800
push 0x557718
lea eax, [esp + 0x18]
push eax
push str.Progid
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push SysReAllocString
call fcn.004cf620
cmp word [esp + 0x10], 0
je 0x4f01b9
xor esi, esi
nop
push dword [esi*4 + 0x58a5d8]
lea eax, [esp + 0x14]
push eax
call fcn.004c1160
test eax, eax
je 0x4f01b0
inc esi
cmp esi, 5
jb 0x4f0190
jmp 0x4f037e
mov eax, dword [esi*4 + 0x58a600]
jmp 0x4f0227
push 0x800
push 0x557718
lea eax, [esp + 0x18]
push eax
push 0x557718
push str.http_shellopencommand
push SysReAllocString
call fcn.004cf620
xor edi, edi
mov edi, edi
mov ebp, dword [edi*4 + 0x58a5ec]
mov esi, ebp
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4f01f0
lea eax, [esp + 0x10]
sub esi, ecx
push eax
sar esi, 1
call fcn.004a2d90
push esi
push ebp
push eax
call fcn.004c11b0
test eax, eax
je 0x4f0220
inc edi
cmp edi, 5
jb 0x4f01e0
jmp 0x4f037e
mov eax, dword [edi*4 + 0x58a600]
xor ecx, ecx
cmp eax, 4
ja case.0x4f0232.3
jmp dword [eax*4 + 0x4f03b0]
push 1
push 0x557718
push ebx
push str.iexplore.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, eax
jmp 0x4f0379
push ebx
push str._new_window__s
lea eax, [esp + 0x18]
push 0x800
push eax
call fcn.00404ce0
add esp, 0x10
lea eax, [esp + 0x10]
push 1
push 0x557718
push eax
push str.firefox.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, eax
jmp 0x4f0379
push ebx
push str.__new_window__s
lea eax, [esp + 0x18]
push 0x800
push eax
call fcn.00404ce0
add esp, 0x10
lea eax, [esp + 0x10]
push 1
push ebx
push eax
push str.chrome.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, eax
jmp 0x4f0379
push 0x800
push 0x557718
lea eax, [esp + 0x18]
push eax
push 0x557718
push str.http_shellopencommand
push SysReAllocString
call fcn.004cf620
cmp word [esp + 0x10], 0x22
jne 0x4f037e
lea eax, [esp + 0x12]
push 0x22
push eax
call fcn.00530cd5
mov esi, eax
add esp, 8
test esi, esi
je 0x4f037e
push 9
push str.opera.exe
lea eax, [esp + 0x18]
push eax
call fcn.004a2d90
push eax
call fcn.004c11b0
test eax, eax
jne 0x4f037e
push ebx
push str._newwindow__s
mov word [esi + 2], ax
lea eax, [esp + 0x1018]
push 0x800
push eax
call fcn.00404ce0
add esp, 0x10
lea eax, [esp + 0x1010]
push 1
push ebx
push eax
lea eax, [esp + 0x1c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, eax
jmp 0x4f0379
cmp eax, 5
je 0x4f037e
cmp eax, 3
je 0x4f037e
cmp ecx, 0x20
ja 0x4f0395
push 1
push 0x557718
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x2010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052f708
add esp, 0x2004
ret 4
Function at 0x4f0dc0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x4c
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x5c]
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
mov esi, dword [esp + 0x5c]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x70]
push 0
push ebx
mov dword [esp + 0x18], ebx
mov dword [ebp + 8], ebx
mov byte [ebp + 0x32], al
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x7f00
push 0
mov dword [esp + 0x20], 0x30
mov dword [esp + 0x24], 0x828
mov dword [esp + 0x28], 0x4f1080
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x3c], 6
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], str.RarHtmlClassName
mov dword [esp + 0x48], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov eax, dword [ebp + 0x28]
mov dword [ebp], esi
test eax, eax
je 0x4f0e82
push eax
call fcn.00537b6f
add esp, 4
test edi, edi
jne 0x4f0e8a
xor eax, eax
jmp 0x4f0e93
push edi
call fcn.005384bb
add esp, 4
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4f0ea7
push eax
call fcn.005384bb
add esp, 4
mov dword [ebp + 0x2c], eax
lea eax, [esp + 0x48]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x4c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp + 4]
test eax, eax
je 0x4f0edb
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x48]
sub edi, ebx
push dword [esp + 0x10]
mov esi, dword [ebp]
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esp + 0x4c]
push ebp
push esi
push 0
push eax
mov eax, dword [esp + 0x64]
sub eax, ecx
push eax
push edi
push ecx
push ebx
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp byte [ebp + 0x1c], 0
mov dword [ebp + 4], eax
jne 0x4f0f7a
cmp dword [ebp + 0x10], 0
jne 0x4f0f7a
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4f0f90
cmp dword [ebp + 0x2c], 0
jne 0x4f0f90
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x4f0f90
push eax
mov ecx, ebp
call fcn.004f0a60
mov esi, eax
test esi, esi
je 0x4f0f90
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00537b6f
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0052f708
add esp, 0x4c
ret 0x14
test eax, eax
je 0x4f0f90
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052f708
add esp, 0x4c
ret 0x14
Function at 0x4f1a20
Capabilities:
Get disk information
Query environment variable

Disassembly:
mov eax, 0x4408
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x4404], eax
mov eax, dword [esp + 0x4410]
lea ecx, [esp + 0x1004]
push edi
mov edi, dword [esp + 0x4410]
push 0x800
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4f1ca3
cmp eax, 0x800
jae 0x4f1ca3
push 0x800
lea eax, [esp + 0x100c]
mov ecx, 0x5c5810
push eax
push eax
call fcn.0045d540
lea eax, [esp + 0x1008]
push eax
call fcn.004a2d90
push 0x3a
push eax
call fcn.00530cd5
add esp, 8
test eax, eax
je 0x4f1ad8
cmp byte [0x5f4406], 0
jne 0x4f1ad8
push esi
push 0x65
call fcn.004b68d0
push 0x528
mov esi, eax
call fcn.004b68d0
push 0x31
push esi
push eax
push edi
call fcn.004fdf00
pop esi
cmp eax, 1
jne 0x4f1c89
mov byte [0x5f4406], al
push 0x800
lea eax, [esp + 0x100c]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004bd090
lea eax, [esp + 8]
push eax
call fcn.004a2e00
cmp word [esp + 8], 0
je 0x4f1ba6
lea eax, [esp + 8]
push eax
call fcn.00490c30
test al, al
jne 0x4f1ba6
push 0
lea eax, [esp + 0xc]
push eax
call fcn.004155f0
test al, al
jne 0x4f1ba6
lea eax, [esp + 8]
push eax
call fcn.004a2d90
cmp word [eax], 0
je 0x4f1c4f
push 0x14e
call fcn.004b68d0
push eax
lea eax, [esp + 0xc]
push eax
push str.__s__n_s
lea eax, [esp + 0x2014]
push 0xa00
push eax
call fcn.00404ce0
add esp, 0x14
push 0x34
push 0x65
call fcn.004b68d0
push eax
lea eax, [esp + 0x2010]
push eax
push edi
call fcn.004fdf00
cmp eax, 6
jne 0x4f1c89
push 0
push 0
lea eax, [esp + 0x10]
push eax
call fcn.00490510
lea eax, [esp + 8]
push eax
call fcn.00490c30
test al, al
je 0x4f1b17
push 0x800
lea eax, [esp + 0x340c]
push eax
lea eax, [esp + 0x1010]
push eax
call fcn.004a1e60
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x3424]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4f1ca3
test dword [esp + 4], 0x80000
je 0x4f1ca3
lea eax, [esp + 0x3408]
push eax
push 0x65e
call fcn.004b68d0
push eax
lea eax, [esp + 0x2010]
push 0xa00
push eax
call fcn.00404ce0
add esp, 0x10
push 0x30
push 0x65
call fcn.004b68d0
push eax
lea eax, [esp + 0x2010]
push eax
push edi
call fcn.004fdf00
xor al, al
pop edi
mov ecx, dword [esp + 0x4404]
xor ecx, esp
call fcn.0052f708
add esp, 0x4408
ret 8
lea eax, [esp + 8]
push eax
push 0x6c
call fcn.004b68d0
push eax
lea eax, [esp + 0x2010]
push 0xa00
push eax
call fcn.00404ce0
add esp, 0x10
push 0x30
push 0x65
call fcn.004b68d0
push eax
lea eax, [esp + 0x2010]
push eax
push edi
call fcn.004fdf00
xor al, al
pop edi
mov ecx, dword [esp + 0x4404]
xor ecx, esp
call fcn.0052f708
add esp, 0x4408
ret 8
mov ecx, dword [esp + 0x4408]
mov al, 1
pop edi
xor ecx, esp
call fcn.0052f708
add esp, 0x4408
ret 8
Function at 0x4f4490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c0
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x1bc], eax
mov ecx, dword [esp + 0x1c4]
push ebx
mov bh, byte [esp + 0x1cc]
mov bl, byte [esp + 0x1d0]
movzx eax, bh
mov dword [esp + 0x54], eax
mov eax, dword [0x5d2758]
mov dword [esp + 0xc], ecx
mov ecx, 0x5c7968
push 1
mov dword [0x5f43f4], 0
mov dword [0x5f43f8], 0
mov byte [0x5f43ed], bl
mov dword [esp + 0x48], str.GETARC
mov dword [esp + 0x54], 0x4f4720
mov dword [esp + 0x80], str.GETARCADV
mov dword [esp + 0x8c], 0x4f3400
mov dword [esp + 0xb8], str.GETARCOPT
mov dword [esp + 0xc4], 0x4f6450
mov dword [esp + 0xf0], str.GETARCFILES
mov dword [esp + 0xfc], 0x4f5e10
mov dword [esp + 0x128], str.GETARCBACKUP
mov dword [esp + 0x134], 0x4f3cf0
mov dword [esp + 0x160], str.GETARCTIME
mov dword [esp + 0x16c], 0x4f67f0
mov dword [esp + 0x198], str.GETARCCMT
mov dword [esp + 0x1a4], 0x4f3fc0
mov dword [esp + 8], 0x34
mov dword [esp + 0xc], 0x28a
mov dword [esp + 0x14], eax
call fcn.004da130
mov dword [esp + 0x14], eax
test bl, bl
je 0x4f45a7
push 0x3f0
jmp 0x4f45bd
movzx eax, byte [0x5b3504]
neg eax
sbb eax, eax
and eax, 0xfffffd08
add eax, 0x3de
push eax
call fcn.004b68d0
mov dword [esp + 0x18], eax
mov ecx, 0x5d27b8
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], 7
mov dword [esp + 0x24], eax
mov eax, dword [0x5d2758]
mov dword [esp + 0x40], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x158], eax
mov dword [esp + 0x190], eax
lea eax, [esp + 0x38]
push 7
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x28], 0
push eax
mov dword [esp + 0x44], 0x38
mov dword [esp + 0x48], 0x20
mov dword [esp + 0x7c], 0x38
mov dword [esp + 0x80], 0x20
mov dword [esp + 0xb4], 0x38
mov dword [esp + 0xb8], 0x20
mov dword [esp + 0xec], 0x38
mov dword [esp + 0xf0], 0x20
mov dword [esp + 0x124], 0x38
mov dword [esp + 0x128], 0x20
mov dword [esp + 0x15c], 0x38
mov dword [esp + 0x160], 0x20
mov dword [esp + 0x194], 0x38
mov dword [esp + 0x198], 0x20
call fcn.004b5cc0
test bh, bh
jne 0x4f46e2
lea eax, [esp + 4]
push eax
call dword [sym.imp.COMCTL32.dll_PropertySheetW]
test eax, eax
jle 0x4f46de
cmp word [0x5b232a], 0
jne 0x4f46e2
cmp byte [0x5b12f8], bh
jne 0x4f46e2
test bl, bl
jne 0x4f46e2
xor bl, bl
jmp 0x4f46e4
mov bl, 1
push 7
lea eax, [esp + 0x3c]
mov ecx, 0x5d27b8
push eax
call fcn.004b5c70
mov ecx, dword [esp + 0x1c0]
mov al, bl
pop ebx
xor ecx, esp
mov byte [0x5c540c], 0
call fcn.0052f708
add esp, 0x1c0
ret 0xc
Function at 0x4fc5c0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable

Disassembly:
mov eax, 0x1004
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x1000], eax
cmp word [0x5948a8], 0
push esi
mov esi, dword [esp + 0x100c]
push edi
mov edi, dword [esp + 0x1014]
push edi
je 0x4fc5fd
push 0x5948a8
jmp 0x4fc67d
push 0x557718
push esi
push str.TempFolder
push 0x5579a8
call fcn.004cf7c0
xor eax, eax
mov word [esp + 8], ax
lea eax, [esp + 8]
push 0x800
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [esi], 0
je 0x4fc64d
test eax, eax
je 0x4fc647
cmp eax, 0x800
jae 0x4fc647
push edi
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004bd090
cmp word [esi], 0
jne 0x4fc659
cmp byte [esp + 0x1018], 0
je 0x4fc665
jmp 0x4fc683
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4fc683
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4fc677
cmp word [esi], 0
jne 0x4fc683
push edi
push str._rartemp
push esi
call fcn.004bd090
push edi
push esi
call fcn.004a0eb0
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.0052f708
add esp, 0x1004
ret 0xc

Function at 0x4fca70
Capabilities:
Create directory

Disassembly:
mov eax, 0x2004
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push esi
mov esi, dword [esp + 0x2010]
push 0x7ff
push eax
lea eax, [esp + 0x100c]
push eax
call fcn.004bd090
cmp byte [esp + 0x2018], 0
je 0x4fcb0b
cmp byte [0x5c2f2c], 0
jne 0x4fcacb
cmp byte [0x5c2e7b], 0
mov edx, 0x61
je 0x4fcad0
mov edx, 0x62
lea ecx, [esp + 0x1004]
push edi
lea edi, [ecx + 2]
jmp 0x4fcae0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fcae0
sub ecx, edi
lea eax, [esp + 0x1008]
push edx
sar ecx, 1
push 0x56ad7c
push 2
lea eax, [eax + ecx*2]
push eax
call fcn.00404ce0
add esp, 0x10
pop edi
push 0
push 0x800
lea eax, [esp + 0xc]
push eax
call fcn.004fc5c0
push 0x800
lea eax, [esp + 8]
push eax
call fcn.004a0eb0
push 0x800
lea eax, [esp + 0x1008]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.004bd030
push 0x800
lea eax, [esp + 8]
push eax
call fcn.004912c0
test eax, eax
je 0x4fcb92
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4fcb92
push dword [esp + 0x2014]
lea eax, [esp + 8]
push eax
push esi
call fcn.004bd090
mov al, 1
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0052f708
add esp, 0x2004
ret 0x10
lea eax, [esp + 4]
push eax
push 0x1f7
call fcn.004b68d0
push eax
call fcn.00502bd0
add esp, 8
mov ecx, 0x5d281c
call fcn.00487dd0
mov ecx, dword [esp + 0x2004]
xor al, al
pop esi
xor ecx, esp
call fcn.0052f708
add esp, 0x2004
ret 0x10