joyce8/EMBER2024-capa huggingface dataset:
Function at 0x871dd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x236000]
mov dword [edi + 0x3480d4], 0x78cf1032
push edi
jmp 0x871dfa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x871e01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x871df0
mov eax, 1
add ebx, ebx
jne 0x871e13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x871e24
jne 0x871e43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x871e43
dec eax
add ebx, ebx
jne 0x871e30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x871e08
add ebx, ebx
jne 0x871e3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x871e95
xor ecx, ecx
sub eax, 3
jb 0x871e5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x871eca
sar eax, 1
mov ebp, eax
jmp 0x871e66
add ebx, ebx
jne 0x871e66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x871e34
inc ecx
add ebx, ebx
jne 0x871e74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x871e34
add ebx, ebx
jne 0x871e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x871e76
jne 0x871e92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x871e76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x871eb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x871ea6
jmp 0x871df6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x871eb4
add edi, ecx
jmp 0x871df6
pop esi
mov edi, esi
mov ecx, 0x12444
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x871ed2
cmp byte [edi], 0x35
jne 0x871ed2
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 0x871ed7
lea edi, [esi + 0x45c000]
mov eax, dword [edi]
or eax, eax
je 0x871f4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x481518]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x481680]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x871f04
mov ecx, edi
jns 0x871f33
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 + 0x481684]
or eax, eax
je 0x871f49
mov dword [ebx], eax
add ebx, 4
jmp 0x871f21
call dword [esi + 0x481694]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x871f80
cmp al, 0xef
ja 0x871f73
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x871f55
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x871f62
mov ebp, dword [esi + 0x481688]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x277]
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 0x871fb4
sub esp, 0xffffff80
jmp 0x4e136b
Function at 0x4026d0
Capabilities:
Create process on windows

Disassembly:
push ebp
push edi
push 1
push 0x208
call fcn.004133d2
push 1
push 0x208
mov edi, eax
call fcn.004133d2
add esp, 0x10
mov ebp, eax
test edi, edi
je 0x40280b
test ebp, ebp
je 0x40280b
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov edx, ebp
xor esi, esi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40270f
push 7
push str.http:__
push ebp
call fcn.00413850
add esp, 0xc
test eax, eax
je 0x402755
push 8
push str.https:__
push ebp
call fcn.00413850
add esp, 0xc
test eax, eax
je 0x402755
push 0x5c
push ebp
call fcn.004131d0
add esp, 8
test eax, eax
je 0x402755
mov byte [eax], 0
mov esi, ebp
push 5
push esi
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x4027fa
mov eax, dword [esp + 0x18]
push edi
push eax
push 0x80000000
call fcn.00402810
add esp, 0xc
test eax, eax
jne 0x4027fa
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
push edi
call ebx
push edi
push edi
push 0x80000000
call fcn.00402810
add esp, 0xc
test eax, eax
jne 0x4027fa
push str.__1_
push edi
call fcn.004136d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4027de
push 0x41a60c
push edi
call fcn.004136d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4027de
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + edi - 1]
jmp 0x4027e1
mov byte [esi], 0
push 0x41a608
push esi
call ebx
mov ecx, dword [esp + 0x14]
push ecx
push esi
call ebx
push 5
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
push ebp
call fcn.00413483
push edi
call fcn.00413483
add esp, 8
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x402810
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402859
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret
Function at 0x402860
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x214]
push 0x208
push eax
push edi
call fcn.00402950
add esp, 0xc
push edi
call dword [sym.imp.GDI32.dll_AddFontResourceA]
test eax, eax
je 0x40293a
mov al, byte [esp + 8]
push esi
test al, al
je 0x402912
push 0x5c
push edi
call fcn.004131d0
mov esi, eax
add esp, 8
test esi, esi
je 0x4028ad
inc esi
jmp 0x4028af
mov esi, edi
lea ecx, [esp + 0xc]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x41f2ec]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x4028d3
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 8]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402912
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0xc]
push esi
push 1
push eax
lea eax, [esp + 0x1c]
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]
push 0x41f0a8
push 0x1388
push 0
push 0
push 0
push 0x1d
push 0xffff
mov dword [0x41f0a8], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
pop esi
pop edi
add esp, 0x20c
ret

Function at 0x402b70
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x214]
push edi
push 0x208
push eax
push esi
call fcn.00402950
add esp, 0xc
push esi
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
mov edi, eax
mov al, byte [esp + 0xc]
test al, al
je 0x402c02
push 0x5c
push esi
call fcn.004131d0
add esp, 8
lea ecx, [esp + 0xc]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x41f2ec]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x402bd2
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 8]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402c02
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop esi
je 0x402c25
push 0x41f0a8
push 0x1388
push 0
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
add esp, 0x20c
ret
Function at 0x402cd0
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push 0x208
call fcn.00413320
mov ebp, eax
xor ebx, ebx
add esp, 4
cmp ebp, ebx
jne 0x402cf6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x68]
push eax
push str.__s_
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x78]
add esp, 0xc
cmp edx, ebx
je 0x402d4f
cmp byte [edx], bl
je 0x402d4f
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x41a608]
mov word [edi - 1], cx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x208
call fcn.00413320
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x402d75
push ebp
call fcn.00413483
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x68]
lea edi, [esi + 0x104]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x402d91
push 0x5c
push edi
call fcn.004131d0
add esp, 8
cmp eax, ebx
je 0x402db3
push edi
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x20]
push ecx
push edx
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
push ebp
push ebx
mov dword [eax], ebx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x74], ebx
mov word [esp + 0x7a], bx
mov dword [esp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.00413483
push ebp
call fcn.00413483
add esp, 8
cmp edi, ebx
jne 0x402e1a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret
Function at 0x405480
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, 1
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call fcn.00402110
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
add ecx, esi
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push esi
call fcn.00401140
add esp, 0x18
cmp eax, 0xffffffff
je 0x4054d8
push eax
call fcn.004013c0
add esp, 4
or eax, 0xffffffff
jmp 0x4054e6
push esi
call fcn.00401190
add esp, 4
cmp eax, 0xffffffff
jne 0x4054ef
inc ebx
cmp ebx, 0x3e7
jl 0x405491
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x408a70
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x8c
mov eax, dword [0x41f110]
push esi
mov esi, dword [0x41f10c]
mov dword [esp + 4], 0
test eax, eax
jbe 0x408c83
push ebx
push ebp
push edi
mov ebx, 0x1000
mov eax, dword [esi + 0x24]
test eax, eax
je 0x408c5f
mov eax, dword [0x41f364]
test eax, eax
jne 0x408c40
push esi
call fcn.004092d0
mov edx, dword [0x41f0d0]
add esp, 4
cmp byte [edx], 0
je 0x408c40
mov ecx, 0x22
xor eax, eax
lea edi, [esp + 0x14]
push 0x4000
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov byte [esp + 0x18], 0x88
push eax
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x408b31
mov ecx, dword [0x41f0d0]
push ecx
call fcn.004013d0
add esp, 4
test eax, eax
je 0x408b31
mov edx, dword [esi + 0x24]
mov eax, dword [0x41f0d0]
push edx
push eax
call fcn.0040b590
add esp, 8
test eax, eax
je 0x408c8b
mov dword [0x41f35c], 1
mov word [esi + 4], 0x1f4
jmp 0x408b60
test dword [esi + 8], ebx
je 0x408b48
mov eax, dword [esi + 0xc]
test ah, 0x60
jne 0x408b48
push 0
call fcn.004083d0
add esp, 4
mov ecx, dword [esi + 0x24]
push ecx
push esi
call fcn.004095c0
add esp, 8
cmp word [esi + 4], 0x1b
je 0x408c97
mov eax, dword [esi + 0xc]
mov ebp, 0x80
test ebx, eax
je 0x408b71
mov ebp, 0x81
test ah, 8
je 0x408b79
or ebp, 2
cmp ebp, 0x80
je 0x408baa
cmp word [esi + 4], 0x1f4
mov edi, dword [0x41f0d0]
jne 0x408b92
mov edi, dword [esi + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408baa
and al, 0xfc
or eax, ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x408bda
mov eax, dword [esi + 8]
test ah, 4
je 0x408bda
mov ax, word [esi + 4]
cmp ax, 0x17
je 0x408bd5
cmp ax, 0x19
je 0x408bd5
cmp ax, 0x1f5
je 0x408bd5
cmp ax, 0x1f4
jne 0x408bda
call fcn.00409a50
cmp dword [esi + 0x10], 3
jne 0x408bff
mov ax, word [esi + 4]
cmp ax, 0x17
je 0x408bf0
cmp ax, 0x19
jne 0x408bff
mov edx, dword [0x41f0d0]
push edx
call fcn.00402860
add esp, 4
test dword [esi + 8], ebx
je 0x408c4c
mov ax, word [esi + 4]
cmp ax, 0x17
je 0x408c1a
cmp ax, 0x19
je 0x408c1a
cmp ax, 0x1f4
jne 0x408c4c
push esi
call fcn.004086b0
add esp, 4
test eax, eax
jne 0x408c4c
mov ecx, dword [0x41f0d0]
mov dword [0x41f364], 0x16
push ecx
call fcn.00407050
add esp, 4
mov edx, dword [esi + 0x24]
push edx
call fcn.00413dd1
add esp, 4
mov eax, dword [esi + 0x24]
push eax
call fcn.00413483
add esp, 4
mov dword [esi + 0x24], 0
mov edx, dword [esp + 0x10]
push esi
inc edx
mov dword [esp + 0x14], edx
call fcn.00403b10
mov esi, eax
mov eax, dword [0x41f110]
add esp, 4
cmp edx, eax
jb 0x408a9a
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x8c
ret
mov dword [0x41f364], 0x16
jmp 0x408c40
mov eax, dword [0x41f0d0]
mov dword [0x41f364], 0x16
push eax
call fcn.00407050
mov eax, dword [esi + 8]
add esp, 4
test ebx, eax
je 0x408c40
mov eax, dword [esi + 0xc]
test ah, 0x60
jne 0x408c40
push 1
call fcn.004083d0
jmp 0x408c3d
Function at 0x409830
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.004021c0
add esp, 8
test eax, eax
jne 0x409860
mov eax, 1
pop edi
add esp, 0x10
ret
mov edx, dword [0x41f0d0]
lea ecx, [esp + 0x10]
push ebp
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4099b1
push eax
call fcn.00413320
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4099b1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x41f0d0]
push ebx
push esi
push ebp
push eax
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4099a6
mov al, byte [edi + 8]
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
test al, 2
je 0x409938
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x41a970
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x409938
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x28]
mov eax, dword [edx + 8]
cmp eax, ecx
ja 0x4098f6
jne 0x409938
mov edx, dword [edx + 0xc]
mov eax, dword [edi + 0x2c]
cmp edx, eax
jbe 0x409938
push 0x1d
push 7
call fcn.00403a00
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x40999e
mov ecx, dword [0x41f360]
test ecx, ecx
jne 0x40999e
mov ecx, dword [0x41f0d0]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.004039c0
add esp, 0x14
cmp eax, 6
jne 0x40999e
mov eax, dword [0x41f360]
test eax, eax
jne 0x4099a6
test byte [edi + 8], 4
je 0x4099a6
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 0x4099a6
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x38]
xor ecx, ecx
mov cx, word [edx]
cmp eax, ecx
je 0x4099a6
push 0x1e
push 7
call fcn.00403a00
add esp, 8
test eax, eax
je 0x4099a6
mov ecx, dword [0x41f0d0]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.004039c0
add esp, 0x14
cmp eax, 6
je 0x4099a6
mov dword [esp + 0x10], 0
push ebp
call fcn.00413483
add esp, 4
pop esi
pop ebx
lea edx, [esp + 0x10]
push edx
call fcn.00402200
mov eax, dword [esp + 0xc]
add esp, 4
pop ebp
pop edi
add esp, 0x10
ret
Function at 0x409a50
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 0x409af9
lea ecx, [esp + 0xc]
lea edx, [esp]
push ecx
mov ecx, dword [0x41f0d0]
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 0x409abc
inc dword [esp]
jmp 0x409acc
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 [0x41f0d0]
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 0x40b590
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x318
push esi
mov esi, dword [esp + 0x320]
test esi, esi
je 0x40b5b0
push 0x180
push esi
call fcn.0041303c
add esp, 8
mov eax, dword [0x41f2ec]
test eax, eax
je 0x40b5fb
test esi, esi
jne 0x40b5dc
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 0x40b62e
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 0x40b690
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 0x41a9c4
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.00401140
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x40b7a8
push ebx
push ebp
call fcn.004012c0
mov ebx, eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], ebx
lea ecx, [ebx + 0x200]
push ecx
call fcn.00402180
add esp, 0xc
test eax, eax
je 0x40b79e
mov esi, dword [esp + 0x10]
push ebx
push esi
push ebp
call fcn.004011c0
add esp, 0xc
test eax, eax
jne 0x40b791
add ebx, 0xfffffffc
mov edx, esi
test ebx, ebx
jbe 0x40b791
mov eax, 0xfffffffe
sub eax, esi
mov dword [esp + 0x18], eax
cmp byte [edx], 0x78
jne 0x40b760
cmp byte [edx + 1], 0x79
jne 0x40b760
cmp byte [edx + 2], 0x7a
jne 0x40b760
cmp byte [edx + 3], 0x3d
jne 0x40b760
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 0x40b76b
mov eax, dword [esp + 0x18]
inc edx
lea ecx, [eax + edx + 2]
cmp ecx, ebx
jb 0x40b724
jmp 0x40b791
push 0
push ebp
mov byte [edx], 0x4e
mov byte [edx + 1], 0x55
mov byte [edx + 2], 0x4c
call fcn.00401260
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
push ebp
call fcn.00401200
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call fcn.00402200
add esp, 4
push ebp
call fcn.004013c0
add esp, 4
pop ebx
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret
Function at 0x41303c
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 0x413067
test byte [esp + 8], 0x80
je 0x413056
and al, 0xfe
jmp 0x413058
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x413078
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041427a
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41319d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041427a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4131be
test byte [esp + 8], 2
je 0x4131be
mov dword [0x41f388], 0xd
mov dword [0x41f38c], 5
jmp 0x413199
xor eax, eax
ret

Function at 0x416e71
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41f010
cmp edx, dword [eax]
je 0x416e93
add eax, 8
inc ecx
cmp eax, 0x41f0a0
jl 0x416e84
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41f010]
jne 0x416fc1
mov eax, dword [0x41f3dc]
cmp eax, 1
je 0x416f9b
test eax, eax
jne 0x416ec4
cmp dword [0x41caa4], 1
je 0x416f9b
cmp edx, 0xfc
je 0x416fc1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416efb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00417850
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00415df0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x416f3e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00415df0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41a714
push edi
call fcn.00413750
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00417850
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00417860
lea eax, [ebp - 0xa0]
push 0x418abc
push eax
call fcn.00417860
push dword [esi + 0x41f014]
lea eax, [ebp - 0xa0]
push eax
call fcn.00417860
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00417c75
add esp, 0x2c
pop edi
jmp 0x416fc1
lea eax, [ebp + 8]
lea esi, [esi + 0x41f014]
push 0
push eax
push dword [esi]
call fcn.00415df0
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 0x407281
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461124], 0
jne 0x4072bf
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407295
mov dword [ecx*4 + 0x461120], eax
inc ecx
cmp ecx, 0x100
jl 0x407290
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4072ec
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461120]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072cd
not eax
pop ebp
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x3b344dc5
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x6a694112
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219