joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ab2e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.004ad7b0
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.004aa800
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4ab34a
mov al, byte [edi + ecx]
test al, al
je 0x4ab34a
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4ab331
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x4ab36b
inc eax
sub ecx, 1
jne 0x4ab360
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x4ab3c0
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x4ab3b5
lea edi, [ebp - 0x84]
mov eax, 0x7fffffff
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x4ab3b4
mov bl, byte [edi + ecx]
test bl, bl
je 0x4ab3b4
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x4ab3a0
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.004ad7b0
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x4e6b80
push str.Software360SafeLiveup
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x4ab47a
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4ab444
test cl, cl
je 0x4ab440
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4ab444
add eax, 2
add esi, 2
test cl, cl
jne 0x4ab424
xor eax, eax
jmp 0x4ab449
sbb eax, eax
or eax, 1
test eax, eax
je 0x4ab47a
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ab456
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.Software360SafeLiveup
push 0x80000002
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ab483
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x4e6b80
push str.Software360SafeLiveup
push 0x80000002
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret
Function at 0x4c37a6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004a8e60
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004c95e5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4c37e8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4c3944
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004a9290
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x529c90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004cec40
mov ecx, dword [esi*4 + 0x529c90]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4c393d
cmp eax, dword [edi + ecx + 0x24]
jne 0x4c393d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c393d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004cec40
add esp, 0x14
test edx, edx
jl 0x4c393d
jg 0x4c38b3
test eax, eax
jb 0x4c393d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4c393d
jl 0x4c38cd
cmp dword [ebp - 0x1008], eax
ja 0x4c393d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4c38eb
test ebx, ebx
je 0x4c3924
cmp ecx, edi
jae 0x4c3924
mov al, byte [ecx]
cmp al, 0xd
jne 0x4c3905
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4c3911
cmp byte [ecx + 1], 0xa
jne 0x4c3911
inc ecx
jmp 0x4c3911
movzx eax, al
movsx eax, byte [eax + 0x520870]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4c38eb
cmp edx, ebx
jne 0x4c38eb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4c3942
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a8e4e
leave
ret

Function at 0x4c9dea
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f04b0
push 0x4f04a8
push str.FlsAlloc
push 0x1e
call fcn.004c9c17
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c9e1e
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e56cc]
call esi
jmp 0x4c9e24
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4c9e68
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f04c0
push 0x4f04b8
push str.FlsGetValue
push 0x20
call fcn.004c9c17
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c9e9f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e56cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4cecbc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x529c90]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4cecfc
cmp byte [ebx], 0xa
jne 0x4cecfc
or byte [eax + edi + 0x28], 4
jmp 0x4ced01
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4cedff
mov al, byte [edx]
cmp al, 0x1a
je 0x4cede1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4ced30
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4ced55
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4ced5f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4ced12
jmp 0x4cedff
push 0
lea eax, [ebp - 0xc]
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 0x4ceddc
cmp dword [ebp - 0xc], 0
je 0x4ceddc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x529c90]
test byte [eax + edi + 0x28], 0x48
je 0x4cedb6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4ceda1
mov byte [esi], dl
jmp 0x4cedb2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x529c90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4cedff
cmp byte [ebp - 1], 0xa
jne 0x4cedc5
cmp esi, ebx
jne 0x4cedc5
mov byte [esi], 0xa
jmp 0x4cedfe
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004cec5e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4cedff
mov byte [esi], 0xd
jmp 0x4cedfe
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x529c90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4cedfb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4cedff
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4cee08
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x529c90]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4cee4b
cmp word [esi], dx
jne 0x4cee4b
or byte [edi + eax + 0x28], 4
jmp 0x4cee50
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4cefa3
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4cef83
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4cee92
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4ceec8
cmp eax, edx
jae 0x4ceed4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4cee6a
jmp 0x4cefa3
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cef7f
cmp dword [ebp - 0x14], 0
je 0x4cef7f
mov eax, dword [ebx*4 + 0x529c90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4cef57
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4cef20
mov word [esi], cx
jmp 0x4cef53
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x529c90]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x529c90]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x529c90]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4cefa3
pop ebx
cmp word [ebp - 4], bx
jne 0x4cef68
cmp esi, dword [ebp + 0xc]
jne 0x4cef68
mov word [esi], bx
jmp 0x4cefa0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004cec5e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4cefa3
push 0xd
jmp 0x4cef9c
mov ecx, dword [ebx*4 + 0x529c90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4cef9a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4cefa3
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4d03d0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d0241

Function at 0x4d07ee
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4d0839
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004d098d
test al, al
jne 0x4d0833
sub edx, 2
cmp edx, edi
jne 0x4d0819
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4d085b
lea eax, [edi + 2]
cmp edx, eax
je 0x4d085b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004d073a
add esp, 0x10
jmp 0x4d0955
push esi
lea ecx, [ebp - 0x255]
call fcn.004d098d
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4d089e
push dword [ebp - 0x25c]
jmp 0x4d084b
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4d08db
cmp word [ebp - 0x226], 0
je 0x4d08fc
cmp word [ebp - 0x226], ax
jne 0x4d08db
cmp word [ebp - 0x224], 0
je 0x4d08fc
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004d073a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4d0948
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4d08b5
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4d0930
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4d0955
push 0x4d056a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004c46d0
add esp, 0x10
jmp 0x4d0925
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8e4e
leave
ret

Function at 0x4d1279
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4d128a
pop esi
ret
push ebx
push edi
push esi
call fcn.004d1242
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004c873e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4d12b2
push ebx
push esi
push edi
call fcn.004ad230
add esp, 0xc
push 0
call fcn.004c8704
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4d1676
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d12c7
Function at 0x4d7a0e
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004d798a
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4d7b86
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4d7b86
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4d7b35
jg 0x4d7a67
test eax, eax
je 0x4d7b2b
push 1
push 0x1000
call fcn.004cb216
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d7a8d
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4d7b22
push 0x8000
push ebx
call fcn.004c5c88
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4d7ab9
jg 0x4d7ab4
cmp ecx, 0x1000
jb 0x4d7ab9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004d0041
add esp, 0x10
cmp eax, 0xffffffff
je 0x4d7afe
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4d7ab4
jl 0x4d7ae5
test ecx, ecx
jne 0x4d7aa6
push dword [ebp - 0xc]
push ebx
call fcn.004c5c88
push esi
call fcn.004c8704
add esp, 0xc
xor edi, edi
jmp 0x4d7b97
cmp byte [edi + 0x24], 0
je 0x4d7b15
cmp dword [edi + 0x20], 5
jne 0x4d7b15
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4d7b20
mov edi, dword [edi + 0x18]
jmp 0x4d7b22
xor edi, edi
push esi
call fcn.004c8704
pop ecx
jmp 0x4d7b97
test ecx, ecx
jg 0x4d7af7
jl 0x4d7b35
test eax, eax
jae 0x4d7af7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004cec5e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4d7b58
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4d7af7
jmp 0x4d7b8f
push ebx
call fcn.004d1b82
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4d7af7
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4d7b97
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4d7b94
mov edi, dword [edi + 0x18]
jmp 0x4d7b97
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004cec5e
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10905fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, eax
push 0x11b17a34
push edi
call fcn.1090947f
mov esi, eax
add esp, 8
test esi, esi
je 0x10906003
push ebx
push 2
push 0
push esi
call fcn.109098ea
push esi
call fcn.109097fb
push 0
push 0
push esi
mov ebx, eax
call fcn.109098ea
push esi
call fcn.109099d3
add esp, 0x20
cmp ebx, 0x7d000
pop ebx
jle 0x10906003
push edi
call fcn.10909a47
add esp, 4
push 0x11b17a38
push edi
call fcn.1090947f
mov esi, eax
add esp, 8
test esi, esi
jne 0x1090601e
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
ret
mov edx, dword [ebp + 8]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10906026
push esi
sub eax, edi
push eax
push 1
push edx
call fcn.109095ed
push esi
call fcn.109099d3
add esp, 0x14
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x109078b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [0x11b14034]
test eax, eax
jne 0x109078cf
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp - 0x1c]
push 0x104
push ecx
push esi
call dword [0x11b140a8]
test eax, eax
jne 0x109078ed
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3c]
movzx edx, word [eax + esi + 0x14]
add eax, esi
lea ecx, [edx + eax + 0x18]
movzx eax, word [eax + 6]
push ebx
sub edi, esi
xor ebx, ebx
mov dword [ebp - 4], eax
test eax, eax
je 0x10907931
lea eax, [ecx + 0x10]
mov edi, edi
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ecx, dword [eax - 4]
cmp edx, esi
ja 0x1090791e
mov edx, esi
cmp edi, ecx
jb 0x10907928
add edx, ecx
cmp edi, edx
jbe 0x1090793a
inc ebx
add eax, 0x28
cmp ebx, dword [ebp - 4]
jb 0x10907910
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
inc ebx
mov dword [eax], ebx
sub edi, ecx
mov ecx, dword [ebp + 0x10]
pop ebx
pop esi
mov dword [ecx], edi
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40ef0d
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040f0bd
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40f00b
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40efae
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x40eff1
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40efc5
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40efe0
test al, 0x40
je 0x40efd7
mov ecx, dword [edi + 0x20]
jmp 0x40efde
test al, 0x80
je 0x40eff1
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x40eff1
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40ef7d
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x41fca0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c2f1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004b7abf
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41fd22
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004b553f
mov eax, dword [eax]
push 0x5a0ce4
push eax
call fcn.004a6a54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004b7d4a
test bl, bl
je 0x41fd22
push 0x5a0ce4
lea ecx, [esp + 0xc]
call fcn.004b80da
push 0x5a0cf0
lea ecx, [esp + 0xc]
call fcn.004b80da
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41fd5e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004b7d4a
jmp 0x41fe29
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41fde2
lea edx, [esp + 0x7c]
push 0x5a0cec
push edx
call fcn.004a6a54
add esp, 8
test eax, eax
je 0x41fde2
lea eax, [esp + 0x7c]
push 0x5a0ce8
push eax
call fcn.004a6a54
add esp, 8
test eax, eax
je 0x41fde2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41fd72
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004b7d4a
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x420630
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x420692
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc