joyce8/EMBER2024-capa huggingface dataset:
Function at 0x591278
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x3c
mov eax, 0x61e876
call fcn.005b2237
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
xor ebx, ebx
push str.bad_resource
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.004337e0
lea eax, [ebp - 0x44]
mov dword [ebp - 4], ebx
push eax
push dword [0x6ba288]
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x591329
movzx eax, word [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x591329
push edi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x591327
push edi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x591327
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], 0xf
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
call fcn.004336e0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004cdc30
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00433e90
jmp 0x591329
xor ebx, ebx
mov dword [esi + 0x14], 0xf
lea eax, [ebp - 0x28]
mov dword [esi + 0x10], ebx
mov ecx, esi
push eax
mov byte [esi], bl
call fcn.00432c50
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00433e90
mov eax, esi
call fcn.005b21e1
ret

Function at 0x591430
Capabilities:
Query environment variable

Disassembly:
push 0xc
mov eax, 0x61ea3a
call fcn.005b2203
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
push 0x209
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.005962a2
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
sub eax, edi
sar eax, 1
cmp dword [esi + 0x14], 8
jb 0x59146e
mov ecx, dword [esi]
jmp 0x591470
mov ecx, esi
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x5914b1
cmp eax, 0x208
jbe 0x5914d7
inc eax
lea ecx, [ebp - 0x18]
push eax
call fcn.005962a2
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
sub eax, edi
sar eax, 1
cmp dword [esi + 0x14], 8
jb 0x5914a2
mov ecx, dword [esi]
jmp 0x5914a4
mov ecx, esi
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x5914d7
cmp dword [esi + 0x14], 8
jb 0x5914b9
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Could_not_GetShortPathName__ws__error__u_
push str.EFRUtils::Long2ShortPath
push 1
call fcn.00587c13
add esp, 0x14
jmp 0x5914f7
cmp dword [esi + 0x14], 8
jb 0x5914df
mov esi, dword [esi]
push esi
push edi
call fcn.005e4d3c
pop ecx
pop ecx
test eax, eax
je 0x5914f7
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00434220
mov bl, 1
lea ecx, [ebp - 0x18]
call fcn.0044b070
mov al, bl
call fcn.005b21cc
ret
Function at 0x5920d7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 8
jb 0x5920f7
mov eax, dword [esi]
jmp 0x5920f9
mov eax, esi
push edi
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push eax
mov edi, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xc]
push edi
call fcn.0058ad3d
cmp dword [esi + 0x14], 8
jb 0x59211a
mov esi, dword [esi]
push 0x20006
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.004b19b0
pop edi
test eax, eax
jne 0x592159
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x592139
mov ecx, dword [ecx]
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push ebx
push ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb al, al
lea ebx, [eax + 1]
lea ecx, [ebp - 0xc]
call fcn.004b1a60
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x59238f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
cmp dword [esi + 0x14], 8
jb 0x5923af
mov eax, dword [esi]
jmp 0x5923b1
mov eax, esi
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x14]
call fcn.0058ad3d
cmp dword [esi + 0x14], 8
jb 0x5923d0
mov esi, dword [esi]
push 0x20006
push esi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x14]
call fcn.004b19b0
test eax, eax
jne 0x592418
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x5923f2
mov ecx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push 8
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0xb
push ebx
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb al, al
lea ebx, [eax + 1]
lea ecx, [ebp - 0x14]
call fcn.004b1a60
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x592606
Capabilities:
Query environment variable

Disassembly:
push 0xc
mov eax, 0x61ea3a
call fcn.005b2203
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
push 0x209
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.005962a2
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
sub eax, edi
sar eax, 1
cmp dword [esi + 0x14], 8
jb 0x592644
mov ecx, dword [esi]
jmp 0x592646
mov ecx, esi
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x592687
cmp eax, 0x208
jbe 0x5926ad
inc eax
lea ecx, [ebp - 0x18]
push eax
call fcn.005962a2
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
sub eax, edi
sar eax, 1
cmp dword [esi + 0x14], 8
jb 0x592678
mov ecx, dword [esi]
jmp 0x59267a
mov ecx, esi
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x5926ad
cmp dword [esi + 0x14], 8
jb 0x59268f
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Could_not_GetLongPathName__ws__error__u_
push str.EFRUtils::Short2LongPath
push 1
call fcn.00587c13
add esp, 0x14
jmp 0x5926cd
cmp dword [esi + 0x14], 8
jb 0x5926b5
mov esi, dword [esi]
push esi
push edi
call fcn.005e4d3c
pop ecx
pop ecx
test eax, eax
je 0x5926cd
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00434220
mov bl, 1
lea ecx, [ebp - 0x18]
call fcn.0044b070
mov al, bl
call fcn.005b21cc
ret

Function at 0x593669
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x61ec25
call fcn.005b22a5
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], ebx
cmp dword [ebp + 0xc], ebx
je 0x593741
test edi, edi
je 0x593741
push edi
mov dword [ebp - 4], ebx
call fcn.005b1ceb
pop ecx
mov ecx, eax
mov dword [ebp - 0x38], ecx
test edi, edi
je 0x5936c5
mov eax, dword [ebp + 0xc]
mov edx, ecx
sub eax, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp + 0xc], eax
mov al, byte [eax + edx]
xor al, 3
mov byte [edx], al
inc edx
sub dword [ebp - 0x30], 1
mov eax, dword [ebp + 0xc]
jne 0x5936b4
push edi
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004336e0
push dword [ebp - 0x38]
call fcn.005b1ce6
pop ecx
lea eax, [ebp - 0x2c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov ecx, esi
push eax
mov byte [esi], bl
call fcn.00432c50
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00433e90
jmp 0x59376d
push str.Received_empty_buffer.
push str.EFRUtils::XorEncryptDecrypt
push 1
call fcn.00587c13
mov dword [esi + 0x14], 0xf
add esp, 0xc
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x593769
mov eax, dword [esi]
jmp 0x59376b
mov eax, esi
mov byte [eax], bl
mov eax, esi
call fcn.005b21f2
ret
Function at 0x594843
Capabilities:
Encode data using base64

Disassembly:
push 0x10
mov eax, 0x61edf5
call fcn.005b2203
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x59486b
mov eax, dword [esi]
jmp 0x59486d
mov eax, esi
mov byte [eax], bl
mov eax, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x5949da
push 3
pop edi
mov edx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [edx]
mov byte [ebp + ecx - 0x14], al
inc ecx
mov ah, byte [ebp - 0x12]
inc edx
mov dword [ebp + 0xc], edx
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov byte [ebp - 0xf], ah
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], dh
cmp ecx, edi
jne 0x59491d
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
cmp dword [0x6ba0b4], 0x10
mov eax, 0x6ba0a0
movzx ecx, byte [ebp + edi - 0x18]
cmovae eax, dword [0x6ba0a0]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
push 1
call fcn.00433d50
inc edi
cmp edi, 4
jl 0x5948e6
mov dl, byte [ebp - 0xd]
mov ecx, ebx
mov dh, byte [ebp - 0xe]
push 3
pop edi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x594889
mov dword [ebp + 0x10], ecx
test ecx, ecx
je 0x5949da
mov eax, ecx
cmp ecx, edi
jge 0x594956
cmp eax, edi
jae 0x594951
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, edi
jl 0x59493b
mov ah, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x594959
call fcn.005b1e8c
mov ah, byte [ebp - 0xf]
mov al, dh
and dh, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, ah
mov byte [ebp - 0x17], dh
shr al, 6
and ah, 0x3f
add dl, al
mov byte [ebp - 0x15], ah
lea eax, [ecx + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x5949c4
mov edi, eax
cmp dword [0x6ba0b4], 0x10
mov eax, 0x6ba0a0
movzx ecx, byte [ebp + ebx - 0x18]
cmovae eax, dword [0x6ba0a0]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
push 1
call fcn.00433d50
inc ebx
cmp ebx, edi
jl 0x594993
mov ecx, dword [ebp + 0x10]
push 3
pop edi
cmp ecx, edi
jge 0x5949da
sub edi, ecx
push 0x3d
push 1
mov ecx, esi
call fcn.00433d50
sub edi, 1
jne 0x5949ca
mov eax, esi
call fcn.005b21cc
ret
Function at 0x59571b
Capabilities:
Reference sql statements

Disassembly:
push 0x58
mov eax, 0x61eeba
call fcn.005b2237
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x64], ebx
mov dword [ebx + 0x14], 7
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], edx
jb 0x595746
mov eax, dword [ebx]
jmp 0x595748
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
mov edi, dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 4], edx
mov dword [ebp - 0x5c], 1
lea eax, [edi + 0x10]
push dword [eax]
mov dword [ebp - 0x60], eax
call fcn.00425300
cmp dword [edi + 0x14], 8
jb 0x595773
mov esi, dword [edi]
jmp 0x595775
mov esi, edi
cmp dword [edi + 0x14], 8
jb 0x59577d
mov edi, dword [edi]
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
lea edi, [edi + eax*2]
cmp esi, edi
je 0x5958f7
push 0xa
pop edx
movzx ecx, word [esi]
cmp cx, dx
jb 0x59587b
jbe 0x5957a7
cmp ecx, 0x1f
jbe 0x59587b
cmp ecx, 0x7f
je 0x59587b
mov eax, ecx
sub eax, edx
je 0x595868
sub eax, 0x18
je 0x595855
sub eax, 4
je 0x595842
sub eax, 9
je 0x59582f
sub eax, 0xd
je 0x59581c
dec eax
sub eax, 1
je 0x595809
sub eax, 0x1e
je 0x5957ec
push ecx
push 1
mov ecx, ebx
call fcn.00432830
jmp 0x5958e9
push 0x667d60
call fcn.005e4cfb
pop ecx
push eax
push 0x667d60
mov ecx, ebx
call fcn.0041d8c0
jmp 0x5958e9
push 0x6279e4
call fcn.005e4cfb
pop ecx
push eax
push 0x6279e4
jmp 0x5957fd
push 0x6279d8
call fcn.005e4cfb
pop ecx
push eax
push 0x6279d8
jmp 0x5957fd
push 0x6597cc
call fcn.005e4cfb
pop ecx
push eax
push 0x6597cc
jmp 0x5957fd
push 0x626e90
call fcn.005e4cfb
pop ecx
push eax
push 0x626e90
jmp 0x5957fd
push 0x627a08
call fcn.005e4cfb
pop ecx
push eax
push 0x627a08
jmp 0x5957fd
push 0x627a00
call fcn.005e4cfb
pop ecx
push eax
push 0x627a00
jmp 0x5957fd
push ecx
lea eax, [ebp - 0x58]
push eax
call fcn.0046c890
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push str._cntrl
push eax
call fcn.00438d70
push 0x650594
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
call fcn.004238e0
add esp, 0x20
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0041d9d0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00434c40
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00434c40
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.00434c40
add esi, 2
push 0xa
pop edx
cmp esi, edi
jne 0x595790
mov eax, ebx
call fcn.005b21e1
ret
Function at 0x59a9ef
Capabilities:
Reference sql statements

Disassembly:
push 4
mov eax, 0x61e8a3
call fcn.005b2203
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
lea edx, [ebp + 8]
mov eax, dword [ebp + 0x18]
lea esi, [ebp - 0x10]
cmovae ecx, dword [ebp + 8]
cmovae edx, dword [ebp + 8]
push esi
push edx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x10], fcn.005d6049
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0042c330
add esp, 0x10
lea ecx, [ebp + 8]
push 0x67e290
call fcn.0041a910
test eax, eax
jne 0x59aa4a
push 2
pop esi
jmp 0x59aa5e
push 0x67e2cc
lea ecx, [ebp + 8]
call fcn.0041a910
xor esi, esi
test eax, eax
jne 0x59aa5e
inc esi
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00434c40
mov eax, esi
call fcn.005b21cc
ret
Function at 0x59c981
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x20a
mov dword [ebp - 4], 0x105
call fcn.005b1ceb
jmp 0x59c9cd
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x59c9d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x59c9e0
push esi
call fcn.005b1ce6
mov eax, dword [ebp - 4]
add eax, eax
push eax
call fcn.005b1ceb
pop ecx
mov esi, eax
pop ecx
test esi, esi
jne 0x59c999
jmp 0x59c9eb
cmp word [esi], 0
je 0x59c9e0
mov eax, esi
jmp 0x59c9ed
test esi, esi
je 0x59c9eb
push esi
call fcn.005b1ce6
pop ecx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x59ced4
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x6ba394]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], ecx
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x59d07c
test edi, edi
je 0x59d07c
push ebx
lea ecx, [ebp - 0x64]
call fcn.00589e85
mov eax, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x6c]
push 8
push eax
mov dword [ebp - 0x6c], 1
call fcn.0059cc84
xor ebx, ebx
test al, al
je 0x59d06f
cmp dword [ebp - 0x6c], 1
je 0x59cf7a
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], ebx
push eax
push 1
push 2
push ebx
push 0xb
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x59d06f
cmp byte [ebp + 0x1c], bl
je 0x59d004
cmp dword [esi + 8], ebx
jne 0x59d004
push ebx
push 1
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.0059ccb2
test al, al
jne 0x59cfb2
cmp dword [ebp - 0x6c], 1
je 0x59d06f
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x59d06f
push 0x20
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.005ca820
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0xa8], 0x20
cmp dword [eax - 0xc], ebx
jne 0x59cfe1
lea ecx, [ebp - 0x64]
call fcn.0058d242
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x59d004
mov eax, dword [ebp - 0x8c]
mov dword [esi + 8], eax
movzx esi, byte [ebp + 0x28]
lea eax, [ebp - 0x70]
push esi
push dword [ebp - 0x68]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x59d06f
push dword [ebp - 0x74]
push edi
push dword [ebp - 0x78]
push dword [ebp - 0x70]
push dword [ebp + 0x18]
push esi
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x88]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x6c], 1
mov edi, eax
je 0x59d05b
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x70]
call sub.USERENV.dll_DestroyEnvironmentBlock
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
setne bl
lea ecx, [ebp - 0x64]
call fcn.0058a1d6
mov al, bl
pop ebx
jmp 0x59d07e
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005b168a
mov esp, ebp
pop ebp
ret 0x28

Function at 0x5b455b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x5e6583
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005e641e

Function at 0x5e9cda
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005e999d

Function at 0x5e9ce5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005e9b1e

Function at 0x5f28b1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005f221f

Function at 0x5f28bc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005f245a
Function at 0x4021c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x20]
mov eax, dword [eax + 0x14]
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
push edx
call eax
add esp, 8
test eax, eax
jne 0x4022e2
mov ecx, dword [esp + 4]
push ebx
push edi
push ecx
call fcn.0043231d
mov edi, eax
add esp, 4
test edi, edi
jne 0x402201
lea ebx, [eax + 0x10]
jmp 0x4022c4
mov eax, dword [esi + 0x30]
cmp eax, dword [esp + 0xc]
jbe 0x402276
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x20]
mov edx, dword [edx + 8]
push ebp
push eax
mov eax, dword [esi + 0x2c]
push eax
push ecx
call edx
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4022c4
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x20]
mov eax, dword [eax + 0xc]
push ebp
push 0x40
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
call eax
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4022c4
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x2c]
push ecx
push edi
push edx
call fcn.0043231d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x2c]
sub ecx, eax
push ecx
add edx, eax
push ebx
push edx
call fcn.0043231d
mov eax, dword [esp + 0x28]
add esp, 0x18
mov dword [esi + 0x30], eax
mov ecx, dword [esp + 0xc]
push ecx
push 0x36
push edi
call fcn.0043231d
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x30], eax
jbe 0x4022a1
lea ecx, [ecx]
mov edx, dword [esi + 0x2c]
mov cl, byte [eax + edx]
xor byte [eax + edi], cl
add eax, 1
cmp eax, dword [esi + 0x30]
jb 0x402290
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x20]
mov edx, dword [edx + 8]
push ebp
push eax
push edi
push ecx
call edx
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4022c4
mov dword [esi + 0x34], 1
test edi, edi
je 0x4022de
mov eax, dword [esp + 0xc]
push eax
push 0
push edi
call fcn.0043231d
push edi
call fcn.0043231d
add esp, 0x10
pop edi
mov eax, ebx
pop ebx
pop ebp
add esp, 8
ret
Function at 0x41047a
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
test eax, eax
je 0x41049b
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x410497
xor eax, eax
ret

Function at 0x4104a9
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
test eax, eax
je 0x4104ca
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x4104c6
xor eax, eax
ret

Function at 0x4197f4
Capabilities:
Create thread

Disassembly:
push esi
push 4
mov esi, ecx
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
xor edx, edx
pop ecx
test eax, eax
je 0x419809
mov dword [eax], edx
jmp 0x41980b
mov eax, edx
push edx
push edx
push esi
push 0x419825
push edx
push edx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
ret
Function at 0x41b16e
Capabilities:
Delete file

Disassembly:
push 0x68
mov eax, 0x48bac2
call fcn.0045cda0
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.00413841
push 0x5c
xor ebx, ebx
lea ecx, [ebp - 0x24]
push 0x2f
mov dword [ebp - 4], ebx
call fcn.0043231d
movzx eax, word [0x4c6108]
lea ecx, [ebp - 0x24]
push eax
call fcn.0043231d
test eax, eax
je 0x41b1e6
lea ecx, [ebp - 0x24]
call fcn.00418bd8
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
dec eax
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
call fcn.004191ca
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.0043231d
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.0041394e
lea ecx, [ebp - 0x4c]
call fcn.0041394e
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00413841
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00418c11
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.0043231d
lea ecx, [ebp - 0x3c]
call fcn.00418c11
cmp dword [ebp - 0x38], 0
jne 0x41b220
mov esi, 0x402
jmp 0x41b259
push 0x1e
lea eax, [ebp - 0x74]
push ebx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x74], ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x70], 3
call fcn.00418c11
mov dword [ebp - 0x6c], eax
mov eax, 0x414
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.0041394e
lea ecx, [ebp - 0x34]
call fcn.0041394e
lea ecx, [ebp - 0x14]
call fcn.0041394e
lea ecx, [ebp - 0x1c]
call fcn.0041394e
mov eax, esi
call fcn.0045cd6e
ret