joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4155b0
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sym._strlen
mov esi, eax
lea eax, [eax + 0x41]
and eax, 0xfffffff0
call fcn.00414450
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
lea edi, [esp + 0xc]
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp], eax
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [esi + 0x10]
lea edx, [edi + eax]
mov dword [ebp - 0x20], eax
mov dword [edx], 0x61616161
mov dword [edx + 4], 0x61616161
mov dword [edx + 8], 0x61616161
mov dword [edx + 0xc], 0x61616161
mov dword [edx + 0x10], 0x61616161
mov dword [edx + 0x14], 0x61616161
mov dword [edx + 0x18], 0x61616161
mov dword [edx + 0x1c], 0x61616161
mov dword [ebp - 0x24], edx
mov byte [esp + esi + 0x3c], 0
mov byte [esp + esi + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
mov byte [edi + esi + 0xf], 0x2d
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
mov edx, dword [ebp - 0x24]
je 0x41569f
int3
mov dword [ebp - 0x24], edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
mov edx, dword [ebp - 0x24]
jne 0x415743
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call sym._malloc
mov edx, dword [ebp - 0x24]
mov ebx, eax
mov eax, 0x20
bt ebx, eax
jae 0x4156da
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x4156d2
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x415740
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
cmp eax, ebx
mov esi, eax
je 0x41575a
mov dword [esp], ebx
call sym._free
mov edi, dword [ebp - 0x1c]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
int3
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
mov esi, eax
jmp 0x415714
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x415714
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x415714
Function at 0x422270
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x4995d0]
test ebx, ebx
je 0x4222a0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x4995d0]
test eax, eax
je 0x4222c5
cmp dword [eax], 0xffffffff
je 0x4222e8
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov ebx, eax
mov dword [0x4995d0], eax
jmp 0x42227e
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4995d0], eax
jmp 0x42228f
call sym._abort
lea esi, [esi]
Function at 0x422780
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x4995d4]
test eax, eax
je 0x4228d4
call sym.__pthread_once_raw.constprop.5
mov eax, dword [0x4995d0]
test eax, eax
je 0x422900
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4227c0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
test eax, eax
mov ebx, eax
je 0x42294c
mov eax, dword [entry3]
test eax, eax
je 0x42294c
mov dword [ebx + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x38], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
sub esp, 0x10
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x34], 0xffffffff
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x14], 0
call esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call esi
mov edx, eax
lea eax, [ebx + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x422953
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
mov dword [ebx + 0x64], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x4995d0]
test eax, eax
je 0x422926
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x422953
mov eax, ebx
jmp 0x4227b8
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4995d4], eax
jmp 0x422794
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4995d0], eax
jmp 0x4227a6
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4995d0], eax
jmp 0x4228b3
xor eax, eax
jmp 0x4227b8
call sym._abort
nop
lea esi, [esi]
Function at 0x422ec0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
cmp dword [esp + 0x24], 3
je 0x422ee0
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
mov eax, dword [0x4995d0]
test eax, eax
je 0x423050
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x422ecc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x422ecc
test byte [eax + 0x20], 0x30
je 0x422fa0
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x423040
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x422f50
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x422f42
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
mov edx, dword [ebx + 0xac]
mov dword [ebx + 0x34], 0xffffffff
test edx, edx
je 0x4230a6
mov eax, dword [0x4995d0]
test eax, eax
je 0x423080
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
mov eax, 1
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov eax, dword [eax + 0x64]
test eax, eax
mov eax, dword [ebx + 0x18]
jne 0x423000
test eax, eax
je 0x422fba
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x64], 1
test eax, eax
jne 0x423030
test byte [ebx + 0x24], 4
je 0x423017
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x422f49
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x422f49
test eax, eax
je 0x423010
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
mov dword [ebx + 0x34], 0xffffffff
jmp 0x422ecc
call sym.__pthread_cleanup_dest.part.3
jmp 0x422fd2
call sym.__pthread_cleanup_dest.part.3
jmp 0x422f1e
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4995d0], eax
jmp 0x422eed
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4995d0], eax
jmp 0x422f7d
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x422f70
Function at 0x424240
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call sym.___pthread_self_lite
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x4242bb
test byte [ebx + 0x20], 0x30
je 0x4242c2
mov eax, dword [0x4995d0]
test eax, eax
je 0x42434b
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x4242b2
cmp dword [eax + 0x14], 0
je 0x4242d5
mov esi, dword [eax + 4]
mov dword [eax + 0x64], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4242a5
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x42431f
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call sym.__pthread_cleanup_dest.part.3
jmp 0x42425d
add ebx, 0x6c
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
mov dword [eax], 0xdeadbeef
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4242ec
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xac], 0
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
je 0x424342
mov eax, dword [0x4995d0]
test eax, eax
je 0x424371
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x4242b2
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
cmp dword [ebx + 0xac], 0
mov dword [ebx + 0x14], 0
jne 0x4242ff
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x4242ff
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4995d0], eax
jmp 0x424270
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4995d0], eax
jmp 0x424308
Function at 0x426bf0
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov dword [esp], edi
call sym._strlen
mov ebx, eax
lea eax, [eax + 0x40]
and eax, 0xfffffff0
call fcn.00414450
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
lea esi, [esp + 0xc]
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp], eax
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [ebx + 0x10]
lea edi, [esi + eax]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x30]
mov dword [edi], 0x61616161
mov dword [edi + 4], 0x61616161
mov dword [edi + 8], 0x61616161
mov dword [edi + 0xc], 0x61616161
mov dword [edi + 0x10], 0x61616161
mov dword [edi + 0x14], 0x61616161
mov dword [edi + 0x18], 0x61616161
mov dword [edi + 0x1c], 0x61616161
mov dword [ebp - 0x1c], eax
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
mov byte [esi + ebx + 0xf], 0x2d
mov dword [ebp - 0x20], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x426cdf
int3
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
jne 0x426d83
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._malloc
mov edx, edi
mov ebx, eax
mov eax, 0x20
nop
lea esi, [esi]
bt ebx, eax
jae 0x426d18
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x426d10
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x426d80
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call sym._get_ptr_from_atom_1
cmp eax, ebx
mov esi, eax
je 0x426d9a
mov dword [esp], ebx
call sym._free
mov edi, dword [ebp - 0x20]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
int3
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call sym._get_ptr_from_atom_1
mov esi, eax
jmp 0x426d52
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x426d52
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x426d52
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x401bd7
pop dword [ebp - 0x48]
mov eax, 0x7cd2212a
sub eax, 0x7c920553
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xc058113f
add dword [ebp - 0x58], 0x8dfa340c
mov dword [ebp - 0x54], 0x5cac24c1
sub dword [ebp - 0x54], 0x2a78d87c
mov dword [ebp - 0x50], 0xf296096
sub dword [ebp - 0x50], 0xc2dd1c68
mov dword [ebp - 0x4c], 0x121f41a1
sub dword [ebp - 0x4c], 0x121f41a1
lea eax, [ebp - 0x58]
push eax
mov eax, 0xf7fea52c
sub eax, 0xf7be34cc
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x829edc59
add dword [ebp - 0x58], 0xf1d38cfd
mov dword [ebp - 0x54], 0x8c7d44ea
sub dword [ebp - 0x54], 0x4b10e375
mov dword [ebp - 0x50], 0x6217ba91
add dword [ebp - 0x50], 0x157b1db
mov dword [ebp - 0x4c], 0x73eec13f
sub dword [ebp - 0x4c], 0x73eec13f
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x314fb
push 0
call eax
mov ecx, 0xba0f4bd8
add ecx, 0x45f0e71a
mov edi, eax
mov ebx, 0x54ac9123
add ebx, 0xab946edd
add ebx, dword [ebp - 0x48]
mov esi, 0x5c014a14
add esi, 0x966f7520
add dword [ebp - 0x28], edx
mov edx, dword [ebx]
xor dword [ebp - 0x34], 0x7cfc5260
add edx, esi
add dword [ebp - 0x40], 0x1d417edb
mov dword [edi], edx
mov dword [ebp - 0x40], 0x2cf1f253
add edi, 0x4048e037
add edi, 0xbfb71fcd
add ebx, 4
loop 0x401cf4
add eax, 0xbe9b
xor ebx, ebx
add ebx, eax
add eax, 0xf91bc00b
sub eax, 0xf91bc006
mov ecx, 0x90b231da
add ecx, 0x6f8dce26
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x401c20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x48
call fcn.004058e0
push eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404310
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.004055b0
mov eax, dword [ebp - 4]
mov dword [eax], vtable.CInternetDlg.0
mov ecx, dword [ebp - 4]
add ecx, 0x24
call fcn.00401c90
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x28
call fcn.004055d0
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x2c
call fcn.004055d0
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x30
call fcn.004055d0
push 0
push 0
push 0
push 0
push 0x6bd5dc
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x405d40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x405d49
xor ecx, ecx
jne 0x405d49
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x405d90
mov eax, dword [ebp - 0xc]
jmp 0x405ded
cmp dword [ebp - 4], 1
je 0x405da3
cmp dword [ebp - 4], 2
je 0x405da3
mov eax, 0xd
jmp 0x405ded
cmp dword [ebp + 0xc], 0
je 0x405de1
cmp dword [ebp - 8], 0
je 0x405dd9
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x405dd0
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x405dd7
mov eax, 0xd
jmp 0x405ded
jmp 0x405de1
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406da0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x6c3000], 0
push esi
jne 0x406d13
call fcn.00406c39
test eax, eax
je 0x406d56
mov eax, dword [0x6c3000]
cmp eax, 1
jne 0x406d34
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x406d56
pop esi
ret
push eax
call dword [0x6c3008]
test eax, eax
jne 0x406d9e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x406d5a
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x6c3000]
call dword [0x6c3008]
mov edi, eax
test edi, edi
je 0x406d7f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x406d9b
mov edi, esi
add esi, 0xff0
push edi
push dword [0x6c3000]
call dword [0x6c3004]
add edi, 0x10
cmp edi, esi
jb 0x406d87
mov eax, edi
pop edi
pop esi
ret
jmp 0x406d00
Function at 0x439b71
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 1], 0
jmp 0x439b83
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
cmp ecx, 8
jge 0x439bd1
movzx edx, word [ebp + 0xc]
and edx, 0x80
je 0x439ba5
movzx eax, word [ebp + 0xc]
xor eax, 0x658e
mov word [ebp + 0xc], ax
movzx ecx, word [ebp + 0xc]
shl ecx, 1
mov word [ebp + 0xc], cx
movzx edx, byte [ebp + 8]
and edx, 0x80
je 0x439bc7
mov ax, word [ebp + 0xc]
add ax, 1
mov word [ebp + 0xc], ax
mov cl, byte [ebp + 8]
shl cl, 1
mov byte [ebp + 8], cl
jmp 0x439b7b
mov ax, word [ebp + 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x439c31
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
jmp 0x439c40
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jbe 0x439cb6
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
mov byte [ebp - 2], dl
mov byte [ebp - 1], 0
jmp 0x439c5c
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
cmp ecx, 8
jge 0x439cab
movzx edx, word [ebp + 0x10]
and edx, 0x8000
je 0x439c7e
movzx eax, word [ebp + 0x10]
xor eax, 0x8411
mov word [ebp + 0x10], ax
mov cx, word [ebp + 0x10]
shl cx, 1
mov word [ebp + 0x10], cx
movzx edx, byte [ebp - 2]
and edx, 0x80
je 0x439ca1
mov ax, word [ebp + 0x10]
add ax, 1
mov word [ebp + 0x10], ax
mov cl, byte [ebp - 2]
shl cl, 1
mov byte [ebp - 2], cl
jmp 0x439c54
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
jmp 0x439c37
mov ax, word [ebp + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x51ab01
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov byte [ebp - 0x20], 0x1f
mov byte [ebp - 0x1f], 0x17
mov byte [ebp - 0x1e], 0x57
mov byte [ebp - 0x1d], 0x2a
mov byte [ebp - 0x1c], 0x6f
mov byte [ebp - 0x1b], 0xcb
mov byte [ebp - 0x1a], 2
mov byte [ebp - 0x19], 0x2a
mov byte [ebp - 0x18], 0x41
mov byte [ebp - 0x17], 0x7b
mov byte [ebp - 0x16], 0x20
mov byte [ebp - 0x15], 0xc
mov byte [ebp - 0x14], 0x2a
mov byte [ebp - 0x13], 0x35
mov byte [ebp - 0x12], 1
mov byte [ebp - 0x11], 0xf
mov byte [ebp - 0x10], 0x10
mov byte [ebp - 0xf], 0x11
mov byte [ebp - 0xe], 0x26
mov byte [ebp - 0xd], 0x79
mov byte [ebp - 0xc], 0x28
mov byte [ebp - 0xb], 0x15
mov byte [ebp - 0xa], 0x16
mov byte [ebp - 9], 0x17
mov byte [ebp - 8], 0x5e
mov byte [ebp - 7], 0xf
mov byte [ebp - 6], 0x38
mov byte [ebp - 5], 3
mov byte [ebp - 4], 0x1c
mov byte [ebp - 3], 0x3b
mov byte [ebp - 2], 0x1f
mov byte [ebp - 1], 0x29
mov eax, dword [ebp + 8]
push eax
call fcn.00415571
add esp, 4
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00415971
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x51e1b1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_CreateDirectoryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x51e1d9
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x51e1d9
xor eax, eax
jmp 0x51e1de
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x51fbc1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0xc], 0x22
mov dword [ebp - 0x10], 0x10
mov byte [ebp - 0x21], 0x7b
mov byte [ebp - 1], 0x7d
mov dword [ebp - 8], 0
mov byte [ebp - 0x20], 0x30
mov byte [ebp - 0x1f], 0x31
mov byte [ebp - 0x1e], 0x32
mov byte [ebp - 0x1d], 0x33
mov byte [ebp - 0x1c], 0x34
mov byte [ebp - 0x1b], 0x35
mov byte [ebp - 0x1a], 0x36
mov byte [ebp - 0x19], 0x37
mov byte [ebp - 0x18], 0x38
mov byte [ebp - 0x17], 0x39
mov byte [ebp - 0x16], 0x61
mov byte [ebp - 0x15], 0x62
mov byte [ebp - 0x14], 0x63
mov byte [ebp - 0x13], 0x64
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x66
mov eax, dword [ebp - 0xc]
add eax, 1
cmp dword [ebp + 0x10], eax
jae 0x51fc34
or eax, 0xffffffff
jmp 0x51fca0
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 0x21]
mov byte [ecx], dl
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov byte [eax - 1], 0
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp + 0x10]
mov dl, byte [ebp - 1]
mov byte [ecx - 2], dl
jmp 0x51fc5d
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x10]
jae 0x51fc9e
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
sar eax, 4
and eax, 0xf
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov al, byte [ebp + eax - 0x20]
mov byte [edx + ecx*2 + 1], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx]
and edx, 0xf
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp + edx - 0x20]
mov byte [ecx + eax*2 + 2], dl
jmp 0x51fc54
xor eax, eax
mov esp, ebp
pop ebp
ret