joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d00
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 0x407d79
cmp word [ecx + 4], 0x1f4
jne 0x407d3f
mov eax, dword [0x41df04]
lea ecx, [esp + 0x48]
push eax
push str._s___s_
push ecx
jmp 0x407d50
mov edx, dword [0x41df08]
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.00402b80
add esp, 0xc
mov eax, 1
add esp, 0x1b0
ret
test ah, 0x40
je 0x407dc5
cmp word [ecx + 4], 0x1f4
je 0x407dbd
mov edx, dword [0x41df08]
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.00402b80
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 0x407f29
lea edx, [esp + 4]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x407f16
mov eax, dword [0x41defc]
push esi
cmp eax, 0x64
push edi
jge 0x407efe
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 [0x41defc]
add esp, 0x10
inc eax
lea ecx, [esp + 0x14]
mov dword [0x41defc], 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 0x407e7f
mov eax, dword [0x41defc]
cmp eax, 0x64
jl 0x407e0c
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 [0x41df08]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x58]
push 0x419750
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 0x407ef6
mov eax, dword [esp + 0x1bc]
mov ecx, dword [eax + 0xc]
test ch, 0x60
jne 0x407efe
push 0
call fcn.00407c60
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 0x407f35
cmp ax, 0x19
jne 0x407f3f
push 1
call fcn.00407c60
add esp, 4
mov eax, dword [esp]
add esp, 0x1b0
ret
Function at 0x408bb0
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 0x408be0
mov eax, 1
pop edi
add esp, 0x10
ret
mov edx, dword [0x41df08]
lea ecx, [esp + 0x10]
push ebp
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x1c], eax
je 0x408d31
push eax
call fcn.004123e0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x408d31
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x41df08]
push ebx
push esi
push ebp
push eax
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x408d26
mov al, byte [edi + 8]
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
test al, 2
je 0x408cb8
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x4197a4
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x408cb8
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x28]
mov eax, dword [edx + 8]
cmp eax, ecx
ja 0x408c76
jne 0x408cb8
mov edx, dword [edx + 0xc]
mov eax, dword [edi + 0x2c]
cmp edx, eax
jbe 0x408cb8
push 0x1d
push 7
call fcn.00403760
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x408d1e
mov ecx, dword [0x41e194]
test ecx, ecx
jne 0x408d1e
mov ecx, dword [0x41df08]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.00403720
add esp, 0x14
cmp eax, 6
jne 0x408d1e
mov eax, dword [0x41e194]
test eax, eax
jne 0x408d26
test byte [edi + 8], 4
je 0x408d26
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 0x408d26
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x38]
xor ecx, ecx
mov cx, word [edx]
cmp eax, ecx
je 0x408d26
push 0x1e
push 7
call fcn.00403760
add esp, 8
test eax, eax
je 0x408d26
mov ecx, dword [0x41df08]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.00403720
add esp, 0x14
cmp eax, 6
je 0x408d26
mov dword [esp + 0x10], 0
push ebp
call fcn.00412543
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 0x408dd0
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 0x408e79
lea ecx, [esp + 0xc]
lea edx, [esp]
push ecx
mov ecx, dword [0x41df08]
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 0x408e3c
inc dword [esp]
jmp 0x408e4c
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 [0x41df08]
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 0x409560
Capabilities:
Set registry value

Disassembly:
sub esp, 0x1c
call fcn.00406770
test eax, eax
je 0x4095eb
call fcn.00408e80
test eax, eax
je 0x4095e3
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 0x4095d6
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call edi
test eax, eax
je 0x4095c3
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 0x4095a4
call fcn.00408e80
test eax, eax
jne 0x409591
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
jmp fcn.00408210
add esp, 0x1c
ret
Function at 0x40a7f0
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x318
push esi
mov esi, dword [esp + 0x320]
test esi, esi
je 0x40a810
push 0x180
push esi
call fcn.004120fc
add esp, 8
mov eax, dword [0x41e124]
test eax, eax
je 0x40a85b
test esi, esi
jne 0x40a83c
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 0x40a88e
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 0x40a8f0
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 0x4197f8
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 0x40aa08
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 0x40a9fe
mov esi, dword [esp + 0x10]
push ebx
push esi
push ebp
call fcn.00401180
add esp, 0xc
test eax, eax
jne 0x40a9f1
add ebx, 0xfffffffc
mov edx, esi
test ebx, ebx
jbe 0x40a9f1
mov eax, 0xfffffffe
sub eax, esi
mov dword [esp + 0x18], eax
cmp byte [edx], 0x78
jne 0x40a9c0
cmp byte [edx + 1], 0x79
jne 0x40a9c0
cmp byte [edx + 2], 0x7a
jne 0x40a9c0
cmp byte [edx + 3], 0x3d
jne 0x40a9c0
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 0x40a9cb
mov eax, dword [esp + 0x18]
inc edx
lea ecx, [eax + edx + 2]
cmp ecx, ebx
jb 0x40a984
jmp 0x40a9f1
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 0x40bdf0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, dword [0x41df04]
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 0x40be36
push str.parent
push eax
call fcn.00412070
add esp, 8
test eax, eax
je 0x40be31
mov ecx, dword [esi + 0x1e]
mov edx, dword [0x41e184]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40be25
jmp 0x40be36
mov edi, 1
mov eax, dword [esi + 0x16]
test eax, eax
je 0x40bea1
mov ecx, dword [esi + 0x12]
cmp ecx, 0x10
jb 0x40be4d
mov ecx, dword [0x419294]
jmp 0x40be54
mov ecx, dword [ecx*4 + 0x419290]
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 0x40bea1
mov ecx, dword [0x41df04]
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 [0x41df04]
cmp byte [edx], 0
jne 0x40bf11
mov eax, dword [esi + 0x26]
test eax, eax
je 0x40bf08
mov eax, dword [esi + 0x2a]
test eax, eax
je 0x40bf08
mov eax, dword [esi + 0x2e]
test eax, eax
je 0x40bf08
mov ecx, dword [0x41e184]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40bec7
mov eax, dword [esi + 0x26]
mov ecx, dword [0x41e184]
mov edx, dword [0x41df04]
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 [0x41df04]
test eax, eax
jne 0x40bf08
mov byte [edx], al
mov edx, dword [0x41df04]
cmp byte [edx], 0
je 0x40bfc3
push edx
call fcn.004125d8
add esp, 4
test eax, eax
je 0x40bf7a
mov eax, dword [0x41df04]
push 0x5c
push eax
call fcn.00412290
mov esi, eax
add esp, 8
test esi, esi
je 0x40bf71
lea ecx, [esi + 1]
push 0x2e
push ecx
call fcn.004122d0
add esp, 8
test eax, eax
je 0x40bf66
mov byte [esi], 0
mov edx, dword [0x41df04]
push edx
call fcn.004125d8
add esp, 4
test eax, eax
je 0x40bf7a
mov eax, dword [0x41df04]
mov byte [eax], 0
jmp 0x40bf7a
mov ecx, dword [0x41df04]
mov byte [ecx], 0
jmp 0x40bf7a
mov edx, dword [0x41df04]
mov byte [edx], 0
mov eax, dword [0x41df04]
cmp byte [eax], 0
je 0x40bfc3
test edi, edi
je 0x40bf9a
push 0x5c
push eax
call fcn.00412290
add esp, 8
test eax, eax
je 0x40bf9a
mov byte [eax], 0
mov ecx, dword [0x41df04]
mov edx, dword [0x41e184]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40bfa6
mov eax, dword [0x41e184]
cmp byte [eax], 0
je 0x40bfc8
push eax
call fcn.0040bfe0
add esp, 4
mov eax, dword [0x41e184]
push 0x104
push eax
push eax
call fcn.00407b20
add esp, 0xc
pop edi
pop esi
add esp, 8
ret
Function at 0x4120fc
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 0x412127
test byte [esp + 8], 0x80
je 0x412116
and al, 0xfe
jmp 0x412118
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x412138
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041323a
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41225d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041323a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41227e
test byte [esp + 8], 2
je 0x41227e
mov dword [0x41e1b8], 0xd
mov dword [0x41e1bc], 5
jmp 0x412259
xor eax, eax
ret

Function at 0x415e35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41de50
cmp edx, dword [eax]
je 0x415e57
add eax, 8
inc ecx
cmp eax, 0x41dee0
jl 0x415e48
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41de50]
jne 0x415f85
mov eax, dword [0x41e20c]
cmp eax, 1
je 0x415f5f
test eax, eax
jne 0x415e88
cmp dword [0x41b8e4], 1
je 0x415f5f
cmp edx, 0xfc
je 0x415f85
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x415ebf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00416810
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004154e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x415f02
lea eax, [ebp - 0x1a4]
push eax
call fcn.004154e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x419638
push edi
call fcn.00412810
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00416810
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00416820
lea eax, [ebp - 0xa0]
push 0x417af4
push eax
call fcn.00416820
push dword [esi + 0x41de54]
lea eax, [ebp - 0xa0]
push eax
call fcn.00416820
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00416c35
add esp, 0x2c
pop edi
jmp 0x415f85
lea eax, [ebp + 8]
lea esi, [esi + 0x41de54]
push 0
push eax
push dword [esi]
call fcn.004154e0
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 0x298068a3
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x298529aa
call fcn.29802379
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x298069b3
cmp byte [edi + 0x3d], bl
je 0x298069b3
mov eax, dword [edi]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x298583e0]
mov ecx, edi
call esi
cmp eax, 0xffffffff
jne 0x298068e4
xor al, al
jmp 0x298069b5
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.2980706a
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x14]
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x38]
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x2980693d
sub eax, 1
je 0x29806940
dec eax
sub eax, 1
jne 0x298069a0
inc eax
jmp 0x2980699e
mov byte [edi + 0x3d], bl
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edx, dword [ebp - 0x2c]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x30], edx
je 0x2980697c
push dword [edi + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, dword [ebp - 0x30]
add esp, 0x10
cmp edx, eax
jne 0x2980699c
mov esi, dword [ebp - 0x14]
cmp byte [edi + 0x3d], 0
je 0x2980699a
test edx, edx
jne 0x29806902
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.29806fa0
jmp 0x298068ff
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 4
call fcn.2984061f
mov al, bl
jmp 0x298069b5
mov al, 1
call fcn.29802cf8
ret
Function at 0x298076c0
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x29852b5e
call fcn.29802379
mov ebx, ecx
or edi, 0xffffffff
cmp dword [ebp + 8], edi
jne 0x298076dd
xor eax, eax
jmp 0x29807843
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
test eax, eax
je 0x29807711
mov eax, dword [ebx + 0x30]
mov ecx, ebx
mov edx, dword [ebx + 0x20]
mov esi, dword [eax]
add esi, dword [edx]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp eax, esi
jae 0x29807711
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov ecx, dword [ebp + 8]
mov byte [eax], cl
mov eax, ecx
jmp 0x29807843
cmp dword [ebx + 0x4c], 0
je 0x29807841
mov ecx, ebx
call fcn.29806d41
xor ecx, ecx
cmp dword [ebx + 0x38], ecx
jne 0x29807745
push dword [ebx + 0x4c]
mov ebx, dword [ebp + 8]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x29807841
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x29], al
mov dword [ebp - 0x14], 0xf
call fcn.2980706a
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp esi, 0x10
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x29]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x29807832
cmp eax, 1
jg 0x29807817
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edx, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x298077e8
push dword [ebx + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, dword [ebp - 0x34]
add esp, 0x10
cmp edx, eax
jne 0x29807832
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x29]
mov byte [ebx + 0x3d], 1
cmp dword [ebp - 0x38], eax
jne 0x29807812
test edx, edx
jne 0x2980776a
cmp dword [ebp - 0x18], 0x20
jae 0x29807832
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.29806fa0
jmp 0x29807767
mov edi, dword [ebp + 8]
jmp 0x29807832
cmp eax, 3
jne 0x29807832
push dword [ebx + 0x4c]
movsx eax, byte [ebp - 0x29]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
cmovne edi, dword [ebp + 8]
pop ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 5
call fcn.2984061f
mov eax, edi
call fcn.29802cf8
ret 4
Function at 0x2984061f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x2984062e
pop dword [ebp - 0x24]
mov eax, 0x688b3063
sub eax, 0x3f072a35
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xa6313e1e
add dword [ebp - 0x34], 0xa821072d
mov dword [ebp - 0x30], 0xfe196bf0
add dword [ebp - 0x30], 0x3419e055
mov dword [ebp - 0x2c], 0xf1399789
sub dword [ebp - 0x2c], 0xa4ed535b
mov dword [ebp - 0x28], 0x946b1b8f
sub dword [ebp - 0x28], 0x946b1b8f
lea eax, [ebp - 0x34]
push eax
mov eax, 0x8a331c3d
sub eax, 0x60ad9b7d
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xcc68740f
add dword [ebp - 0x34], 0xa809f547
mov dword [ebp - 0x30], 0xe5cb8c38
sub dword [ebp - 0x30], 0xa45f2ac3
mov dword [ebp - 0x2c], 0xa0a30be8
add dword [ebp - 0x2c], 0xc2cc6084
mov dword [ebp - 0x28], 0xd00db385
add dword [ebp - 0x28], 0x2ff24c7b
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x90b03bc9
sub eax, 0x672abb11
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x473e3
push 0
call eax
mov ecx, 0xa647ff03
sub ecx, 0xa647b8ea
mov edx, eax
mov esi, 0xa8fc613f
add esi, 0x808d24c1
add esi, dword [ebp - 0x24]
mov ebx, 0xfbed582c
sub ebx, 0x3a9750d4
xor dword [ebp - 4], edi
mov edi, dword [esi]
add dword [ebp - 0x18], edx
sub edi, ebx
add dword [ebp - 0x1c], esi
mov dword [edx], edi
add dword [ebp - 0xc], 0x508ac3b8
add edx, 0xcb8241ea
add edx, 0x347dbe1a
add esi, 4
loop 0x29840750
add eax, 0x7e5f050b
add eax, 0x81a2062c
mov ebx, eax
add eax, 0xf4c6d499
sub eax, 0xf4c6d494
mov ecx, 0x29800000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x429740
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d000]
push edi
or ebp, 0xffffffff
jmp 0x429762
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x429769
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x429758
mov eax, 1
add ebx, ebx
jne 0x42977b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x429770
jne 0x42978c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429770
xor ecx, ecx
sub eax, 3
jb 0x4297a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x429812
mov ebp, eax
add ebx, ebx
jne 0x4297ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4297b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4297dc
inc ecx
add ebx, ebx
jne 0x4297c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4297bd
jne 0x4297d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4297bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4297fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4297ed
jmp 0x42975e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4297fc
add edi, ecx
jmp 0x42975e
pop esi
mov edi, esi
mov ecx, 0xf4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42981a
cmp byte [edi], 5
jne 0x42981a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x42981f
lea edi, [esi + 0x27000]
mov eax, dword [edi]
or eax, eax
je 0x42988e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2a0c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2a168]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42984c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2a16c]
or eax, eax
je 0x429888
mov dword [ebx], eax
add ebx, 4
jmp 0x429869
call dword [esi + 0x2a170]
popal
jmp section.UPX0