joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418769
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x431a18]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4187ad
push 0xa
pop esi
cmp word [ebx], si
jne 0x4187ad
or byte [eax + edi + 0x28], 4
jmp 0x4187b2
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x41891d
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x4188f5
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x4187ff
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x418829
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x418848
push 0xa
pop ebx
cmp word [edx], bx
jne 0x418816
push ebx
add eax, 4
pop edx
jmp 0x41881e
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x4187c4
jmp 0x41891d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4188f0
cmp dword [ebp - 0x14], 0
je 0x4188f0
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x431a18]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x4188cc
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x418894
mov word [esi], ax
jmp 0x41891a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x431a18]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x431a18]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x431a18]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x41891a
cmp word [ebp - 4], ax
jne 0x4188d6
cmp esi, ebx
je 0x41888c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004191a8
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41891d
push 0xd
pop eax
jmp 0x41888c
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x431a18]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x418917
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x41891d
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b92e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41b9cb
push ebx
push esi
call fcn.0041b8f7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041a5ac
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b978
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b9ca
push edi
push eax
call fcn.00413f90
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b998
call fcn.00413f40
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b9c9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a5ac
add esp, 0x20
test eax, eax
jne 0x41b9b7
push edi
call fcn.00413f40
jmp 0x41b9bf
push ebx
call fcn.00413f40
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41dfc0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004157d0
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41e02f
cmp esi, dword [ebp - 4]
je 0x41e02a
cmp dword [ebp + 0xc], 0
je 0x41e02a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41e007
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041db15
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41e031
xor eax, eax
inc eax
jmp 0x41e031
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41e09c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x430040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004157d0
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004157d0
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41e113
cmp word [ecx], dx
je 0x41e113
mov eax, dword [0x4295d4]
push edi
dec eax
push eax
push 0x4294c0
call fcn.0041e035
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41e186
cmp word [eax], dx
je 0x41e186
mov eax, dword [edi]
test eax, eax
je 0x41e137
cmp word [eax], dx
je 0x41e137
lea eax, [ebp - 0x10]
push eax
call fcn.0041da1b
jmp 0x41e140
lea eax, [ebp - 0x10]
push eax
call fcn.0041dab6
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41e1b0
mov eax, dword [0x4294bc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4291b0
call fcn.0041e035
add esp, 0xc
test al, al
je 0x41e1b0
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41e17b
cmp word [eax], di
je 0x41e17b
lea eax, [ebp - 0x10]
push eax
call fcn.0041da1b
pop ecx
jmp 0x41e1b2
lea eax, [ebp - 0x10]
push eax
call fcn.0041dab6
jmp 0x41e178
mov eax, dword [edi]
test eax, eax
je 0x41e19d
cmp word [eax], dx
je 0x41e19d
lea eax, [ebp - 0x10]
push eax
call fcn.0041d9d0
pop ecx
jmp 0x41e1b0
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41e27b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041deba
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41e27b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41e27b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41e27b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41e208
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00416b2a
test ebx, ebx
je 0x41e276
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00416b2a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41e27b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41e27b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042137a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41e27d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004071e3
leave
ret
Function at 0x4231a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4231cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4231cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402788
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403cb8
test esi, esi
jne 0x4027be
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403da8
jmp 0x4027dc
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040269c
mov edi, eax
test esi, esi
je 0x4027dc
cmp dword [ebx], 0
je 0x4027dc
dec esi
jmp 0x4027c5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402cac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40a008], 0x8088405
inc edx
mov dword [ebx + 0x40a008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4031f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40a010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403290
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403270
xor eax, eax
push ebp
push 0x403269
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4032ac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403270
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x40a010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40a010], ax
mov esp, ebp
pop ebp
ret

Function at 0x403b3c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40b044], 0
je 0x403b9d
cmp word [0x40b218], 0xd7b2
jne 0x403b65
cmp dword [0x40b220], 0
jbe 0x403b65
mov eax, 0x40b214
call dword [0x40b230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40a074
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403bc4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x40a01c], 0
jne 0x403bb9
push 0
push 0x40a094
push 0x40a074
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x4025f5
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x40b934], 0
jne 0x402603
call fcn.00402639
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
test edx, edx
not eax
jbe 0x402636
mov ecx, dword [esp + 8]
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x40b930]
xor eax, esi
inc ecx
dec edx
jne 0x402617
pop edi
pop esi
not eax
ret

Function at 0x402639
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x402641
mov dword [ecx*4 + 0x40b930], eax
inc ecx
cmp ecx, 0x100
jl 0x40263c
pop esi
ret
Function at 0x4041b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 8]
je 0x404291
push esi
call fcn.004067fc
test eax, eax
pop ecx
je 0x404291
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push str..
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40428b
cmp byte [ebp - 0x114], 0x2e
jne 0x404221
cmp byte [ebp - 0x113], 0x2e
je 0x404272
cmp byte [ebp - 0x113], 0
je 0x404272
lea eax, [ebp - 0x114]
push eax
lea eax, [edi + esi + 1]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [ebp - 0x140], 0x10
je 0x404249
push dword [ebp + 0xc]
push esi
call fcn.004041b0
pop ecx
pop ecx
jmp 0x404272
push esi
push str.Delete_file:
call fcn.004061fa
mov eax, dword [ebp - 0x140]
pop ecx
test al, 1
pop ecx
je 0x40426b
xor eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x140]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404206
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
and byte [edi + esi], 0
pop edi
pop ebx
push esi
push str.Remove_directory:
call fcn.004061fa
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
leave
ret

Function at 0x4042a8
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
xor ebx, ebx
push 0xf003f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x404320
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4042f9
cmp dword [ebp + 0x10], ebx
jne 0x404325
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.004042a8
add esp, 0xc
test eax, eax
jne 0x40430b
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4042dd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x404320
Function at 0x40436a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x20]
push 0x1c
push eax
push dword [0x422e08]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4043e7
cmp dword [ebp - 4], 0x1c
jne 0x4043e7
lea eax, [ebp - 0x20]
push eax
call fcn.00404333
add esp, 4
test eax, eax
je 0x4043e7
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x40ceac
mov esi, eax
call fcn.00401d0e
push dword [ebp - 0xc]
push esi
push 0xffffffffffffffff
call fcn.00404659
add esp, 0x10
cmp eax, dword [ebp - 0xc]
je 0x4043ee
push edi
push 0x422600
push str.Error_reading_installer_info_block
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or eax, 0xffffffff
pop edi
pop esi
leave
ret
push 1
push edi
push edi
push dword [0x422e08]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test byte [ebp - 0x20], 2
mov dword [0x418ec8], eax
mov dword [0x4225d8], esi
je 0x40441a
inc dword [0x4225e0]
lea eax, [esi + 0x78]
jmp 0x404431
lea eax, [esi + 0xf0]
mov dword [0x4225f0], eax
mov ecx, dword [esi + 0xe0]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [0x4225d4], eax
mov esi, dword [esi + 0x34]
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*8]
mov dword [0x40cea8], eax
xor eax, eax
jmp 0x4043ea
Function at 0x404474
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x40448e
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
jmp 0x404495
mov dword [ebp - 8], 0x8000
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x4044a1
mov ebx, 0x410ec8
mov eax, dword [ebp + 8]
cmp eax, edi
jl 0x4044bf
mov ecx, dword [0x418ec8]
push edi
add ecx, eax
push edi
push ecx
push dword [0x422e08]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push 4
push eax
push dword [0x422e08]
call esi
test eax, eax
je 0x404646
test byte [ebp + 0xb], 0x80
je 0x4045cc
push 0x40ceac
call fcn.00401ce2
and dword [ebp + 8], 0x7fffffff
pop ecx
jle 0x404651
mov edi, 0x40cec8
jmp 0x40450f
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x4000
cmp dword [ebp + 8], eax
jge 0x40451c
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0x14]
push 0
push ecx
push eax
push edi
push dword [0x422e08]
call esi
test eax, eax
je 0x404646
mov eax, dword [ebp + 0x14]
mov dword [0x40ceac], edi
sub dword [ebp + 8], eax
mov dword [0x40ceb0], eax
mov eax, dword [ebp - 8]
push 0x40ceac
mov dword [0x40ceb8], ebx
mov dword [0x40cebc], eax
call fcn.00401d3d
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jl 0x4045c1
mov eax, dword [0x40ceb8]
mov esi, eax
sub esi, ebx
je 0x4045b2
cmp dword [ebp + 0x10], 0
jne 0x404595
lea eax, [ebp + 0x14]
push 0
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4045c8
cmp dword [ebp + 0x14], esi
jne 0x4045c8
add dword [ebp - 4], esi
jmp 0x4045a7
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, eax
jl 0x404651
cmp dword [ebp - 0x10], 1
jne 0x404545
jmp 0x404651
cmp dword [ebp + 8], 0
jg 0x404509
jmp 0x404651
push 0xfffffffffffffffc
jmp 0x404648
push 0xfffffffffffffffe
jmp 0x404648
cmp dword [ebp + 0x10], edi
jne 0x404626
cmp dword [ebp + 8], edi
jle 0x404651
mov edi, 0x40cec8
mov eax, dword [ebp - 8]
cmp dword [ebp + 8], eax
jge 0x4045e6
mov eax, dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0xc]
push ebx
push ecx
push eax
push edi
push dword [0x422e08]
call esi
test eax, eax
je 0x404646
lea eax, [ebp + 0x10]
push ebx
push eax
push dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4045c8
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x4045c8
add dword [ebp - 4], eax
sub dword [ebp + 8], eax
cmp dword [ebp + 8], ebx
jg 0x4045db
jmp 0x404651
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
jge 0x404631
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x422e08]
call esi
test eax, eax
jne 0x40464b
push 0xfffffffffffffffd
pop eax
jmp 0x404654
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404c4c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x4225d8]
push ebx
xor ebx, ebx
push ebp
mov cl, byte [eax + 0x63]
push esi
and cl, 4
push edi
mov byte [0x4225cc], cl
mov al, byte [eax + 0x63]
and al, 1
cmp dword [0x4225e0], ebx
mov byte [0x4225ec], al
jne 0x404d72
mov ebp, 0x4211a0
mov dword [0x40a43c], 3
push ebp
mov dword [0x40a440], ebx
call fcn.004067fc
test eax, eax
pop ecx
jne 0x404d54
mov eax, dword [0x4225d8]
cmp dword [eax + 0xa4], ebx
jl 0x404d54
mov esi, 0x421dc0
push esi
push dword [eax + 0xa8]
call fcn.00404448
pop ecx
push eax
mov eax, dword [0x4225d8]
push dword [eax + 0xa4]
call fcn.00404448
pop ecx
push eax
mov eax, dword [0x4225d8]
push dword [eax + 0xa0]
call fcn.00406bd6
mov al, byte [0x421dc0]
add esp, 0x10
cmp al, bl
je 0x404d54
cmp al, 0x22
jne 0x404d10
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
mov esi, eax
jmp 0x404d08
cmp cl, 0x22
je 0x404d0e
push eax
call edi
mov cl, byte [eax]
cmp cl, bl
jne 0x404d00
mov byte [eax], bl
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + esi - 4]
cmp eax, esi
jbe 0x404d4c
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404d4c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404d3f
test al, 0x10
jne 0x404d4c
push esi
call fcn.00406795
cmp eax, esi
pop ecx
jb 0x404d4c
mov byte [eax], bl
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
call fcn.004067fc
test eax, eax
pop ecx
jne 0x404d72
mov eax, dword [0x4225d8]
push dword [eax + 0xcc]
push ebp
call fcn.00406c38
pop ecx
pop ecx
mov eax, dword [0x4225d8]
mov edi, 0x422600
push dword [eax + 0x18]
push edi
call fcn.00406c38
mov eax, dword [0x4225d8]
pop ecx
pop ecx
cmp byte [eax + 0x62], bl
jne 0x404e01
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
mov eax, dword [0x4225d8]
mov ecx, dword [eax + 0x38]
cmp ecx, 0xffffffff
je 0x404dc3
push dword [eax + 0x40]
push dword [eax + 0x3c]
push ecx
push edi
push dword [0x41bd88]
call fcn.00402370
mov esi, eax
mov eax, dword [0x4225d8]
add esp, 0x14
push ebx
mov dword [0x422e04], esi
push dword [eax + 0x4c]
push dword [0x4225d4]
call fcn.00402669
add esp, 0xc
test eax, eax
je 0x404de4
xor eax, eax
inc eax
jmp 0x404e5b
push ebx
push 0x404e60
push esi
push 0x69
push dword [0x41bd88]
mov dword [0x422e04], ebx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x404e5b
push ebx
push dword [eax + 0x4c]
push dword [0x4225d4]
call fcn.00402669
add esp, 0xc
test eax, eax
jne 0x404ddf
push ebx
call fcn.004062ae
test eax, eax
je 0x404e42
cmp dword [0x4225c8], ebx
jne 0x404ddf
mov eax, dword [0x4225d8]
push ebx
push dword [eax + 0x54]
push dword [0x4225d4]
call fcn.00402669
add esp, 0xc
jmp 0x404ddf
mov eax, dword [0x4225d8]
push ebx
push dword [eax + 0x50]
push dword [0x4225d4]
call fcn.00402669
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40541e
Capabilities:
Hide graphical window

Disassembly:
cmp byte [0x4225cc], 0
push edi
je 0x405468
mov edi, dword [esp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x407
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3ee
push edi
call esi
push eax
push edi
call fcn.0040546a
mov eax, dword [0x4225e8]
pop ecx
pop ecx
pop esi
test eax, eax
je 0x405468
push eax
push edi
call fcn.0040546a
pop ecx
pop ecx
pop edi
ret

Function at 0x4066ed
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
xor esi, esi
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0xc]
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406742
cmp dword [ebp - 0xc], esi
je 0x40673f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret