joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x40892d
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
inc edx
call fcn.00408950
add edx, ebx
xor dword [eax], esi
mov ebx, ebx
inc eax
add ebx, edx
cmp eax, ecx
jne fcn.0040892d
sub ebx, 0x4a2e661b
ret

Function at 0x5d8a9a
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x5d87dc
inc edx
dec esi
call fcn.005d8ad6
mov edx, 0x88a0e6
sub esi, esi
mov edx, esi
xor dword [eax], edi
inc edx
add esi, edx
add eax, 2
mov edx, edx
sub edx, esi
inc esi
cmp eax, ecx
jl fcn.005d8a9a
mov esi, 0x7ed214ed
mov esi, edx
add esi, edx
ret
Function at 0x10010d00
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10010ec4
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x10010d2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10010d31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10010d20
mov eax, 1
add ebx, ebx
jne 0x10010d43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10010d38
jne 0x10010d54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10010d38
xor ecx, ecx
sub eax, 3
jb 0x10010d68
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10010dda
mov ebp, eax
add ebx, ebx
jne 0x10010d73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10010d80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10010da4
inc ecx
add ebx, ebx
jne 0x10010d90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10010d85
jne 0x10010da1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10010d85
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10010dc4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10010db5
jmp 0x10010d26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10010dc4
add edi, ecx
jmp 0x10010d26
pop esi
mov edi, esi
mov ecx, 0x25a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10010de2
cmp byte [edi], 5
jne 0x10010de2
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 al, bl
loop 0x10010de7
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x10010e56
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x101b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10208]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10010e14
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1020c]
or eax, eax
je 0x10010e50
mov dword [ebx], eax
add ebx, 4
jmp 0x10010e31
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10010e87
cmp al, 0xef
ja 0x10010e7a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10010e5c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10010e69
mov ebp, dword [esi + 0x10210]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x10010ebb
sub esp, 0xffffff80
jmp 0x100019db
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4019c3
Capabilities:
Hide graphical window

Disassembly:
push ebp
sub esp, 0x40
push esp
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
add esp, 0x40
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
loop 0x4019da
push esp
mov eax, 0x400000
mov dword [0x403160], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0x401719
mov dword [ebp - 4], str.risiliency
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x403160]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.ebsement
push str.risiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403168], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a78
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a5f
pop ebp
ret 0x10
Function at 0x4030d4
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
xor esi, esi
push esi
push dword [esp + 0x14]
push dword [esp + 0x14]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esp + 0xc], eax
je 0x40316c
push ebx
push ebp
mov ebp, 0x425e7c
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x42564c]
test esi, esi
mov ebx, 0x42564c
je 0x403144
push edi
push 0
lea edi, [esi + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40313d
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi]
push edi
push ebx
call fcn.0040e06a
pop ecx
pop ecx
jmp 0x40313f
mov esi, dword [esi]
test esi, esi
jne 0x403117
pop edi
mov esi, dword [0x4222fc]
inc dword [0x4222fc]
push 0x10
push ebx
call fcn.0040e027
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
push ebp
mov dword [eax], ecx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 8

Function at 0x40667b
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x406693
push dword [esp + 4]
push 0x406614
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x4066d0
push esi
mov esi, dword [0x425760]
test esi, esi
je 0x4066cf
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x4066c7
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x425760
call fcn.0040e06a
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x4066a0
pop edi
pop ebx
pop esi
ret 4
Function at 0x40aa91
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
ret
Function at 0x40d210
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 9
call esi
test al, al
jns 0x40d27e
push 0x11
call esi
test al, al
js 0x40d27e
push 0x10
call esi
test al, al
js 0x40d27e
push 0x12
call esi
test al, al
js 0x40d27e
mov esi, dword [sym.imp.USER32.dll_GetFocus]
push 5
lea eax, [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 4
lea eax, [ebp - 8]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40d27e
push eax
push eax
push 0x44e
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test ax, 0x800
je 0x40d2a2
push str.PB_WindowID
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x40d2a2
dec eax
push eax
push dword [0x425eec]
call fcn.0040dedd
mov eax, dword [eax + 0xc]
jmp 0x40d2a4
xor eax, eax
pop esi
leave
ret 4

Function at 0x40d334
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push esi
or esi, 0xffffffff
test eax, eax
push edi
mov edi, esi
je 0x40d445
cmp byte [eax], 0
je 0x40d445
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp eax, 2
lea ecx, [ebp + eax - 0x109]
je 0x40d38e
cmp eax, 3
jne 0x40d3cb
cmp byte [ebp - 0x107], 0x3a
jne 0x40d3cb
cmp eax, 2
jne 0x40d3af
lea eax, [ebp - 0x108]
push 0x41e244
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x40d445
jmp 0x40d43f
mov byte [ecx], 0
dec ecx
cmp byte [ecx], 0x5c
je 0x40d3c7
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40d417
test byte [ebp - 0x248], 0x10
je 0x40d3fa
push 0xfffffffffffffffe
pop edi
or esi, 0xffffffff
jmp 0x40d40e
mov ecx, dword [ebp - 0x228]
mov esi, dword [ebp - 0x22c]
xor edi, edi
xor edx, edx
or edi, ecx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40d445
cmp byte [ebp - 0x108], 0x5c
jne 0x40d445
cmp byte [ebp - 0x107], 0x5c
jne 0x40d445
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d445
test al, 0x10
je 0x40d445
push 0xfffffffffffffffe
or esi, 0xffffffff
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4
Function at 0x40d4f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
cmp dword [0x425e74], ebx
jne 0x40d51e
push fcn.0040d4c3
push 0x10
push 0x148
call fcn.0040df3e
mov dword [0x425e74], eax
mov esi, dword [ebp + 0xc]
cmp esi, ebx
jne 0x40d52a
mov esi, 0x41e00b
push 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call sub.MSVCRT.dll_strncpy
push esi
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp eax, ebx
je 0x40d566
cmp byte [eax + esi - 1], 0x5c
je 0x40d566
lea eax, [ebp - 0x108]
push 0x41e244
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x40d571
cmp byte [eax], bl
jne 0x40d576
mov eax, 0x41e248
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push dword [ebp + 8]
push dword [0x425e74]
call fcn.0040de79
mov esi, eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x40d5b2
mov dword [esi + 4], ebx
jmp 0x40d5c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40d5c8
mov dword [esi + 4], 1
mov edi, esi
jmp 0x40d5dc
cmp dword [ebp + 8], 0xffffffff
jne 0x40d5da
push esi
push dword [0x425e74]
call fcn.0040df08
mov dword [esi], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40d6f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x40d725
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x40e397
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
xor ebp, ebp
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40e408
push ebx
mov ebx, dword [esp + 0xc]
cmp ebx, ebp
push esi
push edi
jne 0x40e3b5
mov ebx, 0x41e00b
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
lea edi, [eax + 1]
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x40e3ff
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40e3ff
push edi
push ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov eax, ebp
pop ebp
ret 4
Function at 0x403d53
Capabilities:
Execute anti-debugging instructions

Disassembly:
dec esp
mov ecx, 0x12018088
mov eax, 0xf5
mov dword [ebp - 0x10], eax
and ecx, eax
and dword [ebp - 0x10], ecx
push ebx
mov eax, 0x28
mov eax, dword [ebp - 0x10]
sub eax, ecx
and eax, ecx
add dword [ebp - 0x10], eax
push esi
cmp eax, 5
jne 0x403d7f
add dword [ebp - 0x10], ecx
push edi
mov esi, eax
and esi, ecx
and esi, ecx
add dword [ebp - 0x10], eax
test esi, 0x88
je 0x403d94
sub dword [ebp - 0x10], esi
mov ecx, dword [ebp - 0x10]
mov esi, 0xf5
and esi, eax
sub dword [ebp - 0x10], ecx
cmp eax, 0xffffffc9
je 0x403f13
cmp esi, dword [ebp - 0x18]
je 0x403f13
mov eax, 9
cmp esi, ecx
je 0x403f13
add esi, esi
mov ecx, dword [ebp - 0x10]
cmp esi, 0xffffffaa
jne 0x403f13
mov edi, dword [ebp - 0x10]
mov ebx, dword [0x40a168]
sub esi, eax
cmp edi, dword [ebp - 0x34]
jne 0x403f13
sub edi, ecx
sub edi, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
or edx, eax
add esi, eax
and ebx, edx
test edi, 0x98
je 0x403f13
mov edx, 0xec
add dword [ebp - 0x10], eax
cmp ebp, dword [eax - 0x5f]
inc eax
add byte [edi], cl
test dword [ecx], eax
add dword [eax], eax
add byte [ebx], ch
invalid
invalid
Function at 0x405412
Capabilities:
Contain obfuscated stackstrings
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x405438
jmp 0x40554e
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0xffffffff
jne 0x405458
jmp 0x40554e
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov al, byte [ebp - 4]
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040a54e
add esp, 4
mov dword [0x4100a0], 0
mov dword [ebp - 0x420], 0x646c6f47
mov dword [ebp - 0x41c], 0x6f736e65
mov byte [ebp - 0x418], 0x66
mov dword [ebp - 0x20], 0
jmp 0x4054a5
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 9
jge 0x4054c5
mov eax, dword [ebp - 0x20]
movsx eax, byte [eax + ebp - 0x420]
xor al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov byte [ecx + ebp - 0x420], al
jmp 0x4054a2
mov al, byte [ebp - 0x1c]
mov byte [ebp - 0x417], al
push 0xa
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll__lread]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40552d
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0040a0f1
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
jmp 0x4054e1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405553
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call fcn.00409e8d
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00409f15
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
call fcn.0040a78c
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 2
jne 0x4055d6
cmp dword [0x4102d2], 1
jne 0x4055d6
cmp dword [ebp - 0xc], 0
je 0x4055d6
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00405412
add esp, 8
jmp 0x4055e5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 0x14], eax
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 8
Function at 0x4057d3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
jmp 0x40581b
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1e
jge 0x405841
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp dword [eax*4 + 0x4100a4], ecx
jne 0x40583f
cmp dword [ebp - 0xc], 0
je 0x40583d
mov eax, dword [ebp - 0xc]
add dword [eax + 8], 0xa
jmp 0x405841
jmp 0x405818
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jne 0x4058e4
mov dword [ebp - 0x18], 0
jmp 0x40586f
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1e
jge 0x4058e4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp dword [eax*4 + 0x4100a4], ecx
jne 0x4058e2
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx*4 + 0x4101b2]
cmp dword [eax*4 + 0x41013a], ecx
jb 0x4058d1
mov eax, dword [ebp - 0x10]
cmp dword [0x4100a0], eax
je 0x4058bf
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x41011c]
push eax
call fcn.0040a54e
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [0x4100a0], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0040a0a5
add esp, 8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
add dword [ecx*4 + 0x41013a], eax
jmp 0x4058e4
jmp 0x40586c
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 0x14
Function at 0x4058f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
jmp 0x405943
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1e
jge 0x4059a5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
cmp dword [eax*4 + 0x4100a4], ecx
jne 0x4059a3
mov eax, dword [ebp - 0xc]
cmp dword [0x4100a0], eax
je 0x40597d
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x41011c]
push eax
call fcn.0040a54e
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x4100a0], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0040a0f1
add esp, 8
mov dword [ebp - 0x10], 1
cmp dword [ebp - 8], 0
je 0x4059a1
mov eax, dword [ebp - 8]
add dword [eax + 8], 0xa
jmp 0x4059a5
jmp 0x405940
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x4059d3
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0040a0a5
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 0x14