joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f4d0
Capabilities:
Capture screenshot

Disassembly:
mov eax, 0x40
call fcn.0040b440
call fcn.0042ec30
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x42f4f9
call fcn.00434f90
test eax, eax
jg 0x42f62f
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
push 8
push edi
mov dword [esp + 0x18], ebx
call esi
mov ebp, eax
push 0xa
push edi
mov dword [esp + 0x20], ebp
call esi
push 0x10
push ebp
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
push esi
push ebx
mov dword [esp + 0x24], esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x38]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov esi, dword [esp + 0x48]
push 0x2cf
and esi, 0xffff
push str..crypto_rand_rand_win.c
imul esi, dword [esp + 0x48]
imul esi, dword [esp + 0x4c]
push esi
call fcn.004310f0
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x42f60c
mov ecx, dword [esp + 0x14]
xor ebx, ebx
lea eax, [ecx - 0x10]
test eax, eax
mov dword [esp + 0x14], eax
jle 0x42f5ff
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push 0xcc0020
push ebx
push 0
push edi
push 0x10
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x1c]
push ebp
push esi
push ecx
call dword [sym.imp.GDI32.dll_GetBitmapBits]
push 0
call fcn.0043b190
push eax
lea edx, [esp + 0x2c]
push 0
push edx
push esi
push ebp
call fcn.00430c60
push 0
push 0
lea eax, [esp + 0x44]
push 0x14
push eax
call fcn.00436c30
mov eax, dword [esp + 0x3c]
add ebx, 0x10
add esp, 0x28
cmp ebx, eax
jl 0x42f59f
push ebp
call fcn.004313b0
mov ebx, dword [esp + 0x14]
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call esi
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x4350a0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.0040b440
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4350e5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4350e5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push sym.imp.MSVCRT.dll___p___argc
call sub.MSVCRT.dll_vfprintf
add esp, 0xc
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x104]
push 0xff
push ecx
call sub.MSVCRT.dll__vsnprintf
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x435162
call fcn.00434f90
test eax, eax
jle 0x435162
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x435178
lea eax, [ebp - 4]
push 0
push eax
push 0
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x104]
push 1
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
push 0x10
lea ecx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4351c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 4
call fcn.0040b440
push edi
mov edi, dword [esp + 0x14]
xor cl, cl
test edi, edi
mov byte [esp + 4], cl
jbe 0x4351f8
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x18]
sub esi, eax
mov dl, byte [esi + eax]
mov bl, byte [eax]
xor dl, bl
or cl, dl
inc eax
dec edi
jne 0x4351e5
pop esi
mov byte [esp + 8], cl
pop ebx
mov eax, dword [esp + 4]
pop edi
and eax, 0xff
pop ecx
ret

Function at 0x435a10
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
test edi, edi
je 0x435a71
mov al, byte [edi]
test al, al
je 0x435a71
push ebx
push ebp
mov ebx, 0x100
movsx eax, al
or eax, ebx
mov ebp, esi
mov edx, eax
mov ecx, eax
shr edx, 2
and edx, 0xf
and ecx, 0xf
xor edx, ecx
mov ecx, 0x20
sub ecx, edx
add ebx, 0x100
shr ebp, cl
mov ecx, edx
mov edx, eax
imul edx, eax
shl esi, cl
mov al, byte [edi + 1]
or ebp, esi
xor ebp, edx
inc edi
test al, al
mov esi, ebp
jne 0x435a29
mov eax, esi
pop ebp
shr eax, 0x10
pop ebx
xor eax, esi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x449980
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.0040b440
push ebx
mov ebx, dword [esp + 0x88]
push ebp
mov ebp, dword [esp + 0x94]
mov eax, dword [ebx]
push esi
mov esi, dword [esp + 0x9c]
xor ecx, ecx
test esi, esi
push edi
je 0x4499cf
cmp esi, eax
je 0x4499c6
mov eax, dword [esp + 0x98]
test eax, eax
je 0x449b80
test ebp, ebp
jl 0x449b80
mov ecx, 1
mov dword [ebx], esi
jmp 0x4499e0
test eax, eax
je 0x449b80
mov dword [esp + 0xa0], eax
mov esi, eax
mov eax, dword [esp + 0x98]
test eax, eax
je 0x449ac6
push esi
call fcn.00445e90
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x449a16
push str.j____int_sizeof_ctx__key_
push 0x6a
push str..cryptohmachmac.c
call fcn.00435190
add esp, 0xc
cmp edi, ebp
jge 0x449a6c
mov eax, dword [esp + 0xa4]
lea edi, [ebx + 4]
push eax
push esi
push edi
call fcn.00430660
add esp, 0xc
test eax, eax
je 0x449b80
mov ecx, dword [esp + 0x98]
push ebp
push ecx
push edi
call fcn.00430810
add esp, 0xc
test eax, eax
je 0x449b80
lea esi, [ebx + 0x4c]
lea edx, [ebx + 0x50]
push esi
push edx
push edi
call fcn.00430940
add esp, 0xc
test eax, eax
je 0x449b80
jmp 0x449a9f
test ebp, ebp
jl 0x449b80
cmp ebp, 0x80
jg 0x449b80
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov eax, ecx
lea edi, [ebx + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x4c]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0x449ace
mov ecx, 0x80
xor eax, eax
sub ecx, esi
lea edi, [esi + ebx + 0x50]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x449ace
test ecx, ecx
je 0x449b5c
xor eax, eax
mov cl, byte [ebx + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x449ad0
mov ebp, dword [esp + 0xa4]
mov edi, dword [esp + 0xa0]
lea esi, [ebx + 0x1c]
push ebp
push edi
push esi
call fcn.00430660
add esp, 0xc
test eax, eax
je 0x449b80
push edi
call fcn.00445e90
lea edx, [esp + 0x14]
push eax
push edx
push esi
call fcn.00430810
add esp, 0x10
test eax, eax
je 0x449b80
xor eax, eax
mov cl, byte [ebx + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x449b1e
lea esi, [ebx + 0x34]
push ebp
push edi
push esi
call fcn.00430660
add esp, 0xc
test eax, eax
je 0x449b80
push edi
call fcn.00445e90
lea edx, [esp + 0x14]
push eax
push edx
push esi
call fcn.00430810
add esp, 0x10
test eax, eax
je 0x449b80
lea eax, [ebx + 0x1c]
add ebx, 4
push eax
push ebx
call fcn.004309e0
add esp, 8
test eax, eax
je 0x449b80
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x80
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret
Function at 0x488740
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov ecx, dword [eax + 4]
push edi
cmp ecx, dword [ebx + 4]
jge 0x488759
mov esi, ebx
mov ebx, eax
jmp 0x48875b
mov esi, eax
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 4]
cmp eax, dword [edi + 8]
jg 0x48876b
mov eax, edi
jmp 0x488775
push eax
push edi
call fcn.00443e80
add esp, 8
test eax, eax
jne 0x48877d
pop edi
pop esi
pop ebx
ret
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
jle 0x4887a1
push ebp
mov edx, dword [esi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
mov ebp, dword [ecx + eax*4]
mov ecx, dword [edi]
xor edx, ebp
mov dword [ecx + eax*4], edx
mov ecx, dword [ebx + 4]
inc eax
cmp eax, ecx
jl 0x488787
pop ebp
cmp eax, dword [esi + 4]
jge 0x4887b8
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
jl 0x4887a6
mov eax, dword [esi + 4]
test eax, eax
mov dword [edi + 4], eax
jle 0x4887d9
mov ecx, dword [edi]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4887d6
dec eax
test eax, eax
jg 0x4887c8
mov dword [edi + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x402e9a
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 [0x426390]
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 0x402f2e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402eeb
cmp dword [ebp + 0x10], ebx
jne 0x402f22
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402e9a
test eax, eax
jne 0x402efd
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ed2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406448
cmp eax, ebx
je 0x402f35
push ebx
push dword [0x426390]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f2e
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 [0x426390], ebx
jne 0x402f2b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402f2b
jmp 0x402f2e
Function at 0x4032bf
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 0x4032dc
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4032eb
mov ebx, 0x410878
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403300
mov ecx, dword [0x426338]
add ecx, eax
push ecx
call fcn.004034e4
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034b2
test eax, eax
je 0x40345d
test byte [ebp + 0x17], 0x80
je 0x403446
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40c7e8
mov dword [ebp - 0xc], eax
call fcn.00406522
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4034a8
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403350
mov esi, dword [ebp + 0x14]
mov edi, 0x40c878
push esi
push edi
call fcn.004034b2
test eax, eax
je 0x40345d
sub dword [ebp + 0x14], esi
mov dword [0x40c800], edi
mov dword [0x40c804], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40c7e8
mov dword [0x40c808], ebx
mov dword [0x40c80c], eax
call fcn.00406542
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40343e
mov esi, dword [0x40c808]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x426394], 1
mov edi, eax
je 0x4033f2
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4033bf
cmp dword [ebp + 0x14], 0
jne 0x4033f2
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.00405289
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403433
cmp dword [ebp + 0x10], eax
jne 0x40341b
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 0x403442
cmp dword [ebp - 0x10], esi
jne 0x403442
add dword [ebp - 4], esi
jmp 0x403427
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40c808]
cmp dword [ebp - 0x14], 1
jne 0x403373
jmp 0x4034a8
cmp dword [ebp + 0x14], eax
jg 0x403343
jmp 0x4034a8
push 0xfffffffffffffffc
jmp 0x40345f
push 0xfffffffffffffffe
jmp 0x40345f
test edi, edi
je 0x40349d
cmp dword [ebp + 0x14], esi
jge 0x403452
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034b2
test eax, eax
jne 0x4034a5
push 0xfffffffffffffffd
pop eax
jmp 0x4034ab
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40346d
mov esi, dword [ebp + 0x14]
mov edi, 0x40c878
push esi
push edi
call fcn.004034b2
test eax, eax
je 0x40345d
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 0x403442
cmp esi, dword [ebp + 0x10]
jne 0x403442
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403462
jmp 0x4034a8
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405780
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x423cd0], 0x44
push eax
xor eax, eax
push 0x423cd0
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 0x4057bb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405b4d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4230d0
push esi
call fcn.00405f79
push esi
call fcn.00405b00
mov edi, eax
test edi, edi
jne 0x405b6e
xor eax, eax
jmp 0x405bc0
push edi
call fcn.004061db
test byte [0x4262f8], 0x80
je 0x405b87
mov al, byte [edi]
test al, al
je 0x405b6a
cmp al, 0x5c
je 0x405b6a
sub edi, esi
jmp 0x405b9f
call fcn.00406421
test eax, eax
je 0x405b99
test byte [eax], 0x10
je 0x405b6a
push esi
call fcn.00405ab3
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405b8b
call fcn.00405a6c
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 0x405c31
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 0x405c4d
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405c50
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 0x405c7f
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 0x405cc3
test edi, edi
jne 0x405c8a
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405cbd
Function at 0x405cc7
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00406448
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405ceb
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405e24
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x423e58], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x423e58
je 0x405d2f
push 1
push 0
push esi
call fcn.00405c50
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e2a
cmp eax, edi
jg 0x405e2a
mov esi, 0x4238d0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e2a
cmp eax, edi
jg 0x405e2a
push esi
push ebp
push str._s_s_r_n
push 0x4234d0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4262f0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405f9b
push 4
push 0xc0000000
push esi
call fcn.00405c50
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405e24
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 0x405e1d
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 0x405e1d
cmp edi, dword [esp + 0x18]
jne 0x405e1d
push str._Rename__r_n
push esi
call fcn.00405bc5
test eax, eax
jne 0x405e31
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405f79
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x4234d0
push eax
call fcn.00405c11
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 [0x426370]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aad8
push eax
call fcn.00405bc5
test eax, eax
je 0x405de8
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405e58
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e4d
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405dea
Function at 0x405e60
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 0x405ed1
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 0x405ec0
cmp dword [ebp + 0x14], 1
je 0x405ec2
cmp dword [ebp + 0x14], 2
je 0x405ec2
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 0x406274
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406299
mov eax, dword [0x40a8a8]
cmp eax, 0xffffffff
je 0x406290
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a8], 0xffffffff
jmp 0x40630c
cmp dword [0x424a60], ebx
je 0x40630c
cmp byte [0x424660], bl
je 0x4062d8
cmp dword [0x40a8a8], 0xffffffff
jne 0x4062e1
push 4
push 0x40000000
push 0x424660
call fcn.00405c50
cmp eax, 0xffffffff
mov dword [0x40a8a8], eax
je 0x40630c
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a8], 0xffffffff
je 0x40630c
push esi
mov esi, 0x425280
push 0x40aaf0
push esi
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x40a8a8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
cmp dword [0x42425c], 0
push esi
jne 0x4064eb
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 0x4064c5
mov dword [ecx*4 + 0x424258], eax
inc ecx
cmp ecx, 0x100
jl 0x4064c0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40651c
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 + 0x424258]
xor eax, esi
inc ecx
dec edx
jne 0x4064fe
pop edi
not eax
pop esi
ret 0xc
Function at 0x4021a2
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0x20
mov eax, 0x422de1
call fcn.00410ed0
and dword [ebp - 0x18], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x4021da
dec eax
push eax
lea ecx, [ebp + 0xc]
call fcn.00401a80
cmp al, 0x5c
je 0x4021da
push 0x5c
lea ecx, [ebp + 0xc]
call fcn.00401b5e
call fcn.0040c977
mov eax, dword [eax + 0xc]
push str.IDR_EXE
push 0x81
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
call fcn.0040c977
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebp + 8]
mov ecx, edi
mov esi, eax
call fcn.00401318
mov eax, dword [esi]
add esi, 4
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], eax
test eax, eax
jbe 0x4022e8
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401cee
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00401c7c
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.004010d4
push esi
lea ecx, [ebp - 0x20]
call fcn.00401e71
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax - 0xc]
add ecx, 0xfffffff0
lea esi, [esi + eax + 1]
call fcn.004010d4
mov eax, dword [edi]
push 0x424d64
push eax
call fcn.004115a6
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4022bf
push edi
lea eax, [ebp - 0x24]
push str.Cannot_create_file
push eax
call fcn.00401d52
add esp, 0xc
mov eax, dword [eax]
push 0
push 0
push eax
mov byte [ebp - 4], 3
call fcn.00409df6
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.004010d4
push dword [ebp - 0x10]
lea eax, [esi + 4]
push dword [esi]
push ebx
push eax
call fcn.00411460
push dword [ebp - 0x10]
call fcn.00411282
mov eax, dword [esi]
add esp, 0x14
dec dword [ebp - 0x14]
lea esi, [esi + eax + 4]
jne 0x402231
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FreeResource]
call fcn.0040991c
push eax
lea ecx, [ebp - 0x14]
call fcn.004012ac
push dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push str._d_Files_successfully_extracted.
push eax
mov byte [ebp - 4], 4
call fcn.004013af
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004010d4
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004010d4
mov eax, edi
call fcn.00410fa8
ret 8