joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4049c8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
push ebx
sub esp, 0x94
mov esi, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa8]
lea edx, [esp + 4]
xor eax, eax
mov edi, 1
mov dword [esp], eax
push 0xa
push eax
push eax
push eax
push eax
push eax
push eax
push dword [esi + 0x2548]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push eax
push 2
push edx
push esi
call fcn.00459d5c
lea edx, [esp + 0x3c]
lea eax, [esp + 0x38]
push eax
push dword [esp + 0xe8]
push ebx
push edx
push esi
call fcn.0040547c
add esp, 0x4c
test eax, eax
jne 0x404a83
mov eax, dword [esp]
test eax, eax
je 0x404a7f
lea edx, [esp + 0x6c]
push eax
push 0x4776f4
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
lea eax, [esp + 0x78]
push eax
push 1
push 0x26d
push 8
push 2
push esi
call fcn.0042be1c
add esp, 0x24
movzx eax, byte [esi + 0x45d8]
test eax, eax
je 0x404a7f
mov eax, dword [esp]
mov dword [esi + 0x2528], eax
lea edx, [esi + 0x45d8]
push edx
push esi
call fcn.0040d2f0
add esp, 8
xor edi, edi
jmp 0x404a94
mov eax, dword [esp + 0x50]
mov edx, dword [ebx + 0x24]
cmp eax, dword [edx + 0x1cc]
je 0x404a94
xor edi, edi
lea eax, [esp + 4]
push 1
push eax
push esi
call fcn.00459de4
mov eax, edi
add esp, 0xa0
pop ebx
pop esi
pop edi
ret
Function at 0x404acc
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push edi
push ebp
push ebx
sub esp, 0x94
mov ebx, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa8]
xor edx, edx
xor edi, edi
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
test ecx, ecx
je 0x404bf8
push 0x12b
push str.SELECT_STATISTIC_S__NAME_FROM_SYS.V__STATNAME_WHERE_NAME_IN__recursive_calls_db_block_gets_consistent_gets_physical_reads_redo_size_bytes_sent_via_SQLNet_to_client_bytes_received_via_SQLNet_from_client_SQLNet_roundtrips_to_from_client_sorts__memory__sorts__disk___ORDER_BY_S
push ebx
call fcn.00459058
mov edi, eax
add esp, 0xc
test edi, edi
je 0x404bf8
mov edx, dword [ebx + 0x249c]
mov ecx, dword [edx + 0x1c]
test ecx, 0x4000000
jne 0x404ba0
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x404b9e
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x404b92
jmp 0x404ba7
push edi
call sub.OCI.dll_lxsulen
pop ecx
lea ecx, [esp + 4]
push 0xa
xor edx, edx
push edx
push edx
push edx
push edx
push edx
push edx
push dword [ebx + 0x2548]
push eax
push edi
push edx
push 2
push ecx
push ebx
call fcn.00459d5c
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x38]
push edx
push ecx
push ebx
call fcn.00405084
mov ebp, eax
add esp, 0x44
test ebp, ebp
je 0x404c48
mov edx, dword [esp + 0x50]
cmp edx, 1
jb 0x404bee
cmp edx, 0xa
jbe 0x404c22
push ebp
push ebx
call fcn.00430044
add esp, 8
lea edx, [esp + 4]
push 1
push edx
push ebx
call fcn.00459de4
add esp, 0xc
test edi, edi
je 0x404c16
push edi
push ebx
call fcn.00430044
add esp, 8
xor eax, eax
add esp, 0x94
pop ebx
pop ebp
pop edi
ret
mov dword [ebp + 0x1cc], edx
lea edx, [esp + 4]
push 1
push edx
push ebx
call fcn.00459de4
push edi
push ebx
call fcn.00430044
mov eax, ebp
add esp, 0xa8
pop ebx
pop ebp
pop edi
ret
mov edx, dword [esp]
test edx, edx
je 0x404bf8
lea ecx, [esp + 0x6c]
push edx
push 0x4776f4
push ecx
call dword [sym.imp.MSVCR71.dll_sprintf]
lea edx, [esp + 0x78]
push edx
push 1
push 0x26d
push 8
push 2
push ebx
call fcn.0042be1c
add esp, 0x24
movzx edx, byte [ebx + 0x45d8]
test edx, edx
je 0x404bf8
mov edx, dword [esp]
mov dword [ebx + 0x2528], edx
lea ecx, [ebx + 0x45d8]
push ecx
push ebx
call fcn.0040d2f0
add esp, 8
jmp 0x404bf8
Function at 0x404ca8
Capabilities:
Reference sql statements

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x34
mov ebp, dword [esp + 0x48]
xor ebx, ebx
xor ecx, ecx
mov esi, dword [esp + 0x50]
lea edi, [esp]
mov eax, dword [esi + 0x1cc]
test eax, eax
jbe 0x404d09
lea edx, [ecx + ecx]
add edx, ecx
add edx, edx
add edx, esi
mov ebp, edx
movzx eax, byte [ebp]
test eax, eax
je 0x404cee
mov byte [edi], al
movzx eax, byte [ebp + 1]
add ebx, 1
add ebp, 1
add edi, 1
test eax, eax
jne 0x404cdb
mov byte [edi], 0x2c
add edx, 6
add ecx, 1
add ebx, 1
add edi, 1
cmp ecx, dword [esi + 0x1cc]
jb 0x404cd1
mov ebp, dword [esp + 0x48]
mov byte [edi - 1], 0
push 0x68
push str.SELECT_PT.VALUE_FROM_SYS.V__SESSTAT_PT_WHERE_PT.SID:1_AND_PT.STATISTIC_IN___s__ORDER_BY_PT.STATISTIC
push ebp
call fcn.00459058
mov edi, eax
add esp, 0xc
test edi, edi
je 0x404d9b
mov edx, dword [ebp + 0x249c]
mov ecx, dword [edx + 0x1c]
test ecx, 0x4000000
jne 0x404d4c
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x404d4a
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x404d3e
jmp 0x404d53
push edi
call sub.OCI.dll_lxsulen
pop ecx
lea esi, [ebx + eax - 2]
push esi
push ebp
call fcn.00403568
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x404d91
lea edx, [esp]
push edx
push edi
push ebx
call dword [sym.imp.MSVCR71.dll_sprintf]
push edi
push ebp
call fcn.00430044
mov edx, dword [esp + 0x60]
mov dword [edx + 0x1c], ebx
mov dword [edx + 0x20], esi
mov eax, 1
add esp, 0x48
pop ebx
pop ebp
pop esi
pop edi
ret
push edi
push ebp
call fcn.00430044
add esp, 8
xor eax, eax
add esp, 0x34
pop ebx
pop ebp
pop esi
pop edi
ret
Function at 0x40e1a0
Capabilities:
Reference sql statements

Disassembly:
push edi
push ebx
sub esp, 0x51c
mov ebx, dword [esp + 0x528]
mov edi, dword [esp + 0x52c]
mov dword [esp], 0
push edi
push ebx
call fcn.0040e160
push dword [ebx + 0x24a0]
push dword [ebx + 0x249c]
mov eax, 0xffffffff
push 0x10000000
push eax
push str.SYSTEM
push eax
push dword [ebx + 0x24dc]
call sub.OCI.dll_lxsCmpStr
add esp, 0x24
test eax, eax
je 0x40e233
push dword [ebx + 0x24a0]
push dword [ebx + 0x249c]
mov eax, 0xffffffff
push 0x10000000
push eax
push 0x479bdc
push eax
push dword [ebx + 0x24dc]
call sub.OCI.dll_lxsCmpStr
add esp, 0x1c
test eax, eax
je 0x40e233
mov eax, dword [ebx + 0x4734]
mov eax, dword [eax + 0x1c]
test al, 2
jne 0x40e233
test al, 4
je 0x40e241
mov eax, 1
add esp, 0x51c
pop ebx
pop edi
ret
lea eax, [esp + 4]
push 0x518
push 0
push eax
call fcn.0047461c
add esp, 0xc
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x249c]
mov edx, dword [eax + 0x1c]
test edx, 0x4000000
jne 0x40e271
mov eax, 0xa0
jmp 0x40e27c
push str.SELECT_ATTRIBUTE_SCOPE_NUMERIC_VALUE_CHAR_VALUE_DATE_VALUE_FROM_SYSTEM.PRODUCT_PRIVS_WHERE__UPPER_SQLPlus__LIKE_UPPER_PRODUCT___AND__UPPER_USER__LIKE_USERID_
call sub.OCI.dll_lxsulen
pop ecx
lea edi, [esp + 4]
lea edx, [esp]
add eax, 1
mov ecx, 1
push ecx
push edx
push ecx
push edi
push 0x40ead4
lea edx, [esp + 0x18]
push edx
push 0x40e788
xor edx, edx
push edx
push edx
push 3
push eax
push str.SELECT_ATTRIBUTE_SCOPE_NUMERIC_VALUE_CHAR_VALUE_DATE_VALUE_FROM_SYSTEM.PRODUCT_PRIVS_WHERE__UPPER_SQLPlus__LIKE_UPPER_PRODUCT___AND__UPPER_USER__LIKE_USERID_
push ebx
call fcn.004575cc
mov edi, eax
add esp, 0x34
test edi, edi
jne 0x40e318
mov edx, dword [esp]
test edx, edx
je 0x40e306
mov edx, dword [ebx + 0x1890]
cmp edx, 1
je 0x40e318
push 0
push 0x26f
mov edx, 2
push edx
push edx
push ebx
call fcn.0042be1c
push 0
push 0x21f
push 4
push 2
push ebx
call fcn.0042be1c
push 0
push 0x270
push 4
push 2
push ebx
call fcn.0042be1c
add esp, 0x3c
jmp 0x40e318
push 0
push 1
push 0x903
push ebx
call fcn.00435654
add esp, 0x10
mov eax, edi
add esp, 0x51c
pop ebx
pop edi
ret
Function at 0x413434
Capabilities:
Reference sql statements

Disassembly:
push edi
push esi
sub esp, 0x318
mov eax, 0xffffffff
mov esi, dword [esp + 0x324]
push dword [esi + 0x24a0]
push dword [esi + 0x249c]
push 0x10000000
push eax
push str.SYSTEM
push eax
push dword [esi + 0x24dc]
call sub.OCI.dll_lxsCmpStr
add esp, 0x1c
test eax, eax
je 0x4134af
push dword [esi + 0x24a0]
push dword [esi + 0x249c]
mov eax, 0xffffffff
push 0x10000000
push eax
push 0x479bdc
push eax
push dword [esi + 0x24dc]
call sub.OCI.dll_lxsCmpStr
add esp, 0x1c
test eax, eax
je 0x4134af
mov eax, dword [esi + 0x4734]
mov edx, dword [eax + 0x1c]
test dl, 6
je 0x4134bd
mov eax, 1
add esp, 0x318
pop esi
pop edi
ret
mov eax, str.SET_ROLE_ALL_EXCEPT
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov edi, dword [eax + 8]
mov dword [esp], edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1f8], 0xfa
lea edx, [esp + 0x14]
xor ecx, ecx
lea eax, [esp + 0x208]
mov dword [esp + 0x308], 0x1df
mov dword [esp + 0x1f4], eax
mov dword [esp + 0x1fc], ecx
mov dword [esp + 0x304], edx
mov dword [esp + 0x30c], ecx
lea edi, [esp + 0x1f4]
mov dword [esp + 0x310], edi
mov eax, dword [esi + 0x249c]
mov eax, dword [eax + 0x1c]
test eax, 0x4000000
jne 0x413547
mov eax, 0xb7
jmp 0x413552
push str.SELECT_CHAR_VALUE_FROM_SYSTEM.PRODUCT_PRIVS_WHERE____UPPER_SQLPlus__LIKE_UPPER_PRODUCT___AND_____UPPER_USER__LIKE_USERID__OR__USERID__PUBLIC___AND____UPPER_ATTRIBUTE___ROLES_
call sub.OCI.dll_lxsulen
pop ecx
lea edi, [esp + 0x1f4]
lea ecx, [esp + 0x304]
lea edx, [esp + 0x314]
push 1
add eax, 1
push edx
push dword [esp + 0x204]
xor edx, edx
push ecx
push 0x414184
push edi
push 0x414080
push edx
push edx
push 3
push eax
push str.SELECT_CHAR_VALUE_FROM_SYSTEM.PRODUCT_PRIVS_WHERE____UPPER_SQLPlus__LIKE_UPPER_PRODUCT___AND_____UPPER_USER__LIKE_USERID__OR__USERID__PUBLIC___AND____UPPER_ATTRIBUTE___ROLES_
push esi
call fcn.004575cc
add esp, 0x34
test eax, eax
je 0x41362a
mov eax, dword [esp + 0x304]
mov byte [eax], 0
mov edx, dword [esp + 0x30c]
test edx, edx
je 0x413600
mov eax, dword [esi + 0x249c]
mov edx, dword [eax + 0x1c]
test edx, 0x4000000
jne 0x4135de
lea edi, [esp]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4135dc
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x4135d0
jmp 0x4135e8
lea eax, [esp]
push eax
call sub.OCI.dll_lxsulen
pop ecx
lea ecx, [esp]
xor edx, edx
push edx
push edx
push 4
push eax
push ecx
push esi
call fcn.00457548
add esp, 0x18
test eax, eax
je 0x41360e
mov eax, 1
add esp, 0x318
pop esi
pop edi
ret
push 0
push 0x22d
push 1
push 2
push esi
call fcn.0042be1c
xor eax, eax
add esp, 0x32c
pop esi
pop edi
ret
push 0
push 0x22d
push 1
push 2
push esi
call fcn.0042be1c
xor eax, eax
add esp, 0x32c
pop esi
pop edi
ret
Function at 0x4723a0
Capabilities:
Query environment variable

Disassembly:
push esi
mov eax, dword [esp + 8]
mov esi, dword [eax]
push str.NLS_LENGTH_SEMANTICS
call dword [sym.imp.MSVCR71.dll_getenv]
pop ecx
test eax, eax
jne 0x4723c2
xor eax, eax
mov word [esi + 0x4774], ax
jmp 0x4723fc
push dword [esi + 0x24a0]
push dword [esi + 0x249c]
mov edx, 0xffffffff
push 0x10000010
push edx
push edx
push str.char
push eax
call sub.OCI.dll_lxCmpStr
add esp, 0x1c
test eax, eax
jne 0x4723f3
mov eax, 2
jmp 0x4723f5
xor eax, eax
mov word [esi + 0x4774], ax
mov eax, 1
pop esi
ret
Function at 0x47426d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x482cc8
call fcn.004744f0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4742a8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4742a8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4742c0
cmp eax, 0x20b
je 0x4742ad
mov dword [ebp - 0x1c], edi
jmp 0x4742d4
cmp dword [ecx + 0x84], 0xe
jbe 0x4742a8
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4742ce
cmp dword [ecx + 0x74], 0xe
jbe 0x4742a8
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x487028], 0xffffffff
or dword [0x48702c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x486a78]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x486a74]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x487024], eax
call fcn.0047444a
call fcn.004744ea
cmp dword [0x4863e0], edi
jne 0x474334
push fcn.004744ea
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004744d8
push 0x48500c
push 0x485008
call sub.MSVCR71.dll__initterm
push 0x47448e
call fcn.00474438
mov eax, dword [0x486a70]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x486a6c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x34], eax
cmp eax, edi
jge 0x474388
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x485004
push section..data
call sub.MSVCR71.dll__initterm
call dword [sym.imp.MSVCR71.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0046fe04
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x4743c4
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4743f9
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0047452b
ret
Function at 0x4748b4
Capabilities:
Execute anti-debugging instructions

Disassembly:
push edi
xor eax, eax
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
ret
push edi
push esi
sub esp, 0x14
mov eax, dword [esp + 0x24]
shr eax, 2
add eax, dword [esp + 0x20]
mov dword [esp], eax
rdtsc
mov esi, dword [esp]
mov ecx, eax
rdtsc
mov esi, dword [esi]
mov edi, eax
rdtsc
sub eax, edi
sub edi, ecx
mov edx, eax
lea esi, [edi*4]
shr edi, 2
add edi, esi
xor eax, eax
sub edi, edx
setge al
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x47480f
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
shr ecx, 7
pxor xmm0, xmm0
lea esi, [esi]
lea edi, [edi]
movdqa xmmword [edi], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x40], xmm0
movdqa xmmword [edi + 0x50], xmm0
movdqa xmmword [edi + 0x60], xmm0
movdqa xmmword [edi + 0x70], xmm0
lea edi, [edi + 0x80]
dec ecx
jne 0x4747d8
emms
jmp 0x4748ad
mov eax, dword [esp + 0x24]
mov edx, eax
shr edx, 1
shr eax, 2
add edx, dword [esp + 0x20]
add edx, eax
mov dword [esp + 8], edx
rdtsc
mov esi, dword [esp + 8]
mov ecx, eax
rdtsc
mov esi, dword [esi]
mov edi, eax
rdtsc
sub eax, edi
sub edi, ecx
mov edx, eax
lea esi, [edi*4]
shr edi, 2
add edi, esi
xor eax, eax
sub edi, edx
setge al
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4747bf
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
shr ecx, 7
pxor xmm0, xmm0
lea esi, [esi]
lea edi, [edi]
movntdq xmmword [edi], xmm0
movntdq xmmword [edi + 0x10], xmm0
movntdq xmmword [edi + 0x20], xmm0
movntdq xmmword [edi + 0x30], xmm0
movntdq xmmword [edi + 0x40], xmm0
movntdq xmmword [edi + 0x50], xmm0
movntdq xmmword [edi + 0x60], xmm0
movntdq xmmword [edi + 0x70], xmm0
lea edi, [edi + 0x80]
dec ecx
jne 0x474878
sfence
emms
add esp, 0x14
pop esi
pop edi
ret
test dword [0x486a7c], 0x400
jne 0x47475c
test dword [0x486a7c], 0xfffffe00
jne 0x474778
test dword [0x486a7c], 0xffffff80
jne 0x47475c
test dword [0x486a7c], 0xffffffff
jne 0x4749c0
call fcn.00475d00
jmp fcn.004748b4
push edi
xor eax, eax
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
rep stosb byte es:[edi], al
pop edi
ret
Function at 0x4010e0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x415040]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0
push eax
push 0
push 0x20119
push 0
push 0
push 0
push ecx
push 0x80000002
mov esi, edx
mov dword [ebp - 0x218], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401253
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x220], 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push str.Path
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401247
cmp dword [ebp - 0x21c], 1
jne 0x401247
push 0x40
push eax
lea eax, [ebp - 0x278]
mov dword [ebp - 0x27c], 0x44
push eax
call fcn.00402f00
push esi
lea eax, [ebp - 0x214]
xorps xmm0, xmm0
push 0x104
push eax
movups xmmword [ebp - 0x230], xmm0
call fcn.0040484f
add esp, 0x18
lea eax, [ebp - 0x214]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x401247
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push str.__exit
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0040484f
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x27c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401247
push dword [ebp - 0x22c]
call esi
push 0x1388
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x230]
call esi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push edi
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x401270
push 0
push 0
push 0x303
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040179d
mov esp, ebp
pop ebp
ret
Function at 0x401290
Capabilities:
Accept command line arguments
Extract resource via kernel32 functions
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
lea eax, [esp]
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x4012ee
cmp dword [esp + 4], 0
jle 0x4012ee
push str.exitSM
push dword [esi]
call fcn.0040474e
add esp, 8
test eax, eax
je 0x4013a9
push str.fixVersion
push dword [esi]
call fcn.0040474e
add esp, 8
test eax, eax
je 0x4012fa
mov eax, dword [esp + 4]
add esi, 4
dec eax
mov dword [esp + 4], eax
test eax, eax
jg 0x4012b4
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push 0x2011f
push 0
push 0
push 0
push str.SOFTWAREOpenShellOpenShell
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4013a0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x10
mov esi, eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x40134a
xor ecx, ecx
jmp 0x401378
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
test edx, edx
je 0x401346
movzx eax, word [edx + 0x38]
movzx ecx, al
movzx eax, word [edx + 0x3a]
shl eax, 8
or ecx, eax
movzx eax, word [edx + 0x3e]
shl ecx, 0x10
or ecx, eax
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
push 4
push 0
push str.WinVersion
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push str.OpenShellUpdate.COwnerWindow
mov edx, str.StartMenu.exe
mov ecx, str.SOFTWAREOpenShellOpenShell
call fcn.004010e0
push str.ClassicShellUpdate.COwnerWindow
mov edx, str.ClassicStartMenu.exe
mov ecx, str.SOFTWAREIvoSoftClassicShell
call fcn.004010e0
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4020ff
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40213e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40213e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40213e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40213e
cmp dword [ecx + 0x74], 0xe
jbe 0x40213e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407b84
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x415040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x407bcf
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00407d1f
test al, al
jne 0x407bc9
sub edx, 2
cmp edx, edi
jne 0x407baf
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x407bf1
lea eax, [edi + 2]
cmp edx, eax
je 0x407bf1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00407ad0
add esp, 0x10
jmp 0x407ceb
push esi
lea ecx, [ebp - 0x255]
call fcn.00407d1f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407c34
push dword [ebp - 0x25c]
jmp 0x407be1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x407c71
cmp word [ebp - 0x226], 0
je 0x407c92
cmp word [ebp - 0x226], ax
jne 0x407c71
cmp word [ebp - 0x224], 0
je 0x407c92
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00407ad0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x407cde
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x407c4b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x407cc6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x407ceb
push 0x407900
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040ae90
add esp, 0x10
jmp 0x407cbb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040179d
leave
ret

Function at 0x408ab6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4102bc
push 0x4102b4
push str.FlsAlloc
push 0x1f
call fcn.004089f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408aea
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e148]
call esi
jmp 0x408af0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408b34
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4102cc
push 0x4102c4
push str.FlsGetValue
push 0x21
call fcn.004089f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408b6b
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x408b73
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4102d4
push 0x4102cc
push str.FlsSetValue
push 0x22
call fcn.004089f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408bad
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]