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

Disassembly:
push ecx
mov eax, dword [0x41e15c]
push ebp
test eax, eax
jne 0x403a4f
mov eax, dword [0x41df14]
mov ebp, dword [0x41df10]
test eax, eax
mov dword [esp + 4], 0
jbe 0x403a4f
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
mov esi, eax
shr esi, 0x1b
and esi, 1
je 0x4038b3
cmp ecx, 1
jmp 0x4038b6
cmp ecx, 2
je 0x403a2b
mov ecx, dword [esp + 0x18]
mov edx, eax
and edx, 0x7000000
cmp edx, ecx
jne 0x403a2b
cmp ecx, 0x3000000
ja 0x403910
je 0x40391c
cmp ecx, 0x1000000
je 0x4038ea
cmp ecx, 0x2000000
jne 0x403931
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x403906
mov ecx, dword [0x41e160]
test ecx, ecx
je 0x403931
test eax, eax
js 0x403a2b
jmp 0x403931
test eax, eax
jns 0x403a2b
jmp 0x403931
cmp ecx, 0x4000000
jne 0x403931
test esi, esi
jne 0x403931
mov eax, dword [esp + 0x20]
test eax, eax
je 0x403931
mov eax, dword [0x41e160]
test eax, eax
jne 0x403a2b
push ebp
call fcn.00408660
add esp, 4
test esi, esi
je 0x4039a7
mov eax, dword [0x41ded8]
push 0
push eax
call fcn.00401100
add esp, 8
cmp eax, 0xffffffff
je 0x403a2b
push eax
call fcn.00401380
mov ecx, dword [0x41ded8]
push 0x2e
push ecx
call fcn.00412280
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40397a
mov esi, dword [0x4192bc]
mov edx, dword [0x41ded4]
mov eax, dword [0x41ded8]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ecx, dword [0x41ded4]
push esi
push ecx
call fcn.00402680
add esp, 8
jmp 0x403a2b
mov edx, dword [0x41e154]
push edx
call fcn.00402110
mov eax, dword [0x41e154]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [0x41e154]
push ecx
call fcn.004020d0
push 8
push ebp
call fcn.00403a60
mov esi, eax
add esp, 0xc
mov edi, esi
cmp byte [esi], 0
je 0x403a05
push 0xffdc
push esi
push 0
call fcn.00407b10
lea ebx, [eax + 1]
push ebx
call fcn.004123d0
mov edi, eax
push ebx
push esi
push edi
call fcn.00407b10
add esp, 0x1c
mov edx, dword [ebp + 8]
mov eax, dword [0x41ded8]
shr edx, 0x1c
and edx, 1
push edx
push edi
push eax
call fcn.00402b70
add esp, 0xc
cmp edi, esi
je 0x403a2b
push edi
call fcn.00412533
add esp, 4
mov edx, dword [esp + 0x10]
push ebp
inc edx
mov dword [esp + 0x14], edx
call fcn.00403860
mov ebp, eax
mov eax, dword [0x41df14]
add esp, 4
cmp edx, eax
jb 0x40389d
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret

Function at 0x405070
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, 1
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call fcn.004020d0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
add ecx, esi
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push esi
call fcn.00401100
add esp, 0x18
cmp eax, 0xffffffff
je 0x4050c8
push eax
call fcn.00401380
add esp, 4
or eax, 0xffffffff
jmp 0x4050d6
push esi
call fcn.00401150
add esp, 4
cmp eax, 0xffffffff
jne 0x4050df
inc ebx
cmp ebx, 0x3e7
jl 0x405081
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x407cf0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x1b0
mov ecx, dword [esp + 0x1b4]
mov dword [esp], 1
mov dword [esp + 8], str.regsvr32__s
mov eax, dword [ecx + 0xc]
test ah, 0x20
je 0x407d69
cmp word [ecx + 4], 0x1f4
jne 0x407d2f
mov eax, dword [0x41ded4]
lea ecx, [esp + 0x48]
push eax
push str._s___s_
push ecx
jmp 0x407d40
mov edx, dword [0x41ded8]
lea eax, [esp + 0x48]
push edx
push str._s___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x48]
push 1
push ecx
push str.regedit
call fcn.00402b70
add esp, 0xc
mov eax, 1
add esp, 0x1b0
ret
test ah, 0x40
je 0x407db5
cmp word [ecx + 4], 0x1f4
je 0x407dad
mov edx, dword [0x41ded8]
lea eax, [esp + 0x48]
push edx
push str._q___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x54]
push 1
push ecx
push str.regtlib
call fcn.00402b70
add esp, 0x18
mov eax, 1
add esp, 0x1b0
ret
mov dword [esp + 8], str.regtlib__q
mov ax, word [ecx + 4]
cmp ax, 0x1f4
jne 0x407f19
lea edx, [esp + 4]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x407f06
mov eax, dword [0x41decc]
push esi
cmp eax, 0x64
push edi
jge 0x407eee
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push str.ICLaunch
lea eax, [esp + 0x24]
push str._s_3.3d
push eax
call esi
mov eax, dword [0x41decc]
add esp, 0x10
inc eax
lea ecx, [esp + 0x14]
mov dword [0x41decc], eax
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0x168
call edi
test eax, eax
jne 0x407e6f
mov eax, dword [0x41decc]
cmp eax, 0x64
jl 0x407dfc
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x1b0
ret
mov eax, dword [0x41ded8]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x58]
push 0x419720
push edx
call esi
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x50]
not ecx
dec ecx
push ecx
push eax
push 1
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x407ee6
mov eax, dword [esp + 0x1bc]
mov ecx, dword [eax + 0xc]
test ch, 0x60
jne 0x407eee
push 0
call fcn.00407c50
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x1b0
ret
mov dword [esp + 8], 0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x1b0
ret
mov dword [esp], 0
mov eax, dword [esp]
add esp, 0x1b0
ret
cmp ax, 0x17
je 0x407f25
cmp ax, 0x19
jne 0x407f2f
push 1
call fcn.00407c50
add esp, 4
mov eax, dword [esp]
add esp, 0x1b0
ret
Function at 0x408ba0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x18]
push eax
push 0x800
mov dword [esp + 0xc], 1
call fcn.00402180
add esp, 8
test eax, eax
jne 0x408bd0
mov eax, 1
pop edi
add esp, 0x10
ret
mov edx, dword [0x41ded8]
lea ecx, [esp + 0x10]
push ebp
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x1c], eax
je 0x408d21
push eax
call fcn.004123d0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x408d21
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x41ded8]
push ebx
push esi
push ebp
push eax
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x408d16
mov al, byte [edi + 8]
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
test al, 2
je 0x408ca8
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x419774
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x408ca8
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x28]
mov eax, dword [edx + 8]
cmp eax, ecx
ja 0x408c66
jne 0x408ca8
mov edx, dword [edx + 0xc]
mov eax, dword [edi + 0x2c]
cmp edx, eax
jbe 0x408ca8
push 0x1d
push 7
call fcn.00403750
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x408d0e
mov ecx, dword [0x41e164]
test ecx, ecx
jne 0x408d0e
mov ecx, dword [0x41ded8]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.00403710
add esp, 0x14
cmp eax, 6
jne 0x408d0e
mov eax, dword [0x41e164]
test eax, eax
jne 0x408d16
test byte [edi + 8], 4
je 0x408d16
lea edx, [esp + 0x24]
lea eax, [esp + 0x14]
push edx
push eax
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x408d16
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x38]
xor ecx, ecx
mov cx, word [edx]
cmp eax, ecx
je 0x408d16
push 0x1e
push 7
call fcn.00403750
add esp, 8
test eax, eax
je 0x408d16
mov ecx, dword [0x41ded8]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.00403710
add esp, 0x14
cmp eax, 6
je 0x408d16
mov dword [esp + 0x10], 0
push ebp
call fcn.00412533
add esp, 4
pop esi
pop ebx
lea edx, [esp + 0x10]
push edx
call fcn.004021c0
mov eax, dword [esp + 0xc]
add esp, 4
pop ebp
pop edi
add esp, 0x10
ret
Function at 0x408dc0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408e69
lea ecx, [esp + 0xc]
lea edx, [esp]
push ecx
mov ecx, dword [0x41ded8]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 4
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408e2c
inc dword [esp]
jmp 0x408e3c
mov dword [esp], 1
mov dword [esp + 4], 4
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
lea ecx, [esp]
push eax
mov eax, dword [0x41ded8]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
ret

Function at 0x409550
Capabilities:
Set registry value

Disassembly:
sub esp, 0x1c
call fcn.00406760
test eax, eax
je 0x4095db
call fcn.00408e70
test eax, eax
je 0x4095d3
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x4095c6
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call edi
test eax, eax
je 0x4095b3
lea edx, [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
call ebp
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
call esi
test eax, eax
jne 0x409594
call fcn.00408e70
test eax, eax
jne 0x409581
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
jmp fcn.00408200
add esp, 0x1c
ret
Function at 0x40a7e0
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x318
push esi
mov esi, dword [esp + 0x320]
test esi, esi
je 0x40a800
push 0x180
push esi
call fcn.004120ec
add esp, 8
mov eax, dword [0x41e0f4]
test eax, eax
je 0x40a84b
test esi, esi
jne 0x40a82c
mov eax, dword [esp + 0x324]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x318
ret
mov ecx, dword [esp + 0x324]
push 5
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x318
ret
mov eax, dword [esp + 0x324]
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x11c]
push 0x104
push edx
push eax
call edi
test esi, esi
je 0x40a87e
lea ecx, [esp + 0x220]
push 0x104
push ecx
push esi
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x18]
push str.WININIT.INI
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
je 0x40a8e0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x11c]
push ecx
lea eax, [esp + 0x224]
push edx
push eax
push str.Rename
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call esi
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret
lea edx, [esp + 0x18]
lea eax, [esp + 0x11c]
push edx
push eax
push 0x4197c8
push str.Rename
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call esi
lea edx, [esp + 0x18]
push 2
push edx
call fcn.00401100
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x40a9f8
push ebx
push ebp
call fcn.00401280
mov ebx, eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], ebx
lea ecx, [ebx + 0x200]
push ecx
call fcn.00402140
add esp, 0xc
test eax, eax
je 0x40a9ee
mov esi, dword [esp + 0x10]
push ebx
push esi
push ebp
call fcn.00401180
add esp, 0xc
test eax, eax
jne 0x40a9e1
add ebx, 0xfffffffc
mov edx, esi
test ebx, ebx
jbe 0x40a9e1
mov eax, 0xfffffffe
sub eax, esi
mov dword [esp + 0x18], eax
cmp byte [edx], 0x78
jne 0x40a9b0
cmp byte [edx + 1], 0x79
jne 0x40a9b0
cmp byte [edx + 2], 0x7a
jne 0x40a9b0
cmp byte [edx + 3], 0x3d
jne 0x40a9b0
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
lea esi, [edx + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x120]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40a9bb
mov eax, dword [esp + 0x18]
inc edx
lea ecx, [eax + edx + 2]
cmp ecx, ebx
jb 0x40a974
jmp 0x40a9e1
push 0
push ebp
mov byte [edx], 0x4e
mov byte [edx + 1], 0x55
mov byte [edx + 2], 0x4c
call fcn.00401220
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
push ebp
call fcn.004011c0
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call fcn.004021c0
add esp, 4
push ebp
call fcn.00401380
add esp, 4
pop ebx
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret
Function at 0x40bde0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, dword [0x41ded4]
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
mov byte [eax], 0
push edi
mov eax, dword [esi + 0x1e]
xor edi, edi
test eax, eax
je 0x40be26
push str.parent
push eax
call fcn.00412060
add esp, 8
test eax, eax
je 0x40be21
mov ecx, dword [esi + 0x1e]
mov edx, dword [0x41e154]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40be15
jmp 0x40be26
mov edi, 1
mov eax, dword [esi + 0x16]
test eax, eax
je 0x40be91
mov ecx, dword [esi + 0x12]
cmp ecx, 0x10
jb 0x40be3d
mov ecx, dword [0x419264]
jmp 0x40be44
mov ecx, dword [ecx*4 + 0x419260]
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40be91
mov ecx, dword [0x41ded4]
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 0x1a]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x41ded4]
cmp byte [edx], 0
jne 0x40bf01
mov eax, dword [esi + 0x26]
test eax, eax
je 0x40bef8
mov eax, dword [esi + 0x2a]
test eax, eax
je 0x40bef8
mov eax, dword [esi + 0x2e]
test eax, eax
je 0x40bef8
mov ecx, dword [0x41e154]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40beb7
mov eax, dword [esi + 0x26]
mov ecx, dword [0x41e154]
mov edx, dword [0x41ded4]
push eax
mov eax, dword [esi + 0x2e]
push 0x104
push ecx
mov ecx, dword [esi + 0x2a]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [0x41ded4]
test eax, eax
jne 0x40bef8
mov byte [edx], al
mov edx, dword [0x41ded4]
cmp byte [edx], 0
je 0x40bfb3
push edx
call fcn.004125c8
add esp, 4
test eax, eax
je 0x40bf6a
mov eax, dword [0x41ded4]
push 0x5c
push eax
call fcn.00412280
mov esi, eax
add esp, 8
test esi, esi
je 0x40bf61
lea ecx, [esi + 1]
push 0x2e
push ecx
call fcn.004122c0
add esp, 8
test eax, eax
je 0x40bf56
mov byte [esi], 0
mov edx, dword [0x41ded4]
push edx
call fcn.004125c8
add esp, 4
test eax, eax
je 0x40bf6a
mov eax, dword [0x41ded4]
mov byte [eax], 0
jmp 0x40bf6a
mov ecx, dword [0x41ded4]
mov byte [ecx], 0
jmp 0x40bf6a
mov edx, dword [0x41ded4]
mov byte [edx], 0
mov eax, dword [0x41ded4]
cmp byte [eax], 0
je 0x40bfb3
test edi, edi
je 0x40bf8a
push 0x5c
push eax
call fcn.00412280
add esp, 8
test eax, eax
je 0x40bf8a
mov byte [eax], 0
mov ecx, dword [0x41ded4]
mov edx, dword [0x41e154]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40bf96
mov eax, dword [0x41e154]
cmp byte [eax], 0
je 0x40bfb8
push eax
call fcn.0040bfd0
add esp, 4
mov eax, dword [0x41e154]
push 0x104
push eax
push eax
call fcn.00407b10
add esp, 0xc
pop edi
pop esi
add esp, 8
ret
Function at 0x4120ec
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x412117
test byte [esp + 8], 0x80
je 0x412106
and al, 0xfe
jmp 0x412108
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x412128
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041322a
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41224d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041322a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41226e
test byte [esp + 8], 2
je 0x41226e
mov dword [0x41e188], 0xd
mov dword [0x41e18c], 5
jmp 0x412249
xor eax, eax
ret

Function at 0x415e25
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41de20
cmp edx, dword [eax]
je 0x415e47
add eax, 8
inc ecx
cmp eax, 0x41deb0
jl 0x415e38
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41de20]
jne 0x415f75
mov eax, dword [0x41e1dc]
cmp eax, 1
je 0x415f4f
test eax, eax
jne 0x415e78
cmp dword [0x41b8b4], 1
je 0x415f4f
cmp edx, 0xfc
je 0x415f75
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x415eaf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00416800
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004154d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x415ef2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004154d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x419608
push edi
call fcn.00412800
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00416800
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00416810
lea eax, [ebp - 0xa0]
push 0x417af4
push eax
call fcn.00416810
push dword [esi + 0x41de24]
lea eax, [ebp - 0xa0]
push eax
call fcn.00416810
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00416c25
add esp, 0x2c
pop edi
jmp 0x415f75
lea eax, [ebp + 8]
lea esi, [esi + 0x41de24]
push 0
push eax
push dword [esi]
call fcn.004154d0
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 0x10001ef0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
mov byte [esp + 0x17], 0xbc
mov byte [esp + 0x16], 0xde
call fcn.10003680
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0xa4]
add esp, 4
and esi, 0xffff
xor ecx, ecx
mov edi, 0x28
mov eax, ecx
cdq
idiv esi
mov al, byte [ebx + ecx]
mov dl, byte [esp + edx + 0x16]
xor al, dl
mov byte [ebx + ecx], al
inc ecx
dec edi
jne 0x10001f29
lea eax, [esp + 0x2c]
push eax
push 0
call fcn.10003b52
add esp, 8
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x13]
push ecx
push edx
push 1
push 0
call fcn.10004636
add esp, 0x10
lea eax, [esp + 0x2c]
push eax
push ebx
push 0x28
push 0
call fcn.10004636
mov ebp, dword [esp + 0xb8]
mov edx, dword [esp + 0xb4]
add esp, 0x10
lea ecx, [esp + 0x2c]
push ecx
push ebp
push edx
push 0
call fcn.10004636
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
call fcn.10003b6c
add esp, 0xc
lea edx, [esp + 0x2c]
mov ecx, 5
lea esi, [esp + 0x16]
lea edi, [esp + 0x88]
push edx
rep movsd dword es:[edi], dword [esi]
push 0
call fcn.10003b52
add esp, 8
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x12]
push eax
push ecx
push 1
push 0
call fcn.10004636
add esp, 0x10
lea edx, [esp + 0x2c]
push edx
push ebx
push 0x28
push 0
call fcn.10004636
mov ecx, dword [esp + 0xb4]
add esp, 0x10
lea eax, [esp + 0x2c]
push eax
push ebp
push ecx
push 0
call fcn.10004636
add esp, 0x10
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
push eax
push 0
call fcn.10003b6c
mov ecx, 5
lea esi, [esp + 0x94]
mov edi, ebx
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x14]
mov ecx, 5
lea esi, [esp + 0x16]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret
Function at 0x10004035
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
cmp bx, ax
push edi
je 0x10004059
cmp dword [ebp + 0x10], eax
jne 0x10004059
mov ax, 0x1101
jmp 0x1000415a
cmp dword [ebp + 0x18], eax
jne 0x1000406d
cmp word [ebp + 0x14], ax
je 0x1000406d
mov ax, 0xb
jmp 0x1000415a
mov edi, dword [ebp + 0x1c]
cmp edi, eax
jne 0x1000407d
mov ax, 0xd
jmp 0x1000415a
push 0x40
pop esi
push esi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100051c0
add esp, 0xc
lea eax, [ebp - 0x40]
cmp bx, si
push ebx
push dword [ebp + 0x10]
push eax
jbe 0x100040a2
call fcn.10005130
jmp 0x100040a7
call fcn.10005200
add esp, 0xc
lea eax, [ebp - 0x40]
mov ecx, esi
xor byte [eax], 0x36
inc eax
dec ecx
jne 0x100040af
lea eax, [ebp - 0xb0]
push eax
call fcn.10004ff0
pop ecx
lea eax, [ebp - 0x40]
push esi
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.10005020
add esp, 0xc
lea eax, [ebp - 0xb0]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push eax
call fcn.10005020
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.10005100
pop ecx
lea eax, [ebp - 0x40]
pop ecx
mov ecx, esi
xor byte [eax], 0x6a
inc eax
dec ecx
jne 0x10004103
lea eax, [ebp - 0xb0]
push eax
call fcn.10004ff0
pop ecx
lea eax, [ebp - 0x40]
push esi
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.10005020
add esp, 0xc
lea eax, [ebp - 0x54]
push 0x14
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.10005020
add esp, 0xc
lea eax, [edi + 2]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.10005100
pop ecx
mov word [edi], 0x14
pop ecx
xor ax, ax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000458e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
test ebx, ebx
jne 0x100045a7
mov ax, 5
jmp 0x10004631
mov esi, dword [ebp + 0xc]
test si, si
je 0x100045bb
cmp dword [ebp + 0x10], 0
jne 0x100045bb
mov ax, 0x1101
jmp 0x10004631
push 0x40
lea eax, [ebp - 0x40]
pop edi
push edi
push 0
push eax
call fcn.100051c0
add esp, 0xc
lea eax, [ebp - 0x40]
cmp si, di
push esi
push dword [ebp + 0x10]
push eax
jbe 0x100045e1
call fcn.10005130
jmp 0x100045e6
call fcn.10005200
add esp, 0xc
lea eax, [ebp - 0x40]
mov ecx, edi
xor byte [eax], 0x36
inc eax
dec ecx
jne 0x100045ee
lea esi, [ebx + 0x5a]
push esi
call fcn.10004ff0
pop ecx
push ebx
call fcn.10004ff0
pop ecx
lea eax, [ebp - 0x40]
push edi
push eax
push ebx
call fcn.10005020
add esp, 0xc
lea eax, [ebp - 0x40]
mov ecx, edi
xor byte [eax], 0x6a
inc eax
dec ecx
jne 0x10004619
lea eax, [ebp - 0x40]
push edi
push eax
push esi
call fcn.10005020
add esp, 0xc
xor ax, ax
pop edi
pop esi
pop ebx
leave
ret