joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50d670
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x50d6b9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x50db30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x545810
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0050d6e0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0050d760
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0050d760
lea ecx, [esi + 0xc]
call fcn.00535bb6
lea ecx, [esi + 0x10]
call fcn.00535bb6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0050ecf0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0050ecf0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0050ecf0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00535c2b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00535c2b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5109a7
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x545c76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x14]
call fcn.0053487c
mov eax, dword [0x71c2ec]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x48], eax
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp ebx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x6f414c
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
je 0x510a04
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.0053596c
add esp, 4
mov dword [esi + 4], eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x51aa50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x78], ebp
je 0x51ac0d
push ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x90]
cmp eax, ebp
je 0x51ab86
mov ecx, dword [esi + 0x94]
sub ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 4
cmp eax, ecx
jae 0x51ab86
xor ebx, ebx
mov edx, dword [esi + 0x90]
mov eax, dword [esp + 0x10]
add eax, edx
mov ecx, dword [eax + 4]
cmp ecx, ebp
je 0x51ab6d
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x51ab6d
mov eax, ecx
mov ecx, esi
mov edi, dword [eax + ebx*4]
push edi
call fcn.0051bcc0
mov ebp, eax
test ebp, ebp
je 0x51ab65
push ebp
mov ecx, esi
call fcn.0051c5b0
test eax, eax
je 0x51ab65
mov edx, dword [esi + 0x74]
cmp edi, edx
je 0x51ab65
mov eax, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
sete cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x90]
add eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x51ab26
xor eax, eax
jmp 0x51ab2e
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
dec eax
xor ecx, ecx
cmp ebx, eax
lea eax, [edi + 1]
sete cl
mov dword [esp + 0x28], ecx
xor ecx, ecx
cmp eax, edx
sete cl
dec edi
mov dword [esp + 0x30], ecx
xor eax, eax
cmp edi, edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
sete al
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x3c], eax
call fcn.0051ccb0
inc ebx
xor ebp, ebp
jmp 0x51aab7
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
add eax, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x51aa90
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
call fcn.0051bfb0
test eax, eax
pop ebx
je 0x51ac0d
mov ecx, dword [esi + 0x74]
push ecx
mov ecx, esi
call fcn.0051bcc0
mov edi, eax
cmp edi, ebp
je 0x51ac0d
push edi
mov ecx, esi
call fcn.0051c5b0
test eax, eax
je 0x51ac0d
mov eax, 1
lea edx, [esi + 0x1f8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], edx
call fcn.0051c1b0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
push ecx
mov ecx, esi
call fcn.0051c220
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push eax
call fcn.0051ccb0
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4
Function at 0x521c30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x546aa7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.00534438
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.00534438
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.00522750
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x5227a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x546b80
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0053fc08
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x5227d3
xor al, al
jmp 0x5228ff
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x5227f5
xor al, al
jmp 0x5228ff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x522808
xor al, al
jmp 0x5228ff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x52281c
xor al, al
jmp 0x5228ff
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.005344e8
test eax, eax
jne 0x522850
xor al, al
jmp 0x5228ff
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x6f4e04
mov dword [esp + 0x20], ebp
call fcn.0053fc08
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.0053ca17
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.0053ca6e
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x5228e4
mov ax, word [ebx]
test ax, ax
je 0x5228d6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00522920
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x5228ba
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.0053ca6e
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x53800b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x538043
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00536086
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0053605e
jmp 0x53804f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x5397d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x539813
call fcn.0053fc08
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x539813
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x53980a
xor eax, eax
jmp 0x53981b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00539821
pop edi
pop esi
pop ebx
ret 4

Function at 0x540138
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x540166
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x540184
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0054009e
jmp 0x540184
mov eax, dword [esi + 0x14]
test eax, eax
je 0x540184
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0054009e
test edi, edi
mov eax, edi
jne 0x54016e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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 0x527700
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xca000]
mov dword [edi + 0xcf740], 0xc040cd37
push edi
jmp 0x52772a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x527731
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x527720
mov eax, 1
add ebx, ebx
jne 0x527743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x527754
jne 0x527773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x527773
dec eax
add ebx, ebx
jne 0x527760
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x527738
add ebx, ebx
jne 0x52776f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5277c5
xor ecx, ecx
sub eax, 3
jb 0x52778b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5277fa
sar eax, 1
mov ebp, eax
jmp 0x527796
add ebx, ebx
jne 0x527796
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x527764
inc ecx
add ebx, ebx
jne 0x5277a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x527764
add ebx, ebx
jne 0x5277b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5277a6
jne 0x5277c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5277a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5277e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5277d6
jmp 0x527726
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5277e4
add edi, ecx
jmp 0x527726
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x527802
cmp byte [edi], 0x11
jne 0x527802
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 0x527807
lea edi, [esi + 0x120000]
mov eax, dword [edi]
or eax, eax
je 0x52787f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1698cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x169a48]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x527834
mov ecx, edi
jns 0x527863
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 + 0x169a4c]
or eax, eax
je 0x527879
mov dword [ebx], eax
add ebx, 4
jmp 0x527851
call dword [esi + 0x169a5c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5278b0
cmp al, 0xef
ja 0x5278a3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x527885
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x527892
mov ebp, dword [esi + 0x169a50]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x5278e4
sub esp, 0xffffff80
jmp 0x420577
Function at 0xfa5ed0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x865000]
push edi
or ebp, 0xffffffff
jmp 0xfa5ef2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xfa5ef9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfa5ee8
mov eax, 1
add ebx, ebx
jne 0xfa5f0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xfa5f1c
jne 0xfa5f3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfa5f3b
dec eax
add ebx, ebx
jne 0xfa5f28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xfa5f00
add ebx, ebx
jne 0xfa5f37
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xfa5f8d
xor ecx, ecx
sub eax, 3
jb 0xfa5f53
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xfa5fc2
sar eax, 1
mov ebp, eax
jmp 0xfa5f5e
add ebx, ebx
jne 0xfa5f5e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfa5f2c
inc ecx
add ebx, ebx
jne 0xfa5f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfa5f2c
add ebx, ebx
jne 0xfa5f79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xfa5f6e
jne 0xfa5f8a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xfa5f6e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xfa5fac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xfa5f9e
jmp 0xfa5eee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xfa5fac
add edi, ecx
jmp 0xfa5eee
pop esi
mov edi, esi
mov ecx, 0x97d5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xfa5fca
cmp byte [edi], 0x86
jne 0xfa5fca
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 0xfa5fcf
lea edi, [esi + 0xba1000]
mov eax, dword [edi]
or eax, eax
je 0xfa603e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbb53cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbb54e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xfa5ffc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xbb54f0]
or eax, eax
je 0xfa6038
mov dword [ebx], eax
add ebx, 4
jmp 0xfa6019
call dword [esi + 0xbb54ec]
mov ebp, dword [esi + 0xbb54f4]
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 0xfa6072
sub esp, 0xffffff80
jmp 0x5f9660
Function at 0x401a30
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f8a2
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x56a5dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x21c], edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov dword [ebp - 0x220], esi
mov word [esi], ax
push 0x206
lea edx, [ebp - 0x216]
mov dword [ebp - 4], edi
xor ecx, ecx
push edi
push edx
mov dword [ebp - 0x21c], 1
mov word [ebp - 0x218], cx
call fcn.004fd040
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004fd040
add esp, 0xc
push edi
push 0x23
lea ecx, [ebp - 0x218]
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401ad6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
call fcn.00401fb0
push 0xf
mov eax, str.Foxit_Software
mov ecx, esi
call fcn.00401ce0
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x401b0d
mov eax, dword [esi]
jmp 0x401b0f
mov eax, esi
push eax
call fcn.00406280
add esp, 4
test eax, eax
jne 0x401b2c
cmp dword [esi + 0x14], edi
jb 0x401b25
mov ecx, dword [esi]
jmp 0x401b27
mov ecx, esi
call fcn.00406350
push 0xe
mov eax, str.Foxit_Reader_
mov ecx, esi
call fcn.00401ce0
cmp dword [esi + 0x14], edi
jb 0x401b43
mov eax, dword [esi]
jmp 0x401b45
mov eax, esi
push eax
call fcn.00406280
add esp, 4
test eax, eax
jne 0x401b62
cmp dword [esi + 0x14], edi
jb 0x401b5b
mov ecx, dword [esi]
jmp 0x401b5d
mov ecx, esi
call fcn.00406350
push 0x11
mov eax, str.FoxitConnectPDF_
mov ecx, esi
call fcn.00401ce0
cmp dword [esi + 0x14], edi
jb 0x401b79
mov eax, dword [esi]
jmp 0x401b7b
mov eax, esi
push eax
call fcn.00406280
add esp, 4
test eax, eax
jne 0x401b98
cmp dword [esi + 0x14], edi
jb 0x401b91
mov ecx, dword [esi]
jmp 0x401b93
mov ecx, esi
call fcn.00406350
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fa0b9
mov esp, ebp
pop ebp
ret
Function at 0x402280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51fbe8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x56a5dc]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push esi
mov eax, dword [0x56a5dc]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
lea eax, [esp + 0x38]
push eax
call fcn.004019a0
add esp, 4
lea ecx, [esp + 0x54]
push ecx
lea ebx, [esp + 0x3c]
mov dword [esp + 0x84], 0
call fcn.00401f00
mov esi, 8
add esp, 4
cmp dword [eax + 0x14], esi
jb 0x4022eb
mov eax, dword [eax]
push eax
call fcn.00406550
add esp, 4
test eax, eax
sete bl
cmp dword [esp + 0x68], esi
jb 0x40230c
mov edx, dword [esp + 0x54]
push edx
call fcn.00406b3b
add esp, 4
test bl, bl
je 0x40232a
cmp dword [esp + 0x4c], esi
jb 0x402323
mov eax, dword [esp + 0x38]
push eax
call fcn.00406b3b
add esp, 4
xor eax, eax
jmp 0x402466
push 0xe
mov eax, 0x54b880
lea ecx, [esp + 0x3c]
call fcn.00401ce0
lea ecx, [esp + 0x38]
push ecx
lea ebx, [esp + 0x10]
call fcn.00406610
mov eax, dword [esp + 0x10]
mov ebx, 0x10
add esp, 4
cmp dword [esp + 0x20], ebx
jae 0x40235e
lea eax, [esp + 0xc]
push 0x54b8f0
push eax
call fcn.004fab7b
mov esi, eax
add esp, 8
test esi, esi
jne 0x4023b5
cmp dword [esp + 0x20], ebx
jb 0x402385
mov edx, dword [esp + 0xc]
push edx
call fcn.00406b3b
add esp, 4
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
jb 0x402323
mov eax, dword [esp + 0x38]
push eax
call fcn.00406b3b
add esp, 4
xor eax, eax
jmp 0x402466
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x36]
movzx eax, word [esp + 0x34]
movzx ecx, word [esp + 0x32]
push edx
movzx edx, word [esp + 0x34]
push eax
movzx eax, word [esp + 0x36]
push ecx
movzx ecx, word [esp + 0x36]
push edx
movzx edx, word [esp + 0x38]
push eax
push ecx
push edx
push str.__d__d__d__02u:_02u:_02u:_d_
push esi
call fcn.004fab92
mov ecx, dword [ebp + 8]
add esp, 0x24
lea eax, [ebp + 0xc]
push eax
push ecx
push esi
call fcn.004fada9
add esp, 0xc
push 0x54b914
push 0x54b918
push esi
mov ebx, eax
call fcn.004fab92
add esp, 0xc
push esi
call fcn.004faa4b
add esp, 4
cmp dword [esp + 0x20], 0x10
jb 0x40243b
mov edx, dword [esp + 0xc]
push edx
call fcn.00406b3b
add esp, 4
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
jb 0x402464
mov eax, dword [esp + 0x38]
push eax
call fcn.00406b3b
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004fa0b9
mov esp, ebp
pop ebp
ret