joyce8/EMBER2024-capa huggingface dataset:
Function at 0xac5d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xac5d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xac5d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xac5d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xac5d94
push eax
push esi
call fcn.00ac820b
add esp, 8
pop esi
ret 0x10

Function at 0xac5da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xac5e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xac5e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xade320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00ac7dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xac5dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xac5e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xac5ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xac5eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xade320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00ac7dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xac5eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xac5e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xac6000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xac6131
push esi
call fcn.00ac9145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00ab8080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xac6131
push 0
push ebp
call fcn.00ab83a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00ab8260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xac608b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00ab82f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xac6121
push 0xade918
push edi
call fcn.00ac73f0
push eax
push ebx
push esi
call fcn.00ac5f60
push 0xade8f8
push edi
call fcn.00ac73f0
push eax
push ebx
push esi
call fcn.00ac5f60
push 0xade8d8
push edi
call fcn.00ac73f0
push eax
push ebx
push esi
call fcn.00ac5f60
push 0xade8c0
push edi
call fcn.00ac73f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00ac5f60
push 0xade8a0
push edi
call fcn.00ac73f0
push eax
push ebx
push esi
call fcn.00ac5f60
push 0xade888
push edi
call fcn.00ac73f0
push eax
push ebx
push esi
call fcn.00ac5f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xac71b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00ac7140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ac7140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ac7140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ac7140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xac7bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xac7c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xad987c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xac7c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xac7c52
xor eax, eax
pop esi
leave
ret 4
Function at 0xdb1f94
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdb1f9e
pushal
call 0xdb1fa4
pop ebp
sub ebp, 0x10
sub ebp, 0x9b1f94
jmp 0xdb1fba
mov eax, 0x9b1f94
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d1
mov edx, 0xef360db2
xor byte [eax], dl
inc eax
dec ecx
jne 0xdb1fd1
jmp 0xdb1fe4
cmp dword [edi + 0x39], edi
cmp ecx, dword [esi + 0x33b2b2b2]
jae 0xdb2039
mov dl, 0xb2
mov dl, 0xb1
jg 0xdb1fff
mov edx, 0x8b2b2b2
lcall 0xb150, 0x45b2b2b2
jp 0xdb203c
push eax
mov cl, 0x7a
cmp dword [ebx], esi
mov esi, 0xb1b2b2b2
xor edi, dword [esi - 0x4e4d4d4e]
ja 0xdb204a
salc
xchg esi, eax
dec esi
cmp esi, dword [esi - 0x59251d6a]
cdq
xchg ebx, eax
mov dl, 0xda
xor al, byte [esi - 0x35]
mov dl, 0xb3
sahf
xchg esi, eax
fimul dword [ebx + 0x5a697a81]
mov bh, 0xb2
mov dl, 0xb2
pop ebx
xor byte [edx + 0x3fe7b2b2], 0xde
xchg esi, eax
mov dl, 0x39
aaa
mov edx, 0x39b2b2b2
daa
cmp dword [edi], esp
mov esi, 0x39b2b2b2
mov dl, 0xb2
mov dl, 0x39
aas
mov byte [0x73b2b2b2], al
pop ebx
mov al, 0x83
mov al, 0x31
jo 0xdb2003
xor dword [eax - 0x4a], esi
sti
mov ebp, 0x4d4d4637
dec ebp
cmp dword [esi - 0x6929c06a], ebx
mov dh, 0x70
mov esi, 0x963e39b2
mov dh, 0xb2
mov dl, 0xb2
fisub dword [esi - 0x254d6c67]
xor al, byte [esi - 0x35]
mov dl, 0xb3
sahf
xchg esi, eax
jecxz 0xdb20ce
mov bh, 0xb2
mov dl, 0xb2
pop ebx
in eax, 0xb0
mov dl, 0xb2
aas
salc
xchg esi, eax
dec esi
cmp ebx, dword [esi + 0x4d5e3996]
invalid
pop edx
mov bh, 0xfa
mov ebp, 0xb2b2fc36
mov dl, 0xbd
cmp bh, dl
mov dl, 0xb2
mov dl, 0xd4
cmp dword [esi + 0x5a49328b], ebp
mov ebp, 0xb2b2a836
mov dl, 0x32
dec ecx
pop ebx
mov dl, 0xb2
xor cl, byte [ecx + 0x5b]
mov ebp, 0xb2b2a336
mov dl, 0xd4
xor ecx, dword [ecx + 0x4d]
xchg edi, eax
mov ebp, 0xb2b2a736
mov dl, 0xf3
pop ebx
jle 0xdb2135
dec ebp
dec ebp
wait
dec byte [ebx - 0x488cce4d]
xor dword [edx - 0x4a], ebx
pop ebx
cmovge ecx, dword [ebp + 0x4d]
wait
out 0x8b, al
mov al, 0x31
jae 0xdb20b4
xor dword [eax - 0x4a], ebx
xor dword [edx - 0x49], ebx
pop ebx
sbb dword [ebp + 0x4d], ecx
dec ebp
cmp dword [esi - 0x6929c06a], ebx
mov dh, 0x70
mov esi, 0x5e39e7b2
in al, 0xe5
out 0x39, eax
invalid
mov al, 0xb2
mov dl, 0xb2
mov al, 0x60
mov ebp, 0xb2b2b737
mov dl, 0x38
movsb byte es:[edi], byte [esi]
hlt
Function at 0x1194690
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push 0x40
push 0
push esi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x11946af
mov eax, 1
pop ebx
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x119475b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x119475b
push edi
push ebx
push 0xf8
push eax
lea edi, [esi + 0x40]
push edi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x11946e7
pop edi
mov eax, 1
pop ebx
pop ebp
ret
cmp dword [edi], 0x4550
jne 0x1194752
mov ecx, 0x10b
cmp word [esi + 0x58], cx
jne 0x1194752
movzx eax, word [esi + 0x46]
test ax, ax
je 0x1194752
lea edi, [eax + eax*4]
add edi, edi
add edi, edi
add edi, edi
push edi
mov dword [esi + 0x140], edi
call fcn.011bc748
add esp, 4
mov dword [esi + 0x138], eax
test eax, eax
jne 0x119472e
pop edi
mov eax, 3
pop ebx
pop ebp
ret
movzx edx, word [esi + 0x54]
mov ecx, dword [esi + 0x3c]
push ebx
lea ecx, [edx + ecx + 0x18]
push edi
push ecx
push eax
mov dword [esi + 0x13c], ecx
call dword [ebp + 8]
add esp, 0x10
neg eax
sbb eax, eax
pop edi
inc eax
pop ebx
pop ebp
ret
pop edi
mov eax, 2
pop ebx
pop ebp
ret
mov eax, 2
pop ebx
pop ebp
ret
Function at 0x1196780
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x119678e
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x119686d
mov esi, edx
shr esi, 3
push edi
jmp 0x11967b0
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445038]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445038]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445038]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445038]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445038]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445038]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445038]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445038]
add ecx, 8
sub edx, 8
dec esi
jne 0x11967b0
pop edi
test edx, edx
je 0x119688a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x445038]
inc ecx
dec edx
jne 0x1196871
not eax
pop esi
pop ebp
ret

Function at 0x1196890
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x445038]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x445038]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x11968e0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
mov al, byte [ebp + 0xc]
shr edx, 8
xor al, dl
mov edx, dword [esi]
push edi
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x445038]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x445038]
pop edi
mov dword [esi + 8], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x407227
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], edi
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
call fcn.0040716b
mov ebx, dword [ebp - 0x14]
mov eax, dword [esi + 8]
add ebx, 0x23f
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], eax
pop edi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov esi, dword [ebp - 8]
mov eax, esi
mov ecx, dword [0x72f834]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4072b2
push 0x401128
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0x72f834]
mov edx, dword [ebp - 0x1c]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x72f878]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x72f878], eax
mov eax, dword [0x72f880]
cmove eax, dword [ebp - 0x24]
mov dword [0x72f880], eax
lea eax, [ebx + esi]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x72f87c], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x1c]
sub edx, eax
mov dword [ebp - 0x10], eax
mov eax, edx
mov dword [ebp - 0x1c], edx
shl eax, 4
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add ebx, 0x61c88647
mov dword [ebp - 0x14], ebx
dec edi
jne 0x407277
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407391
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x4073cd
cmp dword [0x72f834], 0x959
jne 0x4073bd
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.00407227
add edi, 8
dec esi
jne 0x4073a1
pop edi
pop esi
pop ebp
ret 4
Function at 0x4103ef
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x450e10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a603
mov dword [ebp - 0x14], eax
cmp dword [0x730614], esi
jne 0x4104e2
push 0x800
push esi
push 0x40512c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41046f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4105c2
push esi
push esi
push 0x40512c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4105c2
push 0x405144
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4105c2
push eax
call ebx
push 0x405150
push edi
mov dword [0x730614], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405160
push edi
mov dword [0x730618], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405174
push edi
mov dword [0x73061c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x730624], eax
test eax, eax
je 0x4104df
push 0x405190
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x730620], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x410507
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4104fa
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41051c
push 4
pop eax
jmp 0x4105c4
cmp dword [ebp - 0x14], esi
je 0x41051c
push dword [0x730614]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410501
mov eax, dword [0x730620]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41057a
cmp dword [0x730624], edi
je 0x41057a
push eax
call ebx
push dword [0x730624]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41057a
test eax, eax
je 0x41057a
call ecx
test eax, eax
je 0x41056f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41056f
test byte [ebp - 8], 1
jne 0x41057a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4105aa
mov eax, dword [0x730618]
cmp eax, edi
je 0x4105a7
push eax
call ebx
test eax, eax
je 0x4105a7
call eax
mov esi, eax
test esi, esi
je 0x4105a7
mov eax, dword [0x73061c]
cmp eax, edi
je 0x4105a7
push eax
call ebx
test eax, eax
je 0x4105a7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x730614]
call ebx
test eax, eax
je 0x4105c2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4105c4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409c3e
mov esp, ebp
pop ebp
ret
Function at 0x4979e2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x497a21
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x497a21
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x497a21
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x497a21
cmp dword [ecx + 0x74], 0xe
jbe 0x497a21
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x49d444
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x49d4e1
push ebx
push esi
call fcn.0049d40d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0049d3a1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x49d48e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x49d4e0
push edi
push eax
call fcn.0049e061
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x49d4ae
call fcn.0049bf01
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x49d4df
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0049d3a1
add esp, 0x20
test eax, eax
jne 0x49d4cd
push edi
call fcn.0049bf01
jmp 0x49d4d5
push ebx
call fcn.0049bf01
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x49e7de
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x52a4c0
push 0x52a4b8
push str.FlsAlloc
push 0x1f
call fcn.0049e69d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x49e812
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a5134]
call esi
jmp 0x49e818
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x49e85c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x52a4d0
push 0x52a4c8
push str.FlsGetValue
push 0x21
call fcn.0049e69d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x49e893
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a5134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x49e89b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x52a4d8
push 0x52a4d0
push str.FlsSetValue
push 0x22
call fcn.0049e69d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x49e8d5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4a5134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4a3d30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a3d5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a3d5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4027b0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575ff2
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x628f58]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x224], esi
mov word [esi], ax
push 0x208
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 1
push eax
call fcn.00551420
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402845
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402df0
push str.Foxit_Software
mov ecx, esi
call fcn.00402930
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x402879
mov ecx, dword [esi]
call fcn.00410d20
test eax, eax
jne 0x402891
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x40288c
mov ecx, dword [esi]
call fcn.00410df0
push str.Foxit_PDF_Reader_
mov ecx, esi
call fcn.00402930
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4028a7
mov ecx, dword [esi]
call fcn.00410d20
test eax, eax
jne 0x4028bf
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4028ba
mov ecx, dword [esi]
call fcn.00410df0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054b34c
mov esp, ebp
pop ebp
ret