joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55becb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x55c09f
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x90ed40]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x55c09f
test cl, 0x48
je 0x55bf36
cmp byte [eax + 5], 0xa
je 0x55bf36
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x55bf88
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x55bf70
call fcn.00555aeb
mov dword [eax], 9
call fcn.00555af4
mov dword [eax], esi
jmp 0x55bf80
cmp eax, 0x6d
je 0x55c09f
push eax
call fcn.00555afd
pop ecx
or eax, 0xffffffff
jmp 0x55c0a1
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x55c09a
test eax, eax
je 0x55bfaf
cmp byte [ebx], 0xa
jne 0x55bfaf
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x55bfb8
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x55c094
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x55c084
cmp al, 0xd
je 0x55bfea
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x55c076
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x55c004
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x55bfff
add dword [ebp + 0x10], 2
jmp 0x55c058
mov dword [ebp + 0x10], eax
jmp 0x55c072
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x55c02c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x55c072
cmp dword [ebp - 0xc], 0
je 0x55c072
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x55c04d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x55c058
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x55c075
cmp ebx, dword [ebp + 0xc]
jne 0x55c05d
cmp byte [ebp - 1], 0xa
jne 0x55c05d
mov byte [ebx], 0xa
jmp 0x55c075
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0055c34f
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x55c076
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x55bfce
jmp 0x55c094
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x55c094
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x55c0a1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x55cc6f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x5e30a4]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x5e3718]
je 0x55cca4
inc eax
cmp eax, 0x13
jb 0x55cc95
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x5e3718]
jne 0x55cdca
mov eax, dword [0x8856e4]
cmp eax, 1
je 0x55cda2
cmp eax, edx
jne 0x55ccd4
cmp dword [0x5e308c], 1
je 0x55cda2
cmp ecx, 0xfc
je 0x55cdca
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x55cd0a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00559560
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00556fe0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x55cd3e
mov eax, edi
push eax
call fcn.00556fe0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x573408
push edi
call fcn.00555610
add esp, 0x10
push edi
call fcn.00556fe0
push dword [esi + 0x5e371c]
mov ebx, eax
call fcn.00556fe0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.005574a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00559560
push edi
push ebx
call fcn.00559570
push 0x5733e8
push ebx
call fcn.00559570
push dword [esi + 0x5e371c]
push ebx
call fcn.00559570
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0056144a
add esp, 0x2c
jmp 0x55cdca
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x5e371c]
push dword [esi]
call fcn.00556fe0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0055613e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x560185
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x5601b3
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x5601ba
cmp ebx, dword [eax + 4]
jae 0x5601ba
xor eax, eax
jmp 0x5603aa
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x5601cb
xor eax, eax
inc eax
jmp 0x5603a9
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x5601e1
cmp ecx, edx
jae 0x560326
cmp dword [eax + 4], 0
je 0x5601ea
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x5601d2
cmp dword [ebp + 8], 0
je 0x56020c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x560326
cmp eax, esi
jae 0x560326
mov eax, dword [0x885a80]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x560231
cmp dword [esi*4 + 0x885a88], edi
je 0x56032a
inc esi
cmp esi, eax
jl 0x56021f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5603a6
cmp dword [ebp - 8], 0x1000000
jne 0x5603a6
test byte [ebp - 0xc], 0xcc
je 0x5602af
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x5603a6
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x5603a6
cmp word [eax + 0x18], 0x10b
jne 0x5603a6
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x5603a6
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x5602af
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x5602af
test byte [ecx + 0x27], 0x80
jne 0x560326
push 1
push 0x885ac8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x5601c3
mov ecx, dword [0x885a80]
test ecx, ecx
mov edx, ecx
jle 0x5602e3
lea eax, [ecx*4 + 0x885a84]
cmp dword [eax], edi
je 0x5602e3
dec edx
sub eax, 4
test edx, edx
jg 0x5602d7
test edx, edx
jne 0x560314
push 0xf
pop ebx
cmp ecx, ebx
jg 0x5602f0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x560308
lea eax, [edx*4 + 0x885a88]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x5602f6
cmp ecx, 0x10
jge 0x560314
inc ecx
mov dword [0x885a80], ecx
push 0
push 0x885ac8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x5601c3
xor eax, eax
jmp 0x5603a9
test esi, esi
jle 0x5601c3
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x885ac8
call ebx
test eax, eax
jne 0x5601c3
cmp dword [esi*4 + 0x885a88], edi
je 0x560380
mov eax, dword [0x885a80]
lea esi, [eax - 1]
test esi, esi
jl 0x56036e
cmp dword [esi*4 + 0x885a88], edi
je 0x56036a
dec esi
jns 0x56035e
test esi, esi
jge 0x56037e
cmp eax, 0x10
jge 0x560379
inc eax
mov dword [0x885a80], eax
lea esi, [eax - 1]
jmp 0x560380
je 0x560398
xor ecx, ecx
test esi, esi
jl 0x560398
lea eax, [ecx*4 + 0x885a88]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x560386
push 0
push 0x885ac8
call ebx
jmp 0x5601c3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x56144a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x885b48], ebx
push esi
push edi
jne 0x5614ca
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x561505
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x577844
push edi
call esi
test eax, eax
mov dword [0x885b48], eax
je 0x561505
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x885b4c], eax
call esi
cmp dword [0x885698], 2
mov dword [0x885b50], eax
jne 0x5614ca
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x885b58], eax
je 0x5614ca
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x885b54], eax
mov eax, dword [0x885b54]
test eax, eax
je 0x56150f
call eax
test eax, eax
je 0x5614f6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x885b58]
test eax, eax
je 0x5614f6
test byte [ebp - 8], 1
jne 0x56150f
cmp dword [0x8856a4], 4
jb 0x561509
or byte [ebp + 0x12], 0x20
jmp 0x56152e
xor eax, eax
jmp 0x56153e
or byte [ebp + 0x12], 4
jmp 0x56152e
mov eax, dword [0x885b4c]
test eax, eax
je 0x56152e
call eax
mov ebx, eax
test ebx, ebx
je 0x56152e
mov eax, dword [0x885b50]
test eax, eax
je 0x56152e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x885b48]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x563140
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.005574a0
mov eax, dword [0x5e30a4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0055c34f
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x563273
push 2
push esi
push dword [ebp + 8]
call fcn.0055c34f
add esp, 0xc
cmp eax, ebx
je 0x563273
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x563213
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00556e20
push 0x8000
push dword [ebp + 8]
call fcn.0056411e
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x5631c9
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0055ba28
add esp, 0xc
cmp eax, 0xffffffff
je 0x5631e9
sub edi, eax
test edi, edi
jg 0x5631c1
jmp 0x563201
call fcn.00555af4
cmp dword [eax], 5
jne 0x5631fe
call fcn.00555aeb
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0056411e
pop ecx
pop ecx
jmp 0x56325b
jge 0x56325b
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0055c34f
push dword [ebp + 8]
call fcn.0055c8cd
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x56325b
call fcn.00555aeb
mov dword [eax], 0xd
call fcn.00555af4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0055c34f
add esp, 0xc
mov eax, esi
pop edi
jmp 0x563275
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0055613e
leave
ret
Function at 0x563f49
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x563f62
or eax, 0xffffffff
jmp 0x563fc3
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x563fbf
push 0x3d
push esi
call fcn.00564442
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x563fbf
cmp esi, eax
je 0x563fbf
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x8856b8]
sete cl
cmp eax, dword [0x8856bc]
mov dword [ebp - 8], ecx
jne 0x563fa5
mov edi, eax
call fcn.00563ee8
mov dword [0x8856b8], eax
cmp eax, ebx
jne 0x563ffe
cmp dword [ebp + 0xc], ebx
je 0x563fc7
cmp dword [0x8856c0], ebx
je 0x563fc7
call fcn.00562ea1
test eax, eax
je 0x563ffe
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x563fd0
xor eax, eax
jmp 0x563fc2
push 4
call fcn.005533e0
cmp eax, ebx
pop ecx
mov dword [0x8856b8], eax
je 0x563fbf
mov dword [eax], ebx
cmp dword [0x8856c0], ebx
jne 0x563ffe
push 4
call fcn.005533e0
cmp eax, ebx
pop ecx
mov dword [0x8856c0], eax
je 0x563fbf
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x8856b8]
call fcn.00563e9b
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x56405f
cmp dword [esi], ebx
je 0x56405f
lea esi, [esi + edi*4]
push dword [esi]
call fcn.005532c8
cmp dword [ebp - 8], ebx
pop ecx
jne 0x564042
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x5640a0
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x564039
mov eax, edi
shl eax, 2
push eax
push dword [0x8856b8]
call fcn.0055529e
cmp eax, ebx
pop ecx
pop ecx
je 0x5640a0
jmp 0x56409b
cmp dword [ebp - 8], ebx
jne 0x56410b
cmp edi, ebx
jge 0x56406e
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x8856b8]
call fcn.0055529e
cmp eax, ebx
pop ecx
pop ecx
je 0x563fbf
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x8856b8], eax
cmp dword [ebp + 0xc], ebx
je 0x5640f5
push dword [ebp - 4]
call fcn.00556fe0
inc eax
inc eax
push eax
call fcn.005533e0
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x5640f5
push dword [ebp - 4]
push esi
call fcn.00559560
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x5640ee
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.005532c8
pop ecx
cmp dword [ebp - 8], ebx
je 0x564103
push dword [ebp - 4]
call fcn.005532c8
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x563fc2
push dword [ebp - 4]
call fcn.005532c8
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x563fcc
Function at 0x926e28
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x926e94
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x926edd
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0093f9d0
add esp, 8
test eax, eax
jne 0x926edb
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x926edf
jmp 0x926e8b
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x9328fa
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x93290a
xor eax, eax
jmp 0x932ad3
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x932a8b
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x9559a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x9559a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x9559a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x9559a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x9559a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x9559a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x9559a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x9559a4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x932913
cmp dword [ebp + 0x10], 0
je 0x932acd
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x9559a4]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x932a91
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x40534b
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x46182c
call fcn.0045a480
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x46b560
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x14], ebx
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], ebx
mov byte [ebp - 4], 1
mov byte [ecx], al
mov al, byte [ebp - 0xd]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00405487
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call fcn.0040122c
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 3
call fcn.0040122c
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x84], bl
mov dword [esi], 0x46b3c4
mov dword [esi + 4], 0x46b3b4
mov dword [esi + 8], 0x46b39c
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x416b42
Capabilities:
Copy file
Delete file
Move file
Query or enumerate registry value

Disassembly:
mov eax, 0x46342e
call fcn.0045a480
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x20], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0xd]
mov ebx, 0x104
push edi
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x58], 0x46bb80
mov dword [ebp - 0x38], 0x46bb78
call fcn.00408cfb
mov eax, dword [esi + 0x28]
mov byte [ebp - 4], 4
cmp eax, edi
je 0x416b9a
push dword [esi + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 1
push edi
call fcn.00403312
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416c46
lea eax, [ebp - 0x30]
push ebx
push eax
lea ecx, [ebp - 0x58]
call fcn.004179ae
mov ebx, eax
mov ecx, dword [ebx]
mov byte [ebp - 4], 5
call fcn.0041711a
lea ecx, [ebp - 0x18]
mov dword [ebx + 8], eax
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push str.LogFile
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
lea ecx, [ebp - 0x30]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 4
inc bl
call fcn.00416e27
test bl, bl
je 0x416c46
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.0041711a
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x1c], eax
call fcn.0041711a
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x416c46
mov ecx, ebx
call fcn.0041711a
push edi
lea ecx, [ebp - 0x58]
mov ebx, eax
call fcn.0041711a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.0041711a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0040c1bb
cmp dword [ebp - 0x14], edi
je 0x416c74
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], edi
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0040c1bb
mov eax, dword [esi + 0x28]
and byte [ebp - 4], 0
cmp eax, edi
je 0x416c90
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00401102
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret