joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a8af
Capabilities:
Create directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x104
jge 0x49a8c6
call fcn.00456e71
mov ebx, dword [ebp + 8]
xor eax, eax
mov word [ebx], ax
call fcn.00499209
test eax, eax
je 0x49a8e2
push ebx
push edi
call fcn.00444d6d
pop ecx
pop ecx
jmp 0x49a960
push edi
push ebx
call fcn.0049a9bc
test eax, eax
je 0x49a960
push esi
push ebx
call fcn.004407f3
mov esi, eax
mov dword [ebp + 8], eax
test esi, esi
jg 0x49a909
push 0x14428f
call fcn.00456bc8
jmp 0x49a95d
push 0x5c
pop eax
cmp word [ebx + esi*2 - 2], ax
je 0x49a91f
cmp esi, edi
je 0x49a95d
mov word [ebx + esi*2], ax
inc esi
mov dword [ebp + 8], esi
mov eax, esi
cdq
add eax, 0xc
adc edx, 0
test edx, edx
jg 0x49a9b5
jl 0x49a939
cmp eax, 0x7fffffff
ja 0x49a9b5
and dword [ebp + 0xc], 0
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], 1
call fcn.00441fcf
cmp dword [ebp + 0xc], edi
jle 0x49a966
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8
push 6
pop ecx
lea edi, [ebx + esi*2]
mov esi, 0x43b258
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00498f74
test eax, eax
jne 0x49a99e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
call fcn.00497009
or eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 8]
push 0x5c
pop ecx
mov word [ebx + eax*2 + 0x16], cx
xor ecx, ecx
mov word [ebx + eax*2 + 0x18], cx
xor eax, eax
inc eax
jmp 0x49a95f
call dword [sym.imp.MSVCR100.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x49aacb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x403b5c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor bl, bl
call fcn.004a021d
test eax, eax
je 0x49abec
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor edi, edi
push edi
push 0x43b270
push 0x80000002
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], edi
call esi
test eax, eax
jne 0x49abbe
lea eax, [ebp - 0x218]
push eax
push 0x20119
push edi
push 0x43b270
push 0x80000002
call esi
test eax, eax
jne 0x49abbe
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x43b2d4
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x20a
call esi
test eax, eax
jne 0x49abbe
cmp dword [ebp - 0x220], 1
jne 0x49abbe
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x43b2d4
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x20a
call esi
test eax, eax
jne 0x49abbe
cmp dword [ebp - 0x220], 1
jne 0x49abbe
inc bl
mov eax, dword [ebp - 0x218]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x49abd7
push eax
mov dword [ebp - 0x218], edi
call esi
mov ecx, dword [ebp - 0x214]
test ecx, ecx
je 0x49abea
push ecx
mov dword [ebp - 0x214], edi
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043f894
leave
ret
Function at 0x49bc45
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 8], 0
cmp dword [ecx + 0x20], 0
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], ecx
je 0x49bcac
cmp edi, 0x40000
jb 0x49bcac
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push dword [ebp + 0xc]
xorps xmm0, xmm0
push dword [ebp + 8]
movlpd qword [ebp - 0x10], xmm0
push dword [ecx + 0x18]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0x43b418
movlpd qword [ebp - 0x20], xmm0
call fcn.0049c2cd
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
add dword [edx], ecx
mov esi, eax
jmp 0x49bd9d
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, 0x10000
push ebx
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 8]
cmp edi, esi
mov ebx, edi
cmovae ebx, esi
mov dword [ebp - 0xc], edx
mov dword [ebp + 0x10], eax
and dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 4], 0
mov dword [ebp - 0x18], edx
je 0x49bcec
mov ecx, eax
call fcn.0049af50
mov ecx, dword [ebp - 4]
mov esi, eax
jmp 0x49bcee
xor esi, esi
test esi, esi
js 0x49bd9c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x20], 0
je 0x49bd40
test eax, eax
jne 0x49bd60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x49bd44
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x18]
call fcn.00497dc4
add esp, 0x10
movzx eax, al
test eax, eax
jne 0x49bd60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x49bd5e
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jne 0x49bd9c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
add dword [ecx], eax
add dword [ebp + 0x10], eax
mov edx, dword [ebp - 0xc]
adc edx, 0
add dword [ebp + 0x14], eax
mov dword [ebp - 0xc], edx
sub edi, eax
je 0x49bd9c
cmp ebx, eax
jne 0x49bd97
mov esi, 0x10000
mov ebx, edi
cmp edi, esi
jb 0x49bd8c
mov ebx, esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
jmp 0x49bccb
mov esi, 0x8000ffff
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 0x18
Function at 0x4a0266
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x403b5c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x214], eax
test edi, edi
jg 0x4a0299
xor eax, eax
jmp 0x4a0348
cmp esi, ebx
je 0x4a02a2
xor ecx, ecx
mov word [esi], cx
cmp edi, 0x104
jl 0x4a02bb
push esi
push dword [ebp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x4a0348
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x214]
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
test ebx, ebx
je 0x4a0346
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x210]
jne 0x4a0305
sub ecx, edx
sar ecx, 1
cmp ecx, edi
jl 0x4a0338
push 0x2072c1
call fcn.00456bc8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4a0292
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0044081b
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f894
leave
ret 0x14
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov dword [ebp - 4], 0
call fcn.00403788
mov dword [ebp - 4], eax
push 0x64
push 0x42e508
push 0x67
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x42e4a4
push 0xbb
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x4010c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x715
jne 0x4010c1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0x715
jne 0x4010c1
push 0
push 0xa
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_DrawIcon]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push 0x8000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [ebp - 0x20], 6
jne 0x4010c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4010c1
mov edx, dword [0x42e2d0]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
push eax
call dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401161
add esp, 4
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004011e1
add esp, 8
test eax, eax
jne 0x4010e5
xor eax, eax
jmp 0x40115b
push 0x6d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_HideCaret]
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.GDI32.dll_GetCharWidth32A]
push 1
push 0
push 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 8]
jbe 0x401140
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowCaret]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4011e1
Capabilities:
Copy file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x42e56c], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x42e508
push 0x42e4a4
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401229
xor eax, eax
jmp 0x401252
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40145a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 8], 0xb0
jae 0x4014f8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x118]
push eax
call fcn.0040145a
add esp, 8
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 3
div ecx
test edx, edx
jne 0x4014b4
mov byte [ebp - 0x114], 0
jmp 0x4014f6
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 4
div ecx
test edx, edx
jne 0x4014d8
lea edx, [ebp - 0x104]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x4014f6
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0xd
div ecx
test edx, edx
jne 0x4014f6
mov byte [ebp - 0x112], 0x4d
mov byte [ebp - 0x111], 0
jmp 0x401501
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x40300a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x184], 0
mov ecx, 5
mov esi, 0x42ddd0
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0xec], eax
push 0x94
push 0
lea eax, [ebp - 0x180]
push eax
call fcn.004261d0
add esp, 0xc
mov word [ebp - 0x32], 0x66
lea ecx, [ebp - 0x38]
push ecx
call fcn.0040151b
add esp, 4
mov dword [ebp - 0xc], eax
mov word [ebp - 0x2a], 0x37
mov word [ebp - 0x28], 0x32
push 0xa8
push 0
lea edx, [ebp - 0xe0]
push edx
call fcn.004261d0
add esp, 0xc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov eax, dword [ebp - 0xec]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xec], 0
lea ecx, [ebp - 0x20]
push ecx
push 0x65
call fcn.00401554
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 0x184], 0
jne 0x403132
mov edx, dword [ebp - 0x1c]
movsx eax, byte [edx]
cmp eax, 0x41
je 0x403132
mov ecx, dword [ebp - 0x1c]
movsx edx, byte [ecx + 1]
cmp edx, 0x42
je 0x403132
push 4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00426230
add esp, 0xc
push 0
push 0x402fe3
push 0
mov edx, dword [ebp - 0xec]
push edx
call dword [sym.imp.GDI32.dll_EnumObjects]
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x42ddb8]
mov dword [eax + 0x144], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.004015ba
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xec]
mov dword [ebp - 0x184], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x148], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x148], 0
je 0x4031aa
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc8], 0
push 0x8000
push 0
mov edx, dword [ebp - 0xe8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xec]
mov dword [0x42e2d0], ecx
mov eax, dword [ebp - 4]
jmp 0x4031c6
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0xa
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4031cc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0x64
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x42aa58]
mov dword [ecx + 0xbc], edx
push 0x8000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 4]
mov ecx, dword [0x42ddb4]
mov dword [eax + 0xb4], ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [ebp - 4]
mov dword [edx + 0xd4], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebp - 4]
cmp dword [eax + 0xd4], 0
je 0x403261
mov ecx, dword [ebp - 8]
add ecx, 0x7c
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x1a8], 0x42aa60
mov eax, dword [ebp - 4]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [eax + 0x1bc], ecx
jmp 0x403301
mov edx, dword [str.appinitcmd.ini]
mov dword [ebp - 0x20], edx
mov eax, dword [0x42dde8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x42ddec]
mov dword [ebp - 0x18], ecx
mov dx, word [0x42ddf0]
mov word [ebp - 0x14], dx
mov al, byte [0x42ddf2]
mov byte [ebp - 0x12], al
push 0
push 0
push 4
push 0
push 0
push 1
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x403301
push 4
push 0x1000
push 0x12c
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403301
push 0
lea edx, [ebp - 8]
push edx
push 4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 4
jne 0x403301
push 0
lea edx, [ebp - 8]
push edx
push 4
mov eax, dword [ebp - 4]
add eax, 0x720
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xd4]
mov dword [edx + 0xc0], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x42aa5c]
mov dword [edx + 0xb8], eax
push 0x2bc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
mov edx, dword [0x42ddb0]
mov dword [ecx + 0xb0], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x18c], 0x42a030
mov ecx, dword [ebp - 4]
push ecx
call fcn.00403981
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x403788
Capabilities:
Copy file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
push 1
push 0xd
call fcn.004033de
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x4037d1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x18], eax
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0
je 0x4037f1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov eax, dword [ebp - 8]
jmp 0x40397d
mov dword [ebp - 0x484], 0
mov edx, dword [str.setting.ini]
mov dword [ebp - 0x47c], edx
mov eax, dword [0x42ddf8]
mov dword [ebp - 0x478], eax
mov ecx, dword [0x42ddfc]
mov dword [ebp - 0x474], ecx
mov edx, dword [str.existing]
mov dword [ebp - 0x470], edx
mov eax, dword [0x42de04]
mov dword [ebp - 0x46c], eax
mov cl, byte [0x42de08]
mov byte [ebp - 0x468], cl
push 0
lea edx, [ebp - 0x470]
push edx
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x80
push 4
push 0
push 1
push 4
lea ecx, [ebp - 0x470]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x403883
xor eax, eax
jmp 0x40397d
cmp dword [ebp - 0x484], 0xffffffff
jne 0x4038bf
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.setini.xml
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0xffffffff
jne 0x4038bf
xor eax, eax
jmp 0x40397d
push 0
lea edx, [ebp - 0x48c]
push edx
push 0x448
lea eax, [ebp - 0x464]
push eax
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403954
push 2
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x488], eax
push 0
mov eax, dword [ebp - 0x48c]
push eax
push 0
mov ecx, dword [ebp - 0x488]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea eax, [ebp - 0x480]
push eax
mov ecx, dword [ebp - 0x48c]
push ecx
lea edx, [ebp - 0x464]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov ecx, dword [ebp - 0x48c]
push ecx
push 0
mov edx, dword [ebp - 0x488]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp - 0x48c], 0x448
je 0x403883
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4271e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42df30
cmp edx, dword [eax]
je 0x427207
add eax, 8
inc ecx
cmp eax, 0x42dfc0
jl 0x4271f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42df30]
jne 0x427335
mov eax, dword [0x42e578]
cmp eax, 1
je 0x42730f
test eax, eax
jne 0x427238
cmp dword [0x42de84], 1
je 0x42730f
cmp edx, 0xfc
je 0x427335
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42726f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00427fb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00426150
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4272b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00426150
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4294a8
push edi
call fcn.004281a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00427fb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00427fc0
lea eax, [ebp - 0xa0]
push 0x429488
push eax
call fcn.00427fc0
push dword [esi + 0x42df34]
lea eax, [ebp - 0xa0]
push eax
call fcn.00427fc0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00428114
add esp, 0x2c
pop edi
jmp 0x427335
lea eax, [ebp + 8]
lea esi, [esi + 0x42df34]
push 0
push eax
push dword [esi]
call fcn.00426150
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 0x402a28
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42ec10]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402abc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a79
cmp dword [ebp + 0x10], ebx
jne 0x402ab0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a28
test eax, eax
jne 0x402a8b
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405c49
cmp eax, ebx
je 0x402ac3
push ebx
push dword [0x42ec10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402abc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42ec10], ebx
jne 0x402ab9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ab9
jmp 0x402abc