joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006da60
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x18
mov eax, dword [0x10084044]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov bl, byte [ecx]
push ebp
xor ebp, ebp
mov dword [esp + 8], ecx
push edi
mov edi, edx
test bl, bl
je 0x1006dba2
mov al, bl
push esi
cmp al, 0x24
je 0x1006dac2
cmp al, 0x26
je 0x1006dac2
cmp al, 0x2b
je 0x1006dac2
cmp al, 0x2c
je 0x1006dac2
cmp al, 0x2f
je 0x1006dac2
cmp al, 0x3a
je 0x1006dac2
cmp al, 0x3b
je 0x1006dac2
cmp al, 0x3d
je 0x1006dac2
cmp al, 0x3f
je 0x1006dac2
cmp al, 0x40
je 0x1006dac2
cmp al, 0x23
je 0x1006dac2
cmp al, 0x20
je 0x1006dac2
mov byte [edi], bl
mov ecx, 1
jmp 0x1006db69
movsx eax, al
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x23], 0x783230
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x24]
mov word [esp + 0x28], 0x2525
push 4
push eax
mov byte [esp + 0x32], 0x25
call fcn.10002a00
lea ecx, [esp + 0x2c]
add esp, 0x14
xor esi, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006db00
sub ecx, edx
je 0x1006db3d
nop dword [eax + eax]
movsx eax, byte [esp + esi + 0x18]
push eax
call fcn.1001843c
mov byte [esp + esi + 0x1c], al
add esp, 4
lea eax, [esp + 0x18]
inc esi
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006db30
sub eax, edx
cmp esi, eax
jb 0x1006db10
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push eax
mov eax, 0x800
sub eax, ebp
push eax
push edi
call fcn.10018a0c
lea ecx, [esp + 0x28]
add esp, 0x10
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006db60
sub ecx, edx
mov eax, ecx
add ebp, ecx
mov ecx, dword [esp + 0x10]
add edi, eax
inc ecx
mov dword [esp + 0x10], ecx
cmp ebp, 0x7ff
jae 0x1006db8c
mov bl, byte [ecx]
mov al, bl
test bl, bl
jne 0x1006da86
pop esi
mov byte [edi], 0
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10013577
add esp, 0x18
ret
mov ecx, dword [esp + 0x20]
mov byte [edi], 0
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.10013577
add esp, 0x18
ret
Function at 0x403000
Capabilities:
Access peb ldr_data
Get file attributes
Get file size
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
xor eax, eax
add eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x428ee4], eax
mov eax, dword [0x428ee8]
xor edx, edx
mov ecx, 0x6cc1019a
div ecx
xor edx, edx
push str.X_Zpn_T.0WheLT_
push 0x38091fe5
push str._sVC__xwwZt7W_S
push str.c_T2_xxjnw
mov ecx, eax
xor ecx, 0x38
add ecx, 0xfb
mov dword [0x428ee8], ecx
or ecx, 0xf68e0d8e
mov eax, 0xc1
div ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
and eax, 0x7d
sub eax, esi
xor eax, 0x7b
mov dword [0x428ee8], eax
call fcn.0040398f
imul eax, eax, 0x58ce78a1
or eax, 0x4d
mov dword [0x428ee8], eax
call fcn.0040399b
imul eax, eax, 0x145a74
or eax, 0x4ad6
mov dword [0x428ee8], eax
call fcn.004039ab
mov dword [0x428ee8], eax
call fcn.004039c1
mov dword [0x428ee8], eax
call fcn.004039d8
mov dword [0x428ee8], eax
call fcn.004039f0
mov dword [0x428ee8], eax
jmp loc.00432000

Function at 0x403cd7
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [0x428ee8]
push str._PZR2Fgyw9I
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor esi, dword [ebp + 8]
mov ecx, eax
or esi, 0xd19f8a47
xor edx, edx
mov eax, 0x7a3cb5a5
div esi
xor edx, edx
and ecx, 0x772d
mov esi, eax
or esi, 0xe8b4c33e
mov eax, 0x7676
div esi
sub ecx, eax
lea eax, [edi + ecx]
pop edi
pop esi
pop ebp
ret

Function at 0x403eeb
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push str.m_w59EMikJ2N4K
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
mov eax, dword [ebp + 0xc]
not ecx
and ecx, dword [ebp + 8]
xor edx, edx
and ecx, 0x10
or ecx, 0x38435ceb
div ecx
pop ebp
ret

Function at 0x403f12
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push str.N_Y_IYTt_
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp + 0xc]
add ecx, 0x7c1b904
and eax, 0x9b1
or ecx, 0x5776dec3
xor edx, edx
div ecx
mov ecx, eax
mov eax, dword [ebp + 0x10]
sub eax, ecx
sub eax, dword [ebp + 8]
pop ebp
ret

Function at 0x403f92
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x403fc0
mov ecx, dword [ebp - 4]
cmp ecx, 2
jl 0x403fc0
push dword [eax + ecx*4 - 4]
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
leave
ret
xor eax, eax
leave
ret
Function at 0x40bf53
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40bff0
push ebx
push esi
call fcn.0040bf1c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040beb0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40bf9d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bfef
push edi
push eax
call fcn.0040cb70
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40bfbd
call fcn.0040aa11
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bfee
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040beb0
add esp, 0x20
test eax, eax
jne 0x40bfdc
push edi
call fcn.0040aa11
jmp 0x40bfe4
push ebx
call fcn.0040aa11
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40d2ed
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46b808
push 0x46b800
push str.FlsAlloc
push 0x1f
call fcn.0040d1ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d321
push dword [ebp + 8]
mov ecx, esi
call dword [0x416174]
call esi
jmp 0x40d327
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d36b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46b818
push 0x46b810
push str.FlsGetValue
push 0x21
call fcn.0040d1ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d3a2
push dword [ebp + 8]
mov ecx, esi
call dword [0x416174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d3aa
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46b820
push 0x46b818
push str.FlsSetValue
push 0x22
call fcn.0040d1ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d3e4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x416174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x412840
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41286d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41286d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x422490
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x4224b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4224b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4224a8
mov eax, 1
add ebx, ebx
jne 0x4224cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4224c0
jne 0x4224dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4224c0
xor ecx, ecx
sub eax, 3
jb 0x4224f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x422562
mov ebp, eax
add ebx, ebx
jne 0x4224fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x422508
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42252c
inc ecx
add ebx, ebx
jne 0x422518
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42250d
jne 0x422529
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42250d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42254c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42253d
jmp 0x4224ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42254c
add edi, ecx
jmp 0x4224ae
pop esi
mov edi, esi
mov ecx, 0x723
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42256a
cmp byte [edi], 0xe
jne 0x42256a
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 0x42256f
lea edi, [esi + 0x20000]
mov eax, dword [edi]
or eax, eax
je 0x4225de
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x221dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22234]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42259c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2223c]
or eax, eax
je 0x4225d8
mov dword [ebx], eax
add ebx, 4
jmp 0x4225b9
call dword [esi + 0x22238]
mov ebp, dword [esi + 0x22240]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x422612
sub esp, 0xffffff80
jmp 0x403524
Function at 0x401ee2
Capabilities:
Terminate process

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

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040bbb3
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040bbb3
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040bbb3
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040bbb3
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040bbb3
mov dword [0x41203c], eax
call fcn.0040bbb3
test eax, eax
jge 0x402550
push 8
call fcn.0040bbb3
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040bbb3
pop ecx
push 1
call fcn.0040bbb3
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040bbb3
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040bbb3
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040bbb3
jmp 0x402495

Function at 0x40bbb3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40bbc2
pop dword [ebp - 0x4c]
mov eax, 0x40bbc2
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x36a71
push 0
mov eax, 0x9e023583
sub eax, 0x9dc154ab
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x68e0e6ba
sub ecx, 0x68e0a9f7
mov edi, eax
mov esi, 0xabf2e05
sub esi, 0xa7df241
add esi, dword [ebp - 0x4c]
mov ebx, 0xa86223f2
add ebx, 0x765f2c54
sub dword [ebp - 0x34], 0xb361224b
mov edx, dword [esi]
xor dword [ebp - 0x40], 0xfb086832
add edx, ebx
sub dword [ebp - 0x48], 0xde5d1f7f
mov dword [edi], edx
mov dword [ebp - 0x10], 0xaa949f5b
add edi, 0x4068364b
add edi, 0xbf97c9b9
add esi, 0x49e3ad9b
sub esi, 0x49e3ad97
loop 0x40bc1c
add eax, 0xe5df
mov ebx, eax
add eax, 5
mov ecx, 0xf1c6aa23
add ecx, 0xe7955dd
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
cmp word [eax], 0x5a4d
jne 0x40104e
mov ecx, dword [eax + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40104e
mov ecx, dword [esp + 8]
mov dword [ecx], eax
mov edx, dword [eax]
cmp edx, 0x4550
jne 0x40104e
mov edx, dword [esp + 0xc]
add eax, 4
mov dword [ecx], eax
add eax, 0x14
mov dword [edx], eax
cmp word [eax], 0x10b
jne 0x40104e
mov ecx, dword [esp + 0x10]
add eax, 0xe0
mov dword [ecx], eax
mov eax, 1
ret
xor eax, eax
ret

Function at 0x401460
Capabilities:
Shutdown system

Disassembly:
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
ret

Function at 0x401470
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x20
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40149c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x1c
ret
lea ecx, [esp + 8]
mov dword [esp + 0x10], 1
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x4014c8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x1c
ret
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push 0
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xc]
push 0
push ecx
push 0
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40150a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x1c
ret
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
add esp, 0x1c
ret
Function at 0x4017e0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.wincl.vxd
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
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
push 0x80
push 2
and ecx, 3
push eax
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea eax, [esp + 0x24]
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4018a2
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x1642
push 0x40b08c
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0xc], 0x1642
jne 0x4018a2
test al, al
je 0x4018a2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0
push 0x44000000
push 0
push 0
push 0
push 0
push str..WINCL.VXD
call edi
cmp eax, 0xffffffff
je 0x401897
push eax
call esi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
add esp, 0x108
ret

Function at 0x4018b0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x108
push esi
push edi
call fcn.00401410
sub eax, 0
je 0x4018d0
dec eax
jne 0x4018f6
lea edx, [esp + 0xc]
mov edi, str.SystemCurrentControlSetServicesVxD
jmp 0x4018d9
lea edx, [esp + 0xc]
mov edi, str.SystemCurrentControlSetServices
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, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x401933
mov eax, dword [esp]
push str.CnsMinKP
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x108
ret

Function at 0x401940
Capabilities:
Delete file
Move file

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
je 0x40196d
mov eax, dword [esp + 4]
push str.WININIT.INI
push eax
push 0x4601a8
push str.RENAME
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, 1
ret
mov ecx, dword [esp + 4]
push 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, 1
ret
Function at 0x401be0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4073eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x134]
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x12c], edi
push ecx
push 0x2001f
push edi
push edx
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x401c58
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, edi
je 0x401c48
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
cmp eax, edi
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x401c6a
jmp 0x401c5c
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x401d05
push ecx
jmp 0x401cff
lea eax, [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push edi
push edi
lea edx, [esp + 0x1c]
push edi
lea eax, [esp + 0x34]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x401cd0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401be0
mov ebx, eax
cmp ebx, edi
jne 0x401d21
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x34]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x401c92
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x401ce3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x134]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x401d05
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 4
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x401d30
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x401d07
Function at 0x401d60
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
xor edi, edi
push eax
push 0xf003f
push edi
mov ebx, 0x200
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
xor esi, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x34], 0
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401da7
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x20]
push edi
lea edx, [esp + 0x230]
push ecx
push edx
push edi
push esi
call ebp
test eax, eax
jne 0x401e29
mov eax, dword [esp + 0x424]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00403cf0
add esp, 8
test eax, eax
je 0x401dfa
lea edx, [esp + 0x220]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x230]
inc edi
push eax
push ecx
push edi
push esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
call ebp
test eax, eax
je 0x401dd2
test esi, esi
je 0x401e34
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
Function at 0x401e60
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x407410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor esi, esi
push eax
push ebx
mov dword [esp + 0x18], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, esi
je 0x401f87
lea ecx, [edi + 3]
push ecx
call fcn.00403d7b
mov ebp, eax
mov dword [esp + 0x1c], ebp
push 0x200
mov dword [esp + 0x30], esi
call fcn.00403d7b
add esp, 8
mov esi, eax
mov edx, dword [esp + 0x10]
push ebp
push edi
push edx
push ebx
mov dword [esp + 0x40], 0
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401f60
lea eax, [esp + 0x14]
push eax
push 0x460bc4
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, 0xfffffffc
jbe 0x401f60
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x460bc4]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + edi*4 + 2]
mov dx, word [eax + edi*4]
push ecx
push edx
push str.StringFileInfo_04x_04xProductName
push esi
call ebx
add esp, 0x10
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push ecx
push esi
push ebp
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x30]
test eax, eax
je 0x401f54
push str.3721
push eax
call fcn.00403cf0
add esp, 8
test eax, eax
jne 0x401f9e
mov edx, dword [esp + 0x14]
inc edi
shr edx, 2
cmp edi, edx
jb 0x401f02
test esi, esi
mov byte [esp + 0x28], 0
je 0x401f72
push esi
call fcn.00403d70
add esp, 4
test ebp, ebp
mov dword [esp + 0x28], 0xffffffff
je 0x401f87
push ebp
call fcn.00403d70
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
test esi, esi
mov byte [esp + 0x28], 0
je 0x401fb0
push esi
call fcn.00403d70
add esp, 4
test ebp, ebp
mov dword [esp + 0x28], 0xffffffff
je 0x401fc5
push ebp
call fcn.00403d70
add esp, 4
mov eax, 1
jmp 0x401f89