joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439d37
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
xor esi, esi
push edi
push esi
mov dword [ebp - 4], 0x80004005
mov dword [ebp - 8], esi
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x439d92
push 0x5c
push edi
call fcn.00404675
cmp eax, esi
pop ecx
pop ecx
je 0x439d92
cmp dword [ebp + 0xc], 0x7fffffff
mov byte [eax + 1], 0
ja 0x439d8b
push 0x423240
push dword [ebp + 0xc]
push edi
call fcn.0040a5b7
xor eax, eax
jmp 0x439eed
push ebx
lea eax, [ebp - 8]
push eax
push 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x4030d4
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ebx, eax
test ebx, ebx
jne 0x439ec6
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
push 0x42325c
push dword [ebp - 8]
call esi
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x439e15
mov eax, dword [ebp + 0xc]
dec eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x423254
push dword [ebp - 0xc]
call esi
mov ebx, eax
test ebx, ebx
jne 0x439e08
cmp dword [ebp - 0x10], 1
jne 0x439e05
mov eax, dword [ebp + 8]
cmp eax, 2
jb 0x439e05
mov byte [eax + edi], bl
jmp 0x439e08
push 0xd
pop ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x439e48
mov eax, dword [ebp + 0xc]
dec eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push 0x423248
push dword [ebp - 8]
call esi
mov ebx, eax
test ebx, ebx
jne 0x439eb4
cmp dword [ebp - 0x10], 1
jne 0x439e6d
mov eax, dword [ebp + 8]
cmp eax, 2
jb 0x439e6d
mov byte [eax + edi], bl
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x439e4d
sub eax, edx
cmp byte [eax + edi - 1], 0x5c
jne 0x439e72
cmp dword [ebp + 0xc], 0x7fffffff
ja 0x439e7b
push 0x423240
jmp 0x439e87
push 0xd
pop ebx
jmp 0x439eb4
cmp dword [ebp + 0xc], 0x7fffffff
jbe 0x439e82
mov eax, 0x80070057
jmp 0x439e90
push 0x423238
push dword [ebp + 0xc]
push edi
call fcn.0040a5b7
test eax, eax
jl 0x439ee9
cmp dword [ebp + 0x10], 0
je 0x439eb0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x439eb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x439eb4
and dword [ebp - 4], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0x80004005
jne 0x439ee9
test ebx, ebx
mov edx, 0xffff
mov ecx, 0x80070000
mov eax, ebx
jle 0x439eda
and eax, edx
or eax, ecx
test eax, eax
jge 0x439ee9
test ebx, ebx
jle 0x439ee6
and ebx, edx
or ebx, ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x43a7fd
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2e8]
sub esp, 0x368
mov eax, dword [0x44de1c]
push ebx
push edi
mov dword [ebp + 0x2e4], eax
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
inc ebx
push ebx
stosd dword es:[edi], eax
push 0x104
lea eax, [ebp + 0x1e0]
push eax
mov dword [ebp - 0x80], 0x44
call fcn.00439d37
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x2c], eax
jl 0x43a930
push esi
mov esi, dword [ebp + 0x2f0]
push dword [esi + 0xc]
lea eax, [ebp + 0x1e0]
push eax
lea eax, [ebp - 0x28]
push 0x43a94c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push 0x4000020
push ebx
push edi
push edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x1e0]
push eax
mov dword [ebp - 0x2c], 0x80004005
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x43a92f
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp + 0x2f0], ebx
mov ebx, 0x4e20
push ebx
push dword [esi]
call edi
test eax, eax
jne 0x43a8d7
push 1
push dword [esi + 4]
call edi
test eax, eax
jne 0x43a91b
and dword [ebp + 0x2f0], eax
and dword [ebp - 0x2c], eax
jmp 0x43a91b
push ebx
push dword [esi + 8]
call edi
cmp eax, 0x102
je 0x43a92f
cmp eax, 0x80
je 0x43a926
push 1
push dword [esi]
call edi
test eax, eax
je 0x43a900
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x43a90b
push 1
push dword [esi + 4]
call edi
test eax, eax
jne 0x43a912
and dword [ebp + 0x2f0], 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp + 0x2f0], 0
jne 0x43a8b8
jmp 0x43a92f
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
mov ecx, dword [ebp + 0x2e4]
mov eax, dword [ebp - 0x2c]
pop edi
pop ebx
call fcn.00417bd0
add ebp, 0x2e8
leave
ret 4

Function at 0x43a95a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x44de1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x43a992
mov dword [0x44e9c4], eax
cmp dword [ebp - 0x88], 2
jne 0x43a9ac
cmp dword [ebp - 0x94], 5
sbb eax, eax
add eax, 3
mov dword [0x44e9c4], eax
mov ecx, dword [ebp - 4]
call fcn.00417bd0
leave
ret
Function at 0x43b33c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0041763c
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43b3d7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x44d40c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x43b3d7
cmp eax, 1
je 0x43b3f8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43b3d7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x43b3a4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x43b3d3
xor eax, eax
inc eax
jmp 0x43b417
cmp edi, eax
jae 0x43b3db
xor eax, eax
jmp 0x43b417
cmp eax, esi
jae 0x43b3e2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x44d40c]
jmp 0x43b3fb
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43c544
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x44de1c]
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 + 0x44e548]
je 0x43c579
inc eax
cmp eax, 0x13
jb 0x43c56a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x44e548]
jne 0x43c69f
mov eax, dword [0x44e9dc]
cmp eax, 1
je 0x43c677
cmp eax, edx
jne 0x43c5a9
cmp dword [0x44e51c], 1
je 0x43c677
cmp ecx, 0xfc
je 0x43c69f
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 0x43c5df
lea eax, [ebp - 0x80]
push 0x423920
push eax
call fcn.0040533a
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00407a9b
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43c613
mov eax, edi
push eax
call fcn.00407a9b
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42391c
push edi
call fcn.0040e651
add esp, 0x10
push edi
call fcn.00407a9b
push dword [esi + 0x44e54c]
mov ebx, eax
call fcn.00407a9b
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041763c
mov ebx, esp
push 0x43c6bc
push ebx
call fcn.0040533a
push edi
push ebx
call fcn.0041bda5
push 0x423918
push ebx
call fcn.0041bda5
push dword [esi + 0x44e54c]
push ebx
call fcn.0041bda5
push 0x12010
push 0x4238f0
push ebx
call fcn.0043f5ba
add esp, 0x2c
jmp 0x43c69f
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x44e54c]
push dword [esi]
call fcn.00407a9b
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.00417bd0
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x43cdc4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]

Function at 0x43f5ba
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x44ea58], ebx
push esi
push edi
jne 0x43f63a
push 0x43f718
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43f675
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43f70c
push edi
call esi
test eax, eax
mov dword [0x44ea58], eax
je 0x43f675
push 0x43f6fc
push edi
call esi
push 0x43f6e8
push edi
mov dword [0x44ea5c], eax
call esi
cmp dword [0x44d40c], 2
mov dword [0x44ea60], eax
jne 0x43f63a
push 0x43f6cc
push edi
call esi
test eax, eax
mov dword [0x44ea68], eax
je 0x43f63a
push 0x43f6b4
push edi
call esi
mov dword [0x44ea64], eax
mov eax, dword [0x44ea64]
test eax, eax
je 0x43f67f
call eax
test eax, eax
je 0x43f666
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x44ea68]
test eax, eax
je 0x43f666
test byte [ebp - 8], 1
jne 0x43f67f
cmp dword [0x44d418], 4
jb 0x43f679
or byte [ebp + 0x12], 0x20
jmp 0x43f69e
xor eax, eax
jmp 0x43f6ae
or byte [ebp + 0x12], 4
jmp 0x43f69e
mov eax, dword [0x44ea5c]
test eax, eax
je 0x43f69e
call eax
mov ebx, eax
test ebx, ebx
je 0x43f69e
mov eax, dword [0x44ea60]
test eax, eax
je 0x43f69e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x44ea58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43fb94
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x44de1c]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x43fbc5
xor eax, eax
jmp 0x43fd4e
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x44d900]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x43fc01
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0044152c
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x43fcdc
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x43fd1a
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x43fc65
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x43fc56
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x43fc36
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43fca5
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x43fcae
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x43fc27
jmp 0x43fcb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x43fd49
cmp dword [ebp - 0x6c], edi
je 0x43fd1a
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x43fd0f
call fcn.0043ed56
mov dword [eax], 9
call fcn.0043ed5f
mov dword [eax], esi
jmp 0x43fd44
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43fd04
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x43fcb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x43fcb0
push dword [ebp - 0x6c]
call fcn.0043ed68
pop ecx
jmp 0x43fd44
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x43fd32
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x43fd32
xor eax, eax
jmp 0x43fd4c
call fcn.0043ed56
mov dword [eax], 0x1c
call fcn.0043ed5f
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x43fd4c
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00417bd0
add ebp, 0x3a0
leave
ret
Function at 0x441116
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 0x44112f
or eax, 0xffffffff
jmp 0x441190
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x44118c
push 0x3d
push esi
call fcn.004419fc
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x44118c
cmp esi, eax
je 0x44118c
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x44da7c]
sete cl
cmp eax, dword [0x44e9e8]
mov dword [ebp - 8], ecx
jne 0x441172
mov edi, eax
call fcn.004410b5
mov dword [0x44da7c], eax
cmp eax, ebx
jne 0x4411cb
cmp dword [ebp + 0xc], ebx
je 0x441194
cmp dword [0x44e9ec], ebx
je 0x441194
call fcn.0043f3b4
test eax, eax
je 0x4411cb
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x44119d
xor eax, eax
jmp 0x44118f
push 4
call fcn.00407e8b
cmp eax, ebx
pop ecx
mov dword [0x44da7c], eax
je 0x44118c
mov dword [eax], ebx
cmp dword [0x44e9ec], ebx
jne 0x4411cb
push 4
call fcn.00407e8b
cmp eax, ebx
pop ecx
mov dword [0x44e9ec], eax
je 0x44118c
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x44da7c]
call fcn.00441068
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x44122c
cmp dword [esi], ebx
je 0x44122c
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00417b09
cmp dword [ebp - 8], ebx
pop ecx
jne 0x44120f
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x44126d
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x441206
mov eax, edi
shl eax, 2
push eax
push dword [0x44da7c]
call fcn.0043bb47
cmp eax, ebx
pop ecx
pop ecx
je 0x44126d
jmp 0x441268
cmp dword [ebp - 8], ebx
jne 0x4412d8
cmp edi, ebx
jge 0x44123b
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x44da7c]
call fcn.0043bb47
cmp eax, ebx
pop ecx
pop ecx
je 0x44118c
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 [0x44da7c], eax
cmp dword [ebp + 0xc], ebx
je 0x4412c2
push dword [ebp - 4]
call fcn.00407a9b
inc eax
inc eax
push eax
call fcn.00407e8b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4412c2
push dword [ebp - 4]
push esi
call fcn.0040533a
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 0x4412bb
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00417b09
pop ecx
cmp dword [ebp - 8], ebx
je 0x4412d0
push dword [ebp - 4]
call fcn.00417b09
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x44118f
push dword [ebp - 4]
call fcn.00417b09
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x441199
Function at 0x4416e0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0041763c
mov eax, dword [0x44de1c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0043fa62
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x441813
push 2
push esi
push dword [ebp + 8]
call fcn.0043fa62
add esp, 0xc
cmp eax, ebx
je 0x441813
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4417b3
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00402b49
push 0x8000
push dword [ebp + 8]
call fcn.00441a77
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x441769
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0043fb94
add esp, 0xc
cmp eax, 0xffffffff
je 0x441789
sub edi, eax
test edi, edi
jg 0x441761
jmp 0x4417a1
call fcn.0043ed5f
cmp dword [eax], 5
jne 0x44179e
call fcn.0043ed56
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00441a77
pop ecx
pop ecx
jmp 0x4417fb
jge 0x4417fb
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043fa62
push dword [ebp + 8]
call fcn.004400f7
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 0x4417fb
call fcn.0043ed56
mov dword [eax], 0xd
call fcn.0043ed5f
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.0043fa62
add esp, 0xc
mov eax, esi
pop edi
jmp 0x441815
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00417bd0
leave
ret
Function at 0x441821
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 0x4419f5
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x44d900]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4419f5
test cl, 0x48
je 0x44188c
cmp byte [eax + 5], 0xa
je 0x44188c
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 [esi + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4418de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4418c6
call fcn.0043ed56
mov dword [eax], 9
call fcn.0043ed5f
mov dword [eax], esi
jmp 0x4418d6
cmp eax, 0x6d
je 0x4419f5
push eax
call fcn.0043ed68
pop ecx
or eax, 0xffffffff
jmp 0x4419f7
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4419f0
test eax, eax
je 0x441905
cmp byte [ebx], 0xa
jne 0x441905
mov eax, ecx
lea eax, [esi + eax + 4]
or byte [eax], 4
jmp 0x44190e
mov eax, dword [edi]
lea eax, [esi + eax + 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 0x4419ea
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4419da
cmp al, 0xd
je 0x441940
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4419cc
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x44195a
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x441955
add dword [ebp + 0x10], 2
jmp 0x4419ae
mov dword [ebp + 0x10], eax
jmp 0x4419c8
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 [esi + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x441982
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4419c8
cmp dword [ebp - 0xc], 0
je 0x4419c8
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4419a3
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4419ae
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4419cb
cmp ebx, dword [ebp + 0xc]
jne 0x4419b3
cmp byte [ebp - 1], 0xa
jne 0x4419b3
mov byte [ebx], 0xa
jmp 0x4419cb
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043fa62
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4419cc
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x441924
jmp 0x4419ea
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4419ea
lea esi, [esi + eax + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4419f7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c860
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4add9b
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.004a2f05
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41c8e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a0dec
mov eax, dword [eax]
push 0x4d1bc0
push eax
call fcn.00488a3b
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a3190
test bl, bl
je 0x41c8e2
push 0x4d1bc0
lea ecx, [esp + 0xc]
call fcn.004a3520
push 0x4d1bcc
lea ecx, [esp + 0xc]
call fcn.004a3520
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 0x41c91e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a3190
jmp 0x41c9e9
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 0x41c9a2
lea edx, [esp + 0x7c]
push 0x4d1bc8
push edx
call fcn.00488a3b
add esp, 8
test eax, eax
je 0x41c9a2
lea eax, [esp + 0x7c]
push 0x4d1bc4
push eax
call fcn.00488a3b
add esp, 8
test eax, eax
je 0x41c9a2
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 0x41c932
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.004a3190
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 0x41d1e0
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 0x41d242
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