joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cad4
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0044ca46
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x44cc43
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x44cc43
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x44cbf8
jg 0x44cb30
test eax, eax
je 0x44cbee
push 1
push 0x1000
call fcn.0043e032
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x44cb53
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x44cbe5
push 0x8000
push ebx
call fcn.0043b62b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x44cb7c
jg 0x44cb77
cmp ecx, 0x1000
jb 0x44cb7c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004407e2
add esp, 0x10
cmp eax, 0xffffffff
je 0x44cbc1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x44cb77
jl 0x44cba8
test ecx, ecx
jne 0x44cb69
push dword [ebp - 0xc]
push ebx
call fcn.0043b62b
push esi
call fcn.0043c262
add esp, 0xc
xor ebx, ebx
jmp 0x44cc51
cmp byte [edi + 0x24], 0
je 0x44cbd8
cmp dword [edi + 0x20], 5
jne 0x44cbd8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x44cbe3
mov ebx, dword [edi + 0x18]
jmp 0x44cbe5
xor ebx, ebx
push esi
call fcn.0043c262
pop ecx
jmp 0x44cc51
test ecx, ecx
jg 0x44cbba
jl 0x44cbf8
test eax, eax
jae 0x44cbba
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043fe68
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44cc18
cmp byte [edi + 0x1c], 0
je 0x44cbba
jmp 0x44cc49
push ebx
call fcn.004450bc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44cbba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x44cc51
cmp byte [edi + 0x1c], 0
je 0x44cc4e
mov ebx, dword [edi + 0x18]
jmp 0x44cc51
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0043fe68
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44cee0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44cf0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44cf0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40f340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40f34f
pop dword [ebp - 0x2c]
mov eax, 0xea1f9599
sub eax, 0xe9dea24a
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x1d0df0dc
add dword [ebp - 0x3c], 0x3144546f
mov dword [ebp - 0x38], 0x6aef1463
add dword [ebp - 0x38], 0xc74437e2
mov dword [ebp - 0x34], 0xd128081f
add dword [ebp - 0x34], 0x7b243c0f
mov dword [ebp - 0x30], 0xe3409195
add dword [ebp - 0x30], 0x1cbf6e6b
lea eax, [ebp - 0x3c]
push eax
mov eax, 0xbda57fb
sub eax, 0xb96b74b
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xcfdcef19
add dword [ebp - 0x3c], 0xa4957a3d
mov dword [ebp - 0x38], 0xbee65810
add dword [ebp - 0x38], 0x82860965
mov dword [ebp - 0x34], 0xeaa16ecf
add dword [ebp - 0x34], 0x78cdfd9d
mov dword [ebp - 0x30], 0x6548a2ab
add dword [ebp - 0x30], 0x9ab75d55
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xed92281
add eax, 0xf16a7db7
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3e02a
push 0
call eax
mov ecx, 0xc634016d
sub ecx, 0xc633ba68
mov esi, eax
mov edi, 0x856be28b
add edi, 0x7ad99775
add edi, dword [ebp - 0x2c]
mov edx, 0xbd84f5fb
mov dword [ebp - 8], 0xf37d273a
mov ebx, dword [edi]
xor dword [ebp - 4], edi
add ebx, edx
mov dword [ebp - 0x24], 0xeaab1997
mov dword [esi], ebx
mov dword [ebp - 0x20], 0xb1f82720
add esi, 4
add edi, 0xeadaad4a
sub edi, 0xeadaad46
loop 0x40f46b
add eax, 0xdc4fc22f
add eax, 0x23b14cb8
mov ebx, eax
add eax, 0x50920de7
sub eax, 0x50920de2
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x4128d9
Capabilities:
Get common file path

Disassembly:
push 0x264
mov eax, 0x4375ca
call fcn.00433ea9
mov edi, ecx
xor esi, esi
push 0x20a
lea eax, [ebp - 0x224]
push esi
push eax
mov dword [ebp - 0x258], esi
call dword [sym.imp.MSVCR110.dll_memset]
add esp, 0xc
call fcn.0040f340
test al, al
je 0x41299a
push str.IE_is_protected_mode_
lea ecx, [ebp - 0x23c]
call fcn.0040f340
push str.LogSession
lea ecx, [ebp - 0x254]
mov dword [ebp - 4], esi
call fcn.0040f340
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 1
call fcn.0040c42d
push 0x43f9ae
lea ecx, [ebp - 0x270]
mov esi, eax
call fcn.0040f340
push eax
mov byte [ebp - 4], 2
mov edx, dword [esi]
lea eax, [ebp - 0x23c]
push eax
mov ecx, esi
call dword [edx + 0x40]
lea ecx, [ebp - 0x270]
call fcn.004023b1
lea ecx, [ebp - 0x254]
call fcn.004023b1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.004023b1
mov ecx, edi
call fcn.0041283a
jmp 0x4129c7
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push 0x801a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, 0x43fc28
test eax, eax
lea ecx, [ebp - 0x224]
cmovne ecx, edx
push ecx
mov ecx, edi
call fcn.0040f340
mov eax, edi
call fcn.00433e58
ret
Function at 0x1001305b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1001306a
pop dword [ebp - 0x14]
mov eax, 0xd8741233
add eax, 0x378d1e37
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x28f0cc89
sub dword [ebp - 0x24], 0xda9e873e
mov dword [ebp - 0x20], 0x6f36922
add dword [ebp - 0x20], 0x2b3fe323
mov dword [ebp - 0x1c], 0x9c74a8f0
sub dword [ebp - 0x1c], 0x502864c2
mov dword [ebp - 0x18], 0xc3cf16ef
add dword [ebp - 0x18], 0x3c30e911
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x545e7043
add dword [ebp - 0x24], 0x2013f913
mov dword [ebp - 0x20], 0xb54c14a
sub dword [ebp - 0x20], 0xc9e85fd5
mov dword [ebp - 0x1c], 0x976fe170
sub dword [ebp - 0x1c], 0x34007504
mov dword [ebp - 0x18], 0xbe12f820
sub dword [ebp - 0x18], 0xbe12f820
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xad943512
sub eax, 0x9d923512
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3f1ff
push 0
call eax
mov ecx, 0x5156
mov edi, eax
mov esi, 0x3ace711d
add esi, 0xd5344ae3
add esi, dword [ebp - 0x14]
mov ebx, 0xa91d6f62
add dword [ebp - 0xc], edi
mov edx, dword [esi]
xor dword [ebp - 4], 0xa924b048
sub edx, ebx
sub dword [ebp - 0x10], ecx
mov dword [edi], edx
xor dword [ebp - 4], ebx
add edi, 4
add esi, 0x9da011b0
sub esi, 0x9da011ac
loop 0x1001317b
add eax, 0x1382b
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4063a3
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
test esi, esi
je 0x406464
cmp dword [ebp + 8], 0
jne 0x4063c8
cmp dword [ebp + 0x10], 2
jg 0x406464
call fcn.00401371
push eax
lea ecx, [ebp - 4]
call fcn.00401791
call fcn.00401371
push eax
lea ecx, [ebp + 0x14]
call fcn.00401791
xor edi, edi
lea eax, [ebx + 0x58]
inc edi
push 0
mov ecx, eax
call fcn.00407ca0
test al, al
jne 0x40640a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea eax, [ebx + 0x58]
cmp edi, 0x14
jle 0x4063ea
jmp 0x40642e
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
mov ecx, ebx
push esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004062c6
lea ecx, [ebx + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
cmp edi, 0x14
jle 0x40644e
push str.LOG_SYSTEM:_Couldnt_acquire_lock__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x43c0b0
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.004015ce
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004015ce
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x406776
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx], fcn.00406924
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.00401371
push eax
lea ecx, [ebx + 0xc]
call fcn.00401791
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.00403f5a
mov dword [ebx + 0x18], edi
call fcn.00401371
push eax
lea ecx, [ebx + 0x1c]
call fcn.00401791
movzx eax, byte [0x443f39]
neg eax
sbb eax, eax
and eax, 0x443f40
mov dword [ebp + 8], eax
je 0x406849
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.00406689
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x406825
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0x989680
push str.MaxLogFileSize
push str.LoggingSettings
call edi
mov dword [ebx + 4], eax
xor eax, eax
push esi
inc eax
push eax
push str.LogFileWide
push str.LoggingSettings
call edi
test eax, eax
setne al
jmp 0x40682f
xor eax, eax
mov dword [ebx + 4], 0x989680
inc eax
mov byte [ebx + 0xb], al
lea ecx, [ebx + 0x1c]
mov eax, dword [ebp + 8]
add eax, 0x54
push eax
call fcn.004015e6
lea ecx, [esi - 0x10]
call fcn.004015ce
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x408b80
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x408be6
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.00416dd6
leave
ret

Function at 0x409840
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4098af
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40988b
push ebx
push edi
push eax
call fcn.00418db0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x4098a6
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret

Function at 0x40c168
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 9
mov esi, ecx
lea edi, [ebp - 0x44]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x40]
lea ebx, [edi - 1]
not ebx
and ebx, dword [ebp + 8]
je 0x40c1b9
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea ecx, [esi + 0xc]
call fcn.0040cbaa
cmp eax, dword [esi + 0xc]
je 0x40c1ad
cmp ebx, dword [eax + 0x10]
jae 0x40c1b0
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0xc]
jne 0x40c1c2
sub ebx, edi
jne 0x40c194
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 7
lea esi, [eax + 0x14]
pop ecx
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
add ecx, ebx
cmp ecx, dword [ebp + 8]
jbe 0x40c1b9
mov eax, ebx
jmp 0x40c1bb
Function at 0x40c4c1
Capabilities:
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x78
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x74]
push 9
pop ecx
xor eax, eax
mov dword [ebp - 0xc], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
and dword [esi + 8], eax
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x30]
push eax
push 0
jmp 0x40c5c7
cmp dword [ebp - 0x20], 0x1000
jne 0x40c5b8
mov eax, dword [ebp - 0xc]
lea esi, [ebp - 0x30]
push 7
pop ecx
lea edi, [ebp - 0x50]
add eax, 0xc
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 4]
push ecx
mov ecx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
call fcn.0040cbaa
mov esi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp esi, eax
je 0x40c553
cmp edi, dword [esi + 0x10]
jae 0x40c595
push 0x30
call fcn.00404707
mov edx, eax
xor eax, eax
pop ecx
mov ecx, dword [ebp - 4]
push 7
lea edi, [edx + 0x10]
mov dword [edi], ecx
add edi, 4
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
lea eax, [edx + 0x10]
push edx
push eax
push esi
lea eax, [ebp - 0x14]
mov word [edx + 0xc], 0
push eax
call fcn.0040d02e
mov esi, dword [ebp - 0x14]
lea edi, [esi + 0x14]
push 7
pop ecx
lea esi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
test byte [ebp - 0x1c], 0x70
je 0x40c5b8
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov eax, ecx
div dword [ebp - 0x70]
mov edx, dword [ebp - 0xc]
add dword [edx + 8], eax
jmp 0x40c5bb
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
add eax, ecx
lea ecx, [ebp - 0x30]
push 0x1c
push ecx
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
je 0x40c50e
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x413473
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x200
xor ebx, ebx
lea eax, [ebp - 0x204]
push ebx
push eax
call fcn.00417950
add esp, 0xc
mov dword [ebp - 0x20c], 0x100
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x4134d7
push ecx
lea ecx, [ebp - 0x204]
call fcn.00404e06
pop ecx
test al, al
je 0x4134d7
mov al, 1
jmp 0x41351c
push esi
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], ebx
push eax
push 0x64
push ebx
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
mov esi, dword [ebp - 0x208]
test eax, eax
jne 0x413512
cmp dword [esi + 8], ebx
je 0x413512
push str.google
push dword [esi + 8]
call fcn.004267a4
pop ecx
pop ecx
test eax, eax
jne 0x413512
mov bl, 1
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov al, bl
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00416dd6
leave
ret

Function at 0x4145fe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
mov byte [ebp - 1], cl
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.004141e2
test eax, eax
js 0x414720
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], ebx
je 0x414720
call fcn.00412b13
cmp byte [ebp - 1], 0
mov eax, str.HKLMSoftwareGoogleUpdate_
jne 0x414646
mov eax, str.HKCUSoftwareGoogleUpdate_
push eax
lea ecx, [ebp - 8]
call fcn.00403f5a
push 0x43e990
lea ecx, [ebp - 0xc]
call fcn.00403f5a
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.00403856
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.004015e6
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004015ce
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.004015ce
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.00408362
test al, al
jne 0x4146a7
mov cl, byte [ebp - 1]
mov dl, 1
call fcn.00414732
mov edi, eax
jmp 0x414712
push 1
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0x43b6f0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0x200
call fcn.00407eb2
mov edi, eax
test edi, edi
js 0x414703
mov eax, dword [ebp - 0x1c]
xor edi, edi
sub ebx, eax
sar ebx, 2
test ebx, ebx
je 0x4146f7
push 0
push 0
push 0
push 0
push dword [eax + edi*4]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41471c
mov eax, dword [ebp - 0x1c]
inc edi
cmp edi, ebx
jb 0x4146d7
mov cl, byte [ebp - 1]
xor dl, dl
call fcn.00414732
mov edi, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0x43b6f0
call fcn.00407d55
lea ecx, [esi - 0x10]
call fcn.004015ce
jmp 0x414723
xor edi, edi
jmp 0x414703
xor edi, edi
inc edi
lea ecx, [ebp - 0x1c]
call fcn.00404ba8
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4158c4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x442c1c
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
push 0x442c1c
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
and dword [esi + 0x18], 0
and dword [esi + 0x1c], 0
mov dword [ebp + 8], eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 8], 0
jne 0x415906
test ebx, ebx
je 0x415964
lea ebx, [edi + 0x1c]
mov ecx, edi
push ebx
push str.Counts
call fcn.0041589b
test al, al
je 0x415964
push dword [esi + 4]
lea ecx, [ebp - 4]
call fcn.00405321
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x10]
xor edi, edi
mov edx, esi
push eax
mov ecx, ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.00415b8d
mov eax, dword [ebp + 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
adc dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
pop ecx
push 8
push eax
push 3
push edi
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esi - 0x10]
call fcn.004015ce
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40673a
pop dword [ebp - 0x20]
mov eax, 0x40673a
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xca0e8e2b
add dword [ebp - 0x30], 0x8443b720
mov dword [ebp - 0x2c], 0x161a02de
add dword [ebp - 0x2c], 0x1c194967
mov dword [ebp - 0x28], 0x95c309b3
add dword [ebp - 0x28], 0xb6893a7b
mov dword [ebp - 0x24], 0x42de579f
sub dword [ebp - 0x24], 0x42de579f
lea eax, [ebp - 0x30]
push eax
mov eax, 0xce2318fa
add eax, 0x321d680a
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x8ede5914
add dword [ebp - 0x30], 0xe5941042
mov dword [ebp - 0x2c], 0xd5278491
sub dword [ebp - 0x2c], 0x93bb231c
mov dword [ebp - 0x28], 0x21f6fb6b
sub dword [ebp - 0x28], 0xbe878eff
mov dword [ebp - 0x24], 0xa2ce1524
sub dword [ebp - 0x24], 0xa2ce1524
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xa5a4296e
add eax, 0x5a9c5792
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x36981
push 0
call eax
mov ecx, 0x4450
mov edx, eax
mov esi, 0x57843cba
sub esi, 0x573d58ba
add esi, dword [ebp - 0x20]
mov ebx, 0x8ed6c56e
add dword [ebp - 0x10], 0x202cf939
mov edi, dword [esi]
xor dword [ebp - 0x14], edi
xor edi, ebx
mov dword [edx], edi
mov dword [ebp - 0xc], 0xcbb9e722
add edx, 4
add esi, 0xc1205411
sub esi, 0xc120540d
loop 0x40684b
add eax, 0xd92d01b5
add eax, 0x26d4025e
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c

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 0x678090
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 8
mov dword [0x78a6a4], 1
mov dword [0xa0d070], 0
push 4
call fcn.00661870
pop ecx
mov dword [0xa0d060], eax
test eax, eax
jne 0x6780d0
call fcn.00677f00
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov esi, eax
mov edi, esi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, 0xfffffffe
sub eax, ecx
inc eax
push eax
call fcn.00661870
pop ecx
mov dword [0x78a6a0], eax
mov edi, eax
test edi, edi
jne 0x678109
call fcn.00677f00
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
inc esi
movsx eax, byte [esi]
push eax
push str.__t_r_n_v
call fcn.00642690
pop ecx
pop ecx
test eax, eax
jne 0x678108
jmp 0x67825c
call fcn.00677f20
test eax, eax
je 0x678265
mov dword [ebp - 0x10], 0
mov edx, dword [0xa0d070]
mov eax, dword [0xa0d060]
mov dword [eax + edx*4], edi
inc dword [0xa0d070]
xor ebx, ebx
jmp 0x678247
test ebx, ebx
jne 0x6781a0
movsx eax, al
push eax
push str.__t_r_n_v
call fcn.00642690
pop ecx
pop ecx
test eax, eax
je 0x678190
inc esi
mov cl, byte [esi]
test cl, cl
je 0x678184
movsx eax, cl
push eax
push str.__t_r_n_v
call fcn.00642690
pop ecx
pop ecx
test eax, eax
jne 0x678169
mov byte [edi], 0
inc edi
jmp 0x678251
cmp byte [esi], 0x22
jne 0x6781c2
inc esi
mov ebx, 1
jmp 0x678247
cmp al, 0x22
jne 0x6781b6
cmp byte [esi + 1], 0x22
jne 0x6781b6
mov byte [edi], 0x22
inc edi
add esi, 2
jmp 0x678247
cmp al, 0x22
jne 0x6781c2
inc esi
xor ebx, ebx
jmp 0x678247
mov al, byte [esi]
cmp al, 0x5c
jne 0x678204
cmp byte [esi + 1], 0x5c
jne 0x678204
mov ecx, 2
jmp 0x6781d6
inc ecx
mov al, byte [esi + ecx]
cmp al, 0x5c
je 0x6781d5
cmp al, 0x22
jne 0x6781fd
and ecx, 0xfffffffe
je 0x678247
mov al, byte [esi]
mov byte [edi], al
inc edi
add esi, 2
sub ecx, 2
test ecx, ecx
jne 0x6781e6
jmp 0x678247
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
sub ecx, 1
jae 0x6781f7
jmp 0x678247
cmp al, 0x5c
jne 0x678217
cmp byte [esi + 1], 0x22
jne 0x678217
mov byte [edi], 0x22
inc edi
add esi, 2
jmp 0x678247
cmp al, 0x5c
jne 0x678230
mov dl, byte [esi + 1]
cmp dl, 0x3f
je 0x678228
cmp dl, 0x2a
jne 0x678230
mov byte [edi], dl
inc edi
add esi, 2
jmp 0x678247
test ebx, ebx
jne 0x678243
cmp al, 0x2a
je 0x67823c
cmp al, 0x3f
jne 0x678243
mov dword [ebp - 0x10], 1
mov byte [edi], al
inc esi
inc edi
mov al, byte [esi]
test al, al
jne 0x678151
cmp dword [ebp - 0x10], 0
je 0x67825c
call fcn.00677f70
cmp byte [esi], 0
jne 0x678122
mov byte [edi], 0
mov edx, dword [0xa0d070]
mov eax, dword [0xa0d060]
mov dword [eax + edx*4], 0
push 0x677ec0
call fcn.006638f0
pop ecx
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
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