joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e70
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x750
push ebx
push ebp
push esi
lea eax, [esp + 0x118]
push edi
mov ebx, ecx
push eax
call fcn.004014a0
mov edi, str.oem.inf
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x220]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x402fb8
mov ebp, dword [sym.imp.SETUPAPI.dll_SetupGetInfInformationA]
lea edx, [esp + 0x18]
mov ecx, ebx
push edx
call fcn.004014a0
lea edi, [esp + 0x24c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x364]
push 0x400
push ecx
lea edx, [esp + 0x24]
push 2
push edx
call ebp
test eax, eax
je 0x402f9d
lea eax, [esp + 0x10]
lea ecx, [esp + 0x360]
push eax
push 0x400
push ecx
push str.Provider
lea edx, [esp + 0x370]
push 0
push edx
call dword [sym.imp.SETUPAPI.dll_SetupQueryInfVersionInformationA]
test eax, eax
je 0x402f9d
cmp dword [esp + 0x10], 0x400
jae 0x402f9d
lea eax, [esp + 0x360]
push str.Synaptics
push eax
call fcn.00409090
add esp, 8
test eax, eax
jne 0x402f9d
lea ecx, [esp + 0x18]
push ecx
call fcn.00402880
add esp, 4
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x220]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402ee3
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x750
ret
Function at 0x402fd0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x31c
mov eax, dword [esp + 0x320]
push ebx
xor ebx, ebx
push str.SynInst.log
lea ecx, [esp + 8]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], bl
mov byte [esp + 0x114], bl
mov dword [esp + 0x218], ebx
call fcn.00401000
mov ecx, dword [esp + 0x32c]
push ecx
lea ecx, [esp + 8]
call fcn.00401350
lea ecx, [esp + 4]
call fcn.00401250
test eax, eax
jne 0x403032
push ebx
push 1
lea ecx, [esp + 0xc]
call fcn.00401200
test byte [esp + 4], 4
je 0x4030e7
push esi
push str.SynTPEnh.exe__d
lea ecx, [esp + 0xc]
call fcn.00401730
push str.SynTPLpr.exe__d
lea ecx, [esp + 0xc]
call fcn.00401730
push ebx
push 1
push str.SynTPCOM.dll
lea ecx, [esp + 0x14]
call fcn.00401800
lea ecx, [esp + 8]
call fcn.00402bb0
lea ecx, [esp + 8]
call fcn.00402960
lea ecx, [esp + 8]
call fcn.004027a0
mov edx, dword [esp + 8]
lea ecx, [esp + 8]
and edx, 0xfffffffe
or edx, 4
mov dword [esp + 8], edx
call fcn.00402490
lea eax, [esp + 0x220]
push str.Uninstall
push eax
lea ecx, [esp + 0x10]
call fcn.004016a0
push eax
lea ecx, [esp + 0x10]
call fcn.00402500
lea ecx, [esp + 8]
call fcn.00402e70
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyA]
push str.SoftwareSynaptics
push 0x80000001
call esi
push str.SoftwareSynaptics
push 0x80000002
call esi
pop esi
jmp 0x40311e
lea ecx, [esp + 4]
call fcn.00402000
lea ecx, [esp + 4]
call fcn.004028f0
lea ecx, [esp + 4]
call fcn.00402590
lea ecx, [esp + 4]
call fcn.004026d0
mov eax, dword [esp + 4]
lea ecx, [esp + 4]
and al, 0xfa
mov dword [esp + 4], eax
call fcn.00402490
push ebx
push ebx
lea ecx, [esp + 0xc]
call fcn.00401200
xor eax, eax
pop ebx
add esp, 0x31c
ret 0x10

Function at 0x4032c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40dd28]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4032df
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40dd24], 1
mov byte [0x40dd20], bl
jne 0x403339
mov ecx, dword [0x40f234]
test ecx, ecx
je 0x403327
mov esi, dword [0x40f230]
sub esi, 4
cmp esi, ecx
jb 0x403327
mov eax, dword [esi]
test eax, eax
je 0x403320
call eax
mov ecx, dword [0x40f234]
sub esi, 4
cmp esi, ecx
jae 0x403312
push 0x40b020
push 0x40b018
call fcn.00403370
add esp, 8
push 0x40b02c
push 0x40b024
call fcn.00403370
add esp, 8
test ebx, ebx
jne 0x403360
push ebp
mov dword [0x40dd28], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x4038f0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x403907
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403909
xor eax, eax
test eax, eax
je 0x40391a
push eax
call fcn.00405e30
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x403920
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a188
push 0x406d38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40dcf8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40dcf4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40dcf0], ecx
shr eax, 0x10
mov dword [0x40dcec], eax
call fcn.004056d0
test eax, eax
jne 0x40398a
push 0x1c
call fcn.00403af0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00406b30
call fcn.00406b20
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40f22c], eax
call fcn.004064e0
mov dword [0x40dd2c], eax
test eax, eax
je 0x4039bd
mov eax, dword [0x40f22c]
test eax, eax
jne 0x4039c7
push 0xffffffffffffffff
call fcn.00403280
add esp, 4
call fcn.00406230
call fcn.00406140
call fcn.00403250
mov esi, dword [0x40f22c]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x403aa6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x403a0e
test al, al
je 0x403a0e
and eax, 0xff
push eax
call fcn.004060e0
add esp, 4
test eax, eax
je 0x4039e8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4039e8
cmp byte [esi], 0x22
jne 0x403a17
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x403a27
cmp al, 0x20
ja 0x403a27
inc esi
mov dword [ebp - 0x64], esi
jmp 0x403a17
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x403a48
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x403a4d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00403280
jmp 0x403a8b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x403a17
inc esi
mov dword [ebp - 0x64], esi
jmp 0x403aa6

Function at 0x403af0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40dd34], 1
jne 0x403afe
call fcn.00406e10
mov eax, dword [esp + 4]
push eax
call fcn.00406e50
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4064e0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40de60]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x406522
call edi
mov esi, eax
test esi, esi
je 0x40650c
mov eax, 1
jmp 0x40651d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40662f
mov eax, 2
mov dword [0x40de60], eax
cmp eax, 1
jne 0x4065c2
test esi, esi
jne 0x40653b
call edi
mov esi, eax
test esi, esi
je 0x40662f
cmp word [esi], 0
mov eax, esi
je 0x406555
add eax, 2
cmp word [eax], 0
jne 0x406543
add eax, 2
cmp word [eax], 0
jne 0x406543
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4065b4
push edi
call fcn.00405ea0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4065b4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4065a6
push ebx
call fcn.004038a0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40662f
test ebx, ebx
jne 0x4065d3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40662f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4065eb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4065db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4065db
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00405ea0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40660d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x406e50
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40d798
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x406e74
add eax, 8
inc ebp
cmp eax, 0x40d828
jb 0x406e65
cmp ecx, dword [ebp*8 + 0x40d798]
jne 0x40701b
mov eax, dword [0x40dd34]
cmp eax, 1
je 0x406fdd
test eax, eax
jne 0x406ea0
cmp dword [0x40b454], 1
je 0x406fdd
cmp ecx, 0xfc
je 0x40701b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406edb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x406f24
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x40a55c
add ebx, ecx
push ebx
call fcn.004083a0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40a53c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40d79c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00408310
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40f120]
test eax, eax
je 0x406fee
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x406ff8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40d79c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x407880
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40f220]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x407a2d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x40f120]
lea edi, [ecx*4 + 0x40f120]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x407a2d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x4078ee
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x4078ff
push 2
push ebp
push eax
call fcn.004077c0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x407a5e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4079a9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40795a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x407947
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40792a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407a4f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4079a5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x407926
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x407a1e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4079f2
cmp eax, 5
jne 0x4079db
mov dword [0x40dce4], eax
mov dword [0x40dce0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00405e30
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x407a12
cmp byte [ebp], 0x1a
jne 0x407a12
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40dce0], 0x1c
jmp 0x407a37
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40dce0], 9
pop edi
pop esi
pop ebp
mov dword [0x40dce4], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4079a5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407a8f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4079a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4079a9
Function at 0x4085b0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00409010
mov eax, dword [0x40f220]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x408712
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x40f120]
test byte [edx + ecx*8 + 4], 1
je 0x408712
push 1
push ebp
push ebx
call fcn.004077c0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x40871c
push 2
push ebp
push ebx
call fcn.004077c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x40871c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x4086b8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00408f90
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x40865f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00407880
add esp, 0xc
cmp eax, 0xffffffff
je 0x40867b
sub esi, eax
test esi, esi
jle 0x408691
jmp 0x408650
cmp dword [0x40dce4], 5
jne 0x40868e
mov dword [0x40dce0], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00408f90
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.004077c0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x4086f9
push 0
push ecx
push ebx
call fcn.004077c0
add esp, 0xc
push ebx
call fcn.00408c80
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x4086f9
mov dword [0x40dce0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40dce4], eax
push 0
push edi
push ebx
call fcn.004077c0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x40dce0], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x409170
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40919a
test byte [esp + 0xc], 0x80
je 0x40918c
and al, 0xfe
jmp 0x40918e
or al, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4091ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405e30
add esp, 4
or eax, 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x43a0e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d6bbb
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.004ca80f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x43a162
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004c7604
mov eax, dword [eax]
push 0x73d224
push eax
call fcn.004b9304
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004caa9a
test bl, bl
je 0x43a162
push 0x73d224
lea ecx, [esp + 0xc]
call fcn.004cae2a
push 0x740dcc
lea ecx, [esp + 0xc]
call fcn.004cae2a
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 0x43a19e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004caa9a
jmp 0x43a269
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 0x43a222
lea edx, [esp + 0x7c]
push 0x740dc8
push edx
call fcn.004b9304
add esp, 8
test eax, eax
je 0x43a222
lea eax, [esp + 0x7c]
push 0x740dc4
push eax
call fcn.004b9304
add esp, 8
test eax, eax
je 0x43a222
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 0x43a1b2
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.004caa9a
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 0x43aa60
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 0x43aac2
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
Function at 0x43aad0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d6c3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x750000]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x43ac08
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x43ab36
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004caa9a
xor eax, eax
jmp 0x43ac7f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004cabd7
push esi
lea ecx, [esp + 0xc]
call fcn.004cae66
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x43ac5d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0043aa60
test eax, eax
jne 0x43ac5d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0043aa60
test eax, eax
jne 0x43ac5d
lea eax, [esp + 0x14]
push 0x740de0
push eax
call fcn.004ba3d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x43ac3c
lea ecx, [esp + 0x14]
push 0x740ddc
push ecx
call fcn.004ba350
mov esi, eax
add esp, 8
test esi, esi
jne 0x43ac3c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x43ac3f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004cab87
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x43ab4e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004caa9a
xor eax, eax
jmp 0x43ac7f
mov byte [esi], 0
push 0x740dd8
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004caa9a
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4