joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b230
Capabilities:
Schedule task via itaskscheduler

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4498c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x462014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, ecx
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00417df0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push 0
cmovae esi, dword [ebp - 0x28]
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40b2c7
lea eax, [ebp - 0x2c]
push eax
push 0x459288
push 1
push 0
push 0x459278
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40b347
call dword [sym.imp.ole32.dll_CoUninitialize]
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40b303
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b2f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b3ca
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 0x10
jb 0x40b3ae
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b3a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b3ca
jmp 0x40b3a4
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
push 0x45930c
push 0x458de8
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x20]
test eax, eax
jns 0x40b2c7
cmp eax, 0x80070050
jne 0x40b2c7
mov eax, dword [ebp - 0x2c]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0x40b394
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x40b2c7
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, 1
jmp 0x40b2c9
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c8d3
mov esp, ebp
pop ebp
ret
call fcn.0043654a
int3
Function at 0x40645c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406480
xor eax, eax
test eax, eax
je 0x406492
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406492
xor ecx, ecx
jmp 0x406495
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406581
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232bc], 0
push esi
jne 0x4065b8
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406592
mov dword [ecx*4 + 0x4232b8], eax
inc ecx
cmp ecx, 0x100
jl 0x40658d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065e9
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232b8]
xor eax, esi
inc ecx
dec edx
jne 0x4065cb
pop edi
not eax
pop esi
ret 0xc

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 0x1000e241
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 8
mov eax, 0x1004b470
call fcn.1000d553
xor ebx, ebx
push 0x100055fc
mov esi, ebx
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov edi, eax
mov eax, dword [0x10055ef4]
test al, 1
jne 0x1000e280
or eax, 1
push 0x1004cca7
mov dword [0x10055ef4], eax
mov dword [0x10055ef0], ebx
call fcn.100480be
pop ecx
cmp edi, 0xffffffff
jne 0x1000e28f
mov esi, 0x80004005
jmp 0x1000e3f5
mov ebx, dword [ebp + 8]
movzx eax, bx
push 0x10005614
push eax
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
jne 0x1000e2b3
mov eax, 0x80070057
jmp 0x1000e3f7
push eax
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x1000e285
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
cmp ebx, 2
je 0x1000e2ee
cmp ebx, 1
jne 0x1000e3f5
xor ebx, ebx
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
push eax
push dword [edi]
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], ebx
call fcn.1000e3ff
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jns 0x1000e33a
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x1000e3f5
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
jmp 0x1000e3f5
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x10055efc]
jb 0x1000e39e
ja 0x1000e352
mov esi, dword [0x10055ef8]
cmp dword [ebp - 0x14], esi
jbe 0x1000e3a4
push dword [0x10055ef0]
xorps xmm0, xmm0
movlpd qword [0x10055ef8], xmm0
call fcn.100480be
push dword [ebp - 0x14]
mov dword [0x10055ef0], ebx
call fcn.100480be
pop ecx
pop ecx
mov ecx, eax
mov dword [0x10055ef0], ecx
test ecx, ecx
jne 0x1000e38b
mov esi, 0x8007000e
jmp 0x1000e3e4
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [0x10055ef8], esi
mov dword [0x10055efc], eax
jmp 0x1000e3aa
mov esi, dword [0x10055ef8]
mov ecx, dword [0x10055ef0]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push ebx
lea ebx, [ebp + 0xc]
push ebx
push esi
push ecx
xor ebx, ebx
push ebx
push ebx
push eax
call dword [edx + 0xc]
mov esi, eax
test esi, esi
js 0x1000e3e4
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x14]
jne 0x1000e3df
cmp ebx, dword [ebp - 0x10]
jne 0x1000e3df
mov eax, dword [0x10055ef0]
mov dword [edi], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
jmp 0x1000e3e4
mov esi, 0x80004005
mov eax, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1000e3f5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.1000d5f3
ret 0xc
Function at 0x100388bf
Capabilities:
Enumerate gui resources

Disassembly:
push 0x624
mov eax, 0x1004af99
call fcn.1001de1b
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0x61c], ebx
mov dword [ebp - 0x624], edi
mov dword [ebp - 0x618], esi
cmp dword [0x10055e84], esi
jne 0x100388fc
push esi
push 0x100396b2
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, 0x10055e88
call fcn.100416b0
test eax, eax
je 0x10038bdf
inc dword [0x10055e84]
push 0x100
lea eax, [ebp - 0x214]
push eax
push 0x1ff
lea eax, [ebp - 0x614]
push eax
push esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.MSVCR100.dll__wsplitpath_s]
add esp, 0x24
push 0x1ff
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.MSO.dll_Ordinal_6137]
mov ecx, dword [0x10055e88]
lea eax, [ebp - 0x614]
push eax
mov dword [ebp - 0x620], ecx
mov dword [ebp - 4], esi
call fcn.100480be
or dword [ebp - 4], 0xffffffff
mov ebx, eax
jmp 0x10038a45
mov ecx, 0x10055e88
mov dword [edi + 0xc], ebx
call fcn.100416fb
lea ecx, [ebp - 0x630]
mov dword [edi + 4], eax
call fcn.100416a3
mov dword [ebp - 4], 4
mov ecx, ebx
mov dword [ebp - 0x618], esi
mov byte [ebp - 4], 5
call fcn.10041c26
mov ebx, eax
push ebx
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x618], ebx
call fcn.100480be
test ebx, ebx
je 0x10038a9e
mov ecx, ebx
call fcn.10040ea3
push ebx
call fcn.100480be
pop ecx
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x630]
call fcn.10041bba
mov ebx, eax
mov dword [ebp - 0x618], ebx
test ebx, ebx
je 0x10038b10
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.100480be
push eax
push edi
mov dword [ebp - 0x620], eax
call fcn.100480be
push dword [ebp - 0x620]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x10038a90
push 0x14
call fcn.100480be
mov ebx, eax
test ebx, ebx
jne 0x10038b21
push 0xfffffffffffffffe
jmp 0x10038b7f
lea eax, [ebx + 8]
push eax
push 0x100549b0
push 0x1000473c
call fcn.100480be
test eax, eax
jne 0x10038b1d
push 0x10053448
mov dword [ebx + 4], esi
push edi
mov dword [edi + 0x5c], ebx
call fcn.100480be
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x630]
call fcn.100414da
xor eax, eax
jmp 0x10038be2
or dword [ebp - 4], 0xffffffff
pop esi
lea ecx, [ebp - 0x630]
call fcn.100414da
mov eax, esi
jmp 0x10038be2
push 0xfffffffffffffffa
pop eax
call fcn.1001df2e
ret 0x10
Function at 0x1003c427
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1004b3b4
call fcn.1001de1b
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1003c488
call fcn.1003a493
mov esi, eax
jmp 0x1003c560
push dword [ebp - 0x41c]
push esi
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1003c4a6
call fcn.1003a493
jmp 0x1003c557
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x1003c49c
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x41c], esi
cmp eax, esi
jae 0x1003c4d9
mov esi, 0x8007000e
jmp 0x1003c559
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.100480be
mov dword [ebp - 4], 1
jmp 0x1003c50d
cmp dword [ebp - 0x418], 0
je 0x1003c4cf
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1003c49c
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.100480be
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1003c579
lea ecx, [ebp - 0x418]
call fcn.1003c65f
lea ecx, [ebp - 0x428]
call fcn.1003a479
mov eax, esi
call fcn.1001df2e
ret 0x10
Function at 0x1003c69d
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 8
mov eax, 0x1004b42a
call fcn.1000d553
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1003c6ee
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
test eax, eax
je 0x1003c6d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1003c6e4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
jmp 0x1003c7be
cmp dword [ebp + 0xc], 0
jne 0x1003c6fe
mov esi, 0x80004003
jmp 0x1003c795
lea eax, [ebp - 0x10]
push eax
call fcn.100480be
mov esi, eax
test esi, esi
js 0x1003c795
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
test eax, eax
je 0x1003c795
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x1003c733
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1003c6f4
mov eax, dword [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], esp
test eax, eax
je 0x1003c74b
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
push esi
call fcn.1003cef1
mov esi, eax
test esi, esi
js 0x1003c795
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.MSO.dll_Ordinal_469]
mov esi, eax
test esi, esi
js 0x1003c795
push dword [ebp - 0x14]
call fcn.100480be
test eax, eax
jne 0x1003c784
mov esi, 0x80004005
jmp 0x1003c795
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
cmp dword [ecx], eax
je 0x1003c795
push eax
push ecx
call fcn.100480be
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
test eax, eax
je 0x1003c7ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1003c7bc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.1000d5f3
ret 8

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 0x598089d7
Capabilities:
Get file size
Read file on windows

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x20
mov esi, 0x59857637
mov eax, dword [esi + 8]
inc esi
or byte [eax - 1], dl
adc eax, sym.imp.kernel32.dll_LoadLibraryA
Function at 0x401bce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x401bdd
pop dword [ebp - 0x1c]
mov eax, 0x66f02e70
sub eax, 0x66b01293
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x37dc5
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x667bd43e
sub ecx, 0x667b9e68
xor esi, esi
add esi, eax
mov edi, 0x4f7457f6
sub edi, 0x4f3129f6
add edi, dword [ebp - 0x1c]
mov ebx, 0x13502207
sub dword [ebp - 0x10], edi
mov edx, dword [edi]
sub dword [ebp - 0xc], eax
sub edx, ebx
xor dword [ebp - 0xc], ebx
mov dword [esi], edx
sub dword [ebp - 0x10], 0x894bfa45
add esi, 0xc81b1b0
add esi, 0xf37e4e54
add edi, 4
loop 0x401c33
add eax, 0x8f4b887f
sub eax, 0x8f4abe54
xor ebx, ebx
add ebx, eax
add eax, 0x586e2ed1
sub eax, 0x586e2ecc
mov ecx, 0x1792cd4e
sub ecx, 0x1752cd4e
add ecx, dword [ebp - 0x1c]
call ebx
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 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 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x401d47
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401d86
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401d86
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401d86
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401d86
cmp dword [ecx + 0x74], 0xe
jbe 0x401d86
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4021f0
Capabilities:
Create process on windows
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40243d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x20
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 7
call fcn.00401498
movups xmm0, xmmword [0x4031c8]
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov dword [ebp - 0x18], 8
add esp, 4
mov dword [ebp - 0x14], 0xf
movups xmmword [eax], xmm0
mov word [eax + 0x10], cx
push ecx
push 0x80
push 3
push ecx
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
push ecx
cmova eax, dword [ebp - 0x28]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402294
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x402301
cmp eax, 0x21
je 0x402301
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4022f1
push 0x4031dc
push str.main_new.exe
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4022f1
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, 0x403210
call fcn.004011a0
push 1
push 0
push 0
push str.main.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor esi, esi
jmp 0x402306
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, 0x403290
call fcn.004011a0
mov esi, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x402342
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402338
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402338
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004014c8
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040148a
mov esp, ebp
pop ebp
ret
Function at 0x2e013ece
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x2e03021f
call fcn.2e00153c
mov edi, ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call fcn.2e014c10
test ax, ax
je 0x2e013f76
lea eax, [ebp - 0x10]
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e013f76
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e013f6d
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.2e0180f6
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push esi
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e013f60
push esi
mov ecx, edi
call fcn.2e010c49
push 1
push esi
mov byte [ebp - 4], bl
call fcn.2e0180f6
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.2e001586
ret

Function at 0x2e0149fe
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x2e030292
call fcn.2e02e16c
mov esi, dword [ebp + 8]
xor eax, eax
mov bl, al
mov edi, dword [ebp + 0xc]
cmp dword [ecx + 0x10], eax
jbe 0x2e014b02
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.2e0148ed
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push esi
call fcn.2e010b76
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014ac0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x2e032941
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e014ab7
mov eax, dword [ebp - 0x2c]
inc eax
push eax
call fcn.2e0180f6
mov esi, eax
pop ecx
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push esi
push 0
push 0
push 0x2e032941
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014aa9
push esi
mov ecx, edi
call fcn.2e010c49
mov bl, 1
push 1
push esi
mov byte [ebp - 4], 0
call fcn.2e0180f6
pop ecx
pop ecx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x2e014b02
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 2
cmp eax, 0x1000
jb 0x2e014af9
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.2e0180f6
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call fcn.2e0180f6
pop ecx
pop ecx
mov al, bl
call fcn.2e02e14a
ret 8