joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417fc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xa
push str._AUTOHOTKEY_SCRIPT_
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x20], 0
call edi
mov esi, eax
test esi, esi
jne 0x418001
push 0xa
push 0x4a8640
push eax
call edi
mov esi, eax
test esi, esi
je 0x418065
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x10], eax
test eax, eax
je 0x418065
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418065
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x418065
mov ecx, dword [esp + 0x20]
push 0xc
mov eax, 0xfde9
lea edx, [esp + 0x10]
call fcn.00473970
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xac8]
inc dword [0x4cb480]
mov dword [0x4c94ac], ecx
mov eax, 3
pop edi
pop esi
add esp, 0x10
ret 0xc
fldz
mov edx, dword [esp + 0x24]
sub esp, 8
fstp qword [esp]
push 0
push edx
push 0
push str.Could_not_extract_script_from_EXE.
call fcn.0047ab10
add esp, 0x18
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0xc
Function at 0x52a4a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd6000]
push edi
or ebp, 0xffffffff
jmp 0x52a4c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52a4c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52a4b8
mov eax, 1
add ebx, ebx
jne 0x52a4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52a4ec
jne 0x52a4fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52a4fc
dec eax
add ebx, ebx
jne 0x52a4f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52a4d0
xor ecx, ecx
sub eax, 3
jb 0x52a514
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52a586
sar eax, 1
mov ebp, eax
jmp 0x52a51f
add ebx, ebx
jne 0x52a51f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x52a52c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x52a550
inc ecx
add ebx, ebx
jne 0x52a53c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52a531
jne 0x52a54d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52a531
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52a570
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52a561
jmp 0x52a4be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52a570
add edi, ecx
jmp 0x52a4be
pop esi
mov edi, esi
mov ecx, 0x4dfc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52a58e
cmp byte [edi], 0x16
jne 0x52a58e
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 0x52a593
lea edi, [esi + 0x127000]
mov eax, dword [edi]
or eax, eax
je 0x52a602
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x131288]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x131378]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52a5c0
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13137c]
or eax, eax
je 0x52a5fc
mov dword [ebx], eax
add ebx, 4
jmp 0x52a5dd
call dword [esi + 0x131380]
popal
jmp 0x4a20ac
Function at 0x455946
Capabilities:
Encode data using xor

Disassembly:
fnstcw word [edi + ebp + 0x6fa20048]
mov esi, 0x36aaa09a
dec edi
add dword [esi], esi
push edi
push 0xfffffffffffffff7
push esi
enter 0xfffffffffffffe2a, 0xffffffffffffff86
push ds
pop esi
fdiv st(5), st(0)
fadd st(0)
jle 0x4559be
out dx, eax
arpl di, bp
out 0xef, eax
int1
insd dword es:[edi], dx
aas
mov ch, 0x7b
xchg ebx, eax
outsd dx, dword [esi]
ja 0x4559aa
stosb byte es:[edi], al
fist word [edi + 0x6f]
outsd dx, dword [esi]
popal
jae 0x4559dd
nop
int 0x72
or ebx, dword [ebx - 0x4dba00c2]
outsd dx, dword [esi]
inc edx
pop esp
cmp ebx, dword [eax - 0x405c1cf]
in al, dx
xor byte [eax + 7], dh
or dl, byte [edx - 0x4d]
jb 0x455a0f
lds esp, [esp + ebx*4]
fnsave dword [0x3e20d983]
pop edi
push cs
hlt
push eax
invalid
cmpxchg dword [edi + 0x1d], ecx
test byte [eax - 0x59398e2f], bl
stosb byte es:[edi], al
and ecx, dword [eax + 0x669f92a9]
cmovl ecx, dword [esi]
xchg edx, eax
lahf
cmovl cx, word [esi]
inc ebp
mov byte [0xfb054e1e], al
je 0x455a40
sbb al, 0x7d
ficom word [eax - 0x71]
or byte [esi + ebx + 0x64], al
jb 0x455a55
ja 0x455977
ja 0x4559dd
and dword [ebp - 0x7f], ebp
insb byte es:[edi], dx
into
jle 0x455a4f
sub dword [esi + ecx*8 + 0x7e], 0xe71446d
inc esp
jno 0x4559f3
mov dword [0xf9dea9ff], eax
scasb al, byte es:[edi]
invalid
scasd eax, dword es:[edi]
movsb byte es:[edi], byte [esi]
outsb dx, byte [esi]
push 0x3b1aa7d0
retf 0x174d
jo 0x455a4a
nop
mov cl, 0x51
movsb byte es:[edi], byte [esi]
mov al, 0xc6
push ds
inc ecx
mov eax, 0x2657576c
pop edx
push edi
pop edx
push ebx
sub byte [eax + 0x55], ah
pop ecx
enter 0x4c92, 0x76
stosb byte es:[edi], al
adc byte [esi + 0x3f], 0x81
mov dh, 0x66
aam 0xf1
mov dword [0x1b711bd6], eax
jnp 0x4559b0
jecxz 0x455a3c
dec edi
push es
dec esp
add eax, 0x44d9d6e6
cmp al, 0x41
cmc
mov word [esi - 0x25], cs
sub al, byte [ecx + 0x7a860187]
fldenv [ecx + esi*2 + 0x279a04bd]
add dword [edi - 0x268579ff], 0x4bd71a4
lcall 0x540f, 0x78015827
jp 0x455a1b
movsb byte es:[edi], byte [esi]
jno 0x455a02
add al, 0x9a
daa
pop eax
add dword [eax + 0xf], edi
js 0x455a5b
push esp
and eax, 0x992af87b
sti
xor dword [ebx], edx
les eax, [ebx + esi*4 - 0x50a0ce9a]
jnp 0x455a49
sub bl, byte [ecx - 0x3becce05]
adc eax, esp
test byte [ebx - 0x50a0ce9a], dh
pop edi
scasd eax, dword es:[edi]
xchg ebp, eax
pop es
mov byte [0x191fe10b], al
mov dh, 0xb4
push es
xchg esp, eax
mov ecx, 0x3f9b74bc
fst qword [eax + 0x65c3e761]
pop esi
or al, byte [esi - 0x6d]
movsb byte es:[edi], byte [esi]
jb 0x455ae9
add dword [ebx], edx
invalid
invalid
Function at 0x499428
Capabilities:
Encode data using xor

Disassembly:
sbb al, 0x1f
cmp byte [edi + 0x6ff3b3f8], 0x4a
pushfd
add dword [esi + 0x7e], esi
ret
ficomp word [eax + 0x45]
push 0xebb7f91a
and al, 0xab
lodsb al, byte [esi]
jb 0x49937f
dec edx
cmc
adc byte [edx + edi*2], ah
sti
ja 0x4993b1
jo 0x49944c
inc ecx
mov eax, dword [0xc70fd4d2]
stc
jno fcn.00499428
jmp es:[ebx]
ret 0x4a76
inc esi
insd dword es:[edi], dx
sahf
test byte [edx + 0xb], al
cli
sub byte [ecx + 0x4b71ffd8], bl
sub dl, bh
fcompi st(5)
mov eax, dword [0xf121d5aa]
xlatb
je 0x499463
test byte [edx + edi*8 - 0x13], dh
mov ss, word [ecx - 0x3c54a140]
jno 0x4993d6
mov dword [esi], esp
jo 0x499439
jo 0x499439
xchg ebx, eax
add eax, dword [ebp + 4]
push esi
push ds
ror dword cs:[ecx], 0x3d
sub al, 0xa2
cmp ecx, ebx
invalid
pushfd
pop esi
xchg ecx, eax
jne 0x4993f4
rcr esi, cl
jge 0x499492
mov ch, 0xa5
sub eax, 0x294573a3
cmp dh, byte [esp + ecx*2 + 0x51507047]
std
pop edx
adc bl, al
fld dword [eax]
mov eax, 0x87acec32
jg 0x499418
nop
movsd dword es:[edi], dword [esi]
mov ebp, edx
lahf
test al, 0x25
mov ebp, dword [ecx - 0x27c1573a]
invalid
test al, 0x3e
fmul dword [esi + edi + 0x37838d30]
mov cs, word [edi]
xor byte [ebp + 0xf8e3783], cl
pushal
out 0x40, eax
sub esp, dword [edx]
out dx, al
js 0x499497
add cl, dl
invalid

Function at 0x606a87
Capabilities:
Encode data using xor

Disassembly:
xchg ecx, eax
pop es
pushal
xchg edi, eax
cld
mov al, 0x37
sbb ah, dh
xor al, 0x9d
popfd
sub byte [edi], bl
push es
xor al, 0x89
sbb al, 0x75
push cs
mov esi, 0x38104cfc
push ebx
jecxz 0x606a88
cwde
fcomp st(6)
xchg eax, esi
sub al, 0xf8
cmp esp, dword [eax - 0x32d47e28]
into
mov dl, 0xc7
jo 0x606a3f
mov ebp, 0x32f3d5e3
daa
add eax, dword [ebx - 0x36664985]
loop 0x606a3d
scasb al, byte es:[edi]
lds ecx, [ebp - 0x509bc64c]
and al, 0x7a
pop ecx
xchg ecx, eax
cmp byte [edx + 0x69], cl
or byte [ecx + 0xb222b4f], bl
invalid
Function at 0x9bfc05
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9bfc2c
call fcn.00962138
mov dword [eax], esi
call fcn.00962125
push 0x16
pop esi
mov dword [eax], esi
call fcn.00962d7a
mov eax, esi
jmp 0x9bfc81
test dword [ebp + 0xc], 0xfffffff9
jne 0x9bfc12
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9bfc59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0096214b
pop ecx
call fcn.00962125
mov eax, dword [eax]
jmp 0x9bfc81
test al, 0x10
jne 0x9bfc7f
test al, 1
je 0x9bfc7f
test byte [ebp + 0xc], 2
je 0x9bfc7f
call fcn.00962138
mov dword [eax], 5
call fcn.00962125
mov dword [eax], 0xd
jmp 0x9bfc50
xor eax, eax
pop esi
pop ebp
ret

Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0x3af72ce5
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x77f03122
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x40181d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40185c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40185c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40185c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40185c
cmp dword [ecx + 0x74], 0xe
jbe 0x40185c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x446490
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x45f590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push 0xff
lea ecx, [ebp - 0x103]
push esi
push ecx
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], esi
call fcn.0044b380
mov edx, dword [0x460810]
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x104], edx
push ecx
mov edx, ecx
push edx
mov eax, ecx
push eax
call sub.RASDLG.dll_RasDialDlgA
mov ecx, dword [0x460814]
xor edx, edx
cmp eax, ecx
jne 0x446502
mov edx, dword [0x46080c]
inc edx
cmp dword [0x460810], esi
je 0x446649
cmp dword [0x460818], esi
je 0x446649
mov dword [ebp - 0x110], esi
cmp dword [ebp + 0xc], esi
jle 0x446649
push ebx
lea edx, [ebp + edx - 0x10c]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x11c], edx
jmp 0x446540
mov eax, dword [0x46080c]
inc eax
push eax
lea edx, [ebp - 0x104]
push edx
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x110]
mov dl, byte [eax + ecx]
mov eax, dword [0x460814]
mov esi, edi
sub esi, eax
push 0xffffffffffffffff
inc eax
push eax
mov byte [ebp - 0x105], dl
add esi, 0x10
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ebx, dword [0x46080c]
inc ebx
imul ebx, dword [ebp - 0x114]
lea eax, [edi - 8]
imul eax, esi
add ebx, eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTraceLoggerHandle]
xor bl, byte [ebp - 0x105]
mov ecx, dword [0x46080c]
mov edx, dword [0x460814]
mov esi, dword [ebp - 0x11c]
mov byte [ebp + ecx - 0x10c], bl
mov ebx, dword [ebp - 0x118]
push edx
mov byte [esi], bl
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
add dword [0x460800], eax
mov edx, dword [ebp - 0x110]
test edi, edi
je 0x4465ef
mov eax, dword [0x460814]
mov cl, byte [ebp + eax - 0x10c]
jmp 0x4465f7
mov eax, dword [0x46080c]
mov cl, byte [esi + eax]
mov byte [ebx + edx], cl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x460814]
lea eax, [ebp - 0x104]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [ebp - 0x114]
mov ecx, dword [0x460814]
cdq
sub eax, edx
sar eax, 1
mov edx, edi
sub edx, eax
mov eax, dword [ebp - 0x110]
inc eax
sub edx, ecx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x110], eax
cmp eax, dword [ebp + 0xc]
jl 0x446540
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044b371
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44b371
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45f590]
jne 0x44b37b
repz ret
jmp fcn.0044c61b

Function at 0x45341c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45f590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0044d624
and dword [ebp - 0x14], 0
cmp dword [0x461528], 0
mov dword [ebp - 0x18], eax
jne 0x4534cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x453577
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x453577
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x461528], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46152c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x461530], eax
call edi
push eax
call esi
mov dword [0x461538], eax
test eax, eax
je 0x4534cf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x461534], eax
mov eax, dword [0x461534]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x453528
cmp dword [0x461538], ecx
je 0x453528
push eax
call esi
push dword [0x461538]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x453528
test ebx, ebx
je 0x453528
call edi
test eax, eax
je 0x45351f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45351f
test byte [ebp - 8], 1
jne 0x453528
or dword [ebp + 0x10], 0x200000
jmp 0x45355b
mov eax, dword [0x46152c]
cmp eax, dword [ebp - 0x18]
je 0x45355b
push eax
call esi
test eax, eax
je 0x45355b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45355b
mov eax, dword [0x461530]
cmp eax, dword [ebp - 0x18]
je 0x45355b
push eax
call esi
test eax, eax
je 0x45355b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x461528]
call esi
test eax, eax
je 0x453577
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x453579
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b371
leave
ret
Function at 0x4019a0
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push fcn.00435fd0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4019da
call fcn.0041b760
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4019d3
mov eax, dword [ecx]
push 1
call dword [eax + 0x20]
mov dword [esi + 0x10], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x401a0e
push edi
call fcn.00435720
mov ecx, dword [esi + 0x14]
call fcn.00435280
mov edi, dword [esi + 0x14]
test edi, edi
je 0x401a06
mov ecx, edi
call fcn.00434030
push edi
call fcn.00437568
add esp, 4
mov dword [esi + 0x14], 0
pop edi
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x401a2e
call fcn.004180f0
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x401a27
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x18], 0
lea ecx, [esi + 0x40]
call fcn.00432450
call fcn.0043ea40
push 0xdc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x4c71f0
call fcn.0041f270
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401a6b
push 4
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
ret
Function at 0x402720
Capabilities:
Create process on windows
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a00d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x828
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [ebp + 8]
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x832]
mov word [ebp - 0x834], bx
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push 0x4b7178
lea eax, [ebp - 0x834]
push 0x800
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 5
push ebx
push 0x4c712c
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x4027ae
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
mov word [ebp - 0x34], bx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
push ecx
push 0x4a6da8
push 0x15
push ebx
push 0x4a6d98
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x402806
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4027f1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x94]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x402833
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [ebp - 0x14]
push 3
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x4028a9
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x24]
push eax
mov word [ebp - 0x24], bx
call edi
cmp eax, ebx
jge 0x402858
mov dword [ebp - 0x1c], eax
push esi
mov word [ebp - 0x24], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x40287d
cmp esi, ebx
je 0x40287d
mov word [ebp - 0x24], 0xa
mov dword [ebp - 0x1c], 0x8007000e
lea edx, [ebp - 0x34]
mov eax, dword [ebp + 8]
push edx
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 3
push edx
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x24]
push edx
push eax
call dword [ecx + 0xd0]
lea eax, [ebp - 0x24]
push eax
call edi
jmp 0x4028af
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x34]
push ecx
call edi
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4028c5
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402c70
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x4a0131
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push esi
push edi
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov eax, dword [0x4b7080]
test esi, esi
mov dword [esp + 8], eax
je 0x402cf7
mov ecx, esi
shr ecx, 0x10
jne 0x402cbf
and esi, 0xffff
lea ecx, [esp + 8]
push esi
call fcn.004068b0
jmp 0x402cf7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x402cf7
push edi
lea ecx, [esp + 0xc]
call fcn.00406c50
test eax, eax
je 0x402cf7
lea ecx, [edi + edi]
lea edx, [edi + edi + 2]
cmp edx, ecx
jb 0x402cf7
mov edi, dword [esp + 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4b7080]
mov dword [esp + 0x228], 0
mov dword [esp + 0xc], ecx
mov edx, dword [0x4c6f78]
lea ecx, [esp + 0x20]
push 0x100
push ecx
mov eax, dword [edx + 8]
push 0xba
push eax
mov byte [esp + 0x238], 1
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x402d3c
mov word [esp + 0x20], ax
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x402d6c
lea eax, [esp + 0x20]
test eax, eax
je 0x402d5b
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x20]
lea ecx, [esp + 0xc]
push edx
push eax
call fcn.00406cb0
jmp 0x402dba
push 0x1ff
lea ecx, [esp + 0x10]
mov esi, 0x200
call fcn.00406ac0
test eax, eax
je 0x402daf
push esi
push eax
push 0xba
call fcn.00406fc0
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x402daf
add esi, 0x100
lea ecx, [esp + 0xc]
lea edx, [esi - 1]
push edx
call fcn.00406ac0
test eax, eax
jne 0x402d83
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.00406b80
mov eax, 0x4b71a8
test eax, eax
je 0x402dce
push 0x4b71a8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4b71a8
push eax
lea ecx, [esp + 0x10]
call fcn.00406d70
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x10]
call fcn.00406d70
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
mov ecx, dword [eax + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00408620
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 2
call fcn.00408770
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x228], 1
call fcn.00408730
mov eax, dword [esp + 0xc]
mov ecx, dword [0x4b7084]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x402e5a
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x402e5a
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.00437568
add esp, 4
mov eax, dword [esp + 8]
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x402e85
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x402e85
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.00437568
add esp, 4
mov ecx, dword [esp + 0x220]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x224
ret