joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Inspect load icon resource

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 0x28
or ecx, 0xffffffff
xor eax, eax
push edi
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 4
jbe 0x401020
mov dword [0x408030], edx
lea eax, [esp]
push esi
push eax
push 0x8002
push 0
call dword [sym.imp.USER32.dll_GetClassInfoA]
mov ecx, dword [sym.imp.USER32.dll_DefDlgProcA]
push 0x68
mov esi, dword [esp + 0x34]
mov dword [esp + 0x2c], 0x408034
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], ecx
call dword [sym.imp.USER32.dll_LoadIconA]
lea edx, [esp + 4]
mov dword [esp + 0x10], 0x1e
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x401084
push 0
push 0x401090
push 0
push 0x65
push esi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
xor eax, eax
pop esi
add esp, 0x28
ret 0x10
Function at 0x4042f9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408690
cmp edx, dword [eax]
je 0x40431b
add eax, 8
inc ecx
cmp eax, 0x408720
jl 0x40430c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408690]
jne 0x404449
mov eax, dword [0x408bdc]
cmp eax, 1
je 0x404423
test eax, eax
jne 0x40434c
cmp dword [0x408258], 1
je 0x404423
cmp edx, 0xfc
je 0x404449
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404383
lea eax, [ebp - 0x1a4]
push 0x4074a8
push eax
call fcn.00405680
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404570
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4043c6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404570
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4074a4
push edi
call fcn.00405b30
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x407488
push eax
call fcn.00405680
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405690
lea eax, [ebp - 0xa0]
push 0x407484
push eax
call fcn.00405690
push dword [esi + 0x408694]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405690
push 0x12010
lea eax, [ebp - 0xa0]
push 0x40745c
push eax
call fcn.00405aa5
add esp, 0x2c
pop edi
jmp 0x404449
lea eax, [ebp + 8]
lea esi, [esi + 0x408694]
push 0
push eax
push dword [esi]
call fcn.00404570
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x404612
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x404654
cdq
push esi
push edi
mov esi, eax
add eax, dword [ebp + 0xc]
mov edi, edx
mov ecx, edi
push edi
adc ecx, dword [ebp + 0x10]
sub eax, 1
push esi
sbb ecx, 0
push ecx
push eax
call fcn.00464740
push edi
push esi
push edx
push eax
call fcn.00464700
pop edi
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
pop esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00404552
add esp, 0xc
test eax, eax
jne 0x40467d
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x404684
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x10], eax
mov dword [ebp - 4], 0x60a
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x4046ae
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push edi
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4046de
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4046de
mov dword [esi + 0x10], eax
mov eax, 0x70a
jmp 0x4046fe
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.00464700
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x4053b2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x4aa268]
push esi
test eax, eax
push edi
je 0x4053e2
push eax
lea eax, [ebp - 0x108]
push 0x4a4878
push eax
push 0xe6
call fcn.00403d9f
add esp, 0x10
jmp 0x405452
call fcn.00404924
test eax, eax
je 0x40540c
lea eax, [ebp - 0x310]
mov esi, 0xe6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x310]
push eax
call fcn.004043f6
jmp 0x40542b
lea eax, [ebp - 0x20c]
mov esi, 0xe6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x20c]
push eax
call fcn.004043cd
mov edi, eax
pop ecx
test edi, edi
je 0x4054f8
push edi
lea eax, [ebp - 0x108]
push 0x4a4878
push eax
push esi
call fcn.00403d9f
push edi
call fcn.00463153
add esp, 0x14
push str.etilqs_
call fcn.00403f85
mov esi, eax
lea eax, [ebp - 0x108]
push eax
call fcn.00403f85
mov edi, dword [ebp + 8]
lea eax, [esi + eax + 0x11]
pop ecx
cmp eax, edi
pop ecx
jl 0x40547b
push 1
jmp 0x4054fa
lea eax, [ebp - 0x108]
push eax
call fcn.00403f85
test eax, eax
pop ecx
jbe 0x40549c
lea ecx, [ebp - 0x108]
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x40549c
dec eax
jne 0x405493
and byte [ebp + eax - 0x108], 0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push ebx
push eax
push str._setilqs_
add edi, 0xffffffef
push esi
push edi
call fcn.00403d9f
push esi
call fcn.00403f85
mov edi, eax
lea eax, [edi + esi]
push eax
push 0xf
call fcn.00403e2b
add esp, 0x1c
push 0xf
pop ecx
movzx eax, byte [edi + esi]
push 0x3e
xor edx, edx
pop ebx
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi], al
inc edi
dec ecx
jne 0x4054d7
and byte [edi + esi], 0
xor eax, eax
pop ebx
jmp 0x4054fb
push 7
pop eax
pop edi
pop esi
leave
ret

Function at 0x4054ff
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebx
push ebp
push edi
xor ebp, ebp
push dword [esp + 0x14]
xor ebx, ebx
call fcn.004052b8
mov edi, eax
pop ecx
test edi, edi
jne 0x40551e
push 7
pop eax
jmp 0x4055a7
push esi
call fcn.00404924
test eax, eax
je 0x40555a
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40554a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x40558c
inc ebp
cmp ebp, 5
jge 0x40558c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405528
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40557c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x40558c
inc ebp
cmp ebp, 5
jge 0x40558c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40555a
push edi
call fcn.00463153
pop ecx
cmp esi, 0xffffffff
pop esi
jne 0x4055a2
cmp ebx, 2
jne 0x4055a2
xor eax, eax
jmp 0x4055a7
mov eax, 0xa0a
pop edi
pop ebp
pop ebx
ret
Function at 0x405742
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 0x10c]
push esi
push eax
push 0x104
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x200
push dword [ebp + 8]
call fcn.00405663
add esp, 0x10
test eax, eax
jne 0x405805
lea eax, [ebp - 0x10c]
push eax
call fcn.004052b8
mov esi, eax
pop ecx
test esi, esi
je 0x4057fe
push edi
call fcn.00404924
test eax, eax
mov ecx, esi
je 0x4057c6
mov ax, word [esi]
test ax, ax
je 0x4057ad
cmp ax, 0x5c
je 0x4057a9
inc ecx
inc ecx
mov ax, word [ecx]
jmp 0x405797
and word [ecx], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x4057f0
mov al, byte [esi]
test al, al
je 0x4057d9
cmp al, 0x5c
je 0x4057d6
mov al, byte [ecx + 1]
inc ecx
jmp 0x4057c8
and byte [ecx], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.00463153
pop ecx
test edi, edi
pop edi
jne 0x405805
mov dword [ebp - 4], 0x200
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x4081b7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov eax, dword [esi + 0x3c]
mov dword [ebp - 4], edi
cmp dword [eax], edi
jne 0x4081e7
push dword [esi + 0x78]
push eax
push esi
call fcn.004082c0
add esp, 0xc
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x4082b8
mov ecx, dword [esi + 0x18]
cmp ecx, dword [esi + 0x24]
jbe 0x40821c
mov eax, dword [esi + 0x80]
push edi
cdq
push ecx
push edx
push eax
call fcn.00464700
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 5
push dword [esi + 0x3c]
mov dword [ebp - 8], edx
call fcn.0040780c
mov eax, dword [esi + 0x18]
add esp, 0xc
mov dword [esi + 0x24], eax
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4082b8
mov edi, dword [ebx + 0xc]
cmp edi, dword [esi + 0x18]
ja 0x4082ab
test byte [ebx + 0x14], 0x20
jne 0x4082ab
mov eax, dword [esi + 0x80]
lea ecx, [edi - 1]
cdq
push edx
push eax
push 0
push ecx
call fcn.00464700
cmp edi, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
jne 0x40825b
push ebx
call fcn.00407e7f
pop ecx
push dword [ebp - 8]
mov eax, dword [ebx]
mov dword [ebp + 8], eax
push dword [ebp - 0xc]
push dword [esi + 0x80]
push eax
push dword [esi + 0x3c]
call fcn.00406dbd
add esp, 0x14
cmp edi, 1
mov dword [ebp - 4], eax
jne 0x408295
mov eax, dword [ebp + 8]
push 0x10
add eax, 0x18
push eax
lea eax, [esi + 0x64]
push eax
call fcn.00464990
add esp, 0xc
cmp edi, dword [esi + 0x20]
jbe 0x40829d
mov dword [esi + 0x20], edi
push dword [ebx]
push edi
push dword [esi + 0x58]
call fcn.0040d8b0
add esp, 0xc
cmp dword [ebp - 4], 0
mov ebx, dword [ebx + 8]
je 0x40821f
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ddf6
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jle 0x41de1f
mov ecx, dword [esp + 4]
push esi
push edi
movzx esi, byte [ecx]
mov edi, eax
movzx esi, byte [esi + 0x483360]
shl edi, 3
xor esi, edi
xor eax, esi
inc ecx
dec edx
jne 0x41de06
pop edi
pop esi
ret
Function at 0x43d84e
Capabilities:
Get system information on windows

Disassembly:
push esi
push 0x24
mov esi, 0x4af440
push 0
push esi
call fcn.004644a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 1
push 0x4a36e8
call fcn.004026a4
pop ecx
xor eax, eax
pop ecx
pop esi
ret
push 0xa
call fcn.00402af6
test eax, eax
pop ecx
jne 0x43d85e
push 7
pop eax
ret
push eax
call fcn.00402ca6
pop ecx
jmp 0x405a79

Function at 0x441100
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
push ebx
cmp ecx, 0
je 0x4411f6
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x44118e
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.00440c60
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x441153
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x4412be
call 0x4411a3
pop edx
lea ecx, [edx + 0x15d]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
je 0x44125a
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.00440d90
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x44120a
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x4412be
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.00440d90
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x4412b9
jmp 0x4412be
mov ecx, dword [esp + 0x4c]
add esp, 0x20
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x442140
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.004644a0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x442580
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.004667c0
mov eax, dword [0x4a80a0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4425e5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4425e5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.00466edb
add eax, 0x40
push eax
call fcn.00466d13
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0046125f
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.00466c4c
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x442674
call fcn.00442440
test eax, eax
jle 0x442674
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0046125f
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0046125f
add esp, 0x108
ret
Function at 0x446f10
Capabilities:
Get common file path
Get file attributes
Query environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4a80a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x12f]
mov byte [ebp - 0x130], 0
push 0
push eax
mov ebx, ecx
call fcn.004644a0
add esp, 0xc
mov byte [ebp - 0x238], 0
lea eax, [ebp - 0x237]
push 0x104
push 0
push eax
call fcn.004644a0
xorps xmm0, xmm0
mov byte [ebp - 0x10], 0
add esp, 0xc
movq qword [ebp - 0xf], xmm0
mov edx, 0x4a9775
mov word [ebp - 7], 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 5], 0
mov byte [ebp - 0x28], 0
xor esi, esi
movq qword [ebp - 0x27], xmm0
mov word [ebp - 0x1f], 0
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0
movq qword [ebp - 0x1b], xmm0
mov word [ebp - 0x13], 0
call fcn.00447390
lea ecx, [ebp - 0x10]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x446fb0
sub ecx, edx
je 0x446ffc
mov edx, 0x4a9670
lea ecx, [ebp - 0x238]
call fcn.00447390
lea ecx, [ebp - 0x238]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x446fd4
lea eax, [ebp - 0x130]
sub ecx, edx
je 0x44700f
push 0x105
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x44701f
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046125f
mov esp, ebp
pop ebp
ret
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x446ffc
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
test eax, eax
je 0x446ffc
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
test eax, eax
je 0x446ffc
lea ecx, [ebp - 0x1c]
call fcn.00447220
lea edx, [ebp - 0x1c]
xor ecx, ecx
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x447051
sub edx, edi
je 0x447071
lea esp, [esp]
test cl, 1
je 0x44706c
movsx eax, byte [ebp + ecx - 0x1c]
add esi, eax
inc ecx
cmp ecx, edx
jb 0x447060
movsx eax, byte [ebp - 0x10]
add esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x130]
push 0x105
push eax
call fcn.004613a5
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x130]
push 0x105
push eax
call fcn.004613a5
add esp, 0xc
lea ecx, [ebp - 0x28]
mov edx, 0x4a9781
call fcn.00447390
lea ecx, [ebp - 0x28]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4470c0
sub ecx, edx
je 0x4470e3
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x130]
push 0x105
push eax
call fcn.004613a5
add esp, 0xc
push esi
call fcn.004617ac
add esp, 4
lea eax, [ebp - 0x130]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x446ffc
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or eax, 2
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046125f
mov esp, ebp
pop ebp
ret
Function at 0x447190
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a80a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x14], ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4471b0
sub esi, edx
xor edi, edi
test esi, esi
jle 0x4471ff
push ebx
mov bl, byte [ecx + edi]
mov byte [ebp - 5], bl
mov dword [ebp - 0xc], 0
call fcn.0046178b
cdq
mov ecx, 0xff
idiv ecx
push 0
lea eax, [ebp - 0xc]
xor dl, bl
push eax
push 1
lea eax, [ebp - 5]
mov byte [ebp - 5], dl
push eax
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x14]
inc edi
cmp edi, esi
jl 0x4471c0
pop ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0046125f
mov esp, ebp
pop ebp
ret 4

Function at 0x447540
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a80a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov edx, ecx
mov dword [ebp - 0x18], ebx
xor ebx, ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
push esi
push edi
test edx, edx
je 0x447633
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x447580
sub ecx, esi
je 0x447633
push 0
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov edi, eax
test edi, edi
je 0x447633
push edi
call fcn.0046243d
mov esi, eax
add esp, 4
test esi, esi
je 0x447633
push esi
push edi
push 0
push dword [ebp - 0x20]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x447610
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x49d690
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov edi, dword [ebp - 0x10]
test eax, eax
je 0x447613
mov ecx, dword [ebp - 0xc]
mov ebx, 1
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx + 0xa]
mov word [edi], ax
movzx eax, word [ecx + 8]
mov word [edx], ax
movzx eax, word [ecx + 0xe]
mov edx, dword [ebp - 0x14]
mov word [edx], ax
movzx eax, word [ecx + 0xc]
mov ecx, dword [ebp - 0x18]
mov word [ecx], ax
jmp 0x447613
mov edi, dword [ebp - 0x10]
push esi
call fcn.004624b3
add esp, 4
test ebx, ebx
je 0x447636
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046125f
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x14]
mov word [eax], cx
mov eax, dword [ebp - 0x1c]
mov word [eax], cx
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [edi], ax
xor ecx, ebp
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.0046125f
mov esp, ebp
pop ebp
ret
Function at 0x447bb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4a80a0]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [0x49d76c]
mov al, byte [0x49d78c]
lea edx, [ebp - 0x28]
push esi
movdqu xmmword [ebp - 0x28], xmm0
mov esi, ecx
mov ecx, edx
movdqu xmm0, xmmword [0x49d77c]
mov byte [ebp - 8], al
movdqu xmmword [ebp - 0x18], xmm0
call fcn.00447390
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], 0x400
push eax
push 0x20019
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x34], 0
push eax
push 0x80000002
mov dword [ebp - 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x447c44
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x30]
push eax
push 0
push str.CurrentVersion
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046125f
mov esp, ebp
pop ebp
ret

Function at 0x447c60
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a80a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
call fcn.00462b4f
mov esi, eax
add esp, 4
test esi, esi
je 0x447d33
push 0
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x447d33
push str.MozillaFirefox_
push 0x104
push esi
call fcn.004613a5
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
call fcn.004644a0
push esi
push str._sprofiles.ini
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0046158b
add esp, 0x28
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
push str.Path
push str.Profile0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x447d33
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call fcn.004613a5
add esp, 0xc
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046125f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0046125f
mov esp, ebp
pop ebp
ret