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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.00402520
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push 0x28
push 0xffffffffffffffff
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402620
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4026e0
cmp edi, 0xffffffff
je 0x4026e0
mov ecx, dword [0x40eb20]
or ecx, dword [0x40eb24]
mov esi, 0x40eb20
je 0x40265e
mov edx, dword [esi + 0xc]
add esi, 8
or edx, dword [esi]
jne 0x402654
push 0x1148
add esi, 8
push 0x40b920
push esi
call fcn.00405fb0
mov eax, dword [0x4506e0]
sub esi, 0x40eb20
add esp, 0xc
add esi, 0x4520
mov dword [ebp - 0x18], 0
test eax, eax
jne 0x4026b0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4506e0], eax
test eax, eax
je 0x4026b8
lea ecx, [ebp - 0x18]
push ecx
push 0xffffffffffffffff
call eax
cmp dword [ebp - 0x18], 0
push esi
mov edx, edi
je 0x4026ca
push 1
mov ecx, 0x40a590
jmp 0x4026d1
push 0
mov ecx, 0x409aa8
call fcn.004015b0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402c0c
mov esp, ebp
pop ebp
ret
Function at 0x402c0c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e004]
jne 0x402c16
repz ret
jmp fcn.004030aa

Function at 0x40690c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40e004]
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.00403cc2
and dword [ebp - 0x14], 0
cmp dword [0x44f87c], 0
mov dword [ebp - 0x18], eax
jne 0x4069bf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406a67
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406a67
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44f87c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44f880], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44f884], eax
call edi
push eax
call esi
mov dword [0x44f88c], eax
test eax, eax
je 0x4069bf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44f888], eax
mov eax, dword [0x44f888]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406a18
cmp dword [0x44f88c], ecx
je 0x406a18
push eax
call esi
push dword [0x44f88c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406a18
test ebx, ebx
je 0x406a18
call edi
test eax, eax
je 0x406a0f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406a0f
test byte [ebp - 8], 1
jne 0x406a18
or dword [ebp + 0x10], 0x200000
jmp 0x406a4b
mov eax, dword [0x44f880]
cmp eax, dword [ebp - 0x18]
je 0x406a4b
push eax
call esi
test eax, eax
je 0x406a4b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406a4b
mov eax, dword [0x44f884]
cmp eax, dword [ebp - 0x18]
je 0x406a4b
push eax
call esi
test eax, eax
je 0x406a4b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44f87c]
call esi
test eax, eax
je 0x406a67
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406a69
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c0c
leave
ret
Function at 0x477bd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x61000]
push edi
jmp 0x477bea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x477bf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x477be0
mov eax, 1
add ebx, ebx
jne 0x477c03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x477c14
jne 0x477c33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x477c33
dec eax
add ebx, ebx
jne 0x477c20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x477bf8
add ebx, ebx
jne 0x477c2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x477c85
xor ecx, ecx
sub eax, 3
jb 0x477c4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x477cba
sar eax, 1
mov ebp, eax
jmp 0x477c56
add ebx, ebx
jne 0x477c56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x477c24
inc ecx
add ebx, ebx
jne 0x477c64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x477c24
add ebx, ebx
jne 0x477c71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x477c66
jne 0x477c82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x477c66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x477ca4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x477c96
jmp 0x477be6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x477ca4
add edi, ecx
jmp 0x477be6
pop esi
mov edi, esi
mov ecx, 0x34d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x477cc2
cmp byte [edi], 5
jne 0x477cc2
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 0x477cc7
lea edi, [esi + 0x75000]
mov eax, dword [edi]
or eax, eax
je 0x477d3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x77740]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7777c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x477cf4
mov ecx, edi
jns 0x477d23
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 + 0x77784]
or eax, eax
je 0x477d39
mov dword [ebx], eax
add ebx, 4
jmp 0x477d11
call dword [esi + 0x77780]
mov ebp, dword [esi + 0x77788]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
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 0x477d73
sub esp, 0xffffff80
jmp 0x406078
Function at 0x402a69
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423ff0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402afd
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402aba
cmp dword [ebp + 0x10], ebx
jne 0x402af1
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a69
test eax, eax
jne 0x402acc
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402aa1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
call fcn.00405f28
cmp eax, ebx
je 0x402b04
push ebx
push dword [0x423ff0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402afd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423ff0], ebx
jne 0x402afa
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402afa
jmp 0x402afd
Function at 0x402e8e
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402eab
mov dword [ebp - 8], reloc.SHELL32.dll_SHGetPathFromIDListA
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402eba
mov ebx, 0x40f0e0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402ecf
mov ecx, dword [0x423f98]
add ecx, eax
push ecx
call fcn.004030b3
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403081
test eax, eax
je 0x40302c
test byte [ebp + 0x17], 0x80
je 0x403015
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40b050
mov dword [ebp - 0xc], eax
call fcn.00406005
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403077
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f1f
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0e0
push esi
push edi
call fcn.00403081
test eax, eax
je 0x40302c
sub dword [ebp + 0x14], esi
mov dword [0x40b068], edi
mov dword [0x40b06c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40b050
mov dword [0x40b070], ebx
mov dword [0x40b074], eax
call fcn.00406025
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40300d
mov esi, dword [0x40b070]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x423ff4], 1
mov edi, eax
je 0x402fc1
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f8e
cmp dword [ebp + 0x14], 0
jne 0x402fc1
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404e84
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403002
cmp dword [ebp + 0x10], eax
jne 0x402fea
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403011
cmp dword [ebp - 0x10], esi
jne 0x403011
add dword [ebp - 4], esi
jmp 0x402ff6
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40b070]
cmp dword [ebp - 0x14], 1
jne 0x402f42
jmp 0x403077
cmp dword [ebp + 0x14], eax
jg 0x402f12
jmp 0x403077
push 0xfffffffffffffffc
jmp 0x40302e
push 0xfffffffffffffffe
jmp 0x40302e
test edi, edi
je 0x40306c
cmp dword [ebp + 0x14], esi
jge 0x403021
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403081
test eax, eax
jne 0x403074
push 0xfffffffffffffffd
pop eax
jmp 0x40307a
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40303c
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0e0
push esi
push edi
call fcn.00403081
test eax, eax
je 0x40302c
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403011
cmp esi, dword [ebp + 0x10]
jne 0x403011
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403031
jmp 0x403077
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405346
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x40735c
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x40734c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405397
xor eax, eax
jmp 0x4053be
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4053be
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x405393
call esi
pop esi
leave
ret 4

Function at 0x4053f8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422540], 0x44
push eax
xor eax, eax
push 0x422540
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405433
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x4054bd
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040576c
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054f1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423fc8], eax
jmp 0x405685
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x40550f
test eax, eax
je 0x405630
test byte [ebp + 0xc], 2
je 0x405630
mov esi, 0x421540
push edi
push esi
call fcn.00405b98
test ebx, ebx
je 0x40552c
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405532
push edi
call fcn.004056d2
cmp byte [edi], 0
jne 0x405540
cmp byte [0x421540], 0x5c
jne 0x40554b
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405626
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004056b6
cmp byte [eax], 0
je 0x405591
cmp byte [ebp - 0x18], 0
je 0x405591
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4055a7
mov al, byte [esi + 1]
test al, al
je 0x405605
cmp al, 0x2e
jne 0x4055a7
cmp byte [esi + 2], 0
je 0x405605
push esi
push ebx
call fcn.00405b98
test byte [ebp - 0x148], 0x10
je 0x4055cc
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405605
push dword [ebp + 0xc]
push edi
call fcn.004054bd
jmp 0x405605
push edi
call fcn.00405850
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055fd
test byte [ebp + 0xc], 4
je 0x4055f5
push edi
push 0xfffffffffffffff1
call fcn.00404e84
push 0
push edi
call fcn.004058e6
jmp 0x405605
inc dword [0x423fc8]
jmp 0x405605
push edi
push 0xfffffffffffffff2
call fcn.00404e84
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40556f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405630
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405685
cmp dword [ebp - 8], esi
jne 0x405645
inc dword [0x423fc8]
jmp 0x405685
push edi
call fcn.00405e93
test eax, eax
je 0x405685
push edi
call fcn.0040568b
push edi
call fcn.00405850
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40567d
test byte [ebp + 0xc], 4
je 0x40563d
push edi
push 0xfffffffffffffff1
call fcn.00404e84
push esi
push edi
call fcn.004058e6
jmp 0x405685
push edi
push 0xffffffffffffffe5
call fcn.00404e84
pop edi
pop esi
leave
ret 8
Function at 0x40576c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421940
push esi
call fcn.00405b98
push esi
call fcn.0040571f
mov edi, eax
test edi, edi
jne 0x40578d
xor eax, eax
jmp 0x4057df
push edi
call fcn.00405dfa
test byte [0x423f58], 0x80
je 0x4057a6
mov al, byte [edi]
test al, al
je 0x405789
cmp al, 0x5c
je 0x405789
sub edi, esi
jmp 0x4057be
call fcn.00405e93
test eax, eax
je 0x4057b8
test byte [eax], 0x10
je 0x405789
push esi
call fcn.004056d2
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4057aa
call fcn.0040568b
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 0x405850
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 0x40586c
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40586f
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 0x40589e
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 0x4058e2
test edi, edi
jne 0x4058a9
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058dc
Function at 0x4058e6
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
call fcn.00405f28
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40590a
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a43
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x4226c8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4226c8
je 0x40594e
push 1
push 0
push esi
call fcn.0040586f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a49
cmp eax, edi
jg 0x405a49
mov esi, 0x422140
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a49
cmp eax, edi
jg 0x405a49
push esi
push ebp
push str._s_s_r_n
push 0x421d40
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423f50]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405bba
push 4
push 0xc0000000
push esi
call fcn.0040586f
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405a43
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 0x405a3c
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 0x405a3c
cmp edi, dword [esp + 0x18]
jne 0x405a3c
push str._Rename__r_n
push esi
call fcn.004057e4
test eax, eax
jne 0x405a50
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b98
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421d40
push eax
call fcn.00405830
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 [0x423fd0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4093e4
push eax
call fcn.004057e4
test eax, eax
je 0x405a07
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405a77
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405a6c
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405a09
Function at 0x405a7f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405af0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405adf
cmp dword [ebp + 0x14], 1
je 0x405ae1
cmp dword [ebp + 0x14], 2
je 0x405ae1
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405eba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405ede
xor eax, eax
test eax, eax
je 0x405ef0
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405ef0
xor ecx, ecx
jmp 0x405ef3
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x422acc], 0
push esi
jne 0x405fce
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 0x405fa8
mov dword [ecx*4 + 0x422ac8], eax
inc ecx
cmp ecx, 0x100
jl 0x405fa3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fff
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 + 0x422ac8]
xor eax, esi
inc ecx
dec edx
jne 0x405fe1
pop edi
not eax
pop esi
ret 0xc
Function at 0x401880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401899
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4018ad
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4018ce
cmp esi, eax
jae 0x4018a7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4018c0
cmp esi, eax
jae 0x4018a7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret