joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4119d7
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
not eax
mov ecx, dword [edi + 8]
mov esi, dword [edi]
cmp eax, ecx
jae 0x4119fb
or esi, esi
je 0x411a6b
sub esp, 0xc
push esi
jmp 0x411a5c
or esi, esi
je 0x411a0c
mov edx, dword [ebp + 0x10]
mov eax, dword [edi + 4]
add edx, ecx
dec eax
cmp edx, eax
jbe 0x411a81
cmp dword [ebp + 0x10], 0
js 0x411a2e
test ecx, ecx
js 0x411a2e
mov eax, dword [ebp + 0x10]
lea edx, [ecx + ecx]
add eax, eax
not eax
cmp eax, edx
jb 0x411a2e
mov eax, dword [ebp + 0x10]
add eax, ecx
lea ebx, [eax + eax]
jmp 0x411a31
or ebx, 0xffffffff
test esi, esi
je 0x411a41
push eax
push eax
push ebx
push esi
call dword [0x41e010]
jmp 0x411a4b
sub esp, 0xc
push ebx
call dword [0x41e008]
add esp, 0x10
test eax, eax
jne 0x411a7c
mov eax, dword [edi]
test eax, eax
je 0x411a6b
sub esp, 0xc
push eax
call dword [0x41e00c]
mov dword [edi], 0
add esp, 0x10
sub esp, 0xc
push edi
call dword [0x41e00c]
pushal
popal
push 0x1b
pop eax
jmp 0x411a9b
mov dword [edi], eax
mov dword [edi + 4], ebx
mov eax, dword [edi + 8]
add eax, dword [edi]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x10]
add dword [edi + 8], eax
xor eax, eax
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x418870
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push dword [ebp + 8]
call sub.msvcrt.dll_getenv
add esp, 0x10
mov edx, eax
mov byte [ebp - 0x104], 0
test eax, eax
je 0x4188a5
lea eax, [ebp - 0x104]
push ecx
push 0x104
push eax
push edx
call sub.KERNEL32.dll_ExpandEnvironmentStringsA
pop eax
xor eax, eax
cmp byte [ebp - 0x104], 0
je 0x4188c3
sub esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [0x41e014]
add esp, 0x10
leave
ret

Function at 0x4188dd
Capabilities:
Packed with generic packer

Disassembly:
push ebp
push esp
pop ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
mov dl, byte [ebp + 0x1c]
mov byte [ebp - 0x2d], dl
or eax, eax
lea ebx, [eax + 1]
jne 0x418905
cld
or ecx, 0xffffffff
sub eax, eax
mov edi, dword [ebp + 0xc]
repne scasb al, byte es:[edi]
push ecx
pop ebx
not ebx
sub esp, 0xc
push ebx
call dword [0x41e008]
push eax
pop esi
add esp, 0x10
pushal
popal
push 0x1b
pop eax
test esi, esi
je 0x418a53
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x38], eax
jmp 0x418a33
mov edx, dword [ebp + 0xc]
mov dl, byte [edx]
mov byte [ebp - 0x25], dl
cmp dl, 0x25
jne 0x418a03
cmp ebx, 2
jbe 0x418a03
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x38]
movzx edx, byte [eax + 1]
cmp dword [edi], 1
jne 0x418977
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
movzx eax, word [eax + edx*2]
and eax, 0x80
jmp 0x418987
push edi
push edi
push pe_nt_image_headers32
push edx
call sub.msvcrt.dll__isctype
add esp, 0x10
or eax, eax
je 0x418a03
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0xc]
add eax, 2
mov dword [ebp - 0x20], eax
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
movzx edx, byte [edi + 2]
cmp dword [eax], 1
jne 0x4189b7
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
movzx eax, word [eax + edx*2]
and eax, 0x80
jmp 0x4189c7
push ecx
push ecx
push pe_nt_image_headers32
push edx
call sub.msvcrt.dll__isctype
add esp, 0x10
or eax, eax
je 0x418a03
mov edx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x20]
sub ebx, 2
mov al, byte [edx]
mov byte [ebp - 0xf], al
mov al, byte [edi]
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xe], al
push eax
lea eax, [ebp - 0x14]
push 0x10
push eax
lea eax, [ebp - 0xf]
push eax
call sub.msvcrt.dll_strtoul
mov dword [esp], eax
call fcn.00415e15
mov dword [ebp + 0xc], edi
mov byte [ebp - 0x25], al
add esp, 0x10
cmp byte [ebp - 0x2d], 0
je 0x418a23
cmp byte [ebp - 0x25], 0x1f
ja 0x418a23
sub esp, 0xc
push esi
call dword [0x41e00c]
nop
push 3
nop
pop eax
add esp, 0x10
jmp 0x418a53
mov edx, dword [ebp - 0x24]
mov al, byte [ebp - 0x25]
mov byte [edx + esi], al
inc edx
inc dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
dec ebx
jne 0x418935
mov edi, dword [ebp - 0x24]
mov byte [esi + edi], 0
cmp dword [ebp + 0x18], 0
je 0x418a4c
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41c078
Capabilities:
Set socket configuration

Disassembly:
push ebp
xor eax, eax
push esp
pop ebp
sub esp, 0x1c
cmp dword [ebp + 0xc], 0
setne al
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x8004667e
push dword [ebp + 8]
call sub.WS2_32.DLL_ioctlsocket
leave
ret
Function at 0x41c0a0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
push esp
pop ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [edx], 0
test ebx, ebx
jne 0x41c0d2
cld
or ecx, 0xffffffff
sub eax, eax
mov edi, dword [ebp + 0xc]
repne scasb al, byte es:[edi]
not ecx
lea ebx, [ecx - 1]
nop
push 3
nop
pop edx
lea eax, [ebx*4]
push edx
pop ecx
sub edx, edx
sub esp, 0xc
div ecx
add eax, 4
push eax
call dword [0x41e008]
mov dword [ebp - 0x2c], eax
add esp, 0x10
push 0x1b
pop eax
pushal
popal
cmp dword [ebp - 0x2c], 0
je 0x41c23b
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
jmp 0x41c211
mov dword [ebp - 0x28], 0
pushfd
xor edx, edx
inc edx
popfd
test ebx, ebx
je 0x41c13a
inc dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
dec ebx
mov al, byte [ecx]
inc ecx
mov byte [edx + ebp - 0x10], al
mov dword [ebp - 0x20], ecx
jmp 0x41c13f
mov byte [edx + ebp - 0x10], 0
inc edx
cmp edx, 4
jne 0x41c123
movzx eax, byte [ebp - 0xf]
movzx edx, byte [ebp - 0xe]
push eax
pop esi
push edx
pop ecx
and eax, 3
and edx, 0xf
movzx edi, byte [ebp - 0xd]
shl eax, 4
shr ecx, 4
shl edx, 2
or ecx, eax
shr esi, 2
push edi
pop eax
shr eax, 6
or edx, eax
cmp dword [ebp - 0x28], 1
je 0x41c17e
cmp dword [ebp - 0x28], 2
jne 0x41c1cc
jmp 0x41c1a0
movzx eax, cl
sub esp, 0xc
push esi
pop edx
movsx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
movzx eax, dl
movsx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
push str._c_c
jmp 0x41c200
movzx eax, dl
push edi
push edi
movsx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
movzx eax, cl
push esi
pop ecx
movsx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
movzx eax, cl
movsx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
push str._c_c_c
jmp 0x41c200
and edi, 0x3f
push eax
movsx eax, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
movzx eax, dl
push esi
pop edx
movsx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
movzx eax, cl
movsx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
movzx eax, dl
movsx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
push str._c_c_c_c
push 5
push dword [ebp - 0x24]
call sym.survivalist.exe_curl_msnprintf
add esp, 0x20
add dword [ebp - 0x24], 4
test ebx, ebx
jne 0x41c117
mov ecx, dword [ebp - 0x24]
cld
mov byte [ecx], 0
or ecx, 0xffffffff
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x2c]
push edx
pop edi
mov dword [eax], edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x18]
not ecx
dec ecx
mov dword [eax], ecx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41c998
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
push esp
pop ebp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push ebx
call sub.ADVAPI32.DLL_CryptAcquireContextA
add esp, 0xc
or eax, eax
je 0x41c9d4
sub esp, 0xc
lea eax, [ebx + 4]
push eax
push 0
push 0
push 0x8003
push dword [ebx]
call sub.ADVAPI32.DLL_CryptCreateHash
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret

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 0x419200
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x419222
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419229
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419218
mov eax, 1
add ebx, ebx
jne 0x41923b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419230
jne 0x41924c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419230
xor ecx, ecx
sub eax, 3
jb 0x419260
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4192d2
mov ebp, eax
add ebx, ebx
jne 0x41926b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419278
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41929c
inc ecx
add ebx, ebx
jne 0x419288
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41927d
jne 0x419299
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41927d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4192bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4192ad
jmp 0x41921e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4192bc
add edi, ecx
jmp 0x41921e
pop esi
mov edi, esi
mov ecx, 0x156
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4192da
cmp byte [edi], 2
jne 0x4192da
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 eax, ebx
loop 0x4192df
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x41934e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19bbc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19c48]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41930c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19c4c]
or eax, eax
je 0x419348
mov dword [ebx], eax
add ebx, 4
jmp 0x419329
call dword [esi + 0x19c50]
popal
jmp 0x403c73
Function at 0x40a080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x409015
lea edi, [esi - 0x8015]
push edi
jmp 0x40a09a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40a0a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40a090
mov eax, 1
add ebx, ebx
jne 0x40a0b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40a0a8
jne 0x40a0c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a0a8
xor ecx, ecx
sub eax, 3
jb 0x40a0d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40a14a
mov ebp, eax
add ebx, ebx
jne 0x40a0e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40a0f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40a114
inc ecx
add ebx, ebx
jne 0x40a100
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40a0f5
jne 0x40a111
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a0f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40a134
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40a125
jmp 0x40a096
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40a134
add edi, ecx
jmp 0x40a096
pop esi
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x40a19c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc100]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc1a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40a151
mov ecx, edi
jns 0x40a180
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc1ac]
or eax, eax
je 0x40a196
mov dword [ebx], eax
add ebx, 4
jmp 0x40a16e
call dword [esi + 0xc1a8]
mov ebp, dword [esi + 0xc1b0]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40a1d0
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x18042178
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x181c900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, 0x181cb030
push edi
mov edi, ecx
cmp dword [0x181cb030], ebx
je 0x180421b9
push ecx
mov ecx, esi
call fcn.1803ab19
mov ebx, eax
mov ecx, ebx
call fcn.1801d087
test ebx, ebx
js 0x18042227
add esi, 0x24
xor ebx, ebx
cmp dword [esi], ebx
jne 0x1804219b
lfence
cmp byte [edi + 0x3c], 0
je 0x18042235
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x1804222e
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push ebx
push edi
push 0x18042260
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x180421fc
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1804222e
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1804221e
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 0x34]
add ecx, ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1804223d
lfence
mov eax, ebx
jmp 0x18042248
mov esi, 0x80004005
jmp 0x18042241
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x18042246
call fcn.18042134
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18118dc8
leave
ret 4
Function at 0x1000110c
Capabilities:
Accept command line arguments
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push 0x10001078
push edi
call dword [sym.imp.NTDLL.dll_wcsstr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10001184
xor eax, eax
mov word [esi - 2], ax
lea eax, [ebp - 0x208]
push 0x104
push eax
push 0x100010a8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 5
lea eax, [esi + 0xc]
push 1
push eax
call dword [sym.imp.NTDLL.dll__wtoi]
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
push edi
call fcn.100012ed
test eax, eax
je 0x10001184
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000127a
Capabilities:
Get explorer pid

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetShellWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10001296
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10002008]
test eax, eax
je 0x100012e9
lea ecx, [ebp - 4]
push ecx
push 0x40
push 5
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x10002008]
mov ecx, dword [0x1000200c]
mov dword [eax], ecx
mov eax, dword [0x10002008]
mov cl, byte [0x10002010]
mov byte [eax + 4], cl
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push dword [0x10002008]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
and dword [0x10002008], 0
mov esp, ebp
pop ebp
ret
Function at 0x100012ed
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xf4
push ebx
mov ebx, dword [esp + 0x10c]
xor eax, eax
push ebp
push esi
mov esi, dword [esp + 0x10c]
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebp
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x18], 0x80
push edi
lea edi, [esp + 0x3c]
push 0x12
pop ecx
rep stosd dword es:[edi], eax
mov dword [esp + 0x68], 1
mov word [esp + 0x6c], bx
push 0x48
pop edi
mov dword [esp + 0x3c], edi
test esi, esi
je 0x100013f3
lea eax, [esp + 0x20]
push eax
call fcn.10001831
xor eax, eax
cmp dword [esp + 0x20], eax
cmove esi, eax
test esi, esi
je 0x100013f3
push esi
push ebp
push 0x80
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1000139c
push ebx
push dword [esp + 0x118]
call fcn.1000127a
push eax
push dword [esp + 0x118]
push dword [esp + 0x118]
call fcn.100012ed
jmp 0x10001490
push 0x20
pop ecx
mov dword [esp + 0x3c], edi
xor eax, eax
lea edi, [esp + 0x84]
mov ebx, 0x80020
rep stosd dword es:[edi], eax
lea eax, [esp + 0x84]
xor edi, edi
mov dword [esp + 0x80], eax
lea eax, [esp + 0x1c]
push eax
push edi
push 1
lea eax, [esp + 0x90]
push eax
call dword [esp + 0x30]
push edi
push edi
push 4
lea eax, [esp + 0x20]
push eax
push 0x20000
push edi
push dword [esp + 0x98]
call dword [esp + 0x40]
jmp 0x100013f9
mov ebx, dword [esp + 0x18]
xor edi, edi
cmp dword [esp + 0x114], ebp
je 0x10001416
lea eax, [esp + 0x10]
push eax
push 0xb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp dword [esp + 0x10], ebp
lea eax, [esp + 0x2c]
mov ebp, dword [esp + 0x10c]
push eax
lea eax, [esp + 0x40]
push eax
push ebp
push edi
push ebx
push edi
push edi
push edi
push dword [esp + 0x128]
push edi
je 0x10001447
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x1000144d
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test esi, esi
je 0x1000145e
push dword [esp + 0x80]
call dword [esp + 0x2c]
cmp dword [esp + 0x14], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10001471
push dword [esp + 0x14]
call edi
cmp dword [esp + 0x10], 0
je 0x1000147e
push dword [esp + 0x10]
call edi
test ebx, ebx
je 0x1000149d
push dword [esp + 0x30]
call edi
push dword [esp + 0x2c]
call edi
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2e4
jne 0x1000148e
cmp dword [esp + 0x114], 0
jne 0x1000148e
push dword [esp + 0x118]
push 1
push esi
push ebp
jmp 0x1000138b
Function at 0x100014c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x10002008], 0
jne 0x1000151d
push edi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [0x10002008], edi
mov eax, dword [edi]
mov dword [0x1000200c], eax
mov al, byte [edi + 4]
mov byte [0x10002010], al
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x100016a3
mov byte [edi], 0xe9
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x1000153d
Capabilities:
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
push ebx
push esi
push edi
push 0x22
pop eax
mov word [ebp - 0x624], ax
mov esi, 0x104
push esi
lea eax, [ebp - 0x622]
xor ebx, ebx
push eax
push 0x100010c8
inc ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edi, [ebp - 0x622]
mov ecx, 0x100010d8
lea edi, [edi + eax*2]
mov edx, edi
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10001580
push esi
add edi, 0xc
push edi
push dword [0x10002004]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
mov esi, 0x100010e8
call fcn.1000166d
sub eax, esi
movzx ecx, word [esi]
mov word [eax + esi], cx
lea esi, [esi + 2]
test cx, cx
jne 0x100015ad
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001666
xor eax, eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 5
jne 0x1000161b
lea eax, [ebp - 0xc]
cmp dword [eax], 0x6469683a
jne 0x1000161b
cmp byte [eax + 4], 0x65
jne 0x1000161b
xor ecx, ecx
mov ebx, ecx
jmp 0x1000161d
xor ecx, ecx
sub edi, 2
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, cx
jne 0x10001620
mov eax, dword [0x100010f4]
mov dword [edi], eax
lea eax, [ebp - 0x214]
push 0x104
push eax
push 0x100010a8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
push 1
call fcn.1000127a
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x624]
push eax
call fcn.100012ed
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100017f9
Capabilities:
Create thread

Disassembly:
push 0x10002004
push fcn.100017f9
push 5
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
push dword [0x10002004]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
push eax
push eax
push eax
push 0x10001521
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x401237
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b2f8]
mov dword [ebp - 0x30], eax
mov eax, dword [str.R9fR]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], eax
call fcn.00401230
mov ebx, dword [ebp - 0x10]
mov eax, dword [0x41b300]
add ebx, 0x23f
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b304]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov ecx, dword [0xae2ccc]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4012c4
push 0x418028
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [ebp - 4]
mov ecx, dword [0xae2ccc]
add eax, dword [ebp - 0x28]
mov edx, 0xedeb2e40
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
mov eax, dword [0xae2cc8]
cmove eax, edx
xor edx, edx
mov dword [0xae2cc8], eax
cmp ecx, 0x3eb
mov eax, dword [0xae2c20]
cmove eax, edx
mov dword [0xae2c20], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], edx
mov dword [0xae2cc4], 0xf4ea3dee
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
mov dword [ebp - 0x18], esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 4]
add ebx, 0x61c88647
shr edx, cl
add edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
xor edx, dword [ebp - 0x20]
xor eax, edx
mov dword [ebp - 0x10], ebx
sub edi, eax
mov dword [ebp - 4], eax
dec dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
jne 0x401292
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret