joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403364
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push ebx
push esi
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.00403898
test al, al
pop ecx
je 0x403467
lea eax, [ebp - 0x10]
xor edi, edi
push eax
push edi
call fcn.004034a9
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp - 8], eax
jne 0x4033a1
push str.Error_retrieving_header_resource
jmp 0x4033bc
cmp dword [ebp - 0x10], 0x10
jne 0x40339a
push edi
push 1
call fcn.004034a9
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
jne 0x4033c9
push str.Error_retrieving_exeToRun_resource
call fcn.00403a56
pop ecx
xor eax, eax
jmp 0x4034a2
cmp byte [esi], 0x3b
lea eax, [ebp - 0x118]
setne bl
mov byte [ebp - 0xc], bl
push dword [ebp - 0xc]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00403614
add esp, 0x14
test al, al
je 0x403467
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004034f6
add esp, 0xc
test al, al
push dword [ebp - 4]
jne 0x403419
call fcn.00403e93
jmp 0x403447
call fcn.00403e93
pop ecx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x220]
push eax
call fcn.00403595
test eax, eax
pop ecx
je 0x40346c
push str.Cabinet_extraction_error_n
call fcn.00403a56
test bl, bl
pop ecx
je 0x40345a
lea eax, [ebp - 0x118]
push eax
call fcn.00403900
jmp 0x403466
lea eax, [ebp - 0x220]
push eax
call fcn.00403e88
pop ecx
push 1
pop eax
jmp 0x4034a2
test bl, bl
je 0x403493
push dword [ebp + 0x10]
lea eax, [ebp - 0x118]
push eax
push esi
call fcn.00403792
mov edi, eax
lea eax, [ebp - 0x118]
push eax
call fcn.00403900
add esp, 0x10
jmp 0x4034a0
lea eax, [ebp - 0x220]
push eax
call fcn.00403e88
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403614
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp byte [ebp + 0x18], 0
push esi
push edi
jne 0x4036b6
mov esi, 0x40ac4c
push esi
push dword [ebp + 0x14]
call fcn.00404540
pop ecx
test eax, eax
pop ecx
je 0x403655
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00404450
push dword [ebp + 0x10]
call fcn.00403a9d
add esp, 0xc
jmp 0x403660
push esi
push dword [ebp + 0x10]
call fcn.00404450
pop ecx
pop ecx
push dword [ebp + 0x10]
call fcn.00403336
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
call fcn.00404450
push str.zzCab.cab
push esi
call fcn.00404460
push esi
call fcn.00403e88
push 0x180
push 0x8101
push esi
call fcn.0040417f
mov ecx, dword [ebp + 8]
add esp, 0x24
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x40378c
push str.Error___could_not_create_files_in_specified_directory
call fcn.00403a56
pop ecx
jmp 0x403779
mov edi, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x104]
push eax
push 0
push 0x40a304
push edi
call esi
test eax, eax
jne 0x4036fc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x104]
push eax
push 0
push 0x40a300
push edi
call esi
test eax, eax
jne 0x4036fc
push edi
push str.Error_accessing_temporary_directory____s
jmp 0x403765
lea eax, [ebp - 0x104]
push eax
call fcn.00403e88
lea eax, [ebp - 0x104]
mov dword [esp], 0x40a2d0
push eax
call fcn.00404460
lea eax, [ebp - 0x104]
push eax
call fcn.00403336
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.00404450
push str.zzCab.cab
push esi
call fcn.00404460
push 0x180
push 0x8101
push esi
call fcn.0040417f
mov ecx, dword [ebp + 8]
add esp, 0x28
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x40377d
push esi
push str.Error_creating_file:__s
mov esi, 0x40ad58
push esi
call fcn.00403f46
push esi
call fcn.00403a56
add esp, 0x10
xor al, al
jmp 0x40378e
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.00404450
pop ecx
pop ecx
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x403792
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push esi
push edi
push 0x44
xor esi, esi
pop edi
lea eax, [ebp - 0x58]
push edi
push esi
push eax
call fcn.00403bd0
push dword [ebp + 0xc]
lea eax, [ebp - 0x260]
mov dword [ebp - 0x58], edi
push eax
call fcn.00404450
push dword [ebp + 8]
lea eax, [ebp - 0x260]
push eax
call fcn.00404460
lea eax, [ebp - 0x260]
push 0x40a384
push eax
call fcn.00404460
push dword [ebp + 0x10]
lea eax, [ebp - 0x260]
push eax
call fcn.00404460
add esp, 0x2c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x20
push esi
push esi
lea eax, [ebp - 0x260]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40385e
push dword [ebp + 8]
mov edi, 0x40ad58
push str.Error_could_not_run_exe_after_extraction__filename:__s_n
push edi
call fcn.00403f46
push edi
call fcn.00403a56
add esp, 0x10
lea eax, [ebp + 8]
push esi
push esi
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp + 8]
call fcn.00403a56
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x403881
mov dword [ebp - 4], 1
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x403898
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call fcn.00403a9d
push esi
call fcn.00403336
push 0
push esi
call fcn.004045c7
add esp, 0x10
cmp eax, 0xffffffff
push esi
jne 0x4038e3
mov esi, 0x40ad58
push str.Error___cannot_access_temporary_directory:__s
push esi
call fcn.00403f46
push esi
call fcn.00403a56
add esp, 0x10
xor al, al
pop esi
ret
mov esi, 0x40ac50
push esi
call fcn.00404450
push str.cab2exe.log
push esi
call fcn.00404460
add esp, 0x10
mov al, 1
pop esi
ret

Function at 0x403900
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
lea eax, [ebp - 0x104]
push esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0xa
pop esi
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
call fcn.00403954
mov bl, al
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test bl, bl
jne 0x40394e
mov eax, esi
dec esi
test eax, eax
jg 0x403920
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x4045c7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4045e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405222
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x404608
test byte [esp + 8], 2
je 0x404608
mov dword [0x40ae6c], 0xd
mov dword [0x40ae70], 5
jmp 0x4045e3
xor eax, eax
ret

Function at 0x40739d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a908
cmp edx, dword [eax]
je 0x4073bf
add eax, 8
inc ecx
cmp eax, 0x40a998
jl 0x4073b0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a908]
jne 0x4074ed
mov eax, dword [0x40ae60]
cmp eax, 1
je 0x4074c7
test eax, eax
jne 0x4073f0
cmp dword [0x40a3d4], 1
je 0x4074c7
cmp edx, 0xfc
je 0x4074ed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407427
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403ae0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403d70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40746a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403d70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40946c
push edi
call fcn.00408310
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403ae0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403af0
lea eax, [ebp - 0xa0]
push 0x40944c
push eax
call fcn.00403af0
push dword [esi + 0x40a90c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403af0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408285
add esp, 0x2c
pop edi
jmp 0x4074ed
lea eax, [ebp + 8]
lea esi, [esi + 0x40a90c]
push 0
push eax
push dword [esi]
call fcn.00403d70
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]
pop esi
leave
ret
Function at 0x1001b73
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xac
push esi
push edi
push 6
pop ecx
mov esi, 0x1001334
lea edi, [ebp + 0x48]
rep movsd dword es:[edi], dword [esi]
push 0x1e
pop ecx
movsw word es:[edi], word [esi]
mov esi, 0x10012b8
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor esi, esi
push esi
lea eax, [ebp + 0x70]
push eax
push esi
push 0x2001f
push esi
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
push 0x80000001
mov dword [ebp + 0x70], esi
mov dword [ebp + 0x74], esi
mov dword [ebp + 0x6c], esi
call edi
test eax, eax
jne 0x1001c32
push esi
lea eax, [ebp + 0x74]
push eax
push esi
push 0x20019
push esi
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x70]
call edi
cmp dword [ebp + 0x74], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1001c23
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x64]
push eax
push esi
push 0x10040c0
push dword [ebp + 0x74]
mov dword [ebp + 0x68], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x74], esi
je 0x1001c23
push dword [ebp + 0x74]
call edi
mov dword [ebp + 0x74], esi
push dword [ebp + 0x70]
call edi
xor eax, eax
cmp dword [ebp + 0x6c], esi
sete al
jmp 0x1001c34
xor eax, eax
pop edi
pop esi
add ebp, 0x78
leave
ret
Function at 0x60051a2d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edi
test byte [edi + 0x10], 1
jne 0x60051ab1
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x60051a58
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x60051a9e
mov eax, dword [edi + 4]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x60051a68
xor esi, esi
jmp 0x60051a97
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.60058c00
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 4]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x60051ab1
test al, 1
je 0x60051aad
and dword [edi + 0x10], 0xfffffffb
jmp 0x60051ab1
or dword [edi + 0x10], 4
mov eax, dword [edi + 0x10]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x60052ffd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x60053015
xor eax, eax
jmp 0x60053054
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x60053011
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x60053046
cmp esi, eax
jae 0x60053011
movzx edx, word [esi]
dec ecx
lea esi, [esi + edx*2 + 2]
jne 0x60053038
cmp esi, eax
jae 0x60053011
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x41eb78
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x8e5f0f65
dec esi
and byte [eax], al
and eax, 0x7007300
add al, ah
aad 0x6c
push ebx
bound eax, qword [eax]
pop edi
and byte [eax], al
and eax, 0x7007300
add al, ah
aad 0x6c
sbb edx, dword [edx - 6]
pop esi

Function at 0x40273a
Capabilities:
Terminate process

Disassembly:
call section..text
push 0
push 0x406018
push 0x406014
call fcn.00402d64
push 0
push 0x406020
push 0x40601c
call fcn.00402d64
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403402
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x406a44]
test eax, eax
je 0x40341b
call eax
test eax, eax
jne 0x40341b
push 0xfffffffffffffffe
jmp 0x403435
push 1
push 0x406010
push 0x406008
call fcn.00402d64
add esp, 0xc
test eax, eax
je 0x40343b
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x406004
push section..data
call fcn.00402d64
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x403461
mov esi, 0x405bd1
mov cl, 0x20
jmp 0x40346a
cmp al, 0x20
ja 0x403474
inc esi
mov al, byte [esi]
test al, al
jne 0x403465
cmp al, 0x20
jbe 0x40348b
mov al, byte [esi]
cmp al, 0x22
jne 0x40347d
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x403476
jmp 0x40348b
cmp al, cl
ja 0x403491
inc esi
mov al, byte [esi]
test al, al
jne 0x403486
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x4034ba
movzx eax, word [ebp - 0x14]
jmp 0x4034bd
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0040273a
pop ecx
pop esi
leave
ret

Function at 0x4034f8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x406391], eax
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push 0x80000000
push 0xfffffc18
push 0xfffffc18
push 0xcf0000
push 0x4068a0
push 0x406908
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403542
xor eax, eax
jmp 0x403559
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
leave
ret
Function at 0x4011c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
push ebx
push esi
push edi
push ebp
mov ebp, dword [esp + 0x1c]
cmp byte [ebp], 0x56
jne 0x40125f
lea edi, [ebp + 0x21]
inc ebp
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40124e
mov eax, esi
add esi, 2
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov al, byte [esi + edi - 2]
push eax
call fcn.004011a0
add esp, 4
mov ebx, eax
shl bl, 4
mov al, byte [esi + edi - 1]
push eax
call fcn.004011a0
add esp, 4
add bl, al
mov eax, dword [esp + 0x10]
push edi
cdq
xor eax, edx
sub eax, edx
and eax, 0x1f
xor eax, edx
sub eax, edx
mov al, byte [ebp + eax]
and al, 0x3f
sub bl, al
mov eax, dword [esp + 0x14]
sub bl, byte [esp + 0x14]
mov byte [eax + 0x43be30], bl
mov byte [eax + 0x43be31], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
jg 0x4011e6
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov byte [eax + 0x43be31], 0
jmp 0x4012c4
xor esi, esi
push ebp
mov byte [0x43be30], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4012c4
mov eax, esi
lea edi, [ebp + esi]
cdq
sub eax, edx
add esi, 2
sar eax, 1
mov dword [esp + 0x10], eax
mov al, byte [edi]
push eax
call fcn.004011a0
add esp, 4
mov ebx, eax
shl bl, 4
mov al, byte [edi + 1]
push eax
call fcn.004011a0
add esp, 4
add bl, al
sub bl, byte [esp + 0x10]
mov eax, dword [esp + 0x10]
push ebp
mov byte [eax + 0x43be30], bl
mov byte [eax + 0x43be31], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
jg 0x401273
mov eax, 0x43be30
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret

Function at 0x4016e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x100
lea eax, [esp]
push esi
push edi
push 0x438470
mov edi, dword [esp + 0x110]
push 0x100
push eax
push 0x42f0f0
push str.REGETRFILE
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x401764
push 0x438470
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
push str.REGETRDIR
push edi
call esi
push 0x438470
push 0
push str.REGETRFILE
push edi
call esi
push 0x438470
push 0
push str.REGETLDIR
push edi
call esi
push 0x438470
push 0
push str.REGETLFILE
push edi
call esi
push 0x438470
push 0
push str.REGETTIME
push edi
call esi
xor eax, eax
pop edi
pop esi
add esp, 0x100
ret
Function at 0x402ae0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x110
mov eax, dword [0x42f1c0]
test eax, eax
push ebx
push esi
push edi
jne 0x402c5c
cmp dword [0x42f1d0], 0
jne 0x402b45
lea eax, [esp + 0xc]
mov ecx, dword [0x42f7d0]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
add eax, 0x28
mov dword [0x42f1c8], ecx
mov dword [0x42f1cc], eax
mov eax, dword [esp + 0x14]
sub eax, ecx
mov dword [0x42f1d0], eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
mov dword [0x42f1d4], eax
lea eax, [esp + 0x1c]
push 0x100
mov edi, dword [esp + 0x128]
push eax
push 0x375f
push edi
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov eax, dword [0x42f1d4]
push edi
mov ecx, dword [0x42f1d0]
push 0
mov edx, dword [0x42f1cc]
push 0
push eax
push ecx
mov eax, dword [0x42f1c8]
lea ecx, [esp + 0x34]
push edx
push eax
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x2cf0000
push ecx
push str.WSFTPDBWNDC
push 0
call ebx
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x18]
push 0
mov edx, dword [esp + 0x18]
push edi
push 0x15b2
push esi
push ecx
push edx
push 0
push 0
push 0x503008c4
push 0
push str.EDIT
push 0
call ebx
push 0xfffffffffffffffc
mov dword [0x42f1c0], eax
mov dword [0x43be20], 0x402a50
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [0x43be20]
mov dword [0x43a1f4], eax
push ecx
mov eax, dword [0x42f1c0]
push 0xfffffffffffffffc
xor edi, edi
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
cmp dword [0x42f1b8], edi
jl 0x402c34
mov ebx, 0x43a200
mov eax, dword [0x42f1c0]
push ebx
inc edi
push eax
add ebx, 0x78
call fcn.004023e0
add esp, 8
mov eax, dword [0x42f1c0]
cmp edi, dword [0x42f1b8]
jle 0x402c17
jmp 0x402c39
mov eax, dword [0x42f1c0]
push 0xffffffffffffffff
push 0
push 0xb1
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
add esp, 0x110
ret
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [0x42f1c0]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x402d10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x100
push esi
push edi
mov edi, dword [esp + 0x114]
test edi, edi
je 0x402d3e
push edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
test eax, eax
je 0x402d44
lea eax, [esp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x402d5d
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 8]
push 0x78
push eax
push str.notepad
push str.VIEWER
call fcn.00402ec0
add esp, 0x10
mov edi, dword [esp + 0x10c]
lea eax, [esp + 8]
push edi
push 0x42f214
push eax
call esi
lea eax, [esp + eax + 0x10]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x2e
push edi
call fcn.00420180
add esp, 8
test eax, eax
jne 0x402dc0
mov edi, 0x42f210
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 8]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 8]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
add esp, 0x100
ret

Function at 0x402e20
Capabilities:
Read .ini file

Disassembly:
push esi
push 0x438470
mov esi, dword [esp + 0x10]
push 0x63
push esi
push 0x42fa20
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x10]
cmp eax, 0x63
je 0x402e5a
cmp eax, ecx
jne 0x402e5a
mov eax, dword [esp + 8]
push 0x438470
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop esi
ret
mov eax, dword [esp + 8]
push ecx
push esi
push eax
call fcn.00402de0
add esp, 0xc
pop esi
ret

Function at 0x402e90
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x438470
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push esi
push 0x42fa20
call edi
push 0x438470
push eax
mov eax, dword [esp + 0x14]
push esi
push eax
call edi
pop edi
pop esi
ret
Function at 0x402f30
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov ebx, dword [esp + 0xc]
push edi
push ebp
push 0
push 0x438c30
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0
push 0x438c30
call fcn.0042b790
add esp, 8
test eax, eax
je 0x4030d9
push 0x104
push 0x438c30
call fcn.00420370
add esp, 8
push 0x438c30
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + 0x438c2f], 0x5c
je 0x402fbb
mov edi, 0x42f16c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, 0x438c30
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, 0x438c30
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
push 0x438c30
rep movsb byte es:[edi], byte [esi]
call fcn.0042b790
add esp, 8
test eax, eax
je 0x4030d9
push 0x104
mov eax, dword [0x438580]
push 0x438c30
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push eax
call ebp
push 0x5c
push 0x438c30
call fcn.004202c0
add esp, 8
test eax, eax
jne 0x403034
mov eax, 0x438c30
jmp 0x403035
inc eax
push ebx
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call ebp
push 0
push 0x438c30
call fcn.0042b790
add esp, 8
test eax, eax
je 0x4030df
push 0x104
push 0x438c30
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4030cf
mov edi, 0x42f16c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, 0x438c30
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, 0x438c30
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4030df
push ebx
push 0x438c30
call ebp
jmp 0x4030df
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x18]
push 0x438c30
test esi, esi
je 0x4030f6
push esi
call ebp
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
push eax
call fcn.00420240
add esp, 4
mov esi, eax
test esi, esi
jne 0x403117
mov eax, ebx
mov esi, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
push 0x438c30
push esi
call ebp
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
ret