joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b4e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40a015
lea edi, [esi - 0x9015]
push edi
or ebp, 0xffffffff
jmp 0x40b4f7
movsb byte es:[edi], byte [esi]
add ebx, ebx
jne 0x40b4fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b4f2
xor eax, eax
inc eax
add ebx, ebx
jne 0x40b50e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jne 0x40b51b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b503
xor ecx, ecx
sub eax, 3
jb 0x40b531
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40b581
mov ebp, eax
add ebx, ebx
jne 0x40b53c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40b549
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40b56a
inc ecx
add ebx, ebx
jne 0x40b559
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40b566
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b54e
inc ecx
inc ecx
cmp ebp, 0xfffff300
adc ecx, 1
mov edx, esi
lea esi, [edi + ebp]
rep movsb byte es:[edi], byte [esi]
mov esi, edx
jmp 0x40b4f3
pop esi
mov edi, esi
mov ecx, 0x6d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40b589
cmp byte [edi], 1
jne 0x40b589
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 al, bl
loop 0x40b58e
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40b5fd
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb03c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40b5bb
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb044]
or eax, eax
je 0x40b5f7
mov dword [ebx], eax
add ebx, 4
jmp 0x40b5d8
call dword [esi + 0xb040]
mov ebp, dword [esi + 0xb048]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0xb658]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40b649
sub esp, 0xffffff80
jmp 0x401500

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x70973674
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x7a1c7354
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..idata
nop
mov ebx, 0x408ecc
mov ecx, 0xe383eba
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x21b01293
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401220
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x8fa160]
mov ecx, dword [0x8f90b4]
shr eax, 3
sub esp, 0x81c
test eax, eax
jbe 0x401328
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
lea ebx, [ebx]
cmp dword [0x8fa160], 0x959
jne 0x40130e
push 0
call esi
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push str.ducofikinevodugucexejayeyide_jofubupazekatajikuwayoj
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
lea eax, [ebp - 0x81c]
push eax
push 0
push str.lebogegimoramigefunolerulodidi_peyewuvuhicucalikid_suyucedizejabije
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0
push str.kemafuvoriwidekubinujogin
push str.vuvetutijapaliy
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0
push 0
push 0
push 0
push 0
push 0
push str.laduvig_xupewufodarahut
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 4]
push edx
call fcn.00401030
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x401260
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402570
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4da0c8]
jne 0x40257a
repz ret
jmp fcn.00405f0e

Function at 0x405b3b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402ff9
and dword [ebp - 4], 0
cmp dword [0x4dbb28], 0
mov ebx, eax
jne 0x405bec
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405c9d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405c9d
push eax
call fcn.00402f87
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4dbb28], eax
call esi
push eax
call fcn.00402f87
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4dbb2c], eax
call esi
push eax
call fcn.00402f87
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4dbb30], eax
call esi
push eax
call fcn.00402f87
pop ecx
mov dword [0x4dbb38], eax
test eax, eax
je 0x405bec
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402f87
pop ecx
mov dword [0x4dbb34], eax
mov eax, dword [0x4dbb34]
cmp eax, ebx
je 0x405c44
cmp dword [0x4dbb38], ebx
je 0x405c44
push eax
call fcn.00403002
push dword [0x4dbb38]
mov esi, eax
call fcn.00403002
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405c44
test edi, edi
je 0x405c44
call esi
test eax, eax
je 0x405c3b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405c3b
test byte [ebp - 0xc], 1
jne 0x405c44
or dword [ebp + 0x10], 0x200000
jmp 0x405c7d
mov eax, dword [0x4dbb2c]
cmp eax, ebx
je 0x405c7d
push eax
call fcn.00403002
pop ecx
test eax, eax
je 0x405c7d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405c7d
mov eax, dword [0x4dbb30]
cmp eax, ebx
je 0x405c7d
push eax
call fcn.00403002
pop ecx
test eax, eax
je 0x405c7d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4dbb28]
call fcn.00403002
pop ecx
test eax, eax
je 0x405c9d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405c9f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x402c60
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x43e6cc
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
xor ebx, ebx
push 0x228
lea eax, [esp + 0x2c]
push ebx
push eax
mov dword [esp + 0x30], ebx
call fcn.0042ace0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x25c], ebx
cmp edi, 0xffffffff
je 0x402e3b
lea ecx, [esp + 0x24]
push ecx
push edi
mov dword [esp + 0x2c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x402e3b
mov ebp, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x4c]
call fcn.00414080
mov byte [esp + 0x25c], 1
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x402d30
mov ecx, esi
lea eax, [esp + 0x14]
call fcn.00417540
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edx
call fcn.0042a825
add esp, 8
cmp esi, ebx
jl 0x402e7b
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x402e7b
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + esi*2], cx
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jl 0x402e01
push str.advancedsystemrepairpro.exe
push eax
call fcn.0042a5b3
add esp, 8
cmp eax, ebx
je 0x402e01
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x402e01
mov eax, dword [esp + 0x2c]
push eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 0x20], esi
mov byte [esp + 0x25c], 2
cmp esi, ebx
je 0x402dee
push 0x448bc4
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x402dd7
lea ecx, [esp + 0x18]
push ecx
push 0x1388
push 1
push ebx
push ebx
push 0x864
push eax
mov dword [esp + 0x34], ebx
call ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x402dee
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x25c], 1
cmp esi, ebx
je 0x402e01
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x25c], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402e28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402cf3
mov dword [esp + 0x25c], 0xffffffff
cmp edi, ebx
je 0x402e51
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.0041d851
add esp, 0x24c
ret
push 0x80070057
call fcn.00414240
int3
Function at 0x403650
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43e5f2
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
mov dword [esp + 0x10], 0
push ecx
mov dword [esp + 0x1c], esi
mov word [esp + 0x20], ax
call fcn.0042ace0
add esp, 0xc
lea edx, [esp + 4]
push edx
xor edx, edx
cmp byte [esp + 0x234], dl
lea eax, [esp + 0x18]
push eax
setne dl
lea ecx, [esp + 0x14]
push ecx
push str.InstallDir
push str.SoftwareAdvancedSystemRepairPro
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0x104
add edx, 0x80000001
push edx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [esp + 4]
xor ecx, ecx
shr eax, 1
mov word [esp + eax*2 + 0x14], cx
push esi
lea ecx, [esp + 0x18]
call fcn.00414080
mov dword [esp + 0x228], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0041d851
add esp, 0x228
ret

Function at 0x403bf0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43e628
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.00414080
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0xc]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x403c43
mov ecx, esi
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00404a90
mov eax, dword [esp + 0xc]
lea ecx, [esi + esi]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push ecx
push eax
push 1
push str.InstallDir
push str.SoftwareAdvancedSystemRepairPro
push SysReAllocString
call esi
mov eax, dword [esp + 0xc]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x403c7f
mov edx, edi
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00404a90
mov eax, dword [esp + 0xc]
lea ecx, [edi + edi]
push ecx
push eax
push 1
push str.InstallDir
push str.SoftwareAdvancedSystemRepairPro
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0040c460
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x404040
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebx
xor ebx, ebx
push ebp
push edi
cmp dword [esi + 0x34], ebx
ja 0x404054
cmp dword [esi + 0x30], 0x40
jbe 0x404158
mov edi, dword [esi + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call ebp
test eax, eax
jne 0x40415d
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x40415d
mov byte [esi + 0x38], 1
mov eax, dword [edi + 0x3c]
mov edi, dword [esi + 0x34]
xor ecx, ecx
lea edx, [eax + 0xf8]
cmp edi, ecx
jb 0x404158
ja 0x40409f
mov ecx, dword [esi + 0x30]
cmp ecx, edx
jbe 0x404158
mov edx, dword [esi + 0x28]
add eax, edx
push 0xf8
push eax
mov dword [esi + 0x24], eax
call ebp
test eax, eax
jne 0x40415d
mov eax, dword [esi + 0x24]
cmp dword [eax], 0x4550
jne 0x40415d
mov ecx, 0x2000
test word [eax + 0x16], cx
jne 0x4040d5
mov byte [esi + 0x44], 1
mov edx, eax
movzx eax, word [edx + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x4040f1
mov dword [esi + 0x40], 1
add edx, 0x78
jmp 0x404108
mov ecx, 0x20b
cmp ax, cx
jne 0x40410b
mov dword [esi + 0x40], 2
add edx, 0x88
mov dword [esi + 0x20], edx
cmp dword [esi + 0x20], ebx
je 0x40415d
mov eax, dword [esi + 0x24]
movzx ecx, word [eax + 6]
mov dword [esi + 0x3c], ecx
test ecx, ecx
je 0x40415d
movzx edx, word [eax + 0x14]
mov ebx, dword [esi + 0x34]
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
sub ecx, dword [esi + 0x28]
add ecx, edx
lea edi, [ecx + eax + 0x18]
xor ecx, ecx
cmp ebx, ecx
jb 0x404158
ja 0x404146
mov ecx, dword [esi + 0x30]
cmp ecx, edi
jbe 0x404158
pop edi
mov ebx, 1
lea edx, [edx + eax + 0x18]
pop ebp
mov eax, ebx
mov dword [esi + 0x1c], edx
pop ebx
ret
mov ebx, 2
pop edi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x405660
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43e671
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor ecx, ecx
push eax
mov ebx, 0x104
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], cx
call fcn.00408390
mov dword [esp + 0x40], 1
mov eax, dword [esp + 0x1c]
mov ebp, 8
cmp dword [esp + 0x30], ebp
jae 0x4056d8
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x48]
push 1
push edx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4056fc
or eax, 0xffffffff
xor ebx, ebx
lea esi, [esp + 0x18]
call fcn.00422f60
jmp 0x405744
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x40570a
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405710
mov ecx, dword [esp + 0x2c]
sub eax, edx
sar eax, 1
mov ebx, eax
cmp ebx, ecx
ja 0x405737
or eax, 0xffffffff
lea esi, [esp + 0x18]
call fcn.00422f60
jmp 0x405744
mov eax, ebx
sub eax, ecx
lea ebx, [esp + 0x18]
call fcn.00414970
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x405752
lea ecx, [esp + 0x1c]
push edi
call fcn.00414080
xor ebx, ebx
mov dword [esp + 0x10], 1
mov byte [esp + 0x40], bl
cmp dword [esp + 0x30], ebp
jb 0x405779
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041206d
add esp, 4
xor ecx, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041d851
add esp, 0x34
ret
Function at 0x406b30
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, SysReAllocString
mov dword [esp + 4], 0
test ecx, ecx
je 0x406b6a
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406bc0
mov eax, dword [esp + 4]
test edi, edi
je 0x406b95
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ecx
push edi
push edx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x406bb3
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
ret

Function at 0x408b60
Capabilities:
Create process on windows
Terminate process

Disassembly:
cmp byte [0x45a376], 0
mov byte [0x45a374], 1
push 1
je 0x408b81
mov eax, dword [0x45a3b0]
push 0
push 0x4485d8
push eax
jmp 0x408b91
mov ecx, dword [0x45a4b0]
mov edx, dword [0x45a3b0]
push ecx
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
cmp byte [0x45a376], 0
je 0x408bbc
push 0xbb8
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4097d0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push edi
call esi
test eax, eax
je 0x4097f4
cmp dword [edi], 0
jne 0x40980a
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push 0
push edi
call esi
cmp dword [edi], 0
je 0x409837
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
lea esi, [esp + 0xc]
call fcn.004203a0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
lea ecx, [edi + 4]
push ecx
mov ecx, dword [edi]
push 0
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov eax, dword [edi + 4]
test eax, eax
je 0x40986c
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push 0
lea edx, [esp + 0x1c]
push edx
mov ecx, 1
push 3
push eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call esi
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push 4
push ecx
call esi
pop esi
add esp, 0x10
ret 8
Function at 0x409ab0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43e72a
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x808], eax
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x81c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x82c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0
mov esi, 1
mov dword [esp + 0x824], esi
lea eax, [esp + 0x18]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esp + 0x830]
cmp dword [eax - 4], esi
jle 0x409b3d
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x834]
push edx
call fcn.00404a90
mov eax, dword [esp + 0x830]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409b40
lea edi, [esp + 0x18]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x409b54
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
lea ecx, [esp + 0x1c]
call fcn.00414080
mov dword [esp + 0x10], 1
mov byte [esp + 0x824], 0
lea ecx, [esp + 0x830]
call fcn.0040c460
mov eax, ebp
mov ecx, dword [esp + 0x81c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0041d851
add esp, 0x818
ret

Function at 0x40a3e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor esi, esi
xor ebp, ebp
push edi
test ebx, ebx
jb 0x40a456
ja 0x40a3f9
cmp esi, dword [esp + 0x20]
jae 0x40a45a
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, ebx
sbb eax, ebp
test eax, eax
ja 0x40a415
jb 0x40a411
cmp ecx, 0x10000
jae 0x40a415
mov edi, ecx
jmp 0x40a41a
mov edi, 0x10000
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push edi
lea edx, [esi + ecx]
push edx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a456
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x40a456
add esi, eax
adc ebp, 0
cmp ebp, ebx
jb 0x40a3f9
ja 0x40a456
cmp esi, dword [esp + 0x20]
jb 0x40a3f9
cmp esi, dword [esp + 0x20]
jne 0x40a477
cmp ebp, ebx
jne 0x40a477
or esi, ebp
je 0x40a46f
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret