joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425970
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov eax, dword [0x42daf8]
sub dword [ebx + 8], eax
mov eax, dword [0x42daf4]
sub dword [ebx], eax
mov esi, 0x14
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [ebx + 0xc], edx
mov edx, dword [ebx + 4]
mov dword [ebx + 8], edx
mov edx, dword [ebx]
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov eax, dword [ebx + 0xc]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.00425728
mov ebp, eax
mov eax, dword [ebx + 4]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.00425728
mov edi, eax
mov eax, dword [ebx + 8]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x42da50]
mov edx, edi
call fcn.00425730
xor eax, ebp
mov dword [ebx + 8], eax
mov eax, dword [ebx]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x42da4c]
mov edx, ebp
call fcn.00425730
xor edi, eax
mov dword [ebx], edi
dec esi
test esi, esi
jne 0x42598a
mov eax, dword [0x42da50]
sub dword [ebx + 0xc], eax
mov eax, dword [0x42da4c]
sub dword [ebx + 4], eax
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4026f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53bcaa
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x58f070]
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
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.0050b79c
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4027b0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0050eca5
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x58c79c
push eax
call fcn.005105d5
push edi
push esi
call fcn.0050bae4
add esp, 8
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.0050ce8d
mov esp, ebp
pop ebp
ret 4

Function at 0x40a7f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53bdd6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x58f070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0050d2f7
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0050b9e1
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x419bb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x419bc9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x419c06
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x419c02
nop word [eax + eax]
cmp esi, edx
jae 0x419c06
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x419bf0
cmp esi, edx
jb 0x419c0d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x420340
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
cmp eax, 0x206
je 0x42041c
cmp eax, 0x204
je 0x42041c
cmp eax, 0x205
je 0x42041c
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx + 0x5c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x420411
mov eax, dword [esi + 4]
cmp eax, 0x100
jb 0x420391
cmp eax, 0x109
jbe 0x42039f
cmp eax, 0x200
jb 0x420411
cmp eax, 0x20e
ja 0x420411
cmp eax, 0x100
jne 0x4203e7
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je case.0x4203d2.67
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne case.0x4203d2.67
mov eax, dword [esi + 8]
add eax, 0xffffffbd
cmp eax, 0x33
ja case.0x4203d2.68
movzx eax, byte [eax + 0x420430]
jmp dword [eax*4 + 0x420428]
cmp dword [esi + 8], 0x74
jne 0x4203f5
pop ebx
xor eax, eax
pop esi
pop ebp
ret 8
cmp eax, 0x20a
jne 0x4203f5
cmp word [esi + 8], 8
je case.0x4203d2.68
push esi
push 0
push 0x37f
push dword [ebx + 0x5c]
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
pop ebx
sbb eax, eax
inc eax
pop esi
pop ebp
ret 8
pop ebx
mov eax, 1
pop esi
pop ebp
ret 8
mov eax, 1
pop esi
pop ebp
ret 8

Function at 0x420470
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, fcn.0042a940
push esi
mov esi, dword [ebp + 8]
test eax, eax
je 0x4204c7
mov ecx, dword [esi + 0x8c]
cmp ecx, 1
jne 0x420492
mov eax, str.BrowserHostIMS
jmp 0x4204a2
cmp ecx, 2
mov eax, str.BrowserHostIMSType3
mov edx, str.BrowserHostMain
cmovne eax, edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.EvaluateNewWindow_for_url:__s_name:__s
push 0x55c340
push 0x55c340
push eax
push str.Bootstrapper
push 0xa
call fcn.0042a940
add esp, 0x20
test dword [ebp + 0x20], 0x40030
jne 0x4204f4
push 1
push 0
push 0
push dword [ebp + 0xc]
push str.open
push dword [esi + 0x88]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
pop esi
pop ebp
ret 0x20
mov eax, 0x80004005
pop esi
pop ebp
ret 0x20
Function at 0x427640
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x58f070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x26
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4276ee
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
lea eax, [ebp - 0x20c]
push 0x55c330
push eax
call fcn.00523e14
add esp, 0xc
test eax, eax
je 0x4276ee
cmp word [ebp - 0x20c], 0
jne 0x4276a8
xor ecx, ecx
jmp 0x4276c0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4276b1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00412ae0
push 1
push 0x55c330
mov ecx, esi
call fcn.00412be0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
Function at 0x4278b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x58f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
cmp dword [edi + 0x10], eax
sete al
test al, al
je 0x427907
mov bl, 1
jmp 0x427a95
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.00427470
test al, al
jne 0x42792a
push 1
push str.74310
mov ecx, esi
call fcn.00412ae0
xor bl, bl
jmp 0x427a95
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
cmp eax, 3
je 0x427992
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x427954
mov eax, dword [esi]
jmp 0x427956
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp dword [edi + 0x14], 8
jb 0x427963
mov edi, dword [edi]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
mov ecx, esi
test eax, eax
je 0x427981
push 0x55fd48
call fcn.004127f0
xor bl, bl
jmp 0x427a95
push 0x55fd4c
call fcn.004127f0
xor bl, bl
jmp 0x427a95
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 2
cmp dword [edi + 0x14], 8
jb 0x4279c2
mov edx, dword [edi]
jmp 0x4279c4
mov edx, edi
lea eax, [ebp - 0x58]
push eax
call fcn.00427570
add esp, 4
test eax, eax
js 0x427a1d
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00427470
test al, al
je 0x427a1d
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
cmp eax, 3
je 0x427a1d
mov ecx, esi
call fcn.00413f40
push 0x55fd48
mov ecx, esi
call fcn.004127f0
lea ecx, [ebp - 0x40]
call fcn.00412890
lea ecx, [ebp - 0x58]
call fcn.00412890
xor bl, bl
jmp 0x427a95
lea ecx, [ebp - 0x40]
call fcn.00412890
lea ecx, [ebp - 0x58]
call fcn.00412890
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00427640
test al, al
jne 0x427a58
push str.74310
jmp 0x427a84
mov edx, edi
lea ecx, [ebp - 0x70]
call fcn.00414380
test al, al
jne 0x427a78
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00414380
test al, al
jne 0x427a78
mov bl, 1
jmp 0x427a8d
mov ecx, esi
call fcn.00413f40
push 0x55fd50
mov ecx, esi
call fcn.004127f0
xor bl, bl
lea ecx, [ebp - 0x70]
call fcn.00412890
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x427aaa
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004132e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
Function at 0x42dca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53efe8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x58f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x42ddce
cmp byte [ebx + 0x3d], 0
je 0x42ddce
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x42dcf9
xor al, al
jmp 0x42ddd0
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004084b0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x42dd5f
sub eax, 1
je 0x42dd63
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x42ddb6
xor bl, bl
jmp 0x42ddb8
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x42dd98
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.005244eb
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x42dd5b
cmp byte [ebx + 0x3d], 0
je 0x42ddb6
test esi, esi
jne 0x42dd21
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004087b0
jmp 0x42dd1e
mov bl, 1
cmp ecx, 0x10
jb 0x42ddca
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00408d20
mov al, bl
jmp 0x42ddd0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
Function at 0x432680
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f5f0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x58f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
mov bl, 1
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x432700
mov eax, fcn.0042a940
test eax, eax
je 0x432792
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push str.File_at:__s_could_not_be_located.
jmp 0x432774
push 0
push 0x55c340
lea ecx, [ebp - 0x28]
call fcn.00412ae0
lea edx, [ebp - 0x28]
lea ecx, [ebp + 8]
call fcn.004ec700
cmp dword [ebp - 0x18], 0
ja 0x43274e
mov eax, fcn.0042a940
test eax, eax
je 0x432792
push str.Certificate_could_not_be_located.
push 0x55c340
push 0x55c340
push str.Main
push str.Bootstrapper
push 0x1e
call fcn.0042a940
add esp, 0x18
jmp 0x432792
lea ecx, [ebp - 0x28]
call fcn.004e7330
test al, al
jne 0x432794
mov eax, fcn.0042a940
test eax, eax
je 0x432792
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.Certificate_at__s_could_not_be_verified.
push 0x55c340
push 0x55c340
push str.Main
push str.Bootstrapper
push 0x1e
call fcn.0042a940
add esp, 0x1c
xor bl, bl
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4327a9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004132e0
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x4327d2
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.004132e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
Function at 0x442c20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541676
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x58f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
push ecx
lea edx, [ebp - 0x40]
mov dword [ebp - 4], eax
lea ecx, [eax + 0x1c]
call fcn.004e0260
add esp, 4
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
push 0x1d
push str.AdobePIIcom.adobe.pii.prefs
call fcn.00412ae0
push ecx
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004e0b60
mov byte [ebp - 4], 0
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x442cbf
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004132e0
xor bl, bl
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x442dda
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
setne al
test al, al
je 0x442d09
sub esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004e85a0
add esp, 0xc
jmp 0x442dda
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1c]
call fcn.004dc770
test al, al
je 0x442dab
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
push str._prefs_property__keypiiNoticeShown_
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.00412950
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004dfaf0
lea ecx, [ebp - 0x70]
call fcn.00412890
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
push 0x566788
call fcn.00522136
add esp, 8
movzx ebx, bl
test eax, eax
mov ecx, 1
cmove ebx, ecx
lea ecx, [ebp - 0x58]
call fcn.00405ea0
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x442dc4
mov ecx, esi
xor esi, esi
test ecx, ecx
je 0x442dc4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp byte [ebp - 0x14], 0
je 0x442dd0
call dword [sym.imp.ole32.dll_CoUninitialize]
test esi, esi
je 0x442dda
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x442def
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.004132e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret
Function at 0x44bbc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
add ecx, 0x4c
mov word [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ecx + 0x14], 8
jb 0x44bbde
mov ecx, dword [ecx]
push str.rb__ccsUTF_8
push ecx
lea eax, [ebp - 8]
push eax
call fcn.005228b3
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x44bc37
push eax
push 2
lea eax, [ebp - 4]
push 1
push eax
call fcn.00526489
push dword [ebp - 8]
call fcn.0052297b
mov cl, byte [ebp - 4]
add esp, 0x14
mov al, byte [ebp - 3]
cmp cl, 0xff
jne 0x44bc1f
cmp al, 0xfe
je 0x44bc28
cmp al, 0xff
jne 0x44bc31
cmp cl, 0xfe
jne 0x44bc31
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x44bc40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 1
jne 0x44bc7a
call fcn.0044bbc0
test al, al
jne 0x44bc7a
mov eax, dword [ebx]
test eax, eax
je 0x44bc73
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov ecx, edi
call fcn.0044cbb0
cmp dword [edi + 0x60], 8
lea esi, [edi + 0x4c]
jb 0x44bc87
mov eax, dword [esi]
jmp 0x44bc89
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x44bd21
cmp dword [esi + 0x14], 8
jb 0x44bcb1
mov esi, dword [esi]
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x44bcdc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x8c], 1
lea ecx, [ebp - 8]
push 0
push ecx
jne 0x44bd0a
push 2
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0xfeff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push 3
lea ecx, [ebp - 4]
mov word [ebp - 4], 0xbbef
push ecx
push eax
mov byte [ebp - 2], 0xbf
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44bd30
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5429e6
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x58f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44bdf4
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.00412950
xor bl, bl
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
push 0
cmovae eax, dword [ebp - 0x260]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x44bdc9
cmp eax, 0xb7
je 0x44bdc9
cmp eax, 0x50
jne 0x44bdcb
mov bl, 1
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x44bde9
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.004132e0
test bl, bl
jne 0x44bdf4
xor al, al
jmp 0x44bf12
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x44be1e
xor ecx, ecx
jmp 0x44be36
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44be27
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00412ae0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [esi], ax
jne 0x44be76
xor ecx, ecx
jmp 0x44be8f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44be80
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x248]
call fcn.00412ae0
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00453e30
mov byte [ebp - 4], 0
mov bl, al
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x44bed5
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.004132e0
test bl, bl
je 0x44bef2
lea ecx, [edi + 0x4c]
lea eax, [ebp - 0x230]
cmp ecx, eax
je 0x44bef0
push 0xffffffffffffffff
push 0
push eax
call fcn.00412e90
mov bl, 1
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x44bf10
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.004132e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret 4
Function at 0x44c120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44c130
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
add esi, esi
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
push 0x568f88
push dword [ebx + 0x68]
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x44c190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x44c1a0
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 2
push 0x568f90
push dword [ebx + 0x68]
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4