joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059f0
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
xor bl, bl
mov eax, dword [esi + 0xc]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x405a1a
cmp eax, 2
mov dword [esi + 0x1c], eax
jne 0x405a3a
mov al, byte [esp + 0x18]
test al, al
je 0x405a22
pop edi
pop esi
mov al, 1
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push edi
add ecx, 8
mov edx, 0x74
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00406090
jmp 0x405a51
mov edx, dword [esi + 0x10]
mov ecx, dword [esp + 0x10]
push eax
add edx, 8
push edi
push edx
mov edx, 0x75
call fcn.004060b0
mov dword [esi + 0x14], 3
add esi, 0x20
push edi
push esi
xor edx, edx
mov ecx, str.Class_Key.DeleteValue.QSName
call fcn.00405840
pop edi
mov al, bl
pop esi
pop ebx
ret 0xc

Function at 0x405af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, ecx
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x1c]
push ecx
mov dword [ebp], 0
mov eax, dword [esi + 0xc]
push edx
push 0
push edi
push eax
mov dword [esp + 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x405b6e
cmp eax, 2
mov dword [esi + 0x1c], eax
jne 0x405b55
mov al, byte [esp + 0x20]
test al, al
je 0x405b46
pop edi
pop esi
mov al, 1
pop ebp
pop ecx
ret 0x10
mov ecx, dword [esi + 0x10]
push edi
add ecx, 8
mov edx, 0x72
push ecx
jmp 0x405b99
mov edx, dword [esi + 0x10]
mov ecx, dword [esp + 0x14]
push eax
add edx, 8
push edi
push edx
mov edx, 0x6f
call fcn.004060b0
jmp 0x405ba2
cmp dword [esp + 0x18], 4
jne 0x405b8c
cmp dword [esp + 0x1c], 4
jne 0x405b8c
mov eax, dword [esp + 0xc]
pop edi
mov dword [ebp], eax
pop esi
mov al, 1
pop ebp
pop ecx
ret 0x10
mov ecx, dword [esi + 0x10]
push edi
add ecx, 8
mov edx, 0x70
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00406090
lea edx, [esi + 0x20]
push edi
push edx
xor edx, edx
mov ecx, str.Class_Key.QueryIntValue.QSName
mov dword [esi + 0x14], 5
call fcn.00405840
mov dword [esi + 0x24], 1
pop edi
pop esi
xor al, al
pop ebp
pop ecx
ret 0x10
Function at 0x405bd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x7d8
push ebx
push esi
mov esi, ecx
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x7f0]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push edi
push eax
xor bl, bl
mov dword [esp + 0x24], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x405c76
cmp eax, 2
mov dword [esi + 0x1c], eax
jne 0x405c57
mov al, byte [esp + 0x7f8]
test al, al
je 0x405c39
mov ecx, dword [esp + 0x7f4]
call fcn.004058a0
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x7d8
ret 0x14
mov ecx, dword [esi + 0x10]
push edi
add ecx, 8
mov edx, 0x72
push ecx
mov ecx, dword [esp + 0x7f4]
call fcn.00406090
jmp 0x405cfa
mov edx, dword [esi + 0x10]
mov ecx, dword [esp + 0x7ec]
push eax
add edx, 8
push edi
push edx
mov edx, 0x6f
call fcn.004060b0
jmp 0x405cfa
cmp dword [esp + 0x10], 1
je 0x405c98
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x7ec]
add eax, 8
push edi
push eax
mov edx, 0x71
call fcn.00406090
jmp 0x405cfa
mov edx, dword [esp + 0xc]
mov eax, edx
shr eax, 1
je 0x405ce0
lea ecx, [eax + eax]
cmp edx, ecx
jne 0x405ce0
cmp word [esp + ecx + 0x12], 0
jne 0x405ce0
mov edx, dword [esp + 0x7f4]
dec eax
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x7f0]
push edx
xor edx, edx
call fcn.00405740
test al, al
je 0x405cfa
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x7d8
ret 0x14
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x7ec]
push edx
add eax, 8
push edi
push eax
mov edx, 0x79
call fcn.004060a0
lea ecx, [esi + 0x20]
push edi
push ecx
xor edx, edx
mov ecx, str.Class_Key.QueryTextValueT.QSName
mov dword [esi + 0x14], 5
call fcn.00405840
mov dword [esi + 0x24], 2
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x7d8
ret 0x14

Function at 0x405e40
Capabilities:
Set registry value

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x1c]
mov esi, ecx
push 4
push eax
mov ecx, dword [esi + 0xc]
push 4
push 0
push edi
push ecx
xor bl, bl
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x405eb7
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x10]
push edx
add eax, 8
push edi
push eax
mov edx, 0x76
call fcn.004060a0
lea ecx, [esi + 0x20]
push edi
push ecx
xor edx, edx
mov ecx, str.Class_Key.SetIntValue.QSName
mov dword [esi + 0x14], 6
call fcn.00405840
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], ebp
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0xc
Function at 0x405ec0
Capabilities:
Set registry value

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
push edi
xor bl, bl
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebp, dword [esp + 0x1c]
add esp, 4
lea eax, [eax + eax + 2]
push eax
mov eax, dword [esi + 0xc]
push edi
push 1
push 0
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x405f46
mov ecx, dword [esi + 0x10]
push edi
add ecx, 8
push ebp
push ecx
mov ecx, dword [esp + 0x20]
mov edx, 0x78
mov dword [esi + 0x1c], eax
call fcn.004060a0
lea edx, [esi + 0x20]
push ebp
push edx
xor edx, edx
mov ecx, str.Class_Key.SetStringValueT.QSName
mov dword [esi + 0x14], 6
call fcn.00405840
mov dword [esi + 0x24], 2
add esi, 0x2c
push edi
push esi
xor edx, edx
mov ecx, str.Key.KeySetStringValueT.value
call fcn.00405840
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0xc
Function at 0x5a58d9
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.005a5958
jae 0x5a58e5
xor ecx, ecx
call fcn.005a5958
jae 0x5a590f
xor eax, eax
call fcn.005a5958
jae 0x5a5920
mov al, 0x10
call fcn.005a5958
adc al, al
jae 0x5a5901
jne 0x5a594d
stosb byte es:[edi], al
jmp 0x5a58e6
call fcn.005a5964
dec ecx
loop 0x5a592c
mov eax, ebp
call fcn.005a5962
jmp 0x5a594e
lodsb al, byte [esi]
shr eax, 1
je 0x5a5974
adc ecx, 2
mov ebp, eax
jmp 0x5a594e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.005a5962
cmp eax, 0x7d00
jae 0x5a594c
cmp eax, 0x500
jae 0x5a594d
cmp eax, 0x7f
ja 0x5a594e
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5a58e6
pop ebp
ret 8
Function at 0x403e48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x310], 0
jle 0x403f65
cmp dword [ebp + 0x10], 0x2800
jle 0x403f65
mov edx, 4
mov eax, dword [ebp + 0xc]
call fcn.0044fcb8
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x30]
mov ecx, 0x14
mov ebx, dword [eax]
call dword [ebx + 4]
mov edx, dword [ebp + 0x10]
sar edx, 1
jns 0x403e94
adc edx, 0
mov eax, dword [ebp + 0xc]
call fcn.0044fcb8
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x48]
mov ecx, 0x14
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x310], 1
jne 0x403f06
push 0x15
push 0
lea edx, [ebp - 0x18]
push edx
call fcn.004611bc
mov ecx, dword [ebp + 8]
add esp, 0xc
lea edx, [ebp - 0x18]
mov eax, dword [ecx + 0x314]
push eax
push 0x481565
push edx
call fcn.00463d34
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x48]
mov ebx, 0x14
sub ebx, eax
inc eax
mov bl, byte [ebp + ebx - 0x18]
xor bl, byte [edx]
xor bl, byte [ecx]
inc ecx
mov byte [edx], bl
inc edx
cmp eax, 0x14
jl 0x403eeb
jmp 0x403f39
mov eax, dword [ebp + 8]
cmp dword [eax + 0x310], 2
jne 0x403f39
xor eax, eax
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x48]
mov ebx, 0x14
mov esi, dword [ebp + 8]
sub ebx, eax
inc eax
mov bl, byte [esi + ebx + 0x318]
xor bl, byte [edx]
xor bl, byte [ecx]
inc ecx
mov byte [edx], bl
inc edx
cmp eax, 0x14
jl 0x403f1a
mov edx, dword [ebp + 0x10]
sar edx, 1
jns 0x403f43
adc edx, 0
mov eax, dword [ebp + 0xc]
call fcn.0044fcb8
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x48]
mov ecx, 0x14
mov ebx, dword [eax]
call dword [ebx + 8]
xor edx, edx
mov eax, dword [ebp + 0xc]
call fcn.0044fcb8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40851c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov edx, dword [ebp + 0xc]
mov ecx, eax
inc eax
shl ecx, 2
push ecx
mov cl, 0x64
pop ebx
sub cl, bl
xor byte [edx], cl
inc edx
cmp eax, 0x28
jl 0x408525
pop ebx
pop ebp
ret
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x406243
pop dword [ebp - 0x38]
mov eax, 0xd300df2e
add eax, 0x2d3f8315
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xea68c1c3
sub dword [ebp - 0x48], 0x9c167c78
mov dword [ebp - 0x44], 0x293aa5bc
sub dword [ebp - 0x44], 0xf7075977
mov dword [ebp - 0x40], 0x2cd5e121
add dword [ebp - 0x40], 0x1f76630d
mov dword [ebp - 0x3c], 0x5d50c6c2
add dword [ebp - 0x3c], 0xa2af393e
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x7563e21e
add dword [ebp - 0x48], 0xff0e8738
mov dword [ebp - 0x44], 0x37cd57d2
add dword [ebp - 0x44], 0x99f09a3
mov dword [ebp - 0x40], 0x73b81f19
add dword [ebp - 0x40], 0xefb74d53
mov dword [ebp - 0x3c], 0x4f5c7654
add dword [ebp - 0x3c], 0xb0a389ac
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xc1c831db
add eax, 0x3e784f25
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x36d53
push 0
call eax
mov ecx, 0x50fd0b97
add ecx, 0xaf033ba6
mov esi, eax
mov edi, 0x2da792fa
sub edi, 0x2d60aefa
add edi, dword [ebp - 0x38]
mov ebx, 0xa78c0b31
sub ebx, 0x5eafba48
sub dword [ebp - 0x28], ebx
mov edx, dword [edi]
add edx, ebx
xor dword [ebp - 0x20], 0x9be85607
mov dword [esi], edx
add dword [ebp - 0x30], edx
add esi, 0xb5f8fb90
add esi, 0x4a070474
add edi, 0xf12651d2
sub edi, 0xf12651ce
loop 0x406360
add eax, 0xc9cf6d58
sub eax, 0xc9ce5d91
mov ebx, eax
add eax, 0xf825bafa
sub eax, 0xf825baf5
mov ecx, 0xf794f715
add ecx, 0x8ab08eb
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x40669d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
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 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
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 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc
Function at 0x4087f9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4385a8]
jne 0x408803
repz ret
jmp fcn.0040bd0d

Function at 0x40a462
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4385a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406b4e
and dword [ebp - 0x14], 0
cmp dword [0x43c540], 0
mov dword [ebp - 0x18], eax
jne 0x40a515
push 0x403c00
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a5bd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403bf4
push ebx
call edi
test eax, eax
je 0x40a5bd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403be4
push ebx
mov dword [0x43c540], eax
call edi
push eax
call esi
push 0x403bd0
push ebx
mov dword [0x43c544], eax
call edi
push eax
call esi
push 0x403bb4
push ebx
mov dword [0x43c548], eax
call edi
push eax
call esi
mov dword [0x43c550], eax
test eax, eax
je 0x40a515
push 0x403b9c
push ebx
call edi
push eax
call esi
mov dword [0x43c54c], eax
mov eax, dword [0x43c54c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a56e
cmp dword [0x43c550], ecx
je 0x40a56e
push eax
call esi
push dword [0x43c550]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a56e
test ebx, ebx
je 0x40a56e
call edi
test eax, eax
je 0x40a565
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a565
test byte [ebp - 8], 1
jne 0x40a56e
or dword [ebp + 0x10], 0x200000
jmp 0x40a5a1
mov eax, dword [0x43c544]
cmp eax, dword [ebp - 0x18]
je 0x40a5a1
push eax
call esi
test eax, eax
je 0x40a5a1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a5a1
mov eax, dword [0x43c548]
cmp eax, dword [ebp - 0x18]
je 0x40a5a1
push eax
call esi
test eax, eax
je 0x40a5a1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43c540]
call esi
test eax, eax
je 0x40a5bd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a5bf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004087f9
leave
ret
Function at 0x421990
Capabilities:
Accept command line arguments
Delete directory
Get common file path
Write file on windows

Disassembly:
mov eax, 0x1820
call fcn.0040cdb0
cmp dword [0x22754b8], 0x37
jne 0x421a86
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x404538
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
push 0
lea ecx, [esp + 0x424]
push ecx
push 0x404574
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea edx, [esp + 0xc24]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea edx, [esp + 8]
push edx
push 0x4045b8
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
lea ecx, [esp + 0x1020]
push ecx
push 0
push 0x404630
push 0x4046f4
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x4046fc
push 0x404710
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov edx, dword [0x22754bc]
mov dword [esp], edx
mov eax, 0x5d1
add dword [esp], eax
mov eax, dword [esp]
mov cl, byte [eax + esi]
mov edx, dword [0x44161c]
mov byte [edx + esi], cl
add esp, 0x1820
ret
Function at 0x421bf0
Capabilities:
Manipulate console buffer

Disassembly:
mov eax, dword [0x22754b8]
sub esp, 0x1cc
push ebx
push ebp
push esi
mov esi, dword [0x44161c]
shr eax, 3
push edi
test eax, eax
je 0x421d67
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
jmp 0x421c24
mov esi, dword [esp + 0x1c]
cmp dword [0x22754b8], 0x1c
jne 0x421c41
lea eax, [esp + 0x34]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov edx, dword [0x439200]
mov ecx, dword [0x439204]
mov eax, dword [esi]
mov esi, dword [esi + 4]
mov dword [esp + 0x24], edx
mov edx, dword [0x439208]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x43920c]
mov dword [esp + 0x18], eax
mov edi, 0xc6ef3720
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov ebp, 0x20
jmp 0x421c84
mov eax, dword [esp + 0x18]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x28]
shl ecx, 4
add ecx, dword [esp + 0x2c]
add eax, edi
xor edx, ecx
xor edx, eax
sub esi, edx
mov ecx, esi
shl ecx, 4
mov dword [0x227443c], 0
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
cmp dword [0x22754b8], 0x1be
lea ebx, [edi + esi]
jne 0x421cd9
lea edx, [esp + 0x38]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, esi
shr eax, 5
add eax, dword [esp + 0x30]
mov dword [0x2274440], 0xff6b3619
xor eax, ebx
xor dword [esp + 0x14], eax
mov dword [0x2274444], 0xffffffff
mov eax, dword [esp + 0x14]
sub dword [esp + 0x18], eax
add edi, 0x61c88647
dec ebp
jne 0x421c80
cmp dword [0x22754b8], 0x8d4
jne 0x421d28
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [edi], edx
mov dword [edi + 4], esi
cmp dword [0x22754b8], 0x17
jne 0x421d56
push 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [esp + 0x98]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add edi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x1c], edi
jne 0x421c20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret
Function at 0x412294
Capabilities:
Delete file
Set environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x41229c
push ebx
push esi
push edi
mov eax, 0x411690
call fcn.00405a14
xor eax, eax
push ebp
push 0x412461
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x413a88]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x14]
call fcn.00410e0c
mov edx, dword [ebp - 0x14]
mov eax, 0x418aa4
call fcn.004042f4
lea edx, [ebp - 0x18]
mov eax, dword [0x418aa4]
call fcn.00410d20
mov edx, dword [ebp - 0x18]
mov eax, 0x418aa4
call fcn.004042f4
mov bl, 1
xor eax, eax
push ebp
push 0x41239e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40f5ac]
call fcn.004036d4
mov esi, eax
mov edx, esi
mov eax, 0x412478
call fcn.0041158c
mov edx, 0x418a98
mov ecx, 0xc
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, esi
call fcn.00410674
mov edx, esi
mov eax, 0x412488
call fcn.0041158c
lea eax, [ebp - 0x20]
mov edx, 0x418a98
call fcn.00404504
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov eax, dword [0x418aa4]
call fcn.004113d4
mov edx, dword [ebp - 0x1c]
mov eax, 0x418aa8
call fcn.004042f4
mov edx, dword [0x418aa8]
mov eax, esi
call fcn.004105f0
mov eax, esi
call fcn.00403704
push 2
mov eax, dword [0x418aa8]
call fcn.004046b4
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4123aa
test bl, bl
je 0x412446
lea eax, [ebp - 0x24]
call fcn.00410f1c
mov eax, dword [ebp - 0x24]
call fcn.004046b4
push eax
push 0x412490
call sub.kernel32.dll_SetEnvironmentVariableA
push 0x4124a0
push dword [0x418aa8]
push 0x4124b8
lea eax, [ebp - 0x28]
mov edx, dword [0x413bb0]
mov edx, dword [edx]
call fcn.00404498
push dword [ebp - 0x28]
push 0x4124c4
mov eax, 0x418aac
mov edx, 5
call fcn.00404610
cmp dword [0x418aa0], 0x8000
jne 0x412423
push 0x30
push 0x4124c8
push 0x4124d8
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [0x418aac]
call fcn.004114ac
mov ebx, eax
mov eax, dword [0x418aa8]
call fcn.004046b4
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [0x413a88]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412468
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.004042c4
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x69144ced
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x3aaa3f47
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401fdf
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 0x40200a
test byte [esp + 8], 0x80
je 0x401ff9
and al, 0xfe
jmp 0x401ffb
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40201b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004037f4
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40203e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004037f4
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x402061
test byte [esp + 8], 2
je 0x402061
call fcn.00403867
mov dword [eax], 0xd
call fcn.00403870
mov dword [eax], 5
jmp 0x40203a
xor eax, eax
ret

Function at 0x404e65
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x418380
cmp edx, dword [eax]
je 0x404e87
add eax, 8
inc ecx
cmp eax, 0x418410
jl 0x404e78
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x418380]
jne 0x404fb5
mov eax, dword [0x41b120]
cmp eax, 1
je 0x404f8f
test eax, eax
jne 0x404eb8
cmp dword [0x417f44], 1
je 0x404f8f
cmp edx, 0xfc
je 0x404fb5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404eef
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405a10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405b00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404f32
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405b00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x413efc
push edi
call fcn.00407a00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405a10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405a20
lea eax, [ebp - 0xa0]
push 0x413edc
push eax
call fcn.00405a20
push dword [esi + 0x418384]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405a20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407977
add esp, 0x2c
pop edi
jmp 0x404fb5
lea eax, [ebp + 8]
lea esi, [esi + 0x418384]
push 0
push eax
push dword [esi]
call fcn.00405b00
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