joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101bfbb0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x101d3038]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x101bfbf0
cmp byte [ebx], 0xa
jne 0x101bfbf0
or byte [eax + edi + 0x28], 4
jmp 0x101bfbf5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x101bfcf3
mov al, byte [edx]
cmp al, 0x1a
je 0x101bfcd5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x101bfc24
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x101bfc49
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x101bfc53
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x101bfc06
jmp 0x101bfcf3
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101bfcd0
cmp dword [ebp - 0xc], 0
je 0x101bfcd0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x101d3038]
test byte [eax + edi + 0x28], 0x48
je 0x101bfcaa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x101bfc95
mov byte [esi], dl
jmp 0x101bfca6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101d3038]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x101bfcf3
cmp byte [ebp - 1], 0xa
jne 0x101bfcb9
cmp esi, ebx
jne 0x101bfcb9
mov byte [esi], 0xa
jmp 0x101bfcf2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.101bf2b8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x101bfcf3
mov byte [esi], 0xd
jmp 0x101bfcf2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x101d3038]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x101bfcef
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x101bfcf3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x101bfcfc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x101d3038]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x101bfd3f
cmp word [esi], dx
jne 0x101bfd3f
or byte [edi + eax + 0x28], 4
jmp 0x101bfd44
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x101bfe97
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x101bfe77
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x101bfd86
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x101bfdbc
cmp eax, edx
jae 0x101bfdc8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x101bfd5e
jmp 0x101bfe97
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101bfe73
cmp dword [ebp - 0x14], 0
je 0x101bfe73
mov eax, dword [ebx*4 + 0x101d3038]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x101bfe4b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x101bfe14
mov word [esi], cx
jmp 0x101bfe47
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x101d3038]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x101d3038]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x101d3038]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x101bfe97
pop ebx
cmp word [ebp - 4], bx
jne 0x101bfe5c
cmp esi, dword [ebp + 0xc]
jne 0x101bfe5c
mov word [esi], bx
jmp 0x101bfe94
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.101bf2b8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x101bfe97
push 0xd
jmp 0x101bfe90
mov ecx, dword [ebx*4 + 0x101d3038]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x101bfe8e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x101bfe97
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x101c0bf4
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101c0d97
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x101c0d6c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x101c0d6c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x101c0d1b
jg 0x101c0c4d
test eax, eax
je 0x101c0d11
push 1
push 0x1000
call fcn.101b7615
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x101c0c73
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x101c0d08
push 0x8000
push ebx
call fcn.101c0aee
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x101c0c9f
jg 0x101c0c9a
cmp ecx, 0x1000
jb 0x101c0c9f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.101baef1
add esp, 0x10
cmp eax, 0xffffffff
je 0x101c0ce4
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x101c0c9a
jl 0x101c0ccb
test ecx, ecx
jne 0x101c0c8c
push dword [ebp - 0xc]
push ebx
call fcn.101c0aee
push esi
call fcn.101b6e0a
add esp, 0xc
xor edi, edi
jmp 0x101c0d7d
cmp byte [edi + 0x24], 0
je 0x101c0cfb
cmp dword [edi + 0x20], 5
jne 0x101c0cfb
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x101c0d06
mov edi, dword [edi + 0x18]
jmp 0x101c0d08
xor edi, edi
push esi
call fcn.101b6e0a
pop ecx
jmp 0x101c0d7d
test ecx, ecx
jg 0x101c0cdd
jl 0x101c0d1b
test eax, eax
jae 0x101c0cdd
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101bf2b8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x101c0d3e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x101c0cdd
jmp 0x101c0d75
push ebx
call fcn.101ba5f8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x101c0cdd
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x101c0d7d
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x101c0d7a
mov edi, dword [edi + 0x18]
jmp 0x101c0d7d
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.101bf2b8
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402980
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, dword [ebp + 8]
mov byte [eax], dl
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
add eax, 1
movzx eax, byte [eax]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [edx], al
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov eax, dword [ebp + 8]
add eax, 2
movzx eax, byte [eax]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [edx], al
mov eax, dword [ebp + 8]
lea edx, [eax + 3]
mov eax, dword [ebp + 8]
add eax, 3
movzx eax, byte [eax]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [edx], al
pop ebp
ret 4

Function at 0x403344
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x4033a2
mov dword [ebp - 8], 0
jmp 0x403398
mov eax, dword [ebp - 8]
lea edx, [eax*4]
mov eax, dword [ebp + 8]
lea ecx, [edx + eax]
mov eax, dword [ebp - 8]
lea edx, [eax*4]
mov eax, dword [ebp + 8]
add edx, eax
mov eax, dword [ebp - 4]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
movzx eax, byte [eax + 0x42a6c0]
mov edx, dword [ebp - 4]
add edx, ecx
mov byte [edx], al
add dword [ebp - 8], 1
cmp dword [ebp - 8], 3
jle 0x40335c
add dword [ebp - 4], 1
cmp dword [ebp - 4], 3
jle 0x403353
leave
ret
Function at 0x4037bc
Capabilities:
Check for sandbox and av modules
Check for sandbox username or hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov dword [ebp - 0xc], 0x40
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x150]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
call eax
sub esp, 8
lea eax, [ebp - 0x150]
mov dword [esp], eax
call sym._strupr
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call eax
sub esp, 0xc
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._strupr
mov dword [esp], 0x42a7c0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
je 0x403849
mov eax, 1
jmp 0x403962
mov dword [esp], str.pstorec.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
je 0x40386d
mov eax, 1
jmp 0x403962
mov dword [esp + 4], str.SCHMIDTI
lea eax, [ebp - 0x150]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x403891
mov eax, 1
jmp 0x403962
mov dword [esp + 4], str.CURRENTUSER
lea eax, [ebp - 0x150]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4038b5
mov eax, 1
jmp 0x403962
mov dword [esp + 4], str.SANDBOX
lea eax, [ebp - 0x150]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4038d9
mov eax, 1
jmp 0x403962
mov dword [esp + 4], str.VIRUS
lea eax, [ebp - 0x150]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4038fa
mov eax, 1
jmp 0x403962
mov dword [esp + 4], str.MALWARE
lea eax, [ebp - 0x150]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x40391b
mov eax, 1
jmp 0x403962
mov dword [esp + 4], str.C:FILE.EXE
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x40393c
mov eax, 1
jmp 0x403962
mov dword [esp + 4], str.SANDBOX
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._strstr
test eax, eax
je 0x40395d
mov eax, 1
jmp 0x403962
mov eax, 0
leave
ret
Function at 0x4039e8
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 0x48], str.SOFTWAREMicrosoftVirtual_MachineGuestParameters
mov dword [ebp - 0x44], str.SOFTWAREWine
mov dword [ebp - 0x40], str.SOFTWAREVMware__Inc.VMware_Tools
mov dword [ebp - 0x3c], str.HARDWAREACPIDSDTVBOX__
mov dword [ebp - 0x38], str.HARDWAREACPIFADTVBOX__
mov dword [ebp - 0x34], str.HARDWAREACPIRSDTVBOX__
mov dword [ebp - 0x30], str.SOFTWAREOracleVirtualBox_Guest_Additions
mov dword [ebp - 0x2c], str.SYSTEMControlSet001ServicesVBoxGuest
mov dword [ebp - 0x28], str.SYSTEMControlSet001ServicesVBoxMouse
mov dword [ebp - 0x24], str.SYSTEMControlSet001ServicesVBoxService
mov dword [ebp - 0x20], str.SYSTEMControlSet001ServicesVBoxSF
mov dword [ebp - 0x1c], str.SYSTEMControlSet001ServicesVBoxVideo
mov eax, 0xc
mov word [ebp - 0x12], ax
mov dword [ebp - 0xc], 0
jmp 0x403a80
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x48]
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call sym.CheckRegKey_HKEY____char_const_
test al, al
je 0x403a7c
mov eax, 1
jmp 0x403b1e
add dword [ebp - 0xc], 1
movzx eax, word [ebp - 0x12]
cmp eax, dword [ebp - 0xc]
jg 0x403a57
mov dword [ebp - 0x74], str.avghookx.dll
mov dword [ebp - 0x70], str.avghooka.dll
mov dword [ebp - 0x6c], str.snxhk.dll
mov dword [ebp - 0x68], str.dbghelp.dll
mov dword [ebp - 0x64], str.api_log.dll
mov dword [ebp - 0x60], str.dir_watch.dll
mov dword [ebp - 0x5c], str.pstorec.dll
mov dword [ebp - 0x58], str.vmcheck.dll
mov dword [ebp - 0x54], str.wpespy.dll
mov dword [ebp - 0x50], str.cmdvrt64.dll
mov dword [ebp - 0x4c], str.cmdvrt32.dll
mov eax, 0xb
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], 0
jmp 0x403b10
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x74]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x403b0c
mov eax, 1
jmp 0x403b1e
add dword [ebp - 0x10], 1
movzx eax, word [ebp - 0x12]
cmp eax, dword [ebp - 0x10]
jg 0x403ae8
mov eax, 0
leave
ret
Function at 0x410080
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
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 dbg.mark_section_writable

Function at 0x4100e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x437050]
test esi, esi
jle 0x4101cd
mov edi, dword [0x437054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x410114
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4101c6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x410100
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x41020a
lea ebx, [esi + esi*2]
mov esi, dword [0x437054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x437054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4101ea
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4101bf
sub eax, 0x40
and eax, 0xffffffbf
je 0x4101bf
mov eax, dword [esp + 0x20]
add ebx, dword [0x437054]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x4101d4
add dword [0x437050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x41011e
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
mov eax, dword [0x437054]
mov eax, dword [eax + ebx + 4]
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]
Function at 0x4106d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x437408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x437400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x410725
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x41071e
test esi, esi
je 0x41071e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x410700
mov dword [esp], 0x437408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x410940
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 0x410978
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x41096e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x41097a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x410960
xor eax, eax
pop ebx
pop esi
ret
Function at 0x411db0
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.00410c50
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 0x411e9f
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 0x411f43
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 0x411eda
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x411ed2
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x411f40
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 0x411f5a
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 0x411f14
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 0x411f14
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x411f14
Function at 0x413160
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x437470]
test eax, eax
je 0x4132b4
call sym.__pthread_once_raw.constprop.5
mov eax, dword [0x43746c]
test eax, eax
je 0x4132e0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4131a0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
test eax, eax
mov ebx, eax
je 0x41332c
mov eax, dword [entry3]
test eax, eax
je 0x41332c
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 0x413333
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 [0x43746c]
test eax, eax
je 0x413306
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 0x413333
mov eax, ebx
jmp 0x413198
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 [0x437470], eax
jmp 0x413174
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 [0x43746c], eax
jmp 0x413186
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 [0x43746c], eax
jmp 0x413293
xor eax, eax
jmp 0x413198
call sym._abort
nop
lea esi, [esi]
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x2f142608
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x42f3f8
nop
mov ecx, 0x29266b05
nop
nop
nop
nop
nop
test eax, eax
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xf500297
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x6965182e
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219