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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x4a1600]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4a27f4], 0
push esi
push edi
jne 0x419c67
push fcn.00419890
mov dword [0x4a27f4], 1
call fcn.00424be0
push 0x4a27b0
push 0x4a279c
call fcn.0041ebe0
movups xmm0, xmmword [0x4a279c]
mov eax, dword [0x4a27ac]
add esp, 0xc
mov dword [0x4a27f0], 0
movups xmmword [ebp - 0x30], xmm0
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x74], 2
nop
movups xmm0, xmmword [0x4a22e8]
mov esi, 0x49c
movups xmmword [ebp - 0x70], xmm0
movups xmm0, xmmword [0x4a22f8]
movups xmmword [ebp - 0x60], xmm0
movups xmm0, xmmword [0x4a2308]
movups xmmword [ebp - 0x50], xmm0
movups xmm0, xmmword [0x4a2318]
movups xmmword [ebp - 0x40], xmm0
xor eax, dword [esi + 0x4a22f8]
mov ecx, dword [ebp - 0x30]
xor ecx, dword [esi + 0x4a22e8]
xor edi, dword [esi + 0x4a22ec]
xor edx, dword [esi + 0x4a22f0]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x24]
xor ecx, dword [esi + 0x4a22f4]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], edi
push eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
call fcn.0041ebe0
mov eax, dword [ebp - 0x30]
add esp, 8
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0x4a22e8], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x4a22ec], edi
mov dword [esi + 0x4a22f0], edx
mov dword [esi + 0x4a22f4], ecx
mov dword [esi + 0x4a22f8], eax
sub esi, 0x14
jns 0x419bb1
sub dword [ebp - 0x74], 1
jne 0x419b80
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0041ebe0
movups xmm0, xmmword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
add esp, 8
mov dword [0x4a27ac], eax
movups xmmword [0x4a279c], xmm0
mov dword [0x4a2798], 0x14
mov dword [0x4a27f4], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00429c32
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x41abd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4a1600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], ecx
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x54], ebx
test eax, eax
jle 0x41ad9b
push esi
push edi
mov edi, dword [edx + 0x14]
cmp eax, edi
mov byte [ebp - 0x45], cl
cmovle edi, eax
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0x48], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x47], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x46], al
mov eax, dword [edx]
mov dword [ebp - 0x60], edi
call eax
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x50]
mov esi, eax
push dword [ebp - 0x58]
push esi
mov ecx, dword [ecx + 8]
call ecx
push 4
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x50]
push esi
mov eax, dword [eax + 8]
call eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x50]
push esi
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x4c]
add esp, 0x20
inc ecx
xor eax, eax
mov dword [ebp - 0x4c], ecx
test edi, edi
jle 0x41ad81
cmp edi, 8
jb 0x41ad60
lea edx, [ebx - 1]
lea ecx, [ebp + edi - 0x45]
add edx, edi
cmp ebx, ecx
ja 0x41ac91
lea ecx, [ebp - 0x44]
cmp edx, ecx
jae 0x41ad60
cmp edi, 0x40
jb 0x41ad1c
mov ecx, edi
and ecx, 0x8000003f
jns 0x41aca9
dec ecx
or ecx, 0xffffffc0
inc ecx
mov edx, edi
lea esi, [ebp - 0x44]
sub edx, ecx
lea edi, [ebp - 0x34]
sub esi, ebx
lea ecx, [ebx + 0x20]
sub edi, ebx
mov dword [ebp - 0x5c], edi
mov ebx, edi
nop
movups xmm0, xmmword [ecx - 0x20]
lea edi, [ebp - 0x44]
movups xmm1, xmmword [edi + eax]
mov edi, dword [ebp - 0x60]
lea ecx, [ecx + 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x60], xmm1
movups xmm0, xmmword [ecx - 0x50]
movups xmm1, xmmword [ebp + eax - 0x34]
add eax, 0x40
xorps xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx - 0x40]
movups xmm1, xmmword [esi + ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm1, xmmword [ebx + ecx - 0x40]
movups xmm0, xmmword [ecx - 0x30]
xorps xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
cmp eax, edx
jl 0x41acc0
mov ebx, dword [ebp - 0x54]
mov ecx, edi
and cl, 0x3f
cmp cl, 8
jb 0x41ad5c
mov ecx, edi
and ecx, 0x80000007
jns 0x41ad2b
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, edi
lea esi, [ebp - 0x44]
sub edx, ecx
lea ecx, [eax + ebx]
sub esi, ebx
nop word [eax + eax]
movq xmm1, qword [ecx + esi]
lea ecx, [ecx + 8]
movq xmm0, qword [ecx - 8]
add eax, 8
xorps xmm1, xmm0
movq qword [ecx - 8], xmm1
cmp eax, edx
jl 0x41ad40
cmp eax, edi
jge 0x41ad7e
lea esi, [ebp - 0x44]
lea edx, [eax + ebx]
sub esi, ebx
nop dword [eax + eax]
mov cl, byte [edx + esi]
lea edx, [edx + 1]
xor byte [edx - 1], cl
inc eax
cmp eax, edi
jl 0x41ad70
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp + 0x18]
add ebx, edi
mov edx, dword [ebp - 0x50]
sub eax, edi
mov dword [ebp - 0x54], ebx
mov dword [ebp + 0x18], eax
test eax, eax
jg 0x41ac05
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00429c32
mov esp, ebp
pop ebp
ret
Function at 0x41c2a0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x41c570
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4a1600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push esi
push edi
push 0x40
push 0x36
push eax
mov dword [ebp - 0x48], ebx
call fcn.0042b4f0
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov edi, dword [ebp + 0xc]
xor edx, edx
test esi, esi
jle 0x41c5c7
mov ebx, edi
lea eax, [ebp - 0x44]
sub ebx, eax
nop dword [eax]
cmp edx, 0x40
jge 0x41c5c4
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [ebx + ecx]
xor byte [ecx], al
cmp edx, esi
jl 0x41c5b0
mov ebx, dword [ebp - 0x48]
push ebx
call fcn.0041c480
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.0041c1a0
push 0x40
lea eax, [ebp - 0x44]
push 0x5c
push eax
call fcn.0042b4f0
add esp, 0x1c
xor edx, edx
test esi, esi
jle 0x41c608
lea eax, [ebp - 0x44]
sub edi, eax
cmp edx, 0x40
jge 0x41c608
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor byte [ecx], al
cmp edx, esi
jl 0x41c5f4
lea esi, [ebx + 0x6c]
push esi
call fcn.0041c480
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0041c1a0
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004248d0
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00429c32
mov esp, ebp
pop ebp
ret
Function at 0x41ef40
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret

Function at 0x41f230
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4a1600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push esi
push edi
push 0x40
push 0x36
push eax
mov dword [ebp - 0x48], ebx
call fcn.0042b4f0
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov edi, dword [ebp + 0xc]
xor edx, edx
test esi, esi
jle 0x41f287
mov ebx, edi
lea eax, [ebp - 0x44]
sub ebx, eax
nop dword [eax]
cmp edx, 0x40
jge 0x41f284
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [ebx + ecx]
xor byte [ecx], al
cmp edx, esi
jl 0x41f270
mov ebx, dword [ebp - 0x48]
push ebx
call fcn.0041f0c0
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.0041ee40
push 0x40
lea eax, [ebp - 0x44]
push 0x5c
push eax
call fcn.0042b4f0
add esp, 0x1c
xor edx, edx
test esi, esi
jle 0x41f2c8
lea eax, [ebp - 0x44]
sub edi, eax
cmp edx, 0x40
jge 0x41f2c8
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor byte [ecx], al
cmp edx, esi
jl 0x41f2b4
lea esi, [ebx + 0x60]
push esi
call fcn.0041f0c0
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0041ee40
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004248d0
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00429c32
mov esp, ebp
pop ebp
ret

Function at 0x424830
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x4a2898]
push esi
push edi
test ecx, ecx
jne 0x424876
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
lea eax, [esi + esi*2]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push 1
add esi, 0x200
push esi
push ecx
call fcn.00406bb0
add esp, 0xc
mov dword [0x4a2898], eax
push esi
push eax
call edi
mov ecx, dword [0x4a2898]
cmp eax, esi
jge 0x424847
push 0
push dword [ebp + 8]
push 0x492e90
push ecx
call fcn.004063a0
add esp, 0x10
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov edi, eax
call fcn.00406af0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x424a20
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x4a1600]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x12c]
push edi
push 0x107
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x12c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x424a51
mov ax, word [0x492ed4]
mov word [ecx], ax
mov al, byte [0x492ed6]
mov byte [ecx + 2], al
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x424ab7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop
lea eax, [ebp - 0x26c]
push 0x140
push eax
call esi
add esp, 8
lea eax, [ebp - 0x26c]
push eax
push edi
call ebx
test eax, eax
jne 0x424a90
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x274]
push 4
push eax
call esi
add esp, 8
cmp dword [0x4a28ac], 0
jne 0x424b54
push str.advapi32.dll
call fcn.00424830
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov dword [0x4a28ac], eax
test eax, eax
je 0x424b07
push str.CryptAcquireContextA
push eax
call edi
mov ecx, eax
mov eax, dword [0x4a28ac]
jmp 0x424b09
xor ecx, ecx
mov dword [0x4a28a0], ecx
test eax, eax
je 0x424b24
push str.CryptGenRandom
push eax
call edi
mov ecx, eax
mov eax, dword [0x4a28ac]
jmp 0x424b26
xor ecx, ecx
mov dword [0x4a28a4], ecx
test eax, eax
je 0x424b48
push str.CryptReleaseContext
push eax
call edi
cmp dword [0x4a28ac], 0
mov dword [0x4a28a8], eax
je 0x424bb7
jmp 0x424b59
mov dword [0x4a28a8], 0
jmp 0x424bb7
mov eax, dword [0x4a28a8]
mov ecx, dword [0x4a28a0]
test ecx, ecx
je 0x424bb7
cmp dword [0x4a28a4], 0
je 0x424bb7
test eax, eax
je 0x424bb7
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x270]
push eax
call ecx
test eax, eax
je 0x424bb7
lea eax, [ebp - 0x24]
push eax
push 0x20
push dword [ebp - 0x270]
call dword [0x4a28a4]
test eax, eax
je 0x424ba9
lea eax, [ebp - 0x24]
push 0x20
push eax
call esi
add esp, 8
push 0
push dword [ebp - 0x270]
call dword [0x4a28a8]
push esi
call fcn.00428780
add esp, 4
call fcn.00424da0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00429c32
mov esp, ebp
pop ebp
ret
Function at 0x424c40
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4a1600]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.00419890
add esp, 8
call dword [sym.imp.USER32.dll_GetCapture]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.00419890
add esp, 8
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.00419890
add esp, 8
push 0x1cbf
call dword [sym.imp.USER32.dll_GetQueueStatus]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push 4
push eax
call fcn.00419890
add esp, 8
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x54]
push 8
push eax
call fcn.00419890
add esp, 8
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.00419890
add esp, 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.00419890
add esp, 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.00419890
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.00429c32
mov esp, ebp
pop ebp
ret
Function at 0x427a30
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x4a28c4], 0
jne 0x427bb7
push esi
push str.advapi32.dll
mov dword [0x4a28c4], 1
call fcn.00424830
add esp, 4
mov dword [0x4a28cc], eax
test eax, eax
je 0x427bae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSecurityInfo
push eax
call esi
mov dword [0x4a3c58], eax
test eax, eax
je 0x427bae
mov eax, dword [0x4a28cc]
test eax, eax
je 0x427ba4
push str.SetSecurityInfo
push eax
call esi
mov dword [0x4a3c54], eax
test eax, eax
je 0x427bae
mov eax, dword [0x4a28cc]
test eax, eax
je 0x427b91
push str.OpenProcessToken
push eax
call esi
mov dword [0x4a3c68], eax
test eax, eax
je 0x427bae
mov eax, dword [0x4a28cc]
test eax, eax
je 0x427b7e
push str.GetTokenInformation
push eax
call esi
mov dword [0x4a3c64], eax
test eax, eax
je 0x427bae
mov eax, dword [0x4a28cc]
test eax, eax
je 0x427b6b
push 0x4963e8
push eax
call esi
mov dword [0x4a3c60], eax
test eax, eax
je 0x427bae
mov eax, dword [0x4a28cc]
test eax, eax
je 0x427b58
push 0x496408
push eax
call esi
mov dword [0x4a3c5c], eax
test eax, eax
je 0x427bae
mov eax, dword [0x4a28cc]
test eax, eax
je 0x427b45
push str.SetEntriesInAclA
push eax
call esi
mov dword [0x4a3c50], eax
test eax, eax
je 0x427bae
mov eax, 1
mov dword [0x4a28c8], eax
pop esi
ret
xor eax, eax
mov dword [0x4a3c50], 0
mov dword [0x4a28c8], eax
pop esi
ret
xor eax, eax
mov dword [0x4a3c5c], 0
mov dword [0x4a28c8], eax
pop esi
ret
xor eax, eax
mov dword [0x4a3c60], 0
mov dword [0x4a28c8], eax
pop esi
ret
xor eax, eax
mov dword [0x4a3c64], 0
mov dword [0x4a28c8], eax
pop esi
ret
xor eax, eax
mov dword [0x4a3c68], 0
mov dword [0x4a28c8], eax
pop esi
ret
mov dword [0x4a3c54], 0
xor eax, eax
mov dword [0x4a28c8], eax
pop esi
ret
mov eax, dword [0x4a28c8]
ret
Function at 0x428570
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov al, byte [esi]
test al, al
je 0x4285df
mov edx, dword [ebp + 0xc]
cmp al, 0x20
je 0x4285a7
cmp al, 0x5c
je 0x4285a7
cmp al, 0x2a
je 0x4285a7
cmp al, 0x3f
je 0x4285a7
cmp al, 0x25
je 0x4285a7
lea ecx, [eax - 0x20]
cmp cl, 0x5e
ja 0x4285a7
cmp al, 0x2e
jne 0x4285ca
test edi, edi
jne 0x4285ca
mov byte [edx], 0x25
movzx eax, byte [esi]
shr eax, 4
movzx eax, byte [eax + str.0123456789ABCDEFDefault_Settings]
mov byte [edx + 1], al
add edx, 2
movzx eax, byte [esi]
and eax, 0xf
movzx eax, byte [eax + str.0123456789ABCDEFDefault_Settings]
inc esi
mov byte [edx], al
inc edx
mov edi, 1
mov al, byte [esi]
test al, al
jne 0x428583
pop edi
mov byte [edx], al
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov byte [eax], 0
pop ebp
ret

Function at 0x428780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4a1600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 1
call fcn.00427ee0
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x42880b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x408]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call edi
test eax, eax
je 0x428803
nop dword [eax]
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x428803
push eax
lea eax, [ebp - 0x404]
push eax
call ebx
add esp, 8
lea eax, [ebp - 0x408]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call edi
test eax, eax
jne 0x4287d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00429c32
mov esp, ebp
pop ebp
ret

Function at 0x428990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x428a0d
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x428a0d
cmp dword [ebp + 8], 1
jne 0x428a0d
mov eax, dword [ebp - 4]
push esi
inc eax
push 1
push eax
call fcn.00406b10
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4289fc
cmp dword [ebp + 8], 1
jne 0x4289fc
mov eax, dword [ebp - 4]
mov byte [esi + eax], 0
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00406af0
add esp, 4
xor eax, eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x428a20
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4a1600]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x105
push eax
push 0
push esi
call edi
test eax, eax
jne 0x428ab3
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop word [eax + eax]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x428a8f
push dword [ebp - 0x110]
call fcn.00428a20
add esp, 4
push dword [ebp - 0x110]
call ebx
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x105
lea eax, [ebp - 0x10c]
push eax
push 0
push esi
call edi
test eax, eax
je 0x428a60
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00429c32
mov esp, ebp
pop ebp
ret
Function at 0x428e30
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x428e7c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x428e6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x428e6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004248f0
push eax
push dword [ebp + 8]
push str.Unable_to_delete__s:__s
call fcn.00426fd0
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
xor eax, eax
pop ebp
ret
xor eax, eax
mov edx, 0x80
push 0
cmp ecx, 2
cmove eax, edx
push eax
xor eax, eax
cmp ecx, 2
setne al
xor edx, edx
add eax, 2
cmp ecx, 2
push eax
push 0
mov eax, 3
cmove eax, edx
mov edx, 0x40000000
push eax
mov eax, 0x80000000
cmove eax, edx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0x10]
mov edx, eax
xor eax, eax
cmp edx, 0xffffffff
setne al
mov dword [ecx], edx
pop ebp
ret
Function at 0x429230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
call fcn.00427ee0
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x429260
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42a9e7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42aa26
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42aa26
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42aa26
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42aa26
cmp dword [ecx + 0x74], 0xe
jbe 0x42aa26
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x45d82f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45d86e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45d86e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45d86e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x45d86e
cmp dword [ecx + 0x74], 0xe
jbe 0x45d86e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x46de1d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4a36a0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46de5d
cmp byte [ebx], 0xa
jne 0x46de5d
or byte [edi + eax + 0x28], 4
jmp 0x46de62
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x46df61
mov dl, byte [eax]
cmp dl, 0x1a
je 0x46df44
inc eax
cmp dl, 0xd
je 0x46de8e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x46deb4
cmp eax, ecx
jae 0x46dec2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x46de76
jmp 0x46df61
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46df3f
cmp dword [ebp - 0x10], 0
je 0x46df3f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4a36a0]
test byte [eax + edi + 0x28], 0x48
je 0x46df19
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46df04
mov byte [esi], dl
jmp 0x46df15
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4a36a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46df61
cmp byte [ebp - 1], 0xa
jne 0x46df28
cmp esi, ebx
jne 0x46df28
mov byte [esi], 0xa
jmp 0x46df60
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046f827
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46df61
mov byte [esi], 0xd
jmp 0x46df60
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4a36a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46df5e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46df61
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret