joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453494e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
push ebp
xor edi, edi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], edi
cmp ebp, edi
jne 0x45349508
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x42c]
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x45381440
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ebx, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x45349549
push 2
push 0
push edx
call fcn.4534bf80
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x453495e5
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4534961e
lea esi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x453495ac
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x4534959a
mov byte [esi], 0xd
inc edi
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x45349581
lea eax, [esp + 0x24]
push 0
sub esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45349614
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, esi
jge 0x4534956c
jmp 0x4534961e
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45349614
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x4534961e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x453496ca
cmp dword [esp + 0x10], 0
je 0x4534967a
cmp dword [esp + 0x10], 5
jne 0x4534965d
call fcn.4534bb60
mov dword [eax], 9
call fcn.4534bb70
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov dword [eax], ecx
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.4534bae0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x453496a4
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x453496a4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.4534bb60
mov dword [eax], 0x1c
call fcn.4534bb70
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, edi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x45349ff0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x4537dff0
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x4534a017
add eax, 8
inc ecx
cmp eax, 0x4537e080
jb 0x4534a008
cmp dword [ecx*8 + 0x4537dff0], edx
lea ebx, [ecx*8]
jne 0x4534a1db
cmp dword [0x4537cea4], 1
je 0x4534a197
cmp dword [0x4537cea4], 0
jne 0x4534a04e
cmp dword [0x4537cea8], 1
je 0x4534a197
cmp edx, 0xfc
je 0x4534a1db
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x4534a08b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4534a0cf
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x45366c64
push ebp
call fcn.453438a0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
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 + 0x14]
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, 0x45368f80
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 + 0x14]
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, dword [ebx + 0x4537dff4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
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 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.4534dc10
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x45381440], 0
je 0x4534a1ad
mov eax, dword [0x45381440]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x4534a1b7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x4537dff4]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x4534de70
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x4537eccc]
push esi
test eax, eax
push edi
push ebp
jne 0x4534deb8
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 1
push 0
call esi
test eax, eax
je 0x4534de98
mov eax, 1
jmp 0x4534debe
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4534deb1
mov eax, 2
jmp 0x4534debe
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [0x4537eccc], eax
cmp eax, 1
jne 0x4534dee3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x4537eccc], eax
cmp eax, 2
jne 0x4534df71
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x4534deff
mov edi, dword [0x4537d7c0]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ebp, eax
test ebp, ebp
jne 0x4534df20
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push ebp
call fcn.45341d70
add esp, 4
mov esi, eax
test esi, esi
jne 0x4534df36
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4534df66
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4534df76
push 0
push 0
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jne 0x4534df8e
push esi
call fcn.45341e40
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
je 0x4534df66
push esi
call fcn.45341e40
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4534dfa0
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x4537ecd0]
push esi
test eax, eax
push edi
push ebp
jne 0x4534dfe8
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 1
push 0
call esi
test eax, eax
je 0x4534dfc8
mov eax, 2
jmp 0x4534dfee
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4534dfe1
mov eax, 1
jmp 0x4534dfee
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [0x4537ecd0], eax
cmp eax, 2
jne 0x4534e013
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x4537ecd0], eax
cmp eax, 1
jne 0x4534e0af
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x4534e02f
mov edi, dword [0x4537d7c0]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebp, eax
test ebp, ebp
jne 0x4534e050
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
lea eax, [ebp*2]
push eax
call fcn.45341d70
add esp, 4
mov esi, eax
test esi, esi
jne 0x4534e06d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4534e0a4
mov eax, dword [esp + 0x20]
push 0
push 0
test eax, eax
jne 0x4534e0b4
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x4534e0cf
push esi
call fcn.45341e40
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x28]
push eax
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4534e0a4
push esi
call fcn.45341e40
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45350ac3
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45350af3
push esi
call fcn.453535f7
cmp dword [esi + 0x3c], 0
je 0x45350aec
push 1
mov dword [esi + 0x10], 0xcf
pop eax
jmp 0x45350b80
mov dword [esi + 0x10], 0xcb
mov ecx, dword [esi + 0x10]
cmp ecx, 0xcb
jne 0x45350b63
mov eax, dword [esi + 0x1a6]
cmp dword [eax + 0x10], 0
je 0x45350b55
mov eax, dword [esi + 8]
test eax, eax
je 0x45350b14
push esi
call dword [eax]
mov eax, dword [esi + 0x1a6]
push esi
call dword [eax]
test eax, eax
je 0x45350b51
cmp eax, 2
je 0x45350b55
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45350b0a
cmp eax, 3
je 0x45350b37
cmp eax, 1
jne 0x45350b0a
inc dword [ecx + 4]
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
cmp edx, eax
jl 0x45350b0a
mov edx, dword [esi + 0x132]
add edx, eax
mov dword [ecx + 8], edx
jmp 0x45350b0a
xor eax, eax
jmp 0x45350b80
mov eax, dword [esi + 0x8c]
mov dword [esi + 0x94], eax
jmp 0x45350b7a
cmp ecx, 0xcc
je 0x45350b7a
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x11
mov dword [eax + 0x18], ecx
call dword [eax]
push esi
call fcn.45350b84
pop esi
ret 4

Function at 0x45353a58
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
add eax, ecx
pop edi
leave
ret 0x10

Function at 0x45353b87
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
add eax, ecx
pop edi
shr eax, 1
leave
ret 4
Function at 0x4535bde0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1008
call fcn.45342670
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1018]
push ebp
push 1
push ebx
push esi
call fcn.4534bf80
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x4535bf02
push 2
push ebx
push esi
call fcn.4534bf80
add esp, 0xc
cmp eax, 0xffffffff
je 0x4535bf02
mov ecx, dword [esp + 0x1020]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x4535bea3
lea edi, [esp + 0x18]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.4535c080
mov dword [esp + 0x1c], eax
add esp, 8
mov eax, 0x1000
cmp ebp, eax
jge 0x4535be5e
mov eax, ebp
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.453494e0
add esp, 0xc
mov edi, eax
cmp edi, 0xffffffff
je 0x4535be7c
sub ebp, edi
test ebp, ebp
jg 0x4535be53
jmp 0x4535be93
call fcn.4534bb70
cmp dword [eax], 5
jne 0x4535be91
call fcn.4534bb60
mov dword [eax], 0xd
mov ebx, edi
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.4535c080
add esp, 8
jmp 0x4535bee5
jge 0x4535bee5
push 0
push ecx
push esi
call fcn.4534bf80
add esp, 0xc
push esi
call fcn.4534be10
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x4535bee5
call fcn.4534bb60
mov dword [eax], 0xd
call fcn.4534bb70
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.4534bf80
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1008
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1008
ret
Function at 0x40d833
Capabilities:
Read file on windows

Disassembly:
push 0x14
mov eax, 0x428d2f
call fcn.00417869
mov edi, ecx
lea esi, [edi + 0x34]
push 0x1f5
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0xffff
call fcn.00412718
mov ebx, eax
mov eax, 0xffff
push eax
mov dword [edi + 0x10], eax
call fcn.00412718
pop ecx
pop ecx
push 0
mov dword [edi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 0xffff
push ebx
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d947
cmp dword [ebp - 0x10], 0
jbe 0x40d944
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x10]
add eax, ecx
cmp dword [edi + 0x10], eax
jae 0x40d903
mov eax, dword [edi + 0xc]
add eax, dword [ebp - 0x10]
mov esi, dword [edi + 8]
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
jns 0x40d8ce
fadd qword [0x4379d8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fmul qword [0x4379b8]
call fcn.004280b6
push eax
mov dword [edi + 0x10], eax
call fcn.00412718
push dword [edi + 0xc]
mov dword [edi + 8], eax
push esi
push dword [edi + 8]
call fcn.00412770
push esi
call fcn.00412769
mov ecx, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [edi + 0xc]
add eax, dword [edi + 8]
push ecx
push ebx
push eax
call fcn.00412770
mov eax, dword [ebp - 0x10]
add esp, 0xc
add dword [edi + 0xc], eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea eax, [ebp - 0x10]
push eax
push 0xffff
push ebx
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d88f
mov esi, dword [ebp - 0x18]
push ebx
call fcn.00412769
pop ecx
mov edi, 0x1f6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, edi
call fcn.00417846
ret

Function at 0x40e388
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
jne 0x40e3a8
and dword [esi + 8], 0
and dword [esi + 0xc], 0
call fcn.0040e367
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x40e3f9
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jne 0x40e3e3
push 0
lea eax, [ebp + 8]
push eax
push 0x10000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e3f8
mov eax, dword [ebp + 8]
test eax, eax
je 0x40e3f8
and dword [esi + 0xc], 0
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov al, byte [ecx + eax]
mov byte [edi + ebx], al
inc edi
inc dword [esi + 0xc]
cmp edi, dword [ebp + 0xc]
jb 0x40e3b3
pop ebx
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
pop esi
pop ebp
ret 8
Function at 0x40e408
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.0040e439
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40e5f1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x428da0
call fcn.00417869
mov ecx, dword [ebp + 0xc]
call fcn.00401715
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 1
push ebx
push str.SoftwareAutoIt_v3AutoIt
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e629
xor al, al
jmp 0x40e6bc
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push str.Include
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e6b1
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412718
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040290b
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x1c]
push eax
push esi
push ebx
push ebx
push str.Include
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e69c
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x10], eax
push esi
mov word [esi + eax*2], cx
mov ecx, dword [ebp + 0xc]
call fcn.0040182f
mov bl, 1
mov eax, dword [ebp - 0x18]
dec dword [eax]
jne 0x40e6b1
push eax
call fcn.00412769
push esi
call fcn.00412769
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.00417846
ret

Function at 0x40e9b9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x43b034]
xor eax, esp
mov dword [esp + 0x258], eax
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40ea02
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40e9f7
or eax, eax
jmp 0x40ea02
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x25c]
pop esi
xor ecx, esp
call fcn.004126e7
mov esp, ebp
pop ebp
ret
Function at 0x40ebf1
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x24
mov eax, 0x428e41
call fcn.00417869
push ecx
lea ecx, [ebp - 0x30]
call fcn.00403a7b
xor ebx, ebx
lea ecx, [ebp - 0x30]
push 0x433988
mov dword [ebp - 4], ebx
call fcn.00408e53
mov esi, dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40eca2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40ec40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ec45
jmp 0x40eca6
cmp eax, 3
jne 0x40eca8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], eax
inc dword [eax]
push 0x433988
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040ed80
cmp eax, 0xffffffff
je 0x40ec98
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x20]
call fcn.0040191a
lea ecx, [ebp - 0x20]
call fcn.0040ebf1
test al, al
je 0x40ec96
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
mov bl, al
lea ecx, [ebp - 0x20]
call fcn.004015bf
jmp 0x40eca8
test al, 0x10
je 0x40eca8
mov bl, 1
lea ecx, [ebp - 0x30]
call fcn.004015bf
mov al, bl
call fcn.00417846
ret

Function at 0x410168
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410193
xor eax, eax
jmp 0x4101a6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret 4
Function at 0x17f9d00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5a3000]
push edi
or ebp, 0xffffffff
jmp 0x17f9d22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x17f9d29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x17f9d18
mov eax, 1
add ebx, ebx
jne 0x17f9d3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x17f9d4c
jne 0x17f9d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x17f9d6b
dec eax
add ebx, ebx
jne 0x17f9d58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x17f9d30
add ebx, ebx
jne 0x17f9d67
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x17f9dbd
xor ecx, ecx
sub eax, 3
jb 0x17f9d83
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x17f9df2
sar eax, 1
mov ebp, eax
jmp 0x17f9d8e
add ebx, ebx
jne 0x17f9d8e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x17f9d5c
inc ecx
add ebx, ebx
jne 0x17f9d9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x17f9d5c
add ebx, ebx
jne 0x17f9da9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x17f9d9e
jne 0x17f9dba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x17f9d9e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x17f9ddc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x17f9dce
jmp 0x17f9d1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x17f9ddc
add edi, ecx
jmp 0x17f9d1e
pop esi
mov edi, esi
mov ecx, 0x2ee96a
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x17f9e17
cmp byte [edi], 0xd4
jne 0x17f9dfc
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x17f9dfa
lea edi, [esi + 0x8f5000]
mov eax, dword [edi]
or eax, eax
je 0x17f9e5f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x97596c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x975aac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x17f9e1d
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x975ab0]
or eax, eax
je 0x17f9e59
mov dword [ebx], eax
add ebx, 4
jmp 0x17f9e3a
call dword [esi + 0x975ac0]
mov ebp, dword [esi + 0x975ab4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x17f9e93
sub esp, 0xffffff80
jmp 0x123b378