joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a742
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4115d8
call fcn.0040b6cc
mov edi, 0x94
mov eax, edi
call fcn.0040a4e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4134cc], ecx
mov eax, dword [esi + 4]
mov dword [0x4134d8], eax
mov edx, dword [esi + 8]
mov dword [0x4134dc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4134d0], esi
cmp ecx, 2
je 0x40a7a2
or esi, 0x8000
mov dword [0x4134d0], esi
shl eax, 8
add eax, edx
mov dword [0x4134d4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40a7dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a7dd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40a7f5
cmp eax, 0x20b
je 0x40a7e2
mov dword [ebp - 0x1c], esi
jmp 0x40a809
cmp dword [ecx + 0x84], 0xe
jbe 0x40a7dd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40a803
cmp dword [ecx + 0x74], 0xe
jbe 0x40a7dd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040a9b5
pop ecx
test eax, eax
jne 0x40a835
cmp dword [0x4133f8], 1
jne 0x40a822
call fcn.0040c22d
push 0x1c
call fcn.0040c0b6
push 0xff
call fcn.0040bf1f
pop ecx
pop ecx
call fcn.0040c9e2
mov dword [ebp - 4], esi
call fcn.0040c837
test eax, eax
jge 0x40a84e
push 0x1b
call fcn.0040a71d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4139f8], eax
call fcn.0040c715
mov dword [0x4133f0], eax
call fcn.0040c673
test eax, eax
jge 0x40a874
push 8
call fcn.0040a71d
pop ecx
call fcn.0040c440
test eax, eax
jge 0x40a885
push 9
call fcn.0040a71d
pop ecx
call fcn.0040bf4f
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40a898
push eax
call fcn.0040a71d
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040c3d7
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40a8b9
movzx eax, word [ebp - 0x34]
jmp 0x40a8bc
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004098d0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40a8da
push edi
call fcn.0040c076
call fcn.0040c098
jmp 0x40a90c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040b707
ret
Function at 0x40bfb4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x41350c], esi
push edi
jne 0x40bfd4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x413508], esi
mov byte [0x413504], al
jne 0x40c03a
mov ecx, dword [0x4139c8]
test ecx, ecx
je 0x40c01b
mov eax, dword [0x4139c4]
sub eax, 4
cmp eax, ecx
jmp 0x40c014
mov eax, dword [eax]
test eax, eax
je 0x40c006
call eax
mov eax, dword [0x4139c4]
sub eax, 4
cmp eax, dword [0x4139c8]
mov dword [0x4139c4], eax
jae 0x40bffe
mov eax, 0x41301c
mov esi, 0x413020
cmp eax, esi
mov edi, eax
jae 0x40c03a
mov eax, dword [edi]
test eax, eax
je 0x40c033
call eax
add edi, 4
cmp edi, esi
jb 0x40c02b
mov eax, 0x413024
mov esi, 0x413028
cmp eax, esi
mov edi, eax
jae 0x40c059
mov eax, dword [edi]
test eax, eax
je 0x40c052
call eax
add edi, 4
cmp edi, esi
jb 0x40c04a
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40c074
push dword [ebp + 8]
mov dword [0x41350c], 1
call fcn.0040bf1f
pop ecx
pop ebp
ret

Function at 0x40c0b6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x413030]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x413170]
je 0x40c0e3
inc eax
cmp eax, 0x12
jb 0x40c0d4
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x413170]
jne 0x40c217
mov eax, dword [0x4133f8]
cmp eax, 1
je 0x40c1f2
cmp eax, edx
jne 0x40c113
cmp dword [0x413044], 1
je 0x40c1f2
cmp ecx, 0xfc
je 0x40c217
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c14c
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0040ceb0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0040cfb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40c18e
lea eax, [ebp - 0x10c]
push eax
call fcn.0040cfb0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x41161c
push edi
call fcn.0040a320
add esp, 0x10
push edi
call fcn.0040cfb0
push dword [esi + 0x413174]
mov ebx, eax
call fcn.0040cfb0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040a4e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040ceb0
push edi
push ebx
call fcn.0040cec0
push 0x411618
push ebx
call fcn.0040cec0
push dword [esi + 0x413174]
push ebx
call fcn.0040cec0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040cdad
add esp, 0x2c
jmp 0x40c217
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x413174]
push dword [esi]
call fcn.0040cfb0
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0040a21b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cdad
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x413624], ebx
push esi
push edi
jne 0x40ce2d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40ce68
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x411bd4
push edi
call esi
test eax, eax
mov dword [0x413624], eax
je 0x40ce68
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x413628], eax
call esi
cmp dword [0x4134cc], 2
mov dword [0x41362c], eax
jne 0x40ce2d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x413634], eax
je 0x40ce2d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x413630], eax
mov eax, dword [0x413630]
test eax, eax
je 0x40ce72
call eax
test eax, eax
je 0x40ce59
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x413634]
test eax, eax
je 0x40ce59
test byte [ebp - 8], 1
jne 0x40ce72
cmp dword [0x4134d8], 4
jb 0x40ce6c
or byte [ebp + 0x12], 0x20
jmp 0x40ce91
xor eax, eax
jmp 0x40cea1
or byte [ebp + 0x12], 4
jmp 0x40ce91
mov eax, dword [0x413628]
test eax, eax
je 0x40ce91
call eax
mov ebx, eax
test ebx, ebx
je 0x40ce91
mov eax, dword [0x41362c]
test eax, eax
je 0x40ce91
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x413624]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e900
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x40e96b
push 0x3d
push dword [ebp + 8]
call fcn.0040edc9
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x40e96b
cmp dword [ebp + 8], esi
je 0x40e96b
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x4134ec]
cmp eax, dword [0x4134f0]
jne 0x40e951
mov edi, eax
call fcn.0040e89f
mov dword [0x4134ec], eax
cmp eax, ebx
jne 0x40e9aa
cmp dword [ebp + 0xc], ebx
je 0x40e973
cmp dword [0x4134f4], ebx
je 0x40e973
call fcn.0040dcb3
test eax, eax
je 0x40e9aa
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x40eaae
push 4
call fcn.0040a1d8
cmp eax, ebx
pop ecx
mov dword [0x4134ec], eax
je 0x40e96b
mov dword [eax], ebx
cmp dword [0x4134f4], ebx
jne 0x40e9aa
push 4
call fcn.0040a1d8
cmp eax, ebx
pop ecx
mov dword [0x4134f4], eax
je 0x40e96b
mov dword [eax], ebx
mov ebx, dword [0x4134ec]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0040e852
mov edi, eax
test edi, edi
pop ecx
jl 0x40ea03
cmp dword [ebx], 0
je 0x40ea03
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0040a11b
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x40e9eb
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x40ea39
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x40e9e2
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0040dd1e
test eax, eax
pop ecx
pop ecx
je 0x40ea39
jmp 0x40ea34
cmp dword [ebp - 4], 0
jne 0x40eaa7
test edi, edi
jge 0x40ea13
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0040dd1e
test eax, eax
pop ecx
pop ecx
je 0x40e96b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x4134ec], eax
cmp dword [ebp + 0xc], 0
je 0x40ea90
push dword [ebp + 8]
call fcn.0040cfb0
inc eax
inc eax
push eax
call fcn.0040a1d8
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40ea90
push dword [ebp + 8]
push esi
call fcn.0040ceb0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
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 0x40ea89
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0040a11b
pop ecx
cmp dword [ebp - 4], 0
je 0x40ea9f
push dword [ebp + 8]
call fcn.0040a11b
pop ecx
mov eax, dword [ebp - 8]
jmp 0x40e96e
push esi
call fcn.0040a11b
pop ecx
xor eax, eax
jmp 0x40e96e
Function at 0x40eccd
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040a4e0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ed62
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4134cc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40ed62
cmp eax, 1
je 0x40ed7a
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ed62
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x40ed37
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x40ed5e
xor eax, eax
inc eax
jmp 0x40ed96
cmp esi, ebx
jae 0x40ed66
xor eax, eax
jmp 0x40ed96
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4134cc]
jmp 0x40ed7c
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4251a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push 0xa
lea ecx, [esp + 0xc]
call fcn.0041c86c
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x34]
push esi
mov dword [esp + 0x30], 0
call fcn.0041d17c
lea eax, [esp + 0x34]
lea ecx, [esp + 4]
push eax
push ecx
mov byte [esp + 0x34], 1
call fcn.00405830
add esp, 8
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.0041d10e
lea edx, [esp + 8]
push edx
push esi
call fcn.004054f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push esi
push eax
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00402210
add esp, 0x1c
lea ecx, [esp + 4]
mov esi, eax
mov byte [esp + 0x2c], 0
call fcn.0041d10e
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0041c8e0
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x402150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4251d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push 0xa
lea ecx, [esp + 0xc]
call fcn.0041c86c
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x34]
push esi
mov dword [esp + 0x30], 0
call fcn.0041d17c
lea eax, [esp + 0x34]
lea ecx, [esp + 4]
push eax
push ecx
mov byte [esp + 0x34], 1
call fcn.00405830
add esp, 8
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.0041d10e
lea edx, [esp + 8]
push edx
push esi
call fcn.004054f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push esi
push eax
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.004024e0
add esp, 0x1c
lea ecx, [esp + 4]
mov esi, eax
mov byte [esp + 0x2c], 0
call fcn.0041d10e
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0041c8e0
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x403730
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x2d4
mov ecx, 0x41
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
call fcn.00404ec0
mov al, byte [0x433190]
add esp, 4
cmp al, 7
lea edx, [esp + 0x14]
mov edi, str.LdxCab.ini
je 0x40376b
mov edi, str.LdCab.ini
or ecx, 0xffffffff
xor eax, eax
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]
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
and ecx, 3
push 0
push str.FileTotal
rep movsb byte es:[edi], byte [esi]
push str.CabFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, dword [esp + 0x2ec]
mov ebp, eax
test esi, esi
jne 0x4037cf
mov ecx, dword [esp + 0x2e8]
push 0x42f15c
push ecx
call fcn.0040b7a0
add esp, 8
mov dword [esp + 0x10], eax
jmp 0x4037d3
mov dword [esp + 0x10], esi
mov ebx, 1
cmp ebp, ebx
jl 0x4038bb
push ebx
lea edx, [esp + 0x180]
push str.File__d
push edx
call fcn.0040b6a0
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x118]
lea edx, [esp + 0x17c]
push eax
push 0x64
push ecx
push 0x4330b8
push str.SrcFilePath
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x1e0]
push eax
call fcn.00404ec0
mov edi, 0x42f0c8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1e4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 edx, [esp + 0x1e4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 eax, dword [esp + 0x14]
mov ecx, edx
mov edx, dword [esp + 0x2ec]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x1e8]
push 1
push ecx
push edx
call fcn.00403030
add esp, 0x14
inc ebx
cmp ebx, ebp
jle 0x4037e0
mov esi, dword [esp + 0x2ec]
pop edi
test esi, esi
pop esi
pop ebp
pop ebx
jne 0x4038d4
mov eax, dword [esp]
test eax, eax
je 0x4038d4
push eax
call fcn.0040b6f2
add esp, 4
xor eax, eax
add esp, 0x2d4
ret
Function at 0x403dd0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x425316
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov eax, dword [esp + 0xac]
mov ecx, 0x433180
push eax
call fcn.0041d24b
mov ecx, dword [esp + 0xb0]
push ecx
mov ecx, 0x433184
call fcn.0041d24b
mov edx, dword [esp + 0xb4]
mov ecx, 0x433188
push edx
call fcn.0041d24b
lea eax, [esp]
push eax
push 0
push 0
push 0x403eb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
lea ecx, [esp + 8]
call fcn.00408100
lea ecx, [esp + 4]
mov dword [esp + 0xa4], 0
mov dword [0x43318c], ecx
lea ecx, [esp + 4]
call fcn.0041d970
lea ecx, [esp + 0x60]
mov dword [esp + 0xa4], 1
call fcn.0041c834
lea ecx, [esp + 4]
mov dword [esp + 0xa4], 0xffffffff
call fcn.0041d64e
mov ecx, dword [esp + 0x9c]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0xa8
ret

Function at 0x403f70
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x425356
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov eax, dword [esp + 0xac]
mov ecx, 0x433180
push eax
call fcn.0041d24b
mov ecx, dword [esp + 0xb0]
push ecx
mov ecx, 0x433184
call fcn.0041d24b
lea edx, [esp]
push edx
push 0
push 0
push 0x404030
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
lea ecx, [esp + 8]
call fcn.00408100
lea eax, [esp + 4]
lea ecx, [esp + 4]
mov dword [esp + 0xa4], 0
mov dword [0x43318c], eax
call fcn.0041d970
lea ecx, [esp + 0x60]
mov dword [esp + 0xa4], 1
call fcn.0041c834
lea ecx, [esp + 4]
mov dword [esp + 0xa4], 0xffffffff
call fcn.0041d64e
mov ecx, dword [esp + 0x9c]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0xa8
ret
Function at 0x405230
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
lea edx, [esp]
mov dword [esp], 0x3c
push edx
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], str.open
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40529f
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40529f
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x3c
ret

Function at 0x4052b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x425440
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov eax, dword [0x42f8cc]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x8c], ebx
mov ebp, dword [esp + 0x98]
mov esi, dword [esp + 0x94]
push ebp
push esi
lea eax, [esp + 0x18]
push str.ExecuteAndWait__s___d_
push eax
mov byte [esp + 0x9c], 1
call fcn.0041c74a
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ebx
push ecx
mov ecx, 0x433191
call fcn.00407170
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x40]
lea edx, [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, 1
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x44]
mov ecx, 0xc
push eax
push ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], ecx
push ebx
push 0x4000000
lea ecx, [esp + 0x2c]
push ebx
lea edx, [esp + 0x3c]
push ecx
push edx
push esi
push ebx
mov dword [esp + 0x68], 0x44
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
je 0x40538c
cmp ebp, ebx
je 0x40538c
mov eax, dword [esp + 0x30]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x14]
mov byte [esp + 0x8c], bl
call fcn.0041d10e
lea ecx, [esp + 0x10]
mov dword [esp + 0x8c], 0xffffffff
call fcn.0041d10e
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x80
ret

Function at 0x406fd0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
push eax
mov dword [ebx], 0x4264e4
call fcn.00407090
mov edi, str._trace.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
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]
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
and ecx, 3
push 0
push str.trace
rep movsb byte es:[edi], byte [esi]
push str.common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x407045
pop edi
mov dword [ebx + 4], eax
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x208
ret
pop edi
pop esi
mov dword [ebx + 4], 1
mov eax, ebx
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x407220
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x30c
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x218]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x218]
push 0x100
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov cl, byte [esp + 0x218]
mov edi, str.:InetPub_ftprootTiprayLdTermlog
mov byte [esp + 0x10], cl
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
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 + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040c183
mov edi, 0x42f0c8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
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 edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.LdCab.log
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 + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004057f0
add esp, 8
cmp eax, 0xfa000
jbe 0x40731b
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x31c]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0041d17c
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x30c
ret 4

Function at 0x4082b0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x425876
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov eax, dword [esp + 0xac]
mov ecx, 0x433180
push eax
call fcn.0041d24b
mov ecx, dword [esp + 0xb0]
push ecx
mov ecx, 0x433184
call fcn.0041d24b
lea edx, [esp]
push edx
push 0
push 0
push 0x408370
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
lea ecx, [esp + 8]
call fcn.00408100
lea eax, [esp + 4]
lea ecx, [esp + 4]
mov dword [esp + 0xa4], 0
mov dword [0x43318c], eax
call fcn.0041d970
lea ecx, [esp + 0x60]
mov dword [esp + 0xa4], 1
call fcn.0041c834
lea ecx, [esp + 4]
mov dword [esp + 0xa4], 0xffffffff
call fcn.0041d64e
mov ecx, dword [esp + 0x9c]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0xa8
ret