joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b7a6
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
lea eax, [edx + 0x3f]
push esi
shr eax, 6
mov esi, edx
sub esi, eax
mov dword [esp + 0x10], edx
push edi
xor edi, edi
mov ebx, ecx
and dword [esp + 0x18], edi
inc esi
imul eax, esi, 3
shr eax, 2
cmp eax, dword [ebp]
jbe 0x42b7dd
mov eax, 0xffffff53
jmp 0x42b9b0
mov esi, dword [esp + 0x20]
cmp edx, 3
jbe 0x42b99e
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
lea edx, [esp + 0x18]
call fcn.0042b748
add esp, 4
test eax, eax
jne 0x42b997
mov eax, dword [esp + 0x18]
mov cl, byte [eax + ebx]
inc eax
mov byte [esp + 0x13], cl
mov dword [esp + 0x18], eax
test cl, cl
je 0x42b99e
dec dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.0042b748
add esp, 4
test eax, eax
jne 0x42b9b0
mov eax, dword [esp + 0x18]
mov cl, byte [eax + ebx]
inc eax
dec dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov byte [esp + 0x12], cl
mov ecx, ebx
push eax
call fcn.0042b748
add esp, 4
test eax, eax
jne 0x42b9b0
mov eax, dword [esp + 0x18]
mov cl, byte [eax + ebx]
inc eax
dec dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov byte [esp + 0x24], cl
mov ecx, ebx
push eax
call fcn.0042b748
add esp, 4
test eax, eax
jne 0x42b9b0
mov eax, dword [esp + 0x18]
mov dl, byte [esp + 0x13]
mov dh, byte [eax + ebx]
inc eax
dec dword [esp + 0x14]
mov dword [esp + 0x18], eax
cmp dl, 0x2b
jb 0x42b990
mov cl, byte [esp + 0x12]
cmp cl, 0x2b
jb 0x42b990
mov al, byte [esp + 0x24]
cmp al, 0x2b
jb 0x42b990
cmp dh, 0x2b
jb 0x42b990
cmp dl, 0x7a
ja 0x42b990
cmp cl, 0x7a
ja 0x42b990
cmp al, 0x7a
ja 0x42b990
cmp dh, 0x7a
ja 0x42b990
xor ecx, ecx
cmp al, 0x3d
setne cl
xor eax, eax
inc ecx
cmp dh, 0x3d
setne al
add ecx, edi
add eax, ecx
cmp eax, dword [ebp]
ja 0x42b7d3
mov cl, byte [esp + 0x12]
movzx eax, dl
mov al, byte [eax + 0x46985d]
mov byte [esp + 0x13], al
movzx eax, cl
mov ch, byte [eax + 0x46985d]
mov al, byte [esp + 0x24]
cmp al, 0x3d
jne 0x42b933
xor cl, cl
jmp 0x42b93c
movzx eax, al
mov cl, byte [eax + 0x46985d]
cmp dh, 0x3d
jne 0x42b945
xor al, al
jmp 0x42b94e
movzx eax, dh
mov al, byte [eax + 0x46985d]
mov ah, byte [esp + 0x13]
mov dl, cl
shl dl, 6
or dl, al
shl ah, 2
mov al, ch
shr al, 4
or al, ah
mov byte [edi + esi], al
inc edi
cmp byte [esp + 0x24], 0x3d
je 0x42b97a
shr cl, 2
shl ch, 4
or cl, ch
mov byte [edi + esi], cl
inc edi
cmp dh, 0x3d
je 0x42b99e
mov byte [edi + esi], dl
inc edi
cmp dword [esp + 0x14], 3
ja 0x42b7ea
jmp 0x42b99e
mov eax, 0xffffff66
jmp 0x42b9b0
cmp eax, 0xffffff7c
jne 0x42b9b0
test esi, esi
je 0x42b9ab
cmp dword [ebp], edi
jbe 0x42b9ab
mov byte [edi + esi], 0
mov dword [ebp], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x42f0ac
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
test edi, edi
je 0x42f1a6
cmp dword [esp + 0x14], 0
mov esi, dword [esp + 0x18]
jne 0x42f0cd
test esi, esi
jne 0x42f1a6
cmp edx, 3
je 0x42f103
cmp edx, 4
je 0x42f103
cmp edx, 5
je 0x42f103
cmp edx, 6
je 0x42f103
cmp edx, 7
je 0x42f103
cmp edx, 8
je 0x42f103
cmp edx, 0xa
je 0x42f103
cmp edx, 0xb
je 0x42f103
cmp edx, 0xc
je 0x42f103
cmp edx, 0xd
jne 0x42f1a6
xor ebx, ebx
mov byte [edi + 0x114], dl
push ecx
mov byte [edi + 0x115], bl
call fcn.0042f08f
mov ebp, eax
pop ecx
test ebp, ebp
jne 0x42f1ab
cmp byte [edi + 0x114], 6
lea ecx, [edi + 0x70]
jne 0x42f1a6
cmp esi, 0x40
ja 0x42f149
cmp dword [esp + 0x14], ebx
je 0x42f172
push esi
push dword [esp + 0x18]
push ecx
call fcn.00436850
add esp, 0xc
jmp 0x42f16f
mov edx, dword [esp + 0x14]
mov ecx, edi
push esi
call fcn.00433f8e
mov ebp, eax
pop ecx
test ebp, ebp
jne 0x42f1a2
lea edx, [edi + 0x70]
mov ecx, edi
call fcn.00434069
mov ebp, eax
test ebp, ebp
jne 0x42f1a2
push 0x20
pop esi
lea ecx, [edi + 0x70]
cmp esi, 0x40
jae 0x42f18a
push 0x40
pop eax
sub eax, esi
push eax
lea eax, [ecx + esi]
push ebx
push eax
call fcn.00436dd0
add esp, 0xc
mov al, byte [ebx + edi + 0x70]
xor al, 0x5c
mov byte [edi + ebx + 0xb0], al
xor byte [ebx + edi + 0x70], 0x36
inc ebx
cmp ebx, 0x40
jb 0x42f18a
mov eax, ebp
jmp 0x42f1ab
mov eax, 0xffffff53
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x43302a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd4
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
push edi
inc ebx
inc esi
cmp dword [esp + 0xe8], 0
mov edi, ecx
push 0
cmovne ebx, dword [esp + 0xec]
mov ebp, edx
pop ecx
test bl, 0x1f
mov eax, ebx
push 0x37
push dword [esp + 0xf0]
setne cl
shr eax, 5
add eax, ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.00436850
and dword [esp + 0x20], 0
add esp, 0xc
cmp dword [esp + 0x10], 0
jbe 0x433168
lea ecx, [esp + 0x74]
call fcn.004340a8
mov esi, eax
test esi, esi
jne 0x433168
push 0x37
lea edx, [esp + 0x40]
lea ecx, [esp + 0x78]
call fcn.00433f8e
mov esi, eax
pop ecx
test esi, esi
jne 0x433168
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x74]
call fcn.00434069
mov esi, eax
test esi, esi
jne 0x433168
push 4
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00436850
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [edi], 1
jbe 0x433113
cmp eax, dword [edi + 4]
jne 0x433113
cmp byte [edi + 0x76], 1
je 0x433186
mov edx, dword [esp + 0x10]
mov byte [edi + 0x76], 1
lea eax, [edx - 1]
cmp dword [esp + 0x14], eax
lea ecx, [edx + 1]
cmovne ecx, edx
mov dword [esp + 0x10], ecx
jmp 0x43311a
mov byte [edi + 0x76], 0
mov dword [edi + 4], eax
test ebp, ebp
je 0x433155
test ebx, ebx
je 0x433155
lea eax, [esp + 0x1c]
cmp ebx, 0x20
jb 0x433148
push 0x20
push eax
push ebp
call fcn.00436850
add esp, 0xc
lea ecx, [esp + 0x3c]
sub ebx, 0x20
add ebp, 0x20
call fcn.0043301b
jmp 0x433155
push ebx
push eax
push ebp
call fcn.00436850
add esp, 0xc
xor ebx, ebx
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jl 0x433088
push 0x37
pop edx
lea ecx, [esp + 0x3c]
call fcn.0041d5dc
xor eax, eax
test esi, esi
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret
push 3
pop eax
jmp 0x43317b

Function at 0x433882
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x43382e
mov eax, 0xffffff53
pop esi
ret
push edi
push 0x20
xor edi, edi
push edi
push esi
call fcn.00436dd0
add esp, 0xc
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
xor eax, eax
mov dword [esi + 0x68], edi
mov dword [esi], 0x6a09e667
pop edi
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
ret
test ecx, ecx
jne 0x43388c
mov eax, 0xffffff53
ret
mov dword [ecx + 0x6c], edx
jmp 0x433820
Function at 0x433fad
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
test ebx, ebx
jne 0x433fbb
mov eax, 0xffffff53
pop ebx
ret
mov eax, dword [ebx + 0x60]
push ebp
push esi
push edi
push 0x40
pop edi
lea ebp, [ebx + 0x20]
mov byte [eax + ebp], 0x80
inc dword [ebx + 0x60]
mov ecx, dword [ebx + 0x60]
push 0x38
pop esi
cmp ecx, esi
jbe 0x434008
mov eax, edi
sub eax, ecx
push eax
lea eax, [ecx + ebp]
push 0
push eax
call fcn.00436dd0
push edi
mov edx, ebp
mov dword [ebx + 0x60], edi
mov ecx, ebp
call fcn.004337f6
add esp, 0x10
mov edx, ebp
mov ecx, ebx
call fcn.00433894
test eax, eax
jne 0x434064
and dword [ebx + 0x60], eax
mov eax, dword [ebx + 0x60]
sub esi, eax
push esi
add eax, ebp
push 0
push eax
call fcn.00436dd0
lea edi, [ebx + 0x64]
mov edx, ebp
mov ecx, dword [edi]
lea esi, [ebx + 0x68]
mov eax, dword [esi]
shr ecx, 0x1d
push 0x40
lea eax, [ecx + eax*8]
mov ecx, ebp
mov dword [esi], eax
mov eax, dword [edi]
shl eax, 3
mov dword [edi], eax
call fcn.004337f6
push 4
lea eax, [ebp + 0x38]
push esi
push eax
call fcn.00436850
push 4
lea eax, [ebp + 0x3c]
push edi
push eax
call fcn.00436850
add esp, 0x28
mov edx, ebp
mov ecx, ebx
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.00433894
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x434069
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x4340a0
test edi, edi
je 0x4340a0
call fcn.00433fad
test eax, eax
jne 0x4340a5
push 0x20
mov edx, esi
mov ecx, esi
call fcn.004337f6
push 0x20
push esi
push edi
call fcn.00436850
add esp, 0x10
mov ecx, esi
pop edi
pop esi
jmp 0x433820
mov eax, 0xffffff53
pop edi
pop esi
ret

Function at 0x434158
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov eax, edx
mov ebp, ecx
neg eax
mov dword [esp + 8], eax
test ebp, ebp
je 0x4341f2
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4341f2
mov edx, dword [ebp]
mov ecx, ebx
inc edx
call fcn.0042f83b
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4341f7
xor edx, edx
push esi
push edi
cmp dword [ebp], edx
jle 0x4341b8
mov edi, dword [ebx + 0xc]
mov ecx, ebp
call fcn.00434142
mov ecx, ebx
mov esi, eax
call fcn.00434142
mov ecx, dword [esp + 0x10]
xor esi, eax
and esi, ecx
xor dword [edi + edx*4], esi
inc edx
cmp edx, dword [ebp]
jl 0x434192
jmp 0x4341dd
mov ecx, dword [esp + 0x10]
jmp 0x4341dd
mov edi, dword [ebx + 0xc]
mov ecx, ebp
call fcn.00434142
mov ecx, ebx
mov esi, eax
call fcn.00434142
mov ecx, dword [esp + 0x10]
xor esi, eax
and esi, ecx
xor dword [edi + edx*4], esi
inc edx
cmp edx, dword [ebx]
jl 0x4341be
mov eax, dword [ebp]
xor eax, dword [ebx]
and eax, ecx
xor dword [ebx], eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
jmp 0x4341f7
mov eax, 0xffffff53
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x44bfa6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044be25

Function at 0x44fa00
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044f36e

Function at 0x44fa0b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044f5a9
Function at 0x4010a0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0xc
push ebp
push edi
xor edi, edi
push str.ApMsgFwd_Mutex_Object
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 8], ebp
je 0x4011b2
push esi
push str.ApMsgFwd_File_Mapping_Object
push edi
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
je 0x4011a2
push ebx
push 0x110
push edi
push edi
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x40119a
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventA]
push str.ApMsgFwd_Event_Start
push edi
push 0x100002
call esi
push str.ApMsgFwd_Event_Finish
push edi
push 0x100002
mov ebp, eax
call esi
mov esi, eax
test ebp, ebp
mov dword [esp + 0x14], esi
je 0x401180
test esi, esi
je 0x401179
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [esp + 0x20]
mov ecx, 0x44
mov edi, ebx
push ebp
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x20]
mov eax, dword [ebx + 4]
mov edi, eax
mov dword [edx + 4], eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40118b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop esi
pop edi
pop ebp
add esp, 0xc
ret
mov eax, edi
pop edi
pop ebp
add esp, 0xc
ret
Function at 0x4011c0
Capabilities:
Check if file exists
Check os version

Disassembly:
mov eax, dword [0x409ae0]
sub esp, 0x19c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push esi
push edi
mov edi, 1
xor ebx, ebx
cmp eax, edi
je 0x401365
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
and ecx, 0xffff
and edx, 0xffff
shl ecx, 0x10
push 0x409ae4
push str.ApMsgFwd_Flags
or ecx, edx
push str.SOFTWAREAlpsApoint
push 0x80000002
mov dword [0x409ae8], ecx
call fcn.004013e0
push 0x407030
push str.ApMsgFwd_OSVer
push str.SOFTWAREAlpsApoint
push 0x80000002
call fcn.004013e0
push str.HomeDirectory
push str.SOFTWAREAlpsApoint
push 0x80000002
call fcn.00401440
add esp, 0x2c
mov esi, 0x104
lea ecx, [esp + 0xa8]
mov dl, byte [eax]
test dl, dl
je 0x40127a
mov byte [ecx], dl
inc ecx
inc eax
dec esi
jne 0x40126b
jmp 0x40127e
test esi, esi
jne 0x40127f
dec ecx
mov byte [ecx], 0
mov ecx, 0x104
lea eax, [esp + 0xa8]
xor edx, edx
cmp byte [eax], 0
je 0x40129b
inc eax
dec ecx
jne 0x401290
jmp 0x40129f
test ecx, ecx
jne 0x4012a4
mov edx, 0x80070057
lea eax, [esp + 0x10]
test eax, eax
je 0x4012bd
test edx, edx
jl 0x4012b9
mov eax, 0x104
sub eax, ecx
jmp 0x4012c1
xor eax, eax
jmp 0x4012c1
mov eax, dword [esp + 0x10]
test edx, edx
jl 0x4012f3
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0xa8]
je 0x4012f3
mov esi, str.ApMsgFwd.exe
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x4012eb
mov byte [eax], cl
inc eax
dec edx
jne 0x4012dc
jmp 0x4012ef
test edx, edx
jne 0x4012f0
dec eax
mov byte [eax], 0
lea ecx, [esp + 0xa8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, edi
jne 0x40135a
cmp dword [esp + 0x24], 2
jne 0x40135a
mov eax, dword [esp + 0x18]
cmp eax, 6
jae 0x401320
cmp eax, 5
jne 0x40135a
cmp dword [esp + 0x1c], edi
jb 0x40135a
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp esi, 0x46
jge 0x40134f
push str.ApMsgFwd_File_Mapping_Object
push 0
push 0xf001f
call ebp
mov ebx, eax
test ebx, ebx
jne 0x401348
push 0xc8
call edi
inc esi
test ebx, ebx
je 0x401328
jmp 0x401353
test ebx, ebx
je 0x40135a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
mov dword [0x409ae0], edi
push str.ApMsgFwd_File_Mapping_Object
push 0
push 0xf001f
call ebp
test eax, eax
je 0x4013c6
mov ecx, dword [esp + 0x1b0]
mov edx, edi
shl edx, cl
test dword [0x409ae4], edx
je 0x4013b0
mov ecx, dword [0x409ae8]
mov edx, dword [0x407030]
cmp ecx, edx
jb 0x4013b0
push eax
mov esi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19c
ret
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x19c
ret
Function at 0x4013e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401437
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push esi
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret

Function at 0x401440
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp], 0x104
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4014ab
mov edx, dword [esp + 0x10]
lea eax, [esp]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push 0x409aec
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4014a0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x409aec
pop ecx
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x409aec
pop ecx
ret
Function at 0x401bd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x18c
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str.VXDIF.DLL
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x104]
push 0x4000
lea eax, [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x401cc5
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, 0x20
mov dword [0x409db4], eax
jb 0x401cc5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Alps_ApcGetData
push eax
call esi
mov edx, dword [0x409db4]
push str.Alps_ApcCreateEvent
push edx
mov dword [0x409db0], eax
call esi
mov dword [0x409e74], eax
mov eax, dword [0x409db4]
push str.Alps_ApcDeleteEvent
push eax
call esi
mov ecx, dword [0x409db4]
push str.Alps_ApcSetUserModeEvent
push ecx
mov dword [0x409db8], eax
call esi
mov ecx, dword [0x409db0]
mov dword [0x409dc0], eax
test ecx, ecx
pop esi
je 0x401cab
mov ecx, dword [0x409e74]
test ecx, ecx
je 0x401cab
mov ecx, dword [0x409db8]
test ecx, ecx
je 0x401cab
test eax, eax
je 0x401cab
mov eax, 1
add esp, 0x18c
ret
push 0
push 0
push str.API_could_not_be_loaded
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x18c
ret
push 0
push 0
push str.DLL_could_not_be_opened
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x18c
ret
Function at 0x403110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c0ea1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4d8620]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00402fc0
xor ebx, ebx
mov dword [esp + 0x18], ebx
lea ecx, [esi + 0x30]
call fcn.0042eb20
mov byte [esp + 0x18], 1
lea ecx, [esi + 0x1ef0]
call fcn.0045d420
mov byte [esp + 0x18], 2
mov eax, dword [esp + 0x20]
mov byte [esi + 0x1eec], bl
mov byte [esi + 0x1eed], bl
mov dword [esi + 0x1ed8], ebx
mov dword [esi + 0x1ee0], ebx
mov dword [esi + 0x1ee4], ebx
mov dword [esi + 0x1ee8], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x1f4c], esi
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x406a60
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2e0
mov eax, dword [0x4d8620]
xor eax, esp
mov dword [esp + 0x2dc], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2fc]
push esi
push edi
mov edi, dword [esp + 0x2f4]
mov ebx, ecx
push 0x808
mov dword [esp + 0x38], ebx
call fcn.004afe20
mov ecx, dword [esp + 0x300]
mov esi, eax
mov eax, dword [esp + 0x2fc]
add esp, 4
push edi
mov dword [esi], eax
mov dword [esi + 4], ecx
call fcn.0046f1a0
lea edx, [esi + 8]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x406ab7
cmp dword [ebx + 4], 0x50000
jb 0x406ae7
call fcn.00443050
cmp eax, 0x400
je 0x406ae7
cmp byte [esp + 0x310], 0
jne 0x406b32
mov ebx, dword [esp + 0x300]
cmp ebx, 0xffffffff
je 0x406af7
test ebp, ebp
jne 0x406b39
cmp dword [esp + 0x2f8], 2
mov eax, 0x4201
jne 0x406b0b
mov eax, 0x4203
push eax
push 0x2b4
lea edx, [esp + 0x40]
push edx
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp ebx, 0xffffffff
jne 0x406b28
mov ebx, dword [esp + 0x3c]
test ebp, ebp
jne 0x406b39
lea ebp, [esp + 0x44]
jmp 0x406b39
mov ebx, dword [esp + 0x300]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 0x37
mov dword [esp + 0x18], ebp
test ebp, ebp
jne 0x406b77
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x30c]
mov ecx, dword [esp + 0x308]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
push 0
mov dword [esp + 0x34], ecx
mov ecx, dword [eax]
push 0x40b
push ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004af00b
add esp, 0x2e0
ret 0x20
Function at 0x407720
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x4d8620]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
mov ebx, dword [esp + 0x2e0]
push esi
mov esi, ecx
cmp dword [esi + 4], 0
push edi
mov edi, dword [esp + 0x2e4]
jne 0x40775a
push str.comctl32.dll
call fcn.00489d40
mov dword [esi + 4], eax
mov eax, dword [esi]
test eax, eax
je 0x407767
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
mov dword [esi + 8], 0xffffffff
mov eax, dword [0x5138fc]
push eax
push ebx
push edi
push 0xdc
push 0x3c
push 0
push 0
push 0x44200046
push 0
push str.ComboBoxEx32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
mov dword [esi], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x40780b
mov eax, dword [esp + 0x10]
push 0x4209
push 0x2b4
lea edx, [esp + 0x1c]
push edx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [esi]
push eax
push 0
push 0x402
push ecx
call edi
mov eax, dword [0x5662e4]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov ecx, dword [esp + 0x18]
push 0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x2c]
push eax
push ecx
push 0
push 1
mov edx, eax
push edx
mov ecx, esi
call fcn.00406a60
mov eax, dword [esi]
push 0
push 4
push 0x408
push eax
call edi
mov ecx, dword [esi]
push 0
push 0
push 0x407
push ecx
call edi
test eax, eax
je 0x407831
push eax
call fcn.0048b220
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x40785a
push eax
push eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.00406f00
test al, al
jne 0x4078b8
push ebp
call fcn.0048a080
mov ebp, eax
xor edi, edi
mov ebx, 1
lea esp, [esp]
test ebp, ebx
je 0x4078af
lea ecx, [edi + 0x41]
push ecx
lea edx, [esp + 0x2d0]
push 0x4c5878
push edx
mov edx, 0xa
call fcn.004a5f50
add esp, 0xc
push 1
push 0xffffffffffffffff
push 2
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [esp + 0x2e8]
push eax
mov ecx, esi
call fcn.00406a60
inc edi
rol ebx, 1
cmp edi, 0x20
jl 0x407870
pop ebp
mov ecx, esi
call fcn.00407480
mov ecx, dword [esp + 0x2dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004af00b
add esp, 0x2d4
ret 8