joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402377
xor eax, eax
jmp 0x4023f7
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40238e
xor eax, eax
jmp 0x4023f7
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x4023da
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jae 0x4023da
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx*2 + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
jmp 0x4023b1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x4023e6
xor eax, eax
jmp 0x4023f7
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4023f4
xor eax, eax
jmp 0x4023f7
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a7f8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x48b5e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [0x48c9e8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407ce0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0043bf71
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40390e
push str.NewFileBytes:_Memory_SAllocation_error
lea eax, [ebp - 0x14]
push eax
call fcn.00407ec0
add esp, 8
push 0
push str.Memory_Allocation_Error
push str.Contact_support_team
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call fcn.0043be10
mov eax, dword [ebp + 8]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.0043c6b8
add esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp + 0x10]
call fcn.00402540
push eax
call fcn.00403e40
cmp dword [ebp - 0x18], 0
je 0x403953
mov eax, dword [ebp - 0x18]
push eax
call fcn.0043c03b
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004024e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403d00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a868
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x48b5e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [0x48c9e8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407ce0
mov eax, dword [ebp + 8]
push eax
push str.Entered_FileRead:__filePath:_s
lea ecx, [ebp - 0x14]
push ecx
call fcn.00407ec0
add esp, 0xc
mov dword [ebp - 0x18], 0
push 0x470304
lea ecx, [ebp + 8]
call fcn.00402540
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0043c3a8
add esp, 0xc
cmp dword [ebp - 0x18], 0
jne 0x403da9
push str.FileRead_:__Cannot_open_the_file
lea eax, [ebp - 0x14]
push eax
call fcn.00407ec0
add esp, 8
push 0
push str.File_could_not_open_to_read
lea ecx, [ebp + 8]
call fcn.00402540
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call fcn.0043be10
mov eax, dword [ebp - 0x18]
push eax
push 1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0043c6b8
add esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x403df5
push str.File_Read_Error:Not_able_to_write_the_file
lea eax, [ebp - 0x14]
push eax
call fcn.00407ec0
add esp, 8
push 0
push str.File_Read_Error
lea ecx, [ebp + 8]
call fcn.00402540
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call fcn.0043be10
cmp dword [ebp - 0x18], 0
je 0x403e07
mov eax, dword [ebp - 0x18]
push eax
call fcn.0043c140
add esp, 4
push str.Exited_FileRead
lea eax, [ebp - 0x14]
push eax
call fcn.00407ec0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004024e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a898
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x48b5e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x48c9e8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407ce0
mov eax, dword [ebp + 8]
push eax
push str.Entered_FileWrite:__filePath:_s
lea ecx, [ebp - 0x14]
push ecx
call fcn.00407ec0
add esp, 0xc
mov dword [ebp - 0x18], 0
push 0x470958
lea ecx, [ebp - 0x1c]
call fcn.00407170
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004063a0
push 0x470950
lea ecx, [ebp - 0x1c]
call fcn.00406500
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0043c3a8
add esp, 0xc
cmp dword [ebp - 0x18], 0
jne 0x403efd
push str.FileWrite:__Could_not_open_to_write
lea eax, [ebp - 0x14]
push eax
call fcn.00407ec0
add esp, 8
push 0
push str.File_could_not_open_to_write
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call fcn.0043be10
cmp dword [ebp + 0x10], 0
je 0x403f48
mov eax, dword [ebp - 0x18]
push eax
push 1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0043c837
add esp, 0x10
test eax, eax
jne 0x403f48
push str.File_Write_Error:Not_able_to_write_the_file
lea eax, [ebp - 0x14]
push eax
call fcn.00407ec0
add esp, 8
push 0
push str.File_Write_Error
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call fcn.0043be10
cmp dword [ebp - 0x18], 0
je 0x403f5a
mov eax, dword [ebp - 0x18]
push eax
call fcn.0043c140
add esp, 4
push str.Exited_FileWrite
lea eax, [ebp - 0x14]
push eax
call fcn.00407ec0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004024e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405200
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ac10
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push esi
push edi
mov eax, dword [0x48b5e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov eax, dword [0x48c9e8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407ce0
push str.Entered_CreateDriverProcess:_
lea eax, [ebp - 0x14]
push eax
call fcn.00407ec0
add esp, 8
mov byte [ebp - 0x15], 1
push 0x800
call fcn.00407fdd
add esp, 4
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40528d
push str.Memory_Allocation_Error:__cmdPath
lea eax, [ebp - 0x14]
push eax
call fcn.00407ec0
add esp, 8
jmp 0x4053d2
push 0x10
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.0043ada0
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x70]
push eax
call fcn.0043ada0
add esp, 0xc
mov dword [ebp - 0x70], 0x44
push 0x400
mov eax, dword [ebp - 0x1c]
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0
push 8
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.00402540
push eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x405391
push 0x46fb90
lea ecx, [ebp + 0xc]
call fcn.004017e0
test eax, eax
jne 0x40534f
push str.CreateDriverProcess:__Driver_not_mentioned
lea eax, [ebp - 0x14]
push eax
call fcn.00407ec0
add esp, 8
mov byte [ebp - 0x15], 0
mov al, byte [ebp - 0x15]
mov byte [ebp - 0xb3], al
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004024e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004024e0
mov al, byte [ebp - 0xb3]
jmp 0x405423
push str.CreateDriverProcess:__Driver_started_sucessfully
lea eax, [ebp - 0x14]
push eax
call fcn.00407ec0
add esp, 8
mov al, byte [ebp - 0x15]
mov byte [ebp - 0xb2], al
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004024e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004024e0
mov al, byte [ebp - 0xb2]
jmp 0x405423
push str.CreateDriverProcess:__Driver_failed_to_start
lea eax, [ebp - 0x14]
push eax
call fcn.00407ec0
add esp, 8
mov byte [ebp - 0x15], 0
mov al, byte [ebp - 0x15]
mov byte [ebp - 0xb1], al
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004024e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004024e0
mov al, byte [ebp - 0xb1]
jmp 0x405423
cmp dword [ebp - 0x1c], 0
je 0x4053f7
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.00407fe8
add esp, 4
mov dword [ebp - 0x1c], 0
push str.Exited_CreateDriverProcess:
lea eax, [ebp - 0x14]
push eax
call fcn.00407ec0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004024e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004024e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4058d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ad23
mov eax, dword fs:[0]
push eax
mov eax, 0x27cc
call fcn.0043cb20
mov eax, dword [0x48b5e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1f84], 0
lea ecx, [ebp + 8]
call fcn.00407280
cmp dword [ebp - 0x1f84], eax
je 0x405951
mov eax, dword [ebp - 0x1f84]
push eax
lea ecx, [ebp + 8]
call fcn.004064c0
mov ecx, dword [ebp - 0x1f84]
mov word [ebp + ecx*2 - 0x1f80], ax
mov eax, dword [ebp - 0x1f84]
add eax, 1
mov dword [ebp - 0x1f84], eax
jmp 0x405913
xor eax, eax
mov ecx, dword [ebp - 0x1f84]
mov word [ebp + ecx*2 - 0x1f80], ax
mov edx, dword [ebp - 0x1f84]
add edx, 1
mov dword [ebp - 0x1f84], edx
mov dword [ebp - 0x1f84], 0
mov byte [ebp - 0x1f85], 1
mov dword [ebp - 0x1f8c], 0
mov dword [ebp - 0x1f90], 0
mov eax, 1
test eax, eax
je 0x405acd
mov eax, dword [ebp - 0x1f8c]
movzx ecx, word [ebp + eax*2 - 0x1f80]
test ecx, ecx
jne 0x4059b9
jmp 0x405acd
mov eax, dword [ebp - 0x1f8c]
movzx ecx, word [ebp + eax*2 - 0x1f80]
cmp ecx, 0x5c
jne 0x405a41
xor eax, eax
mov ecx, dword [ebp - 0x1f90]
mov word [ebp + ecx*2 - 0x2790], ax
push 0x470958
lea ecx, [ebp - 0x2794]
call fcn.00407170
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2790]
push eax
lea ecx, [ebp - 0x2794]
call fcn.004063a0
push 0
lea ecx, [ebp - 0x2794]
call fcn.00406500
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x1f90]
mov ecx, dword [ebp - 0x1f8c]
mov dx, word [ebp + ecx*2 - 0x1f80]
mov word [ebp + eax*2 - 0x2790], dx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2794]
call fcn.004024e0
mov eax, dword [ebp - 0x1f8c]
movzx ecx, word [ebp + eax*2 - 0x1f80]
cmp ecx, 0x3a
jne 0x405a8e
mov eax, dword [ebp - 0x1f90]
mov ecx, dword [ebp - 0x1f8c]
mov dx, word [ebp + ecx*2 - 0x1f80]
mov word [ebp + eax*2 - 0x2790], dx
mov eax, dword [ebp - 0x1f90]
mov ecx, dword [ebp - 0x1f8c]
mov dx, word [ebp + ecx*2 - 0x1f7e]
mov word [ebp + eax*2 - 0x278e], dx
jmp 0x405aaa
mov eax, dword [ebp - 0x1f90]
mov ecx, dword [ebp - 0x1f8c]
mov dx, word [ebp + ecx*2 - 0x1f80]
mov word [ebp + eax*2 - 0x2790], dx
mov eax, dword [ebp - 0x1f8c]
add eax, 1
mov dword [ebp - 0x1f8c], eax
mov eax, dword [ebp - 0x1f90]
add eax, 1
mov dword [ebp - 0x1f90], eax
jmp 0x405995
mov al, byte [ebp - 0x1f85]
mov byte [ebp - 0x27d5], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004024e0
mov al, byte [ebp - 0x27d5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043acad
mov esp, ebp
pop ebp
ret 4
Function at 0x405b10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46adb9
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x48b5e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x860], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x814]
call fcn.004070b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x818]
call fcn.004070b0
mov byte [ebp - 4], 3
push 0x400
lea eax, [ebp - 0x810]
push eax
push str.appdata
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x81c]
call fcn.004070b0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x81c]
call fcn.00407760
push str.PApps_
lea ecx, [ebp - 0x81c]
call fcn.00407280
push eax
lea ecx, [ebp - 0x81c]
call fcn.00405fd0
push ecx
mov ecx, esp
mov dword [ebp - 0x86c], esp
lea eax, [ebp + 0xc]
push eax
call fcn.00407110
mov dword [ebp - 0x870], eax
mov ecx, dword [ebp - 0x870]
mov dword [ebp - 0x874], ecx
mov byte [ebp - 4], 5
lea edx, [ebp - 0x868]
push edx
mov byte [ebp - 4], 4
call fcn.00405570
mov dword [ebp - 0x878], eax
mov eax, dword [ebp - 0x878]
mov dword [ebp - 0x87c], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x87c]
call fcn.00402540
push eax
lea ecx, [ebp - 0x818]
call fcn.00407760
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x868]
call fcn.004024e0
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x818]
push ecx
call fcn.00404b70
lea ecx, [ebp - 0x814]
call fcn.00402540
push eax
lea ecx, [ebp - 0x81c]
call fcn.00407280
push eax
lea ecx, [ebp - 0x81c]
call fcn.00405fd0
push 0x471a34
lea ecx, [ebp - 0x81c]
call fcn.00407280
push eax
lea ecx, [ebp - 0x81c]
call fcn.00405fd0
push ecx
mov ecx, esp
mov dword [ebp - 0x864], esp
lea eax, [ebp - 0x81c]
push eax
call fcn.00407110
mov dword [ebp - 0x870], eax
mov ecx, dword [ebp - 0x870]
mov dword [ebp - 0x874], ecx
mov byte [ebp - 4], 7
mov byte [ebp - 4], 4
call fcn.004058d0
lea eax, [ebp - 0x81c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00407110
mov ecx, dword [ebp - 0x860]
or ecx, 1
mov dword [ebp - 0x860], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x81c]
call fcn.004024e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x818]
call fcn.004024e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x814]
call fcn.004024e0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004024e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043acad
mov esp, ebp
pop ebp
ret 8

Function at 0x405d40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0x800
call fcn.00407fdd
add esp, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [0x48c9e8], eax
cmp dword [0x48c9e8], 0
jne 0x405d71
push 0
call fcn.0043be10
push 0x400
mov eax, dword [0x48c9e8]
push eax
push str.appdata
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.PApps_tracerlog.txt
mov eax, dword [0x48c9e8]
push eax
call fcn.0043cac4
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407ce0
Capabilities:
Create directory
Query environment variable
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x48b5e0]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push edi
push 0x800
mov edi, ecx
call fcn.00407fa3
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x407d11
mov ebp, dword [esp + 0xc]
mov dword [edi], eax
jmp 0x407e23
push 0x800
call fcn.00407fa3
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x407d2b
mov dword [edi], eax
jmp 0x407e1a
push 0x400
push ebx
push str.appdata
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, ebx
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x407d41
mov ecx, dword [str.PApps]
mov dword [eax], ecx
mov edx, dword [0x471d4c]
mov dword [eax + 4], edx
mov ecx, dword [0x471d50]
mov dword [eax + 8], ecx
mov dx, word [0x471d54]
mov word [eax + 0xc], dx
mov edx, ebp
mov eax, ebx
sub edx, ebx
jmp 0x407d80
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407d80
mov eax, ebp
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x407d94
mov ecx, dword [0x471d30]
mov dword [eax], ecx
mov edx, dword [str.ebug.txt]
mov dword [eax + 4], edx
mov ecx, dword [0x471d38]
mov dword [eax + 8], ecx
mov edx, dword [0x471d3c]
mov dword [eax + 0xc], edx
mov ecx, dword [0x471d40]
push esi
mov dword [eax + 0x10], ecx
mov dx, word [0x471d44]
push 0
push ebx
mov word [eax + 0x14], dx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
jne 0x407e4e
push 0x471d2c
push ebp
call fcn.0043c391
mov esi, eax
add esp, 8
test esi, esi
je 0x407e46
push esi
push 2
push 7
push 0x471d1c
call fcn.0043c837
push esi
call fcn.0043c140
add esp, 0x14
mov ecx, dword [esp + 0x2c]
mov dword [edi + 4], ecx
pop esi
push ebx
call fcn.00407fd2
add esp, 4
test ebp, ebp
je 0x407e30
push ebp
call fcn.00407fd2
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043acad
add esp, 0x18
ret 4
mov dword [edi], 0
jmp 0x407e12
test eax, eax
jne 0x407e12
push 0x471d18
push ebp
call fcn.0043c391
mov esi, eax
add esp, 8
test esi, esi
je 0x407ead
push esi
push 2
lea eax, [esp + 0x1c]
push 7
push eax
call fcn.0043c6b8
push esi
call fcn.0043c140
add esp, 0x14
xor eax, eax
movzx ecx, word [esp + eax*2 + 0x14]
cmp cx, 0x30
je 0x407e46
cmp cx, 0x31
je 0x407ea2
inc eax
mov dword [edi], 0
cmp eax, 7
jne 0x407e80
jmp 0x407e12
mov dword [edi], 1
jmp 0x407e12
mov dword [edi], 0
jmp 0x407e19
Function at 0x408b28
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x408b4c
cmp dword [edi + 0x54], 0
jne 0x408b4c
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00418869
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00408ae9
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40fa22
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40fa69
call fcn.00418869
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40fa69
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40fa85
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040f59a
mov esi, eax
test edi, edi
je 0x40fa83
test ebx, ebx
je 0x40fa83
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x410d7b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x46b85e
call fcn.0043d0ac
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x410da0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x410de6
lea ecx, [ebp - 0x10]
call fcn.004070b0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00410229
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402480
mov eax, esi
call fcn.0043d184
ret 8

Function at 0x42120d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x46ca31
call fcn.0043d0ac
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00407170
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x42126f
call fcn.00417c95
cmp eax, 1
jne 0x42126f
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004209d8
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00407540
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402480
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402480
mov eax, esi
call fcn.0043d184
ret 0x10
Function at 0x421298
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x46ca5c
call fcn.0043d0ac
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00407170
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4212fa
call fcn.00417c95
cmp eax, 1
jne 0x4212fa
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004209d8
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00407540
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402480
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402480
mov eax, esi
call fcn.0043d184
ret 0x14

Function at 0x421326
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x46ca87
call fcn.0043d0ac
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00407170
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x421388
call fcn.00417c95
cmp eax, 1
jne 0x421388
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004209d8
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00407540
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402480
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402480
mov eax, esi
call fcn.0043d184
ret 8

Function at 0x43acad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48b5e0]
jne 0x43acb7
repz ret
jmp fcn.0044446c