joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b3d49
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.005b3cc5
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5b3eb8
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5b3eb8
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5b3e6d
jg 0x5b3da5
test eax, eax
je 0x5b3e63
push 1
push 0x1000
call fcn.005aa5c2
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5b3dc8
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5b3e5a
push 0x8000
push ebx
call fcn.0059e547
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5b3df1
jg 0x5b3dec
cmp ecx, 0x1000
jb 0x5b3df1
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005a98e4
add esp, 0x10
cmp eax, 0xffffffff
je 0x5b3e36
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5b3dec
jl 0x5b3e1d
test ecx, ecx
jne 0x5b3dde
push dword [ebp - 0xc]
push ebx
call fcn.0059e547
push esi
call fcn.005aa6dc
add esp, 0xc
xor ebx, ebx
jmp 0x5b3ec6
cmp byte [edi + 0x24], 0
je 0x5b3e4d
cmp dword [edi + 0x20], 5
jne 0x5b3e4d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5b3e58
mov ebx, dword [edi + 0x18]
jmp 0x5b3e5a
xor ebx, ebx
push esi
call fcn.005aa6dc
pop ecx
jmp 0x5b3ec6
test ecx, ecx
jg 0x5b3e2f
jl 0x5b3e6d
test eax, eax
jae 0x5b3e2f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005ad672
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5b3e8d
cmp byte [edi + 0x1c], 0
je 0x5b3e2f
jmp 0x5b3ebe
push ebx
call fcn.005af31b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5b3e2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5b3ec6
cmp byte [edi + 0x1c], 0
je 0x5b3ec3
mov ebx, dword [edi + 0x18]
jmp 0x5b3ec6
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005ad672
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5b87f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5b881d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5b881d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404ac0
Capabilities:
Get common file path
Get disk information
Get hostname
Get memory capacity
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1d60
call fcn.0040fc60
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x4963c8]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x4963cc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.00404ab0
mov ecx, dword [0x4963d0]
mov edx, dword [0x4963d4]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404b30
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x4a48c4]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x404b5c
mov dword [0x4a48c0], 0xedeb2e40
jmp 0x404b77
cmp eax, 0x3eb
jne 0x404b77
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x4a4350], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x4a48c4], 0x9e6
mov dword [0x4a48bc], 0xf4ea3dee
jne 0x404bb2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x4a48c4], 0x213
jne 0x404c53
push 0
lea eax, [ebp - 0x1560]
push eax
push 0
push 0x4047c8
push 0
push 0
call ebx
lea ecx, [ebp - 0x960]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x1160]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
push 0
lea ecx, [ebp - 0x1d60]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
lea edx, [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
lea ecx, [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub edi, dword [ebp - 4]
cmp dword [0x4a48c4], 0xc
jne 0x404c71
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 8]
mov edx, edi
shr edx, 5
lea ecx, [eax + edi]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
xor eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404b30
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404cc0
Capabilities:
Create pipe
Create process on windows
Get thread local storage value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1408
call fcn.0040fc60
mov eax, dword [0x4a48c4]
mov ecx, dword [0x4a4354]
shr eax, 3
test eax, eax
jbe 0x404ddc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x4a48c4], 0x959
jne 0x404dc2
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0x1408]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0xc08]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404ac0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404d00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408e2c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x495540]
jne 0x408e36
repz ret
jmp fcn.0040d0eb

Function at 0x40c123
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a4cd
and dword [ebp - 4], 0
cmp dword [0x49b5a0], 0
mov ebx, eax
jne 0x40c1d4
push 0x4024fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c285
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024f0
push edi
call esi
test eax, eax
je 0x40c285
push eax
call fcn.0040a45b
mov dword [esp], 0x4024e0
push edi
mov dword [0x49b5a0], eax
call esi
push eax
call fcn.0040a45b
mov dword [esp], 0x4024cc
push edi
mov dword [0x49b5a4], eax
call esi
push eax
call fcn.0040a45b
mov dword [esp], 0x4024b0
push edi
mov dword [0x49b5a8], eax
call esi
push eax
call fcn.0040a45b
pop ecx
mov dword [0x49b5b0], eax
test eax, eax
je 0x40c1d4
push 0x402498
push edi
call esi
push eax
call fcn.0040a45b
pop ecx
mov dword [0x49b5ac], eax
mov eax, dword [0x49b5ac]
cmp eax, ebx
je 0x40c22c
cmp dword [0x49b5b0], ebx
je 0x40c22c
push eax
call fcn.0040a4d6
push dword [0x49b5b0]
mov esi, eax
call fcn.0040a4d6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c22c
test edi, edi
je 0x40c22c
call esi
test eax, eax
je 0x40c223
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c223
test byte [ebp - 0xc], 1
jne 0x40c22c
or dword [ebp + 0x10], 0x200000
jmp 0x40c265
mov eax, dword [0x49b5a4]
cmp eax, ebx
je 0x40c265
push eax
call fcn.0040a4d6
pop ecx
test eax, eax
je 0x40c265
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c265
mov eax, dword [0x49b5a8]
cmp eax, ebx
je 0x40c265
push eax
call fcn.0040a4d6
pop ecx
test eax, eax
je 0x40c265
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49b5a0]
call fcn.0040a4d6
pop ecx
test eax, eax
je 0x40c285
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c287
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1ebf108
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1ebf112
add byte [eax], al
pushal
call 0x1ebf118
pop ebp
sub ebp, 0x10
sub ebp, 0x1abf108
jmp 0x1ebf12e
mov eax, 0x1abf108
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b5
mov edx, 0x839f1e98
xor byte [eax], dl
inc eax
dec ecx
jne 0x1ebf145
jmp 0x1ebf158
adc edx, dword [ebp + 0x13]
adc dword [eax + ebx*4 + 0x59199898], esp
pushal
cwde
cwde
cwde
wait
push ebp
and byte [eax + ebx*4 - 0x4fdd6768], bl
cwde
cwde
cwde
outsd dx, dword [esi]
jp 0x1ebf110
push eax
adc ebx, dword [ecx]
xchg esp, eax
cwde
cwde
cwde
wait
pop ebp
enter 0xfffffffffffff0c8, 0xffffffffffffffac
push 0xffffffffffffffce
cwde
invalid

Function at 0x40c470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40c492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c488
mov eax, 1
add ebx, ebx
jne 0x40c4ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c4a0
jne 0x40c4bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4a0
xor ecx, ecx
sub eax, 3
jb 0x40c4d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c542
mov ebp, eax
add ebx, ebx
jne 0x40c4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c4e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c50c
inc ecx
add ebx, ebx
jne 0x40c4f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c4ed
jne 0x40c509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c52c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c51d
jmp 0x40c48e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c52c
add edi, ecx
jmp 0x40c48e
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c54a
cmp byte [edi], 1
jne 0x40c54a
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 0x40c54f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c5c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd70c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd748]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c57c
mov ecx, edi
jns 0x40c5ab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd74c]
or eax, eax
je 0x40c5c1
mov dword [ebx], eax
add ebx, 4
jmp 0x40c599
call dword [esi + 0xd750]
popal
jmp 0x401128
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x55136f3c
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x431060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x16551867
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x4157a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5941e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
mov eax, dword [0x601ffc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415828
lea eax, [ebp + 8]
mov edx, str.Cant_find_ini_path:
push eax
lea ecx, [ebp - 0x24]
call fcn.00416dc0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4157ff
mov eax, dword [eax]
push 0
push 0x5df5d0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x10]
cmp eax, 8
jb 0x415824
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.004030d0
xor bl, bl
jmp 0x41582a
mov bl, 1
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x41583f
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.004030d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x418f40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59471a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x601ffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.0056b80d
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x419000
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0056e2e1
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x5fcb9c
push eax
call fcn.0056f376
push edi
push esi
call fcn.0056bb55
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056a31e
mov esp, ebp
pop ebp
ret 4
Function at 0x41ad10
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x601ffc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ebx
cmovae eax, dword [ebp + 8]
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
movzx esi, cx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41ad5b
xor bl, bl
jmp 0x41ada0
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push edi
cmovae eax, dword [ebp + 0x20]
push eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
pop edi
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x41adb5
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004030d0
mov ecx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
cmp ecx, 8
jb 0x41adde
inc ecx
push ecx
push dword [ebp + 0x20]
lea ecx, [ebp + 0x20]
call fcn.004030d0
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0056a31e
mov esp, ebp
pop ebp
ret

Function at 0x41b100
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x601ffc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x214]
push edi
mov edi, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push 0x104
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x41b207
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, 0x105
jae 0x41b218
mov byte [ebp + eax - 0x210], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 2
mov dword [ebp - 0x22c], eax
test edi, edi
je 0x41b1bd
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, 0x104
jae 0x41b218
mov byte [ebp + eax - 0x108], 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x228], eax
jmp 0x41b1c7
mov dword [ebp - 0x228], 0
mov eax, 0x14
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x41b1f5
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056a31e
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.0056a31e
mov esp, ebp
pop ebp
ret
call fcn.0056a940
int3
Function at 0x41b220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594a98
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x601ffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x60db40]
cmp eax, dword [ecx + 4]
jle 0x41b2b4
push 0x60db40
call fcn.0056a4b1
add esp, 4
cmp dword [0x60db40], 0xffffffff
jne 0x41b2b4
xor eax, eax
mov dword [0x60db84], 7
push 0x5a2aa0
mov dword [0x60db80], 0
mov word [0x60db70], ax
call fcn.0056a808
add esp, 4
push 0x60db40
call fcn.0056a472
add esp, 4
cmp dword [0x60db80], 0
mov esi, 0x60db70
jne 0x41b343
push 0
push 0x23
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x218], 0
jne 0x41b2e7
xor ecx, ecx
jmp 0x41b2ff
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b2f0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00402fd0
push 5
push 0x5dfb4c
mov ecx, esi
call fcn.00407830
cmp dword [0x60db84], 8
mov eax, esi
cmovae eax, dword [0x60db70]
push eax
call fcn.00576952
add esp, 4
mov ecx, esi
push 0xe
push 0x5dfb64
call fcn.00407830
cmp dword [0x60db84], 8
push 0x5dfb60
cmovae esi, dword [0x60db70]
push esi
call fcn.005714a8
add esp, 8
mov esi, eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
movzx eax, word [ebp - 0x21a]
cmovae ecx, dword [ebp + 8]
push ecx
push eax
movzx eax, word [ebp - 0x21c]
push eax
movzx eax, word [ebp - 0x21e]
push eax
movzx eax, word [ebp - 0x220]
push eax
push str._02d:_02d:_02d._3d__s_n
push esi
call fcn.00418e00
add esp, 0x1c
push esi
call fcn.00571535
mov eax, dword [ebp + 0x1c]
add esp, 4
cmp eax, 0x10
jb 0x41b3c6
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004023b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056a31e
mov esp, ebp
pop ebp
ret
Function at 0x41b3e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x601ffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x60dbc8]
cmp eax, dword [ecx + 4]
jle 0x41b474
push 0x60dbc8
call fcn.0056a4b1
add esp, 4
cmp dword [0x60dbc8], 0xffffffff
jne 0x41b474
xor eax, eax
mov dword [0x60db3c], 7
push 0x5a2b00
mov dword [0x60db38], 0
mov word [0x60db28], ax
call fcn.0056a808
add esp, 4
push 0x60dbc8
call fcn.0056a472
add esp, 4
cmp dword [0x60db38], 0
mov esi, 0x60db28
jne 0x41b503
push 0
push 0x23
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x218], 0
jne 0x41b4a7
xor ecx, ecx
jmp 0x41b4bf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b4b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00402fd0
push 5
push 0x5dfb4c
mov ecx, esi
call fcn.00407830
cmp dword [0x60db3c], 8
mov eax, esi
cmovae eax, dword [0x60db28]
push eax
call fcn.00576952
add esp, 4
mov ecx, esi
push 0xe
push 0x5dfb64
call fcn.00407830
cmp dword [0x60db3c], 8
push 0x5dfb60
cmovae esi, dword [0x60db28]
push esi
call fcn.005714a8
add esp, 8
mov esi, eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
movzx eax, word [ebp - 0x21a]
cmovae ecx, dword [ebp + 8]
push ecx
push eax
movzx eax, word [ebp - 0x21c]
push eax
movzx eax, word [ebp - 0x21e]
push eax
movzx eax, word [ebp - 0x220]
push eax
push 0x5dfb84
push esi
call fcn.00418d80
add esp, 0x1c
push esi
call fcn.00571535
mov eax, dword [ebp + 0x1c]
add esp, 4
cmp eax, 8
jb 0x41b586
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004030d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056a31e
mov esp, ebp
pop ebp
ret