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

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
mov eax, 0x5848
call fcn.00401a2c
call fcn.00401820
lea edi, [ebp - 0x38]
mov esi, str.kernel32
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x582c]
mov esi, 0x403040
mov cx, 0x15fd
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x583c], edx
call sub.KERNEL32.dll_FreeConsole
mov ebx, dword [ebp - 0x638]
lea esi, [ebp - 0x38]
mov dword [esp], esi
call sub.KERNEL32.dll_GetModuleHandleA
push edx
mov dword [esp], eax
xor eax, eax
mov ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
lea ecx, [esi + ecx]
mov dword [esp + 4], ecx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x57f4
mov dword [esp], 0
call eax
sub esp, 0x10
mov edi, eax
xor esi, esi
mov edx, dword [ebp - 0x583c]
mov ecx, edi
mov al, byte [edx + esi]
mov byte [edi + esi], al
inc esi
cmp esi, 0x57f4
jne 0x4013c4
lea edx, [edi + 0x51f4]
nop
xor dword [ecx], ebx
add ebx, 0x499602d2
add ecx, 4
cmp ecx, edx
jne 0x4013dc
call edi
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
leave
lea esp, [ecx - 4]
ret

Function at 0x401510
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401536
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x4015ca
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401585
cmp eax, 0x40
je 0x401585
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401529
cmp eax, 0x40
je 0x401529
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x401529
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sub.msvcrt.dll__assert
lea esi, [esi]
lea edi, [edi]

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4d9e59ee
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x76590793
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x424360
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x90c
mov eax, dword [0x6c6f60]
xor eax, esp
mov dword [esp + 0x908], eax
push ebx
push ebp
push esi
push edi
push 0x7f
lea eax, [esp + 0x9d]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0xa4], 0
call fcn.005e2ec0
push 0x7f
lea ecx, [esp + 0x29]
push 0
push ecx
mov byte [esp + 0x30], 0
call fcn.005e2ec0
mov ebp, dword [ebx]
mov edi, dword [ebp + 0x128]
mov edx, dword [edi + 0x1eb4]
sub edx, dword [edi + 0x1eb0]
lea eax, [edi + 0x1cb0]
add edx, 2
push edx
push 0x3c
mov esi, ebp
mov dword [esp + 0x30], ebp
call fcn.00423d80
mov eax, dword [edi + 0x1eb0]
movzx ecx, byte [eax]
inc eax
add esp, 0x20
mov dword [edi + 0x1eb0], eax
cmp ecx, 0x18
je 0x424548
cmp ecx, 0x23
je 0x424522
cmp ecx, 0x27
jne 0x4245da
push 0
push ecx
push 0xfa
push 0xff
push 0x627acc
lea eax, [esp + 0x12c]
push 0x800
push eax
call fcn.004106a0
mov esi, dword [edi + 0x1cac]
add esp, 0x1c
mov ebp, 4
test esi, esi
je 0x4244b6
lea esp, [esp]
mov ebx, dword [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x424447
sub eax, edx
lea edi, [eax + ebp + 1]
cmp edi, 0x7fa
jae 0x4244ab
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x9c]
push edx
push str._127_____127s
push ebx
call fcn.004d41b0
add esp, 0x10
test eax, eax
je 0x4244ab
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0xa0]
push ecx
push 0
mov edx, 0x800
push str._c_s_c_s
sub edx, ebp
push edx
lea eax, [esp + ebp + 0x130]
push eax
call fcn.004106a0
add esp, 0x1c
mov ebp, edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x424440
mov ebx, dword [esp + 0x14]
push 0xf0
push 0xff
mov ecx, 0x800
push 0x62a57c
sub ecx, ebp
push ecx
lea edx, [esp + ebp + 0x128]
push edx
call fcn.004106a0
mov ecx, dword [ebx + 0x154]
add esp, 0x14
push 0
add ebp, 2
push ebp
lea eax, [esp + 0x120]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x424515
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push edx
call fcn.0040c610
add esp, 0xc
mov esi, dword [esp + 0x10]
add ebp, 0xfffffffe
push ebp
jmp 0x4245c9
lea ecx, [edi + 0x1c28]
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x424530
push 0xf0
push 0xff
push ecx
push 0
push 0x23
jmp 0x424569
lea ecx, [edi + 0x1c08]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x424553
push 0xf0
push 0xff
push ecx
push 0
push 0x18
push 0xfa
push 0xff
sub eax, esi
push str._c_c_c_c_s_c_c
lea edi, [eax + 6]
lea eax, [esp + 0x138]
push 0x800
push eax
call fcn.004106a0
mov edx, dword [ebx + 0x154]
add esp, 0x28
push 0
push edi
lea ecx, [esp + 0x120]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x4245c3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.0040c610
add esp, 0xc
add edi, 0xfffffffe
mov esi, ebp
push edi
push 0x3e
lea eax, [esp + 0x122]
call fcn.00423d80
add esp, 8
mov ecx, dword [esp + 0x918]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c950e
add esp, 0x90c
ret
Function at 0x10008900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push esi
push ebx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
shl ecx, 3
mov dword [ebp - 4], ecx
mov eax, ecx
add eax, eax
push eax
push dword [edx + 0x1c]
push dword [edx + 0xec]
mov eax, dword [ebp + 0x10]
push eax
call sym._expand_right_edge
xor eax, eax
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx + 0xc]
jge 0x10008980
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ecx + eax*4]
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx + eax*4]
xor edi, edi
xor esi, esi
inc eax
mov dword [ebp - 8], eax
cmp esi, dword [ebp - 4]
jae 0x10008975
lea esi, [esi]
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
add eax, edx
add eax, edi
sar eax, 1
mov byte [ebx], al
inc ebx
xor edi, 1
add ecx, 2
inc esi
cmp esi, dword [ebp - 4]
jb 0x10008958
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 0xc]
jl 0x10008939
lea esp, [ebp - 0x28]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x10008988
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push esi
push ebx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
shl ecx, 3
mov dword [ebp - 4], ecx
mov eax, ecx
add eax, eax
push eax
push dword [edx + 0x1c]
push dword [edx + 0xec]
mov edi, dword [ebp + 0x10]
push edi
call sym._expand_right_edge
xor edx, edx
xor eax, eax
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 0xc]
jge 0x10008a2b
nop
lea esi, [esi]
mov edi, dword [ebp + 0x14]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ecx + edx*4]
mov ecx, dword [ecx + edx*4 + 4]
mov dword [ebp - 8], 1
xor edi, edi
add edx, 2
mov dword [ebp - 0xc], edx
inc eax
mov dword [ebp - 0x10], eax
cmp edi, dword [ebp - 4]
jae 0x10008a1d
movzx eax, byte [ebx]
movzx edx, byte [ebx + 1]
add eax, edx
movzx edx, byte [ecx]
add eax, edx
movzx edx, byte [ecx + 1]
add eax, edx
add eax, dword [ebp - 8]
sar eax, 2
mov byte [esi], al
inc esi
xor byte [ebp - 8], 3
add ebx, 2
add ecx, 2
inc edi
cmp edi, dword [ebp - 4]
jb 0x100089f0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
cmp eax, dword [edi + 0xc]
jl 0x100089c8
lea esp, [ebp - 0x28]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x10009ce8
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 0xca
jne 0x10009d25
add esp, 0xfffffff4
push ebx
call sym.libjpeg.dll_jinit_master_decompress
add esp, 0x10
cmp dword [ebx + 0x40], 0
je 0x10009d1e
mov dword [ebx + 0x14], 0xcf
mov eax, 1
jmp 0x10009de6
mov dword [ebx + 0x14], 0xcb
mov eax, dword [ebx + 0x14]
cmp eax, 0xcb
jne 0x10009db8
mov eax, dword [ebx + 0x1b4]
cmp dword [eax + 0x10], 0
je 0x10009da2
jmp 0x10009d76
mov edx, dword [ebx + 8]
test edx, edx
je 0x10009d88
cmp eax, 3
je 0x10009d59
cmp eax, 1
jne 0x10009d76
mov eax, dword [edx + 4]
lea ecx, [eax + 1]
mov dword [edx + 4], ecx
mov ecx, dword [ebx + 8]
inc eax
mov edx, dword [ecx + 8]
cmp eax, edx
jl 0x10009d76
add edx, dword [ebx + 0x140]
mov dword [ecx + 8], edx
mov eax, dword [ebx + 8]
test eax, eax
je 0x10009d88
add esp, 0xfffffff4
push ebx
mov eax, dword [eax]
call eax
add esp, 0x10
add esp, 0xfffffff4
mov eax, dword [ebx + 0x1b4]
push ebx
mov eax, dword [eax]
call eax
add esp, 0x10
test eax, eax
je 0x10009db0
cmp eax, 2
jne 0x10009d48
mov eax, dword [ebx + 0x90]
mov dword [ebx + 0x98], eax
jmp 0x10009ddd
xor eax, eax
jmp 0x10009de6
cmp eax, 0xcc
je 0x10009ddd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx]
mov eax, dword [ebx + 0x14]
mov dword [edx + 0x18], eax
add esp, 0xfffffff4
mov eax, dword [ebx]
push ebx
mov eax, dword [eax]
call eax
add esp, 0x10
add esp, 0xfffffff4
push ebx
call sym._output_pass_setup
mov ebx, dword [ebp - 0x18]
leave
ret

Function at 0x10009dec
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xcc
je 0x10009ebc
add esp, 0xfffffff4
mov eax, dword [esi + 0x1a4]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
add esp, 0x10
jmp 0x10009ebc
mov eax, dword [esi + 0x74]
cmp dword [esi + 0x8c], eax
jae 0x10009e92
mov esi, esi
mov edx, dword [esi + 8]
test edx, edx
je 0x10009e5f
mov eax, dword [esi + 0x8c]
mov dword [edx + 4], eax
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x74]
mov dword [edx + 8], eax
add esp, 0xfffffff4
mov eax, dword [esi + 8]
push esi
mov eax, dword [eax]
call eax
add esp, 0x10
mov ebx, dword [esi + 0x8c]
mov edx, dword [esi + 0x1a8]
push 0
lea eax, [esi + 0x8c]
push eax
push 0
push esi
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x8c]
add esp, 0x10
cmp eax, ebx
jne 0x10009e8d
xor eax, eax
jmp 0x10009ee4
cmp eax, dword [esi + 0x74]
jb 0x10009e38
add esp, 0xfffffff4
mov eax, dword [esi + 0x1a4]
push esi
mov eax, dword [eax + 4]
call eax
add esp, 0xfffffff4
mov eax, dword [esi + 0x1a4]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x8c], 0
add esp, 0x20
mov eax, dword [esi + 0x1a4]
cmp dword [eax + 8], 0
jne 0x10009e2b
mov eax, 0xcd
cmp dword [esi + 0x44], 0
je 0x10009edc
mov eax, 0xce
mov dword [esi + 0x14], eax
mov eax, 1
lea esp, [ebp - 0x18]
pop ebx
pop esi
leave
ret
Function at 0x1000a1b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x18]
push dword [ebx + 0x14]
push 0x1000
push 1
push dword [ebx + 0x18]
call sym._fwrite
add esp, 0x10
cmp eax, 0x1000
je 0x1000a1f5
mov eax, dword [esi]
mov dword [eax + 0x14], 0x25
add esp, 0xfffffff4
mov eax, dword [esi]
push esi
mov eax, dword [eax]
call eax
mov eax, dword [ebx + 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], 0x1000
mov eax, 1
lea esp, [ebp - 0x18]
pop ebx
pop esi
leave
ret

Function at 0x1000a210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push esi
push ebx
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x18]
mov ebx, 0x1000
sub ebx, dword [esi + 4]
je 0x1000a254
push dword [esi + 0x14]
push ebx
push 1
push dword [esi + 0x18]
call sym._fwrite
add esp, 0x10
cmp eax, ebx
je 0x1000a254
mov eax, dword [edi]
mov dword [eax + 0x14], 0x25
add esp, 0xfffffff4
mov eax, dword [edi]
push edi
mov eax, dword [eax]
call eax
add esp, 0x10
add esp, 0xfffffff4
push dword [esi + 0x14]
call sym._fflush
add esp, 0xfffffff4
push dword [esi + 0x14]
call sym._ferror
add esp, 0x20
test eax, eax
je 0x1000a284
mov eax, dword [edi]
mov dword [eax + 0x14], 0x25
add esp, 0xfffffff4
mov eax, dword [edi]
push edi
mov eax, dword [eax]
call eax
lea esp, [ebp - 0x18]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x1000a2e8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x18]
push dword [ebx + 0x1c]
push 0x1000
push 1
push dword [ebx + 0x20]
call sym._fread
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1000a355
cmp dword [ebx + 0x24], 0
je 0x1000a32d
mov eax, dword [esi]
mov dword [eax + 0x14], 0x2a
add esp, 0xfffffff4
mov eax, dword [esi]
push esi
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [esi]
mov dword [eax + 0x14], 0x78
add esp, 0xfffffff8
mov eax, dword [esi]
push 0xffffffffffffffff
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [ebx + 0x20]
mov byte [eax], 0xff
mov eax, dword [ebx + 0x20]
mov byte [eax + 1], 0xd9
mov edx, 2
mov eax, dword [ebx + 0x20]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov dword [ebx + 0x24], 0
mov eax, 1
lea esp, [ebp - 0x18]
pop ebx
pop esi
leave
ret
Function at 0x100143b4
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10014367
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10014385
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x100143e3
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
add byte [eax], al
add byte [eax], ah
add byte [eax], al
add byte [eax], ah
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x100143ca
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x100143d3
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x100143dd
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100143bf
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10014349
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10014430
dec eax
je 0x10014427
sub eax, 3
je 0x1001441e
mov dword [ebp - 4], 0x40
jmp 0x1001444d
mov dword [ebp - 4], 4
jmp 0x10014433
mov dword [ebp - 4], 0x20
jmp 0x10014433
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1001447f
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x100143ff
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10013c90
wait
xchg edi, eax
in al, 0x13
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x1001448b
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10017278
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push esi
push ebx
mov edi, dword [ebp + 8]
mov dword [edi + 4], 0
add esp, 0xfffffff4
push edi
call sym.libjpeg.dll_jpeg_mem_init
mov dword [ebp - 8], eax
add esp, 0xfffffff8
push 0x54
push edi
call sym.libjpeg.dll_jpeg_get_small
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x100172d3
add esp, 0xfffffff4
push edi
call sym.libjpeg.dll_jpeg_mem_term
mov eax, dword [edi]
mov dword [eax + 0x14], 0x36
mov eax, dword [edi]
mov dword [eax + 0x18], 0
add esp, 0xfffffff4
mov eax, dword [edi]
push edi
mov eax, dword [eax]
call eax
add esp, 0x20
mov dword [ebx], sym._alloc_small
mov dword [ebx + 4], sym._alloc_large
mov dword [ebx + 8], sym._alloc_sarray
mov dword [ebx + 0xc], sym._alloc_barray
mov dword [ebx + 0x10], sym._request_virt_sarray
mov dword [ebx + 0x14], sym._request_virt_barray
mov dword [ebx + 0x18], sym._realize_virt_arrays
mov dword [ebx + 0x1c], sym._access_virt_sarray
mov dword [ebx + 0x20], sym._access_virt_barray
mov dword [ebx + 0x24], sym._free_pool
mov dword [ebx + 0x28], sym._self_destruct
mov dword [ebx + 0x30], 0x3b9aca00
mov eax, dword [ebp - 8]
mov dword [ebx + 0x2c], eax
mov ecx, 1
lea esi, [ebx + 0x34]
lea edx, [ebx + 0x3c]
mov eax, 4
mov dword [esi + eax], 0
mov dword [edx + eax], 0
add eax, 0xfffffffc
dec ecx
jns 0x1001733c
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0x54
mov dword [edi + 4], ebx
add esp, 0xfffffff4
push 0x10017269
call sym._getenv
mov edx, eax
add esp, 0x10
test edx, edx
je 0x100173ca
mov byte [ebp - 1], 0x78
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 8]
push eax
push 0x10017271
push edx
call sym._sscanf
test eax, eax
jle 0x100173ca
mov al, byte [ebp - 1]
cmp al, 0x6d
je 0x100173a4
cmp al, 0x4d
jne 0x100173b7
mov edx, dword [ebp - 8]
mov eax, edx
shl eax, 5
sub eax, edx
lea eax, [edx + eax*4]
shl eax, 3
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, edx
shl eax, 5
sub eax, edx
lea eax, [edx + eax*4]
shl eax, 3
mov dword [ebx + 0x2c], eax
lea esp, [ebp - 0x28]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x10019250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x1cc]
add esp, 0xfffffffc
mov edx, dword [eax + 4]
push 0x7fc
push 1
push eax
mov eax, dword [edx]
call eax
mov ecx, eax
add ecx, 0x3fc
mov dword [ebx + 0x28], ecx
xor esi, esi
xor edx, edx
mov dword [ecx + edx*4], esi
mov eax, edx
neg eax
mov ebx, esi
neg ebx
mov dword [ecx + eax*4], ebx
inc edx
inc esi
cmp edx, 0xf
jle 0x10019282
cmp edx, 0x2f
jg 0x100192b9
mov dword [ecx + edx*4], esi
mov eax, edx
neg eax
mov ebx, esi
neg ebx
mov dword [ecx + eax*4], ebx
inc edx
mov eax, edx
xor al, 1
and eax, 1
add esi, eax
cmp edx, 0x2f
jle 0x1001929c
cmp edx, 0xff
jg 0x100192df
mov ebx, esi
neg ebx
lea esi, [esi]
mov dword [ecx + edx*4], esi
mov eax, edx
neg eax
mov dword [ecx + eax*4], ebx
inc edx
cmp edx, 0xff
jle 0x100192cc
lea esp, [ebp - 0x18]
pop ebx
pop esi
leave
ret
Function at 0x401028
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa20
mov eax, dword [0x403790]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xa1c]
push 7
push 0x104
push eax
xor ebx, ebx
mov esi, 0x80004005
push ebx
push ebx
push 0x22
call sub.Mso99LWin32Client.dll_Ordinal_519
test eax, eax
je 0x401170
push 7
push 0x104
lea eax, [ebp - 0x60c]
push eax
push ebx
call sub.Mso30Win32Client.dll_Ordinal_1149
push eax
push dword [ebp + 0xc]
call sub.Mso99LWin32Client.dll_Ordinal_519
test eax, eax
je 0x401170
lea eax, [ebp - 0x60c]
push eax
push str._t___s___x
lea eax, [ebp - 0x814]
push 0x104
push eax
call fcn.00401232
add esp, 0x10
cmp eax, 0xffffffff
je 0x401170
push 0x100
lea eax, [ebp - 0x404]
push eax
push 0xe56f1f9e
push edi
call fcn.00401185
mov esi, eax
test esi, esi
js 0x401170
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0xf6cf0522
push edi
call fcn.00401185
mov esi, eax
test esi, esi
js 0x401170
lea eax, [ebp - 0xa20]
mov dword [ebp - 0xa20], ebx
push eax
call fcn.00401377
test eax, eax
js 0x40112b
cmp dword [ebp - 0xa20], 3
jne 0x401116
push 1
jmp 0x401120
cmp dword [ebp - 0xa20], 2
jne 0x40112b
push ebx
push dword [0x405040]
call sub.Mso20Win32Client.dll_Ordinal_906
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
push 1
call fcn.0040124e
mov esi, eax
test esi, esi
js 0x401170
push 1
push ebx
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0xa1c]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb esi, esi
and esi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004013e3
mov esp, ebp
pop ebp
ret 8