joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c2e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e2727
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x10138008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi + 0xdc]
test edx, edx
je 0x1000c4df
lea ecx, [ebp - 0x260]
call fcn.1002dd40
mov dword [ebp - 4], 0
mov eax, dword [edi + 4]
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x298], eax
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x298]
push eax
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 0x1010784c
mov dword [ebp - 0x288], 0x45
mov dword [ebp - 0x284], 0x1000c2b0
mov dword [ebp - 0x27c], 0
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
test esi, esi
je 0x1000c4c6
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100bea00
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1000c4c6
push str.Haozip
lea ecx, [ebp - 0x248]
call fcn.10007620
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x278]
call fcn.10007620
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x278]
lea ecx, [ebp - 0x230]
call fcn.1002cb00
add esp, 4
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 9
call fcn.10004940
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xe
call fcn.10004940
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x248]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.10007620
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x12
call fcn.100052a0
push eax
push dword [edi + 0xdc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x13
call fcn.10004940
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x220]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push eax
push 0xb1
push dword [edi + 0xdc]
call esi
push 0
push 0
push 0xb7
push dword [edi + 0xdc]
call esi
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x17
call fcn.10004940
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 0x1b
call fcn.10004940
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100bcc77
mov esp, ebp
pop ebp
ret
Function at 0x1000dc80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e2969
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x10138008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0xac]
push eax
lea ecx, [ebp - 0xa8]
call fcn.100047d0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x98], 0
jne 0x1000dce4
push 6
push str.000000
lea ecx, [ebp - 0xa8]
call fcn.100049b0
push 0x118
lea eax, [ebp - 0x1dc]
push 0
push eax
call fcn.100bea00
add esp, 0xc
mov dword [ebp - 0x1e0], 0x11c
lea ecx, [ebp - 0x1e0]
call fcn.10024b20
xor eax, eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x90]
push dword [ebp - 0x1d8]
push dword [ebp - 0x1dc]
push str._u._u
push eax
call fcn.100252d0
add esp, 0x10
call fcn.10024a90
test al, al
mov dword [ebp - 0x68], 0
mov ecx, 0x20
mov dword [ebp - 0x64], 7
mov edx, 0x40
cmovne ecx, edx
xor eax, eax
mov word [ebp - 0x78], ax
mov byte [ebp - 4], 2
lea edx, [ebp - 0x90]
cmp dword [ebp - 0x7c], 8
lea edi, [ebp - 0xa8]
mov word [ebp - 0x18], ax
lea eax, [esi + 0xc4]
cmovae edx, dword [ebp - 0x90]
cmp dword [ebp - 0x94], 8
mov dword [ebp - 0x60], 0x740068
cmovae edi, dword [ebp - 0xa8]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x5c], 0x700074
mov dword [ebp - 0x58], 0x3a0073
mov dword [ebp - 0x54], 0x2f002f
mov dword [ebp - 0x50], 0x610068
mov dword [ebp - 0x4c], 0x7a006f
mov dword [ebp - 0x48], 0x700069
mov dword [ebp - 0x44], 0x32002e
mov dword [ebp - 0x40], 0x340033
mov dword [ebp - 0x3c], 0x2e0035
mov dword [ebp - 0x38], 0x630063
mov dword [ebp - 0x34], 0x66002f
mov dword [ebp - 0x30], 0x650065
mov dword [ebp - 0x2c], 0x620064
mov dword [ebp - 0x28], 0x630061
mov dword [ebp - 0x24], 0x2e006b
mov dword [ebp - 0x20], 0x740068
mov dword [ebp - 0x1c], 0x6c006d
jb 0x1000de2b
mov eax, dword [eax]
push ecx
push edx
push edi
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x78]
push str._s_version_schannel_sos_sos_bit_d
push eax
call fcn.100252d0
add esp, 0x1c
mov dword [ebp - 0xb0], 0
cmp dword [ebp - 0x64], 8
lea edx, [ebp - 0x78]
mov dword [ebp - 0xac], 7
cmovae edx, dword [ebp - 0x78]
xor eax, eax
mov word [ebp - 0xc0], ax
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000de71
sub eax, esi
lea ecx, [ebp - 0xc0]
sar eax, 1
push eax
push edx
call fcn.100049b0
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 3
call fcn.10007360
lea ecx, [ebp - 0xc0]
call fcn.10004940
lea ecx, [ebp - 0x78]
call fcn.10004940
lea ecx, [ebp - 0x90]
call fcn.10004940
lea ecx, [ebp - 0xa8]
call fcn.10004940
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100bcc77
mov esp, ebp
pop ebp
ret
Function at 0x1000f680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10138008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, edx
push 0
push eax
call fcn.100bea00
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x1000f6d6
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bcc77
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20c]
push esi
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1000f6e0
sub edx, esi
lea eax, [ebp - 0x20c]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.100049b0
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
xor ecx, ebp
pop edi
call fcn.100bcc77
mov esp, ebp
pop ebp
ret

Function at 0x100101b0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e2e9c
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push esi
push edi
mov eax, dword [0x10138008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.10018c70
mov dword [edi], eax
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x34]
push 0x101073fc
mov word [edi + 0xc], 0
mov dword [edi + 8], 3
call fcn.10007620
mov byte [ebp - 4], 4
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call fcn.10018b30
mov dword [eax], 0xe
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.10004720
push str.SMDB
lea ecx, [ebp - 0x4c]
call fcn.10007620
mov byte [ebp - 4], 5
lea eax, [ebp - 0x4c]
push eax
mov ecx, edi
call fcn.10018b30
mov dword [eax], 7
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.10004720
push 0x101074b4
lea ecx, [ebp - 0x64]
call fcn.10007620
mov byte [ebp - 4], 6
lea eax, [ebp - 0x64]
push eax
mov ecx, edi
call fcn.10018b30
mov dword [eax], 0x2d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.10004720
push 0x1010b784
lea ecx, [ebp - 0x7c]
call fcn.10007620
mov byte [ebp - 4], 7
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.10018b30
mov dword [eax], 0xa
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.10004720
push 0x1010b780
lea ecx, [ebp - 0x94]
call fcn.10007620
mov byte [ebp - 4], 8
lea eax, [ebp - 0x94]
push eax
mov ecx, edi
call fcn.10018b30
mov dword [eax], 0x1e
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x94]
call fcn.10004720
mov dword [ebp - 4], 9
lea ecx, [edi + 0x10]
call fcn.100047b0
mov byte [ebp - 4], 0xa
lea esi, [edi + 0x30]
mov ecx, esi
mov dword [ebp - 0x10], esi
call fcn.100047b0
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x18]
call fcn.100047b0
mov byte [ebp - 4], 0xc
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov byte [esi + 0x44], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001e0e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e5539
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10138008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call fcn.100048f0
mov dword [ebp - 4], 0
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x1001e292
nop dword [eax]
dec eax
mov dword [ebp + 8], eax
mov al, byte [edi]
inc edi
mov byte [ebp + esi - 0x14], al
inc esi
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x20], edi
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp esi, 3
jne 0x1001e1d4
mov al, cl
xor edi, edi
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
mov byte [ebp - 0x16], cl
and al, 0x3f
mov ecx, 0x1013ddfc
mov byte [ebp - 0x15], al
call fcn.10004910
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x1001e1af
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.10008f30
inc edi
cmp edi, 4
jl 0x1001e1a5
mov edi, dword [ebp - 0x20]
xor esi, esi
mov dl, byte [ebp - 0xd]
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1001e140
mov dword [ebp + 8], esi
test esi, esi
je 0x1001e292
mov eax, esi
cmp esi, 3
jge 0x1001e20e
cmp eax, 3
jae 0x1001e2a6
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x1001e1f4
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
xor edi, edi
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [esi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x1001e278
mov ecx, 0x1013ddfc
call fcn.10004910
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x1001e25e
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.10008f30
inc edi
cmp edi, dword [ebp - 0x20]
jl 0x1001e254
mov esi, dword [ebp + 8]
cmp esi, 3
jge 0x1001e292
mov edi, 3
sub edi, esi
push 0x3d
mov ecx, ebx
call fcn.10008f30
sub edi, 1
jne 0x1001e284
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.100bd284
int3
Function at 0x100218a0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
mov eax, dword [0x10138008]
xor eax, esp
mov dword [esp + 0x170], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
push 0x118
mov dword [esp + 0x14], eax
lea eax, [esp + 0x60]
push 0
push eax
mov dword [esp + 0x64], 0x11c
call fcn.100bea00
add esp, 0xc
lea ecx, [esp + 0x58]
call fcn.10024b20
test al, al
je 0x10021952
push dword [esp + 0x60]
push dword [esp + 0x60]
push str._u._u
push ebx
call fcn.100252d0
call fcn.10024a90
test al, al
mov edx, 0x40
mov ecx, 0x20
cmovne ecx, edx
push ecx
push 0x1010b8f0
push dword [esp + 0x28]
call fcn.100252d0
lea eax, [esp + 0x88]
push eax
call fcn.10004d20
mov ecx, dword [esp + 0x34]
add esp, 0x20
push eax
lea eax, [esp + 0x70]
push eax
call fcn.100049b0
push 0x40
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.100bea00
add esp, 0xc
mov dword [esp + 0x18], 0x40
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
push ecx
push 0x1010b8f0
push edi
call fcn.100252d0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
push 0x1010b8f0
push esi
call fcn.100252d0
mov ecx, dword [esp + 0x188]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100bcc77
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10024b20
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x10138008]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.100bea00
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10024c62
cmp dword [esi + 4], 6
push edi
ja 0x10024b76
jne 0x10024bfe
cmp dword [esi + 8], 2
jb 0x10024bfe
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x10024bfe
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10024bfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10024bfe
movups xmm0, xmmword [str.VS_VERSION_INFO]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x1010c390]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10024bfe
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10024bfe
cmp word [edi + 2], ax
jbe 0x10024bfe
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10024c49
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.100bea00
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x10024c49
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.100bcc77
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.100bcc77
add esp, 0x140
ret

Function at 0x10027880
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x10138008]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.100bcc88
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.100bea00
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x100278dc
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.100bcc77
add esp, 0x120
ret
Function at 0x1002a250
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0xc
mov eax, dword [0x10138008]
xor eax, esp
mov dword [esp + 8], eax
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, ecx
test edi, edi
je 0x1002a2c4
test edx, edx
je 0x1002a2c4
test ebx, ebx
je 0x1002a2c4
xor eax, eax
mov dword [esp + 0xc], 0x207
mov word [edi], ax
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
lea eax, [esp + 0xc]
push eax
push edi
push str.Path
call fcn.1002a120
add esp, 0xc
test al, al
je 0x1002a2bf
push 0x10107758
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1002a2c4
xor eax, eax
mov word [edi], ax
mov ecx, dword [esp + 0x10]
pop edi
pop ebx
xor ecx, esp
call fcn.100bcc77
add esp, 0xc
ret

Function at 0x1002a340
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x10138008]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call fcn.100bea00
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1002a3be
cmp dword [esp + 0x14], 6
jb 0x1002a3be
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, reloc.gdiplus.dll_Ordinal_1
call fcn.1002a120
add esp, 0xc
test al, al
je 0x1002a3be
cmp word [esi], 0
jne 0x1002a416
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, SysReAllocStringLen
call fcn.1002a120
add esp, 0xc
test al, al
je 0x1002a3ea
cmp word [esi], 0
jne 0x1002a416
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, reloc.gdiplus.dll_Ordinal_1
call fcn.1002a120
add esp, 0xc
test al, al
je 0x1002a42b
cmp word [esi], 0
je 0x1002a42b
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.100bcc77
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.100bcc77
mov esp, ebp
pop ebp
ret
Function at 0x1002a990
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e758b
mov eax, dword fs:[0]
push eax
mov eax, 0x285c
call fcn.100da550
mov eax, dword [0x10138008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2000
xor ebx, ebx
lea eax, [ebp - 0x2218]
push ebx
push eax
call fcn.100bea00
add esp, 0xc
mov eax, 0x22
mov word [ebp - 0x2218], ax
test esi, esi
je 0x1002aba4
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x1002aba4
push esi
call edi
cmp eax, 0xffa
jge 0x1002aba4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x2218]
push eax
call esi
push 0x1010c06c
lea eax, [ebp - 0x2218]
push eax
call esi
push str.Shell32.dll
lea ecx, [ebp - 0x2868]
call fcn.10007620
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2868]
push eax
call fcn.1002df60
mov ecx, eax
call fcn.1002e020
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2868]
call fcn.10004720
test esi, esi
je 0x1002aba4
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x284c], eax
test eax, eax
je 0x1002aba4
lea ecx, [ebp - 0x2848]
call fcn.1002a440
xor edi, edi
lea esi, [ebp - 0x2848]
nop dword [eax]
cmp word [esi], 0
je 0x1002aac4
push 1
push 0
lea eax, [ebp - 0x2218]
push eax
push esi
push str.open
push 0
call dword [ebp - 0x284c]
cmp eax, 0x20
ja 0x1002aad2
inc edi
add esi, 0x210
cmp edi, 3
jl 0x1002aaa0
jmp 0x1002aaf4
imul ebx, edi, 0x210
cmp dword [ebp + ebx - 0x2640], 0
mov ebx, dword [ebp + ebx - 0x263c]
jne 0x1002aaec
add ebx, 0x10
test ebx, ebx
jne 0x1002aba0
mov edi, dword [ebp - 0x284c]
lea eax, [ebp - 0x2218]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x1002ab9b
mov dword [ebp - 0x2850], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x284c], str._programfiles_Internet_Exploreriexplore.exe
nop
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100bea00
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x103
push eax
push dword [ebp + esi*4 - 0x2850]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1002ab91
push 1
push 0
lea eax, [ebp - 0x2218]
push eax
lea eax, [ebp - 0x218]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x1002ab9b
inc esi
cmp esi, 2
jb 0x1002ab30
mov eax, ebx
jmp 0x1002aba6
mov ebx, 0x10
mov eax, ebx
jmp 0x1002aba6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100bcc77
mov esp, ebp
pop ebp
ret
Function at 0x1002b5a0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e4c28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10138008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x1002b5e3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add eax, 0x20
mov dword [ebp - 0x10], 0
push eax
lea ecx, [ebp - 0x10]
call fcn.10007830
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x1002b657
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x1002b180
push 0
push 0
call fcn.100c9a07
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x1002b67c
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x1002b64f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.1002b310
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10007860
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1002b694
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1002b63e
mov bl, 1
jmp 0x1002b659