joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402040
Capabilities:
Delete file

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, dword [esp + 0x28]
push edi
push 0x1000
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x409330
mov dword [0x40a330], esi
push esi
call edi
push str.___MIDI_BEGINS_HERE
push 0x409330
call fcn.00401bf0
add esp, 8
mov eax, dword [0x40a330]
push 0x1000
push 0x409330
push eax
call edi
push str.___WAVE_BEGINS_HERE
push 0x409330
call fcn.00401d70
add esp, 8
mov eax, dword [0x40a330]
push 0x1000
push 0x409330
push eax
call edi
push 0xa
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
push str.___GIF_BEGINS_HERE
push 0x409330
call fcn.00401ec0
add esp, 8
test eax, eax
je 0x40212c
push esi
call fcn.004018f0
add esp, 4
test eax, eax
je 0x40212c
mov eax, dword [esp + 0x38]
push eax
push esi
call fcn.00401980
add esp, 8
test eax, eax
je 0x40212c
lea eax, [esp + 0xc]
push 0
push 0
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push eax
call esi
test eax, eax
je 0x402134
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0xc]
push eax
call edi
lea eax, [esp + 0xc]
push eax
call ebx
lea eax, [esp + 0xc]
push 0
push 0
push 0
push eax
call esi
test eax, eax
jne 0x40210b
jmp 0x402134
mov dword [esp + 0x14], 0
cmp dword [0x409320], 0
je 0x402149
mov eax, dword [0x409320]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00401240
push 0xa
call dword [sym.imp.WINMM.dll_timeEndPeriod]
mov ecx, 0x40a338
call fcn.004026f0
mov ecx, 0x408ed0
call fcn.004029f0
mov eax, dword [0x40a754]
test eax, eax
je 0x40217a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp byte [0x409218], 0
je 0x402192
push 0x409218
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
jmp 0x402198
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [0x409118], 0
je 0x4021a8
push 0x409118
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x403250
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x404c90
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x408170], eax
xor eax, eax
mov al, byte [0x408171]
mov dword [0x40817c], eax
mov eax, dword [0x408170]
shr dword [0x408170], 0x10
and eax, 0xff
mov dword [0x408178], eax
shl eax, 8
add eax, dword [0x40817c]
mov dword [0x408174], eax
call fcn.00404c70
mov dword [ebp - 4], 0
call fcn.00404a90
call fcn.00404a80
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40fadc], eax
call fcn.00404620
mov dword [0x408134], eax
test eax, eax
je 0x4032e9
cmp dword [0x40fadc], 0
jne 0x4032f3
push 0xffffffffffffffff
call fcn.00403ff0
add esp, 4
call fcn.004043a0
call fcn.004042c0
call fcn.00403fc0
mov esi, dword [0x40fadc]
mov al, byte [esi]
cmp al, 0x22
je 0x40331a
cmp al, 0x20
jbe 0x403347
inc esi
cmp byte [esi], 0x20
ja 0x403312
jmp 0x403347
inc esi
cmp byte [esi], 0x22
je 0x403346
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x403341
xor eax, eax
mov al, bl
push eax
call fcn.00404260
add esp, 4
test eax, eax
je 0x40333b
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x403323
cmp byte [esi], 0x22
jne 0x403347
inc esi
cmp byte [esi], 0
je 0x403357
cmp byte [esi], 0x20
ja 0x403357
inc esi
cmp byte [esi], 0
jne 0x40334c
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x40337b
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00403ff0
jmp 0x4033bc
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404030
Capabilities:
Terminate process

Disassembly:
mov dword [0x4081a8], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x4081a4], bl
jne 0x40408c
cmp dword [0x40fad8], 0
je 0x40407a
mov esi, dword [0x40fad0]
sub esi, 4
cmp esi, dword [0x40fad8]
jb 0x40407a
mov eax, dword [esi]
test eax, eax
je 0x40406f
call eax
sub esi, 4
cmp esi, dword [0x40fad8]
jae 0x404067
push 0x40802c
push 0x408024
call fcn.004040b0
add esp, 8
push 0x408034
push 0x408030
call fcn.004040b0
add esp, 8
test ebx, ebx
jne 0x4040ad
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x404620
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x408240], 0
push ebx
push esi
push edi
push ebp
jne 0x404670
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
mov edi, eax
test edi, edi
je 0x40464e
mov dword [0x408240], 1
mov ebx, dword [esp + 0x10]
jmp 0x40467e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x404666
mov dword [0x408240], 2
jmp 0x40467e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x408240], 1
jne 0x40472d
test edi, edi
jne 0x4046a1
call esi
mov edi, eax
test edi, edi
jne 0x4046a1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x4046bb
add esi, 2
cmp word [esi], 0
jne 0x4046a9
add esi, 2
cmp word [esi], 0
jne 0x4046a9
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x40471c
push ebp
call fcn.00405230
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x40471c
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40470b
push ebx
call fcn.00405210
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x408240], 2
jne 0x4047b1
test ebx, ebx
jne 0x404750
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x404750
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x404765
inc ebp
cmp byte [ebp], 0
jne 0x404757
inc ebp
cmp byte [ebp], 0
jne 0x404757
sub ebp, ebx
inc ebp
push ebp
call fcn.00405230
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x40478a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x404db0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x4086d0
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x404dd8
add ecx, 8
inc eax
cmp ecx, 0x408758
jb 0x404dc8
cmp dword [eax*8 + 0x4086d0], edx
lea ebx, [eax*8]
jne 0x404f93
cmp dword [0x408140], 1
je 0x404f58
cmp dword [0x408140], 0
jne 0x404e0f
cmp dword [0x408144], 1
je 0x404f58
cmp edx, 0xfc
je 0x404f93
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x404e4c
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x404e90
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4087a4
push ebp
call fcn.00405350
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x408784
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x4086d4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.004052b0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40f9d0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x404f6f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x4086d4]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7f83785c
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
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
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x51ed6ffe
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x405206
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x7a1168], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x40522a
test al, 0x10
jne 0x40522d
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x7a1168
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405258
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x4052c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.00405561
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x4052f6
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2be8], eax
jmp 0x40547b
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x405311
test eax, eax
je 0x405426
test cl, 2
je 0x405426
mov esi, 0x7a0168
push ebx
push esi
call fcn.00405988
cmp dword [ebp + 8], 0
je 0x405330
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405336
push ebx
call fcn.004054c8
push 0x409010
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40541c
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004054ac
cmp byte [eax], 0
je 0x405387
cmp byte [ebp - 0x18], 0
je 0x405387
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40539d
mov al, byte [esi + 1]
test al, al
je 0x4053fb
cmp al, 0x2e
jne 0x40539d
cmp byte [esi + 2], 0
je 0x4053fb
push esi
push edi
call fcn.00405988
test byte [ebp - 0x148], 0x10
je 0x4053c2
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4053fb
push dword [ebp + 0xc]
push ebx
call fcn.004052c0
jmp 0x4053fb
push ebx
call fcn.00405645
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4053f3
test byte [ebp + 0xc], 4
je 0x4053eb
push ebx
push 0xfffffffffffffff1
call fcn.00404d4d
push 0
push ebx
call fcn.004056db
jmp 0x4053fb
inc dword [0x7a2be8]
jmp 0x4053fb
push ebx
push 0xfffffffffffffff2
call fcn.00404d4d
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405365
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405426
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x40547b
cmp dword [ebp - 8], esi
jne 0x40543b
inc dword [0x7a2be8]
jmp 0x40547b
push ebx
call fcn.00405c50
test eax, eax
je 0x40547b
push ebx
call fcn.00405481
push ebx
call fcn.00405645
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405473
test byte [ebp + 0xc], 4
je 0x405433
push ebx
push 0xfffffffffffffff1
call fcn.00404d4d
push esi
push ebx
call fcn.004056db
jmp 0x40547b
push ebx
push 0xffffffffffffffe5
call fcn.00404d4d
pop esi
pop ebx
leave
ret 8
Function at 0x405561
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a0568
push esi
call fcn.00405988
push esi
call fcn.00405514
mov edi, eax
test edi, edi
jne 0x405582
xor eax, eax
jmp 0x4055d4
push edi
call fcn.00405bb7
test byte [0x7a2b70], 0x80
je 0x40559b
mov al, byte [edi]
test al, al
je 0x40557e
cmp al, 0x5c
je 0x40557e
sub edi, esi
jmp 0x4055b3
call fcn.00405c50
test eax, eax
je 0x4055ad
test byte [eax], 0x10
je 0x40557e
push esi
call fcn.004054c8
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40559f
call fcn.00405481
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405645
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 0x405661
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405664
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405693
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4056d7
test edi, edi
jne 0x40569e
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056d1
Function at 0x4056db
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405c8e
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405707
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405840
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7a12f0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x7a12f0
je 0x40574b
push 1
push 0
push esi
call fcn.00405664
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405846
cmp eax, edi
jg 0x405846
mov esi, 0x7a0d68
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405846
cmp eax, edi
jg 0x405846
push esi
push ebp
push str._s_s_r_n
push 0x7a0968
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a2b68]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004059aa
push 4
push 0xc0000000
push esi
call fcn.00405664
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405840
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405839
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405839
cmp edi, dword [esp + 0x18]
jne 0x405839
push str._Rename__r_n
push esi
call fcn.004055d9
test eax, eax
jne 0x40584d
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405988
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x7a0968
push eax
call fcn.00405625
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x7a2bf0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4092f4
push eax
call fcn.004055d9
test eax, eax
je 0x405804
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405874
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405869
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405806

Function at 0x40587c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4058e0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4058cf
cmp dword [ebp + 0x14], 1
je 0x4058d1
cmp dword [ebp + 0x14], 2
je 0x4058d1
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4059aa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x4059cb
mov ecx, dword [0x7a233c]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x7a2b98]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x7a1b00
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405b91
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405b91
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405b9e
inc ebx
cmp cl, 0xfc
jbe 0x405b84
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0xc], eax
or eax, edx
push 2
mov dword [ebp - 8], eax
pop eax
mov dword [ebp - 0x14], ecx
or ecx, edx
add ebx, eax
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0x10], ecx
jne 0x405b2f
cmp dword [0x7a2be4], 0
mov dword [ebp + 0xc], eax
je 0x405a5d
mov dword [ebp + 0xc], 4
dec dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push dword [ebp + eax*4 - 0x14]
push dword [0x7a2b64]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405a94
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
jne 0x405a9d
and byte [edi], 0
cmp dword [ebp + 0xc], 0
jne 0x405a5d
cmp byte [edi], 0
jne 0x405b16
mov eax, dword [ebp - 0x14]
cmp eax, 0x2b
jne 0x405ac1
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.0040587c
jmp 0x405b11
cmp eax, 0x26
jne 0x405aed
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.0040587c
cmp byte [edi], 0
jne 0x405b16
push str.C:Program_Files
push edi
call fcn.00405988
jmp 0x405b11
cmp eax, 0x25
jne 0x405b00
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405b11
cmp eax, 0x24
jne 0x405b11
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
je 0x405b27
cmp dword [ebp - 0xc], 0x1a
jne 0x405b27
push str.MicrosoftInternet_ExplorerQuick_Launch
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405bb7
jmp 0x405b75
cmp byte [ebp + 0xf], 0xfd
jne 0x405b63
cmp esi, 0x1b
jne 0x405b48
push dword [0x7a2b64]
push edi
call fcn.004058e6
jmp 0x405b59
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.00405988
add esi, 0xffffffeb
cmp esi, 6
jae 0x405b75
jmp 0x405b27
cmp byte [ebp + 0xf], 0xff
jne 0x405b75
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.004059aa
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x7a1b00
jmp 0x405b91
jne 0x405b8e
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405b91
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x4059f6
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405bb3
push eax
push dword [ebp + 8]
call fcn.00405988
leave
ret 8
Function at 0x405ceb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a16f4], 0
push esi
jne 0x405d22
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405cfc
mov dword [ecx*4 + 0x7a16f0], eax
inc ecx
cmp ecx, 0x100
jl 0x405cf7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d53
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a16f0]
xor eax, esi
inc ecx
dec edx
jne 0x405d35
pop edi
not eax
pop esi
ret 0xc