joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.0043a0f0
push ebp
push 0x414aa0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x43a210
mov al, byte [ebp - 0x110]
test al, al
je 0x43a1d9
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404f90
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409400
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a1d0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x611950
call fcn.00453f70
mov edx, 0x43a16a
mov ecx, ebp
call fcn.00414960
jmp 0x43a210
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x611950
call fcn.00453f70
mov edx, 0x43a1d9
mov ecx, ebp
call fcn.00414960
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x43a2d4
mov al, byte [ebp - 0x110]
test al, al
je 0x43a29d
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404f90
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409400
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a1d0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x611950
call fcn.00453f70
mov edx, 0x43a22e
mov ecx, ebp
call fcn.00414960
jmp 0x43a2d4
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x611950
call fcn.00453f70
mov edx, 0x43a29d
mov ecx, ebp
call fcn.00414960
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.00439790
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0043a0f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43d390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, 0x6125dc
call fcn.0040d2a0
test al, al
je 0x43d476
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.0043d490
xor eax, eax
push fcn.0043d380
push ebp
push 0x414aa0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0xc4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x18]
mov byte [edx + 0x18], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1a]
mov byte [edx + 0x1a], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1b]
mov byte [edx + 0x1b], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1c]
mov byte [edx + 0x1c], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 8]
add eax, 0x30
call fcn.00408b80
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
call fcn.0043c5a0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 8]
call fcn.0043c0f0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
call dword [ecx + 0xb0]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0043d380
jmp 0x43d481
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0043f920
mov esp, ebp
pop ebp
ret
Function at 0x4498d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc20]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc10], 0
xor eax, eax
push fcn.004498c0
push ebp
push 0x414aa0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xc10]
call fcn.00408b80
lea eax, [ebp - 0xc10]
call fcn.00403cf0
lea eax, [ebp - 0xc1c]
push eax
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x449930
mov eax, 0x6642f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc18], eax
cmp eax, 0xc00
jbe 0x4499da
mov edx, dword [ebp - 0xc18]
lea eax, [ebp - 0xc0c]
call fcn.0040fce0
xor eax, eax
push fcn.004498b0
push ebp
push 0x414aa0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0xc0c]
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x44998c
mov eax, 0x6642f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4499c8
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x6171dc
push eax
push dword [ebp - 0xc0c]
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4499c8
mov eax, dword [ebp - 0xc20]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004498b0
jmp 0x449a38
lea eax, [ebp - 0xc08]
push eax
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x4499fc
mov eax, 0x6642f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x449a38
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x6171dc
push eax
lea eax, [ebp - 0xc08]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x449a38
mov eax, dword [ebp - 0xc20]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004498c0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x455480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x26c]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov bl, cl
mov edx, 0x618140
lea eax, [ebp - 0x268]
call fcn.0040ea90
xor eax, eax
push fcn.00455460
push ebp
push 0x414aa0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4554c3
mov eax, 0x6642f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x45550b
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x4554df
clc
jmp 0x4554e6
bt dword [0x617710], eax
jb 0x4554ff
mov eax, ebp
call fcn.004555b0
test al, al
je 0x4554ff
mov byte [ebp - 0x26c], 1
jmp 0x455590
mov byte [ebp - 0x26c], 0
jmp 0x455590
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x57af30]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x455590
and esi, 0x400
je 0x455590
lea ebx, [ebp - 0x268]
mov edx, 0x618140
mov eax, ebx
call fcn.0040eb50
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.00455120
test eax, eax
je 0x455564
sub eax, 1
je 0x45557c
jmp 0x455588
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.00455480
mov byte [ebp - 0x26c], al
jmp 0x455590
mov byte [ebp - 0x26c], 1
jmp 0x455590
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00455460
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4557e0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x4557ec
mov eax, 0x6642f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esp, ebp
pop ebp
ret

Function at 0x455800
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edx
test eax, eax
jne 0x45580e
mov eax, 0x6642f0
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x45581c
xor ebx, ebx
jmp 0x455823
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455850
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x34]
push ebx
push esi
push edi
test al, al
jne 0x455868
mov byte [ebp - 4], 0x5c
mov byte [ebp - 3], 0
jmp 0x45587f
and eax, 0xff
add eax, 0x40
mov byte [ebp - 4], al
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
cmp dword [0x668300], 0
je 0x4558bb
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call dword [0x668300]
test eax, eax
je 0x4558ad
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x24]
jmp 0x455906
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
jmp 0x455906
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x4558fa
mov eax, dword [ebp - 8]
mul dword [ebp - 0x10]
mov ebx, eax
mov eax, dword [ebp - 0xc]
xor esi, esi
mov ecx, ebx
imul ecx, esi
imul edx, eax
add ecx, edx
mul ebx
add edx, ecx
mov dword [ebp - 0x34], eax
mov edi, edx
jmp 0x455906
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
mov edx, edi
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x455920
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x34]
push ebx
push esi
push edi
test al, al
jne 0x455938
mov byte [ebp - 4], 0x5c
mov byte [ebp - 3], 0
jmp 0x45594f
and eax, 0xff
add eax, 0x40
mov byte [ebp - 4], al
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
cmp dword [0x668300], 0
je 0x45598b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call dword [0x668300]
test eax, eax
je 0x45597d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x1c]
jmp 0x4559d6
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
jmp 0x4559d6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x4559ca
mov eax, dword [ebp - 8]
mul dword [ebp - 0x14]
mov ebx, eax
mov eax, dword [ebp - 0xc]
xor esi, esi
mov ecx, ebx
imul ecx, esi
imul edx, eax
add ecx, edx
mul ebx
add edx, ecx
mov dword [ebp - 0x34], eax
mov edi, edx
jmp 0x4559d6
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
mov edx, edi
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455a80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.00455a70
push ebp
push 0x414aa0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x455af0
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040ba70
cmp ebx, 1
jle 0x455ae0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.0040b220
jmp 0x455afb
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00408b80
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00455a70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x455f00
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00455ef0
push ebp
push 0x414aa0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x66829c]
xor edx, edx
call fcn.00408b80
mov dword [ebx*4 + 0x6682bc], 0xffffffff
cmp ebx, 7
jl 0x455f28
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x455fb4
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00409570
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.0044bad0
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x455fb4
push 4
push ebx
push esi
mov eax, 0x455dd0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x455e60
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00455ef0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456600
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor edx, edx
push fcn.004565d0
push ebp
push 0x414aa0
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.0044b250
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00408b80
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.0040a1d0
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00408b80
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x45670c
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.004094d0
mov eax, dword [ebp - 8]
test eax, eax
je 0x456697
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.0040a1d0
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.00409b00
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.004099a0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0044b250
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00409740
test eax, eax
jne 0x456704
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4566f3
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.004099a0
jmp 0x456715
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x456680
push dword [ebp - 0x1c]
call sub.kernel32.dll_FreeEnvironmentStringsA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004565d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456770
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x14]
push ebx
push esi
push edi
mov ebx, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00456740
push ebp
push 0x414aa0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.0040b3d0
call sub.kernel32.dll_GetEnvironmentStringsW
mov edi, eax
mov esi, edi
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00451bc0
jmp 0x456848
lea edx, [ebp - 4]
mov eax, esi
call fcn.0040b380
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x3d
call fcn.0040be50
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx - 1]
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.0040bbf0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00451bc0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040ba30
test eax, eax
jne 0x456838
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
test eax, eax
je 0x456826
mov eax, dword [eax - 4]
sub eax, ebx
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.0040bbf0
jmp 0x45684f
mov eax, esi
call fcn.00404960
shl eax, 1
add eax, esi
add eax, 2
mov esi, eax
cmp word [esi], 0
jne 0x4567d0
push edi
call sub.kernel32.dll_FreeEnvironmentStringsW
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00456740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x456880
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x668300], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x668160], eax
mov eax, dword [ebp - 0x90]
mov dword [0x668170], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x668180], eax
mov eax, dword [ebp - 0x88]
mov dword [0x668190], eax
mov edx, 0x6681a1
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.004037d0
lea eax, [ebp - 0x80]
call fcn.00404940
mov byte [0x6681a0], al
mov eax, 0x6177e0
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x668310], eax
test eax, eax
je 0x456920
mov eax, 0x6177ec
push eax
push dword [0x668310]
call sub.kernel32.dll_GetProcAddress
mov dword [0x668300], eax
nop
cmp dword [0x668170], 6
jae 0x456934
mov dword [0x57a7f0], 0
nop
cmp dword [0x668170], 6
jb 0x456950
cmp dword [0x668180], 1
jb 0x456950
mov dword [0x57a800], 2
mov esp, ebp
pop ebp
ret
Function at 0x492f20
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
lea esi, [ecx - 1]
test esi, esi
jl 0x492f54
mov edi, 0xffffffff
nop
add edi, 1
mov cl, al
xor cl, byte [edx]
and ecx, 0xff
mov ebx, ecx
mov ecx, eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x668910]
mov eax, ecx
add edx, 1
cmp esi, edi
jg 0x492f30
pop edi
pop esi
pop ebx
ret
Function at 0x4b2c90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x28]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00408b50
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x28], 0
xor eax, eax
push fcn.004b2c70
push ebp
push 0x414aa0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x4b2ccf
jmp 0x4b2cd4
jmp 0x4b2d99
mov eax, dword [ebp - 4]
call fcn.004b2810
mov byte [ebp - 0x18], al
cmp byte [ebp - 0x18], 0
jne 0x4b2ce7
jmp 0x4b2d07
mov eax, dword [ebp - 4]
call fcn.004b28a0
test al, al
jne 0x4b2cf5
jmp 0x4b2d07
mov eax, dword [ebp - 4]
mov dl, 1
call fcn.004b29d0
mov byte [ebp - 8], al
jmp 0x4b2d99
cmp byte [ebp - 0x18], 0
jne 0x4b2d0f
jmp 0x4b2d2b
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x20
call fcn.00409b00
cmp eax, 0
jg 0x4b2d25
jmp 0x4b2d2b
mov byte [ebp - 0x14], 1
jmp 0x4b2d2f
mov byte [ebp - 0x14], 0
cmp byte [ebp - 0x14], 0
jne 0x4b2d37
jmp 0x4b2d60
push 0
mov eax, 0x62b154
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov eax, 0x62b154
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x24]
lea eax, [ebp - 4]
mov ecx, 2
call fcn.00408f10
nop
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x28]
call fcn.0040cbe0
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0xc]
call fcn.0040b310
push 1
push 0
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4b2d88
mov eax, 0x6642f0
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
seta byte [ebp - 8]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004b2c70
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4b3270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov edx, eax
xor eax, eax
lea ebx, [edx + 1]
movzx ecx, byte [edx]
add ecx, 1
and ecx, 0xff
add edx, ecx
jmp 0x4b32a1
mov ecx, eax
shl ecx, 5
sub ecx, eax
movzx esi, byte [ebx]
xor ecx, esi
mov eax, ecx
add ebx, 1
cmp edx, ebx
ja 0x4b3290
pop esi
pop ebx
ret
Function at 0x4b4a80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp edx, 1
jne 0x4b4aa4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
call dword [edx + 0x34]
mov dword [ebp - 8], eax
lea esi, [esi]
cmp dword [ebp - 8], 0
je 0x4b4b6a
mov esi, esi
xor eax, eax
push 0x4b4b4b
push ebp
push 0x414e20
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040d380
mov eax, dword [ebp - 8]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 8]
mov byte [eax + 0xe], 0
mov edx, 1
mov eax, 0x612238
call fcn.0043b930
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
call fcn.004b4d00
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 8]
call fcn.004b4d70
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 8]
call fcn.004b4de0
mov edx, dword [ebp - 8]
mov dword [edx + 0x30], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
je 0x4b4b40
cmp dword [ebp - 4], 0
je 0x4b4b40
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x44]
nop
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x4b4b6a
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bd730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
je 0x4bd74b
jmp 0x4bd758
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
nop
cmp dword [ebp - 0xc], 0
je 0x4bd760
jmp 0x4bd768
jmp 0x4bd816
xor eax, eax
push 0x4bd7f3
push ebp
push 0x414e20
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
jne 0x4bd79e
jmp 0x4bd7c4
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_SizeofResource
mov ebx, eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, ebx
call fcn.00439790
mov esi, esi
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
jne 0x4bd7d3
jmp 0x4bd7e8
cmp dword [ebp - 8], 0
jne 0x4bd7db
jmp 0x4bd7e8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x4bd816
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4bf580
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4bf5b4
mov eax, esi
call fcn.004c3b00
cmp byte [esi + 0x40], 0
je 0x4bf5ac
mov dword [esi + 0x14], 0xcf
mov bl, 1
jmp 0x4bf665
mov dword [esi + 0x14], 0xcb
nop
cmp dword [esi + 0x14], 0xcb
jne 0x4bf644
mov eax, dword [esi + 0x184]
cmp byte [eax + 0x10], 0
je 0x4bf63c
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4bf5e8
mov eax, esi
mov edx, dword [esi + 8]
call dword [edx]
lea esi, [esi]
mov eax, esi
mov edx, dword [esi + 0x184]
call dword [edx]
mov edi, eax
test edi, edi
jne 0x4bf600
xor bl, bl
jmp 0x4bf665
cmp edi, 2
je 0x4bf63a
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4bf5d8
cmp edi, 3
je 0x4bf618
cmp edi, 1
jne 0x4bf5d8
mov eax, dword [esi + 8]
add dword [eax + 4], 1
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x4bf5d8
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x110]
add dword [edx + 8], eax
mov esi, esi
jmp 0x4bf5d8
mov esi, esi
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4bf65c
cmp dword [esi + 0x14], 0xcc
je 0x4bf65c
mov ecx, dword [esi + 0x14]
mov eax, esi
mov dl, 0x14
call fcn.004bf9a0
lea esi, [esi]
mov eax, esi
call fcn.004bf670
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
ret