joyce8/EMBER2024-capa huggingface dataset:
Function at 0x520fe0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbf000]
push edi
jmp 0x520ffa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x521001
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x520ff0
mov eax, 1
add ebx, ebx
jne 0x521013
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x521024
jne 0x521043
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x521043
dec eax
add ebx, ebx
jne 0x521030
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x521008
add ebx, ebx
jne 0x52103f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x521095
xor ecx, ecx
sub eax, 3
jb 0x52105b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5210ca
sar eax, 1
mov ebp, eax
jmp 0x521066
add ebx, ebx
jne 0x521066
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x521034
inc ecx
add ebx, ebx
jne 0x521074
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x521034
add ebx, ebx
jne 0x521081
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x521076
jne 0x521092
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x521076
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5210b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5210a6
jmp 0x520ff6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5210b4
add edi, ecx
jmp 0x520ff6
pop esi
mov edi, esi
mov ecx, 0x218f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5210d2
cmp byte [edi], 0x14
jne 0x5210d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5210d7
lea edi, [esi + 0x11d000]
mov eax, dword [edi]
or eax, eax
je 0x52114f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x124c64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x124d54]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x521104
mov ecx, edi
jns 0x521133
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x124d58]
or eax, eax
je 0x521149
mov dword [ebx], eax
add ebx, 4
jmp 0x521121
call dword [esi + 0x124d68]
mov ebp, dword [esi + 0x124d5c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x521183
sub esp, 0xffffff80
jmp 0x41fb5e
Function at 0x40b923
Capabilities:
Hash data using jshash

Disassembly:
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x404787
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
jae 0x403d60
mov esi, dword [ebp - 4]
shl esi, 5
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
push ecx
call fcn.0040c911
add esp, 4
add esi, eax
mov edx, dword [ebp - 4]
shr edx, 2
add esi, edx
xor esi, dword [ebp - 4]
mov dword [ebp - 4], esi
jmp 0x402983
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 4], 0x4e67c6a7
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0
jmp 0x404787

Function at 0x40bc6b
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
lodsb al, byte [esi]
mov ebx, edx
shl ebx, 5
add eax, ebx
mov ebx, edx
shr ebx, 2
add eax, ebx
xor edx, eax
dec ecx
cmp ecx, 0
jne 0x402f59
mov eax, edx
pop esi
pop edx
pop ecx
pop ebx
pop ebp
ret 4
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
mov esi, dword [ebp + 8]
mov edx, 0x4e67c6a7
mov ecx, 0x10
jmp 0x402f59

Function at 0x40e911
Capabilities:
Encode data using xor

Disassembly:
lodsb al, byte [esi]
xor dl, al
shl edx, 1
dec ecx
jne 0x40a9f3
mov eax, edx
pop esi
pop edx
pop ecx
pop ebp
ret 8
push ebp
mov ebp, esp
push ecx
push edx
push esi
mov edx, 0
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp + 8]
jmp 0x40a9f3

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x6d461799
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x6d4617e7
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x6d4617f8
push 0xd
pop eax
jmp 0x6d461822
push edi
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x6d4617fb
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x6d461db8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x6d46c188]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.6d464769
mov ebx, eax
cmp ebx, esi
je 0x6d461e2b
lea ecx, [ebp - 0x74]
call fcn.6d4616c7
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d46731e
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x6d461e43
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.6d461db8
cmp eax, esi
jne 0x6d461e75
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], pe_nt_image_headers32
call ebx
test eax, eax
je 0x6d461e33
lea ecx, [ebp - 0x74]
call fcn.6d4616c7
push dword [ebp - 0x78]
mov ecx, edi
call fcn.6d461658
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.6d4616c7
mov eax, esi
jmp 0x6d461e11
Function at 0x6d463f59
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8f4]
sub esp, 0x974
mov eax, dword [0x6d46c188]
xor eax, ebp
mov dword [ebp + 0x8f0], eax
mov eax, dword [ebp + 0x8fc]
push ebx
push esi
mov esi, 0x400
push esi
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call fcn.6d464769
add esp, 0x10
test eax, eax
je 0x6d4640b4
lea eax, [ebp - 0x14]
push eax
push str._s_ssvagent.exe
lea eax, [ebp + 0x3ec]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x3ec]
push eax
call dword [sym.imp.MSVCR100.dll__stat64i32]
add esp, 0x18
test eax, eax
jne 0x6d4640b4
mov esi, dword [sym.imp.MSVCR100.dll_strcat_s]
xor ebx, ebx
push edi
mov byte [ebp + 0x7ec], bl
mov edi, 0x104
lea eax, [ebp + 0x7ec]
cmp dword [ebp + 0x900], ebx
je 0x6d463ff5
push str.__new
jmp 0x6d463ffa
push str.__old
push edi
push eax
call esi
add esp, 0xc
cmp dword [ebp + 0x904], ebx
je 0x6d46401b
push str.__high
lea eax, [ebp + 0x7ec]
push edi
push eax
call esi
add esp, 0xc
cmp dword [ebp + 0x90c], ebx
je 0x6d464035
push str.__settreatas
lea eax, [ebp + 0x7ec]
push edi
push eax
call esi
add esp, 0xc
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp + 0x7ec]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x6c], eax
pop edi
cmp dword [ebp + 0x904], ebx
je 0x6d46406b
call fcn.6d464769
test eax, eax
je 0x6d46406b
mov dword [ebp - 0x74], str.runas
cmp dword [ebp + 0x908], ebx
je 0x6d46407a
mov dword [ebp - 0x7c], 0x40
lea eax, [ebp + 0x3ec]
mov dword [ebp - 0x70], eax
xor esi, esi
lea eax, [ebp - 0x80]
inc esi
push eax
mov dword [ebp - 0x64], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x6d4640b4
cmp dword [ebp - 0x48], ebx
je 0x6d4640b0
push 0xffffffffffffffff
push dword [ebp - 0x48]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebp - 0x48]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
jmp 0x6d4640b6
xor eax, eax
mov ecx, dword [ebp + 0x8f0]
pop esi
xor ecx, ebp
pop ebx
call fcn.6d46731e
add ebp, 0x8f4
leave
ret
Function at 0x6d4649f5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x6d46c188]
xor eax, ebp
mov dword [ebp + 0x39c], eax
push ebx
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x63]
push ebx
push eax
mov dword [ebp - 0x68], ebx
mov byte [ebp - 0x64], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x20019
push 0x6d469aec
push SysReAllocString
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call fcn.6d464769
lea ecx, [ebp - 0x74]
test eax, eax
je 0x6d464a6d
call fcn.6d4616c7
lea ecx, [ebp - 0x80]
call fcn.6d4616c7
jmp 0x6d464af9
push 0x2001f
push str.Classes
push dword [ebp - 0x80]
call fcn.6d464769
test eax, eax
je 0x6d464a88
lea ecx, [ebp - 0x74]
jmp 0x6d464a5b
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, 0x400
push esi
lea eax, [ebp - 0x64]
push eax
push ebx
jmp 0x6d464ade
push 0xa
lea eax, [ebp - 0x64]
push str.JavaPlugin
push eax
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x6d464ac5
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.6d461db8
test eax, eax
je 0x6d464ac8
inc dword [ebp - 0x68]
push esi
lea eax, [ebp - 0x64]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x74]
call edi
test eax, eax
je 0x6d464a9d
lea ecx, [ebp - 0x74]
call fcn.6d4616c7
lea ecx, [ebp - 0x80]
call fcn.6d4616c7
pop edi
pop esi
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
pop ebx
call fcn.6d46731e
add ebp, 0x3a0
leave
ret
Function at 0x6d466733
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x3b8]
sub esp, 0x438
mov eax, dword [0x6d46c188]
xor eax, ebp
mov dword [ebp + 0x3b4], eax
push ebx
xor ebx, ebx
push esi
mov esi, 0x20019
push esi
push 0x6d46a408
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x50], ebx
call fcn.6d464769
test eax, eax
je 0x6d4667ce
lea ecx, [ebp - 0x74]
call fcn.6d4616c7
lea ecx, [ebp - 0x5c]
call fcn.6d4616c7
lea ecx, [ebp - 0x68]
call fcn.6d4616c7
lea ecx, [ebp - 0x80]
call fcn.6d4616c7
xor eax, eax
mov ecx, dword [ebp + 0x3b4]
pop esi
xor ecx, ebp
pop ebx
call fcn.6d46731e
add ebp, 0x3b8
leave
ret
push esi
push 0x6d46a414
push dword [ebp - 0x80]
lea ecx, [ebp - 0x68]
call fcn.6d464769
test eax, eax
jne 0x6d466795
push esi
push 0x6d46a420
push dword [ebp - 0x68]
lea ecx, [ebp - 0x5c]
call fcn.6d464769
test eax, eax
je 0x6d46681c
lea ecx, [ebp - 0x74]
call fcn.6d4616c7
lea ecx, [ebp - 0x5c]
call fcn.6d4616c7
lea ecx, [ebp - 0x68]
call fcn.6d4616c7
lea ecx, [ebp - 0x80]
call fcn.6d4616c7
mov eax, ebx
jmp 0x6d4667b7
mov esi, 0x400
push esi
lea eax, [ebp - 0x4c]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x4c]
push eax
push ebx
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x6d4667f8
push edi
inc dword [ebp - 0x50]
mov edi, dword [ebp + 0x3c0]
lea eax, [ebp - 0x4c]
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x6d46686f
cmp cl, bl
je 0x6d46686b
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x6d46686f
add eax, 2
add edi, 2
cmp cl, bl
jne 0x6d46684f
xor eax, eax
jmp 0x6d466874
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
lea eax, [ebp - 0x4c]
je 0x6d46689d
push esi
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x6d466843
jmp 0x6d4668d3
push 0x20019
push eax
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x74]
call fcn.6d464769
test eax, eax
jne 0x6d4668d3
push str.UseNewJavaPlugin
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x50], ebx
call fcn.6d464769
test eax, eax
jne 0x6d4668d3
xor ebx, ebx
cmp dword [ebp - 0x50], 1
sete bl
pop edi
jmp 0x6d4667f8

Function at 0x6d46731e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d46c188]
jne 0x6d467328
repz ret
jmp fcn.6d4679b9
Function at 0x402830
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x418ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x420280]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x420280]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
lea eax, [esp + 0x2c]
push eax
call fcn.00407880
add esp, 4
mov ebx, str.cx_vcapp
lea ecx, [esp + 0x2c]
lea esi, [esp + 0x10]
mov dword [esp + 0x54], 0
call fcn.004037c0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 1
call fcn.004030a0
mov edi, 8
mov byte [esp + 0x54], 0
cmp dword [esp + 0x28], edi
jb 0x4028b8
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040b1ba
add esp, 4
mov ebx, str..exe
lea ecx, [esp + 0x2c]
lea esi, [esp + 0x10]
call fcn.004037c0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 2
call fcn.004030a0
cmp dword [esp + 0x28], edi
jb 0x4028f0
mov edx, dword [esp + 0x14]
push edx
call fcn.0040b1ba
add esp, 4
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x4028fe
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402928
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x402917
lea eax, [esp + 0x30]
push 1
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x44], edi
jb 0x40293b
mov eax, dword [esp + 0x30]
push eax
call fcn.0040b1ba
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0040b1c5
add esp, 0x48
ret
Function at 0x404cf0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x420280]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.004050b0
xor eax, eax
mov dword [esp + 0x44], esi
mov word [esp + 0x34], ax
mov dword [esp + 0x10], esi
push 8
mov eax, str.cx_vcapp
lea esi, [esp + 0x34]
mov dword [esp + 0x4c], 7
call fcn.004048b0
mov ecx, esi
mov ebx, 0x41c320
lea esi, [esp + 0x14]
call fcn.004037c0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.004030a0
mov esi, 8
cmp dword [esp + 0x2c], esi
jb 0x404d7c
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040b1ba
add esp, 4
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x404d8a
lea eax, [esp + 0x34]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404de1
mov edx, dword [ebp + 0x14]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x422784
push 0x67
push edi
mov dword [0x42277c], edi
mov dword [0x422780], edx
call esi
push 0x64
push 0x42284c
push 0x6d
push edi
call esi
mov eax, edi
call fcn.00404e30
call fcn.00404650
mov esi, eax
jmp 0x404de5
mov esi, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00405010
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x48], 8
jb 0x404e11
mov eax, dword [esp + 0x34]
push eax
call fcn.0040b1ba
add esp, 4
mov ecx, dword [esp + 0x4c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0040b1c5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407880
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x418a3c
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x420280]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x420280]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x26c]
xor ebx, ebx
mov eax, 1
mov dword [esp + 0x30], ebx
test byte [0x422ad0], al
jne 0x407900
or dword [0x422ad0], eax
xor eax, eax
push 0x418ff0
mov dword [0x422acc], 7
mov dword [0x422ac8], ebx
mov word [0x422ab8], ax
call fcn.0040bc01
add esp, 4
cmp dword [0x422ac8], ebx
je 0x407920
xor ecx, ecx
push 0xffffffffffffffff
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], cx
push ebx
jmp 0x407ab8
push ebx
push 0x1a
lea edx, [esp + 0x58]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x50]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407936
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x54]
mov esi, 0x422ab4
call fcn.004048b0
mov edi, esi
lea eax, [esp + 0x14]
call fcn.00407810
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x270], ebx
call fcn.004030a0
mov edi, 8
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x2c], edi
jb 0x407994
mov eax, dword [esp + 0x18]
push eax
call fcn.0040b1ba
add esp, 4
mov ebx, 0x41c560
mov ecx, 0x422ab4
lea esi, [esp + 0x14]
call fcn.004037c0
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x422ab4
mov dword [esp + 0x270], 1
call fcn.004030a0
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x2c], edi
jb 0x4079df
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040b1ba
add esp, 4
mov ebx, str.cx_vcapp
mov ecx, 0x422ab4
lea esi, [esp + 0x14]
call fcn.004037c0
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x422ab4
mov dword [esp + 0x270], 2
call fcn.004030a0
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x2c], edi
jb 0x407a2a
mov edx, dword [esp + 0x18]
push edx
call fcn.0040b1ba
add esp, 4
mov ebx, 0x41c55c
mov ecx, 0x422ab4
lea esi, [esp + 0x34]
call fcn.004037c0
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x422ab4
mov dword [esp + 0x270], 3
call fcn.004030a0
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x4c], edi
jb 0x407a75
mov eax, dword [esp + 0x38]
push eax
call fcn.0040b1ba
add esp, 4
xor ecx, ecx
cmp dword [0x422acc], edi
mov edi, dword [0x422ab8]
mov esi, 7
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], 0
mov word [esp + 0x38], cx
jae 0x407aa0
mov edi, 0x422ab8
call fcn.00407af0
xor edx, edx
push 0xffffffffffffffff
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], 0
mov word [ebp + 4], dx
push edx
push 0x422ab4
mov ecx, ebp
call fcn.004030a0
mov eax, ebp
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0040b1c5
add esp, 0x254
ret
Function at 0x407af0
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x418928
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x420280]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
mov eax, dword [0x420280]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor ebx, ebx
cmp edi, ebx
je 0x407bad
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebp
xor eax, eax
mov word [esp + 0x30], ax
mov eax, edi
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407b50
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x30]
call fcn.004048b0
mov dword [esp + 0x54], ebx
push 0x41c55c
mov ebx, 1
xor eax, eax
mov edx, esi
call fcn.004047d0
mov esi, eax
cmp esi, 0xffffffff
jne 0x407bb4
push edi
call ebp
test eax, eax
jne 0x407c40
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407c40
lea ecx, [esp + 0x2c]
call fcn.00402dc0
xor al, al
jmp 0x407c6d
lea ecx, [esp + 0x2c]
lea ebp, [esi + 1]
push ecx
mov ecx, ebp
xor edx, edx
lea esi, [esp + 0x14]
call fcn.00407cd0
mov eax, dword [esp + 0x14]
mov esi, 8
cmp dword [esp + 0x28], esi
jae 0x407bdc
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407c06
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], esi
jae 0x407bf5
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407c8b
push 0x41c55c
mov ebx, 1
mov eax, ebp
lea edx, [esp + 0x30]
call fcn.004047d0
cmp dword [esp + 0x28], 8
mov esi, eax
jb 0x407c31
mov edx, dword [esp + 0x14]
push edx
call fcn.0040b1ba
add esp, 4
cmp esi, 0xffffffff
jne 0x407bb4
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebp
test eax, eax
jne 0x407c57
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407ba4
cmp dword [esp + 0x44], 8
jb 0x407c6b
mov eax, dword [esp + 0x30]
push eax
call fcn.0040b1ba
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0040b1c5
add esp, 0x48
ret
cmp dword [esp + 0x28], esi
jb 0x407c9e
mov eax, dword [esp + 0x14]
push eax
call fcn.0040b1ba
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
cmp dword [esp + 0x44], esi
jb 0x407cc8
mov edx, dword [esp + 0x30]
push edx
call fcn.0040b1ba
add esp, 4
xor al, al
jmp 0x407c6d
Function at 0x41a2e5
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4500e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x14]
push eax
push edx
mov edx, ecx
mov dword [ebp - 0x7c], esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x68], ebx
call fcn.0041d29b
pop ecx
pop ecx
test eax, eax
jne 0x41a418
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x60], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x2c], 0x114
and dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x100000
test ebx, ebx
ja 0x41a369
jb 0x41a366
cmp edi, 0x100000
jae 0x41a369
mov dword [ebp - 8], edi
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push esi
call eax
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41a407
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x70]
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x78]
push eax
push 1
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0xc]
call fcn.0041ce78
mov edx, dword [ebp - 0x74]
add esp, 0x10
add byte [ebx + 0x55], dl
dec esp
and al, 0x4c