joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c16e5
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 3]
call fcn.0059939f
or eax, 0x8a7f188a
dec ebx
lodsd eax, dword [esi]
das
mov edi, 0xc28129da
jge 0x5c1749
fild qword [edx + 0x20]
cmp dword [ecx - 0x6772c438], ebp
enter 0xffffffffffff8d3b, 0xffffffffffffff98
sti
ror byte [ebp - 0x24], cl
xor ebx, esi
push edx
xlatb
loop 0x5c1747
stosd dword es:[edi], eax
out dx, eax
test byte [edi - 0x701e57a6], ch
cmpsd dword [esi], dword es:[edi]
loopne 0x5c1785
inc esp
pop edi
xchg ebx, eax
invalid
cmp dword [ebp - 0xd], eax
out 0x8d, al
in al, 0x69
push es
adc al, 0xeb
shr dword [esp + ebx*4 - 0x220abecd], cl
mov esi, esp
xchg esi, eax
int3

Function at 0x5ccd59
Capabilities:
Hash data with md5

Disassembly:
lea esp, [esp + 0x18]
mov dword [eax + 0x10], 0x98badcfe
push edx
jmp 0x5ccabe
push edx
lea esp, [esp + 9]
lea esp, [esp + 3]
jmp 0x5cca7a
push esp
mov dword [esp], ecx
lea esp, [esp + 4]
mov dword [eax + 0xc], 0xefcdab89
pushal
jmp 0x5cca94
lea esp, [esp + 4]
mov dword [eax + 0x14], 0x10325476
call 0x5ccacf
in eax, dx
lea esp, [esp + 4]
ret
pushal
lea esp, [esp + 0x11]
lea esp, [esp + 3]
lea esp, [esp + 0x10]
mov dword [eax + 8], 0x67452301
jmp 0x5ccaac
push edx
pop word [esp]
lea esp, [esp + 2]
mov dword [eax], 0
push edx
jmp 0x5ccae5
lea esp, [esp + 8]
mov dword [eax + 4], 0
jmp 0x5ccb25

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
mov edi, 0x10003030
push edi
push dword [0x10003020]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [0x10003036], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002040]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x1000117f
push 1
push ebx
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x10003036], ax
movzx ecx, word [eax + str.desktop.ini]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x100011aa
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edi
mov dword [0x10003018], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
push ebx
cmp eax, 0xffffffff
jne 0x100011fd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10003024
push esi
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405df0
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov ebx, edx
mov esi, ecx
mov ecx, dword [edx]
mov eax, dword [ecx]
mov edx, dword [sym.imp.libLLVM_18.dll_llvm::StringError::ID]
push edx
call dword [eax + 0x18]
mov edi, dword [ebx]
mov dword [ebx], 0
test al, al
je 0x405e5d
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
movsd xmm0, qword [eax]
movsd qword [esp + 0x94], xmm0
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], edi
call fcn.00403330
add esp, 0xc
mov eax, dword [ebx + 4]
test byte [eax], 1
jne 0x405e64
mov ecx, dword [eax + 8]
mov dword [esp + 8], ecx
movsd xmm0, qword [eax]
movsd qword [esp], xmm0
jmp 0x405e71
mov dword [esi], edi
jmp 0x405f7e
mov ecx, esp
push dword [eax + 4]
push dword [eax + 8]
call fcn.00406710
movzx eax, byte [esp]
mov edx, eax
shr edx, 1
test al, 1
lea eax, [esp + 1]
cmovne eax, dword [esp + 8]
mov ecx, dword [ebx + 8]
cmovne edx, dword [esp + 4]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
mov byte [esp + 0x78], 0
mov byte [esp + 0x80], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov byte [esp + 0x10], 0x12
mov dword [esp + 0x11], 0x766e693c
mov dword [esp + 0x15], 0x64696c61
mov word [esp + 0x19], 0x3e
mov byte [esp + 0x1c], 0x12
mov dword [esp + 0x1d], 0x766e693c
mov dword [esp + 0x21], 0x64696c61
mov word [esp + 0x25], 0x3e
mov byte [esp + 0x28], 0x12
mov dword [esp + 0x29], 0x766e693c
mov dword [esp + 0x2d], 0x64696c61
mov word [esp + 0x31], 0x3e
mov byte [esp + 0x34], 0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x40], 0
mov byte [esp + 0x48], 0
mov byte [esp + 0x60], 0
mov dword [esp + 0x68], 0
xorps xmm0, xmm0
movsd qword [esp + 0x51], xmm0
movsd qword [esp + 0x4c], xmm0
mov eax, dword [ecx]
lea edx, [esp + 0x10]
lea ebx, [esp + 0x70]
push edx
push ebx
call dword [eax + 8]
test byte [esp + 0x28], 1
jne 0x405f86
test byte [esp + 0x1c], 1
jne 0x405f99
test byte [esp + 0x10], 1
jne 0x405fac
test byte [esp], 1
je 0x405f71
push dword [esp + 8]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov dword [esi], 0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x30]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x1c], 1
je 0x405f58
push dword [esp + 0x24]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x10], 1
je 0x405f5f
push dword [esp + 0x18]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp], 1
jne 0x405f65
jmp 0x405f71
Function at 0x406770
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, ecx
mov ecx, dword [ebp + 8]
test byte [edx + 0x38], 1
jne 0x406793
mov eax, dword [ecx]
push edx
push esi
call dword [eax + 0x10]
jmp 0x406924
mov ebx, dword [edx]
mov dword [edx], 0
test ebx, ebx
je 0x4068ba
mov edi, ecx
mov eax, dword [ebx]
mov edx, dword [sym.imp.libLLVM_18.dll_llvm::ErrorList::ID]
mov ecx, ebx
push edx
call dword [eax + 0x18]
test al, al
je 0x406868
mov dword [esp + 8], esi
mov eax, ebx
mov ebx, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov esi, dword [eax + 8]
cmp ebx, esi
je 0x40689e
xor edi, edi
mov byte [esp + 7], 1
jmp 0x4067eb
add ebx, 4
cmp ebx, esi
je 0x4068a3
mov dword [esp + 0x10], edi
mov edi, dword [ebx]
mov dword [ebx], 0
mov eax, dword [edi]
mov ecx, edi
push dword [sym.imp.libLLVM_18.dll_llvm::ErrorInfoBase::ID]
call dword [eax + 0x18]
test al, al
je 0x406822
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push edi
push dword [esp + 0xc]
call dword [eax + 0x1c]
mov byte [esp + 7], al
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
xor edi, edi
mov dword [esp + 0xc], edi
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00405bc0
add esp, 0xc
mov edi, dword [esp + 0x18]
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x406856
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4067e0
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4067e0
mov eax, dword [ebx]
mov edx, dword [sym.imp.libLLVM_18.dll_llvm::ErrorInfoBase::ID]
mov ecx, ebx
push edx
call dword [eax + 0x18]
test al, al
mov ecx, edi
je 0x4068ba
mov eax, dword [ecx]
mov ecx, edi
push ebx
push esi
call dword [eax + 0x1c]
mov byte [esp + 7], al
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ecx, edi
cmp byte [esp + 7], 0
jne 0x4068ba
jmp 0x406924
mov byte [esp + 7], 1
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 8]
mov ecx, dword [ebp + 8]
cmp byte [esp + 7], 0
je 0x406924
mov byte [esp + 0x18], 0x12
mov dword [esp + 0x19], 0x766e693c
mov dword [esp + 0x1d], 0x64696c61
mov word [esp + 0x21], 0x3e
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
xorps xmm0, xmm0
movups xmmword [esp + 0x28], xmm0
movups xmmword [esp + 0x34], xmm0
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
push esi
call dword [eax + 0x10]
test byte [esp + 0x38], 1
je 0x406911
push dword [esp + 0x40]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x18], 1
je 0x406924
push dword [esp + 0x20]
call sub.libc.dll_operator_delete_void_
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x407a60
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
sub esp, 0x10
mov ecx, 0x4100fc
call fcn.0040af4a
cmp byte [0x4100f8], 0
jne 0x407b3b
mov ecx, 0x4100fc
call fcn.0040af50
mov ecx, 0x4100fc
call fcn.0040af56
cmp byte [0x4100f8], 0
jne 0x407ab4
mov dword [0x4100bc], 0x4100c8
mov dword [0x4100c4], 6
mov byte [0x4100f8], 1
mov dword [0x4100c0], 0
push str.DEBUGINFOD_URLS
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
je 0x407b1e
mov dword [esp + 8], eax
push eax
call sub.msvcrt.dll_strlen
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp], 0x40cbb0
mov dword [esp + 4], 1
sub esp, 0x14
movsd xmm0, qword [esp + 0x14]
movsd qword [esp + 4], xmm0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp], 0x4100bc
lea ecx, [esp + 0x1c]
call fcn.0040af62
mov ecx, 0x4100fc
call fcn.0040af68
mov ecx, 0x4100fc
call fcn.0040af4a
cmp byte [0x4100f8], 0
je 0x407bac
mov esi, dword [esp + 0x1c]
lea eax, [esi + 0xc]
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], 6
cmp esi, 0x4100bc
je 0x407b9a
mov edi, dword [0x4100c0]
test edi, edi
je 0x407b9a
cmp edi, 7
jb 0x407b82
mov ecx, esi
push 8
push edi
push eax
call fcn.0040ad4c
mov ecx, dword [0x4100c0]
test ecx, ecx
je 0x407b97
mov eax, dword [esi]
jmp 0x407b84
mov ecx, edi
shl ecx, 3
push ecx
push dword [0x4100bc]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [esi + 4], edi
mov ecx, 0x4100fc
call fcn.0040af50
mov eax, esi
add esp, 0x10
pop esi
pop edi
ret
call fcn.00409680
int3
Function at 0x407bc0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa8
mov esi, dword [esp + 0xbc]
push str.DEBUGINFOD_CACHE_PATH
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
je 0x407c1b
mov edi, eax
and byte [esi + 0xc], 0xfe
push eax
call sub.msvcrt.dll_strlen
add esp, 4
cmp eax, 0xfffffff8
jae 0x407dd5
mov ebx, eax
cmp eax, 0xb
jae 0x407cd4
mov eax, ebx
add al, bl
mov byte [esi], al
lea ebp, [esi + 1]
test ebx, ebx
jne 0x407d02
jmp 0x407d0d
lea ebx, [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x40
lea edi, [esp + 0x34]
push edi
call fcn.0040af6e
add esp, 4
test al, al
je 0x407d14
mov dword [esp + 4], str.llvm_debuginfod
mov word [esp + 0x14], 0x103
mov dword [esp + 0x20], str.client
mov word [esp + 0x30], 0x103
mov word [esp + 0xa4], 0x101
mov word [esp + 0x90], 0x101
lea eax, [esp + 0x80]
lea ecx, [esp + 0x94]
lea edx, [esp + 0x20]
lea ebx, [esp + 4]
push eax
push ecx
push edx
push ebx
push edi
call fcn.0040af74
add esp, 0x14
mov ecx, dword [esp + 0x38]
cmp ecx, 0xfffffff8
jae 0x407ddc
mov ebp, dword [esp + 0x34]
cmp ecx, 0xb
jae 0x407d79
mov eax, ecx
add al, cl
mov byte [esp + 4], al
lea edi, [esp + 5]
test ecx, ecx
lea ebx, [esp + 0x40]
jne 0x407da3
jmp 0x407db2
mov esi, ebx
or ebx, 7
lea eax, [ebx + 1]
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0xbc]
mov dword [eax + 8], ebp
add ebx, 2
mov dword [eax], ebx
mov ebx, esi
mov esi, dword [esp + 0xbc]
mov dword [esi + 4], ebx
push ebx
push edi
push ebp
call sub.msvcrt.dll_memmove
add esp, 0xc
mov byte [ebp + ebx], 0
jmp 0x407d6c
call fcn.0040af7a
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 5
sub esp, 0x10
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], str.Unable_to_determine_appropriate_cache_directory.
call fcn.0040af80
add esp, 0x10
or byte [esi + 0xc], 1
mov eax, dword [esp]
mov dword [esi], eax
mov dword [esp], 0
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x407d6c
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, esi
add esp, 0xa8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, ecx
or ebx, 7
lea eax, [ebx + 1]
push eax
mov edi, ecx
call sub.libc.dll_operator_new_unsigned_int_
mov ecx, edi
add esp, 4
mov edi, eax
mov dword [esp + 0xc], eax
add ebx, 2
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
lea ebx, [esp + 0x40]
push ecx
push ebp
push edi
mov ebp, ecx
call sub.msvcrt.dll_memmove
mov ecx, ebp
add esp, 0xc
mov byte [edi + ecx], 0
and byte [esi + 0xc], 0xfe
movsd xmm0, qword [esp + 4]
movsd qword [esi], xmm0
mov eax, dword [esp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x407d63
jmp 0x407d6c
mov ecx, esi
call fcn.004046c0
lea ecx, [esp + 4]
call fcn.004046c0
int3
Function at 0x407df0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov dword [esp], str.DEBUGINFOD_TIMEOUT
call sub.msvcrt.dll_getenv
test eax, eax
je 0x407ef5
mov dword [esp + 0x20], eax
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], str.__t_n_v_f_r
mov dword [esp + 0x14], 6
movsd xmm0, qword [esp + 0x10]
movsd qword [esp], xmm0
mov dword [esp + 8], 0
lea ecx, [esp + 0x20]
call fcn.0040ae6c
sub esp, 0xc
mov esi, dword [esp + 0x24]
cmp eax, esi
cmovae eax, esi
sub esi, eax
add eax, dword [esp + 0x20]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], str.__t_n_v_f_r
mov dword [esp + 0x14], 6
movsd xmm0, qword [esp + 0x10]
movsd qword [esp], xmm0
mov dword [esp + 8], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.0040ae66
sub esp, 0xc
inc eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp eax, edx
cmovae eax, edx
mov edi, edx
sub edi, esi
add edi, eax
cmp edx, edi
cmovb edi, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
movsd xmm0, qword [esp + 0x18]
movsd qword [esp], xmm0
lea eax, [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xa
call fcn.0040ad58
test al, al
jne 0x407ef5
mov eax, dword [esp + 0x10]
mov ecx, eax
sar ecx, 0x1f
xor ecx, dword [esp + 0x14]
jne 0x407ef5
imul eax, eax, 0x3e8
mov edx, eax
sar edx, 0x1f
jmp 0x407efc
xor edx, edx
mov eax, 0x15f90
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x408240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
movsd xmm0, qword [esp + 0x40]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x20]
mov dword [esp], eax
call fcn.004080f0
movzx eax, byte [esp + 0x20]
lea ecx, [esp + 0x21]
test al, 1
je 0x408286
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
jmp 0x408288
shr eax, 1
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
movsd xmm0, qword [esp + 0x48]
movsd qword [esp], xmm0
call fcn.0040af44
mov ecx, eax
or eax, edx
je 0x40841e
mov ebp, 0x15
nop
mov dword [esp + 0x2c], edx
mov edi, edx
shld edi, ecx, 0x1f
mov esi, edx
shr esi, 1
mov ebx, edi
add ebx, esi
adc ebx, 0
mov eax, ebx
mov edx, 0xcccccccd
mul edx
shr edx, 2
lea eax, [edx + edx*4]
sub ebx, eax
sub edi, ebx
sbb esi, 0
mov eax, edi
mov edx, 0xcccccccd
mul edx
imul edi, edi, 0xcccccccc
add edi, edx
imul edx, esi, 0xcccccccd
add edx, edi
mov esi, eax
add esi, eax
lea esi, [esi + esi*4]
mov ebx, ecx
sub ebx, esi
or bl, 0x30
mov byte [esp + ebp + 0x47], bl
dec ebp
mov esi, 9
cmp esi, ecx
mov ecx, 0
sbb ecx, dword [esp + 0x2c]
mov ecx, eax
jb 0x4082b0
mov ebx, 0x15
sub ebx, ebp
cmp ebx, 0xfffffff8
jae 0x408438
cmp ebx, 0xa
ja 0x408347
mov eax, ebx
add al, bl
mov byte [esp + 0x14], al
lea edi, [esp + 0x15]
mov esi, dword [esp + 0x74]
cmp ebp, 0x15
jne 0x408371
jmp 0x408389
mov esi, ebx
or esi, 7
lea eax, [esi + 1]
mov dword [esp], eax
call sub.libc.dll_operator_new_unsigned_int_
mov edi, eax
mov dword [esp + 0x1c], eax
add esi, 2
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x74]
cmp ebp, 0x15
je 0x408389
lea eax, [esp + ebp]
add eax, 0x48
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_memcpy
add edi, ebx
mov byte [edi], 0
movzx eax, byte [esp + 0x14]
mov ecx, eax
shr ecx, 1
test al, 1
lea eax, [esp + 0x15]
cmovne eax, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
cmovne ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
movzx eax, byte [esp + 0x20]
mov ecx, eax
shr ecx, 1
test al, 1
lea eax, [esp + 0x21]
cmovne eax, dword [esp + 0x28]
mov dword [esp + 0x30], eax
cmovne ecx, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
movsd xmm0, qword [esp + 0x30]
movsd qword [esp + 0xc], xmm0
movsd xmm0, qword [esp + 0x38]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
call fcn.00407f10
test byte [esp + 0x14], 1
je 0x408401
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
test byte [esp + 0x20], 1
je 0x408414
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
mov eax, esi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esp + 0x5c], 0x30
mov ebp, 0x14
mov ebx, 0x15
sub ebx, ebp
cmp ebx, 0xfffffff8
jb 0x40832b
lea ecx, [esp + 0x14]
call fcn.004046c0
int3
Function at 0x40a7e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x40a7f1
jmp dword [eax*4 + 0x40d150]
cmp dword [0x410088], 0
je 0x40a900
push 0x41008c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4100a4]
test edi, edi
je 0x40a8f5
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a83b
mov edi, dword [edi + 8]
test edi, edi
je 0x40a8f5
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x40a830
test esi, esi
je 0x40a830
mov ecx, dword [edi + 4]
call dword [0x40d21c]
push esi
call ecx
add esp, 4
jmp 0x40a830
call fcn.0040a170
jmp case.default.0x40a7f1
cmp dword [0x410088], 0
je case.default.0x40a7f1
push 0x41008c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4100a4]
test edi, edi
je 0x40a8e8
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a8a7
mov edi, dword [edi + 8]
test edi, edi
je 0x40a8e8
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x40a8a0
test esi, esi
je 0x40a8a0
mov ecx, dword [edi + 4]
call dword [0x40d21c]
push esi
call ecx
add esp, 4
jmp 0x40a8a0
cmp dword [0x410088], 0
jne 0x40a8dc
push 0x41008c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x410088], 1
jmp case.default.0x40a7f1
push 0x41008c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x40a7f1
push 0x41008c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x410088]
cmp eax, 1
jne case.default.0x40a7f1
mov eax, dword [0x4100a4]
test eax, eax
je 0x40a932
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, esi
test esi, esi
jne 0x40a920
mov dword [0x4100a4], 0
mov dword [0x410088], 0
push 0x41008c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40aa60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x40b004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x40aac6
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x40aac6
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x40aac6
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x40aac6
mov edx, dword [esp + 0xc]
sub edx, dword [0x40b004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x40aab6
add esi, 0x28
dec ecx
je 0x40aac6
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x40aab0
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x40aab0
mov eax, esi
pop esi
pop edi
ret
Function at 0x7dd71282
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x7dd71291
and dword [ecx], 0
mov eax, dword [ebp + 8]
cmp eax, 0xfffffff4
je 0x7dd9f20b
cmp eax, 0xfffffff5
je 0x7dd9f1f7
cmp eax, 0xfffffff6
je 0x7dd9f1e3
push dword [ebp + 0x18]
mov edx, eax
push ecx
push dword [ebp + 0x10]
and edx, 0x10000003
push dword [ebp + 0xc]
push eax
cmp edx, 3
je 0x7dd712f0
call sub.API_MS_Win_Core_File_L1_1_0.dll_WriteFile
pop ebp
ret 0x14
call sym.KERNEL32.dll_WriteConsoleA
jmp 0x7dd712cc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
jmp 0x7dd712af
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x1c]
jmp 0x7dd712af
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x20]
jmp 0x7dd712af
Function at 0x7dd724d4
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0xffffffffffffffff
call sub.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_CreateRemoteThreadEx
pop ebp
ret 0x18
Function at 0x7dd73346
Capabilities:
Access pe header
Check for peb beingdebugged flag
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
je 0x7dd7663a
pop ebp
jmp fcn.7dd7338b
push dword [ebp + 0x10]
push 1
push dword [ebp + 8]
call fcn.7dd76651
jmp 0x7dd73355