joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6cb06280
Capabilities:
Contain obfuscated stackstrings
Encrypt data using rc4 prga
Inspect section memory permissions

Disassembly:
fistp word [ecx - 0x3a]
inc ebp
loopne 0x6cb062d0
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.6cb05e45
push eax
push esi
push dword [ebp + 8]
call fcn.6cb05dfa
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.6cb05e35
in eax, 0x9a
imul esi, esp, 0xff7c9d88
invalid
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57

Function at 0x6cb06310
Capabilities:
Encrypt data using rc4 prga
Inspect section memory permissions

Disassembly:
mov byte [ebp - 0x70], 0x16
call fcn.6cb05e35
jnp 0x6cb0631f
mov fs, ecx
lea eax, [ebp - 0x84]
push eax
call fcn.6cb05e45
push eax
push esi
push dword [ebp + 8]
call fcn.6cb05dfa
add esp, 0x10
mov dword [ebp - 0xc0], eax
push 0x40
push 0x1000
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x6cb0662e
jl 0x6cb06320
invalid
invalid
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
Function at 0x6cb06360
Capabilities:
Encrypt data using rc4 prga
Inspect section memory permissions

Disassembly:
push esi
call fcn.6cb05da6
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x6cb063a5
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.6cb05da6
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x6cb06372
call fcn.6cb05e35
and ch, byte [edx]
push cs
cmpsd dword [esi], dword es:[edi]
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x6cb06624
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x6cb063da
invalid
cmp dword [eax + 0xc], ebx
je 0x6cb0647d
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.6cb05e35
mov al, byte [0x391b016e]
pop ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
call fcn.6cb05e35
out dx, al
xor dword [ecx + 0x16], edx
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x6cb064e9
add eax, esi
cmp dword [eax], ebx
je 0x6cb064e9
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x6cb064e4
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x6cb064ce
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x6cb064d6
cmp edx, ebx
jne 0x6cb06624
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x6cb064a5
add eax, dword [eax + 4]
jmp 0x6cb06492
mov dword [ebp + 0xc], ebx
jmp 0x6cb064f4
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x6cb0650c
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x6cb0652a
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x6cb06588
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x6cb0656f
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x6cb06578
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x6cb06582
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x6cb06564
inc dword [ebp + 0xc]
invalid
test dword [eax - 1], edi
invalid
Function at 0x6cb066c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [ebp + 0x55fffffc], edi
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.6cb05e45
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.6cb05dfa
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
invalid

Function at 0x6cb07190
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x6d2], 0xbf
mov byte [ebp - 0x6d1], 0xb6
mov byte [ebp - 0x6d0], 0xd3
call fcn.6cb05e35
adc bl, byte [ecx]
or edx, eax
lea eax, [ebp - 0x6dc]
push eax
call fcn.6cb05e45
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.6cb05dfa
add esp, 0xc
mov dword [ebp - 0x6c8], eax
push 0
lea eax, [ebp - 0x6e0]
push eax
push dword [ebp - 0x378]
push dword [ebp - 4]
push dword [ebp - 0x66c]
call dword [ebp - 0x6c8]
mov dword [ebp - 0x6cc], eax
push dword [ebp - 0x66c]
call dword [ebp - 0x680]
cmp dword [ebp - 0x6cc], 0
je 0x6cb07fc8
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.6cb05da6
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x6cb07242
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
test dword [eax], eax
stc
invalid
cmp dword [ebp - 0x700], 5
jge 0x6cb0728b
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
invalid
test dword [eax], eax
stc

Function at 0x6cb07e50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x6cb07e84
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x6cb07ecb
lea eax, [ebp - 0x714]
push eax
call fcn.6cb05e45
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.6cb05dfa
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x6cb07ed6
jmp 0x6cb07edb
jmp 0x6cb077d7
Function at 0x6cb12860
Capabilities:
Initialize winsock library
Set socket configuration
Terminate process
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x1c4
mov eax, dword [0x6cb22040]
mov esi, dword [esp + 0x1d0]
mov ebx, dword [esp + 0x1d4]
test eax, eax
je 0x6cb128d8
mov eax, dword [esp + 0x1d8]
mov dword [esp + 0x2c], eax
movzx eax, word [esi]
cmp ax, 2
je 0x6cb12908
mov edx, 0x1c
cmp ax, 0x17
jne 0x6cb12910
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], edx
call dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
sub esp, 0x14
test eax, eax
mov eax, 0
cmove eax, ebx
add esp, 0x1c4
pop ebx
pop esi
ret
lea eax, [esp + 0x30]
mov dword [esp], 0x202
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
sub esp, 8
test eax, eax
jne 0x6cb12927
mov dword [0x6cb22040], 1
jmp 0x6cb1287f
mov edx, 0x10
jmp 0x6cb1289e
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x66
add esp, 0x1c4
xor eax, eax
pop ebx
pop esi
ret
mov dword [esp], 2
call dword [0x6cb1802c]
mov dword [esp + 8], 0x13
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.WSAStartup_failed__n
call sym._fwrite
mov dword [esp], 0xffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x6cb12970
Capabilities:
Create tcp socket
Initialize winsock library
Set socket configuration
Terminate process
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x1d0
mov edx, dword [0x6cb22040]
mov dword [esp + 0x2c], 1
mov esi, dword [esp + 0x1e0]
test edx, edx
jne 0x6cb129bc
lea eax, [esp + 0x40]
mov dword [esp], 0x202
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
sub esp, 8
test eax, eax
jne 0x6cb12ab6
mov dword [0x6cb22040], 1
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
mov ebx, eax
test eax, eax
js 0x6cb12af0
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 0xffff
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
cmp eax, 0xffffffff
je 0x6cb12b22
mov eax, 2
mov dword [esp + 0x30], 0
lea edi, [esp + 0x30]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov word [esp + 0x30], ax
mov dword [esp], 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
sub esp, 4
mov dword [esp + 0x34], eax
movzx eax, si
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htons]
sub esp, 4
mov word [esp + 0x32], ax
mov dword [esp + 8], 0x10
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_bind]
sub esp, 0xc
test eax, eax
js 0x6cb12b03
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_listen]
sub esp, 8
cmp eax, 0xffffffff
je 0x6cb12b2b
add esp, 0x1d0
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp], 2
call dword [0x6cb1802c]
mov dword [esp + 8], 0x13
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.WSAStartup_failed__n
call sym._fwrite
mov dword [esp], 0xffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [esp], str.socket__
mov ebx, 0xffffffff
call sym._perror
jmp 0x6cb12aaa
mov dword [esp], str.bind__
call sym._perror
mov dword [esp], ebx
mov ebx, 0xffffffff
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
jmp 0x6cb12aaa
mov dword [esp], str.setsockopt__
jmp 0x6cb12b0a
mov dword [esp], str.listen__
jmp 0x6cb12b0a
Function at 0x6cb13770
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], esi
call dbg.socket_check_fd
mov ebx, eax
test eax, eax
jle 0x6cb137c3
mov eax, dword [esp + 0x2c]
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
mov ebx, eax
test eax, eax
je 0x6cb137dc
js 0x6cb137d0
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
ret
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [eax]
neg ebx
jmp 0x6cb137c3
cmp dword [0x6cb2203c], 2
mov ebx, 0xffffff94
jle 0x6cb137c3
mov dword [esp], 2
call dword [0x6cb1802c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.socket_receive_timeout
mov dword [esp + 4], str._s:_fd_d_recv_returned_0_n
mov dword [esp], eax
call sym._fprintf
jmp 0x6cb137c3

Function at 0x6cb138a0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
add esp, 0x1c
ret

Function at 0x6cb138d0
Capabilities:
Create thread

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
test eax, eax
je 0x6cb1391b
mov edx, dword [esp + 0x30]
mov dword [edx], eax
xor eax, eax
add esp, 0x2c
ret
mov eax, 0xffffffff
jmp 0x6cb13917
Function at 0x6cb13ba0
Capabilities:
Get common file path

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x23c
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x23
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
sub esp, 0xc
test eax, eax
je 0x6cb13c48
xor esi, esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.AppleLockdown
mov dword [esp + 4], 0x6cb1b2e7
mov dword [esp], esi
call dbg.string_concat
mov dword [0x6cb22044], eax
mov ebx, eax
test eax, eax
je 0x6cb13c2f
mov dword [esp], eax
call sym._strlen
sub eax, 1
test eax, eax
jle 0x6cb13c2f
add eax, ebx
jmp 0x6cb13c2a
mov byte [eax], 0
sub eax, 1
cmp ebx, eax
je 0x6cb13c2f
cmp byte [eax], 0x5c
je 0x6cb13c20
mov dword [esp], esi
call sym._free
add esp, 0x23c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, eax
mov eax, dword [esp + 0x20]
lea edi, [esp + 0x26]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
sub esp, 8
test eax, eax
je 0x6cb13bd6
mov dword [esp], edi
xor esi, esi
call sym._wcslen
mov ebp, eax
test eax, eax
jle 0x6cb13d23
lea eax, [eax + eax*2 + 3]
mov dword [esp], eax
call sym._malloc
mov edx, edi
mov esi, eax
lea eax, [edi + ebp*2]
mov dword [esp + 0x1c], eax
jmp 0x6cb13cd5
mov ecx, eax
shr cx, 0xc
sub ecx, 0x20
mov byte [ebp], cl
mov ecx, eax
and eax, 0x3f
lea ebp, [ebx + 2]
shr cx, 6
add eax, 0xffffff80
add ebx, 3
and ecx, 0x3f
add ecx, 0xffffff80
mov byte [edi], cl
lea edi, [esi + ebx]
mov byte [esi + ebp], al
add edx, 2
cmp edx, dword [esp + 0x1c]
je 0x6cb13d20
movzx eax, word [edx]
lea ecx, [ebx + 1]
lea ebp, [esi + ebx]
lea edi, [esi + ecx]
cmp ax, 0x7ff
ja 0x6cb13ca0
cmp ax, 0x7f
jbe 0x6cb13d10
mov ecx, eax
and eax, 0x3f
add ebx, 2
shr cx, 6
add eax, 0xffffff80
sub ecx, 0x40
mov byte [ebp], cl
mov byte [edi], al
lea edi, [esi + ebx]
jmp 0x6cb13ccc
mov byte [ebp], al
mov ebx, ecx
jmp 0x6cb13ccc
mov byte [edi], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
sub esp, 4
jmp 0x6cb13bd8

Function at 0x6cb13d40
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x6cb22044]
test eax, eax
je 0x6cb13d50
ret
jmp sym._userpref_get_config_dir.part.0
Function at 0x6cb13d70
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
test esi, esi
je 0x6cb13f32
mov eax, dword [esp + 0x40]
mov ebx, dword [eax]
test ebx, ebx
jne 0x6cb13f32
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x6cb13da3
mov eax, dword [esp + 0x44]
mov dword [eax], 0
mov dword [esp], 4
call sym._malloc
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, dword [0x6cb22044]
test eax, eax
je 0x6cb13f28
mov dword [esp], eax
xor ebp, ebp
call dbg.opendir
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
test eax, eax
je 0x6cb13efc
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call dbg.readdir
mov edx, dword [esp + 0x14]
lea ebp, [edx*4]
test eax, eax
je 0x6cb13ef0
lea ebx, [eax + 8]
mov edi, str.SystemConfiguration.plist
mov ecx, 0x1a
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x6cb13de0
mov dword [esp + 4], 0x2e
mov dword [esp], ebx
call sym._strrchr
mov esi, eax
test eax, eax
je 0x6cb13de0
mov edi, str..plist
mov ecx, 7
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
jne 0x6cb13de0
mov dword [esp], ebx
call sym._strlen
mov edi, eax
lea eax, [eax - 6]
mov dword [esp + 0x1c], eax
lea eax, [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov dword [esp], eax
call sym._realloc
mov esi, eax
test eax, eax
je 0x6cb13ebb
mov eax, dword [esp + 0x40]
mov dword [eax], esi
lea eax, [edi - 5]
add esi, ebp
mov dword [esp], eax
call sym._malloc
mov edx, eax
test eax, eax
je 0x6cb13eb5
lea eax, [edi - 6]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp + 0x1c], edx
call sym._strncpy
mov edx, dword [esp + 0x1c]
add dword [esp + 0x14], 1
mov byte [edx + edi - 6], 0
mov dword [esi], edx
jmp 0x6cb13de0
mov dword [esi], 0
mov dword [esp], 2
call dword [0x6cb1802c]
mov dword [esp + 8], 0x15
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:_Out_of_memory_n
call sym._fwrite
lea esi, [esi]
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call dbg.closedir
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [eax]
mov dword [eax + ebp], 0
xor eax, eax
test edx, edx
je 0x6cb13f1d
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
mov dword [ebx], ecx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._userpref_get_config_dir.part.0
jmp 0x6cb13dc2
mov eax, 0xffffffff
jmp 0x6cb13f1d
Function at 0x6cb15030
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov edi, eax
push esi
mov esi, edx
push ebx
mov ebx, ecx
sub esp, 0x2c
lea eax, [esp + 0x14]
mov dword [esp], edi
lea ebp, [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call sym._plist_dict_new_iter
jmp 0x6cb150b1
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x6cb1b444
call sym._fwrite
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sym._free
mov eax, dword [esp + 0x1c]
mov ecx, ebx
mov edx, esi
mov dword [esp + 0x18], 0
call dbg.plist_node_print_to_stream
lea eax, [esp + 0x18]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._plist_dict_next_item
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x6cb15140
mov eax, dword [esi]
mov dword [esp + 0xc], 0x6cb1b438
mov dword [esp + 4], 0x6cb1b439
mov dword [esp + 8], eax
mov dword [esp], ebx
call sym._fprintf
mov eax, dword [esp + 0x18]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._fputs
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sym._plist_get_node_type
cmp eax, 4
jne 0x6cb15070
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sym._plist_array_get_size
mov dword [esp + 4], str.__d_:
mov dword [esp + 8], eax
mov dword [esp], ebx
call sym._fprintf
jmp 0x6cb15090
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._free
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6cb15700
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esp + 4], 0x6cb1b48a
mov dword [esp], eax
call sym._fopen
test eax, eax
je 0x6cb157c1
mov dword [esp + 8], 2
mov ebx, eax
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._fseek
mov dword [esp], ebx
call sym._ftell
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov ebp, eax
sar eax, 0x1f
mov dword [esp + 0x14], eax
call sym._rewind
mov edx, dword [esp + 0x14]
mov eax, edx
or eax, ebp
je 0x6cb157d0
lea eax, [ebp + 1]
mov dword [esp + 0x1c], edx
mov dword [esp], eax
call sym._malloc
mov dword [edi], eax
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._fread
mov edx, dword [esp + 0x1c]
xor ebp, eax
or edx, ebp
jne 0x6cb157d0
mov dword [esp], ebx
call sym._fclose
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], edx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x40], ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._fclose
Function at 0x6cb157e0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov dword [esp + 4], 0x6cb1b48d
mov edi, dword [esp + 0x28]
mov dword [esp], eax
call sym._fopen
test eax, eax
je 0x6cb15830
mov dword [esp + 8], edi
mov ebx, eax
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
call sym._fwrite
mov dword [esp + 0x20], ebx
add esp, 0x10
pop ebx
pop esi
pop edi
jmp sym._fclose
add esp, 0x10
pop ebx
pop esi
pop edi
ret

Function at 0x6cb16100
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x6cb16160
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6cb23018]
test esi, esi
jle 0x6cb16260
mov eax, dword [0x6cb2301c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x6cb16190
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6cb1620f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6cb16180
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x6cb16287
mov eax, dword [0x6cb2301c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x6cb2301c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6cb16267
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6cb16208
sub eax, 4
and eax, 0xfffffffb
jne 0x6cb16216
add dword [0x6cb23018], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x6cb2301c]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6cb16208
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
xor esi, esi
jmp 0x6cb1619a
mov eax, dword [0x6cb2301c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop