joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42aaa0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x42ab4a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x42ab66
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x42ab66
sub dx, 0x20
je 0x42ab40
sub dx, 0x80
je 0x42ab40
sub dx, 0x1f62
jb 0x42ab66
sub dx, 1
jbe 0x42ab40
sub dx, 6
je 0x42ab40
sub dx, 0x26
jne 0x42ab66
nop
jmp 0x42ab40
cmp eax, dword [ebp - 0x20]
jg 0x42aae8
lea esi, [esi]
jmp 0x42ab66
cmp dword [ebp - 0x1c], 2
jne 0x42ab5a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x42ab66
mov al, byte [ebp - 0xc]
call fcn.0040b6d0
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x42abe4
sub ax, 0x21
je 0x42abf8
sub ax, 0x17
je 0x42ac04
sub ax, 0x222
je 0x42ac10
sub ax, 0x392
je 0x42ac18
sub ax, 1
je 0x42ac20
sub ax, 0x1996
je 0x42ac28
sub ax, 1
je 0x42ac30
sub ax, 6
je 0x42ac38
sub ax, 0xb
je 0x42ac48
sub ax, 0x1b
je 0x42ac40
sub ax, 0x367
je 0x42ac50
jmp 0x42ac58
mov ax, word [ebp - 0x24]
call fcn.0040b770
mov byte [ebp - 0x10], al
jmp 0x42ac60
mov byte [ebp - 0x10], 0x20
jmp 0x42ac60
mov byte [ebp - 0x10], 0x2e
jmp 0x42ac60
mov byte [ebp - 0x10], 0x27
jmp 0x42ac60
mov byte [ebp - 0x10], 0x2c
jmp 0x42ac60
mov byte [ebp - 0x10], 0x27
jmp 0x42ac60
mov byte [ebp - 0x10], 0x20
jmp 0x42ac60
mov byte [ebp - 0x10], 0x20
jmp 0x42ac60
mov byte [ebp - 0x10], 0x20
jmp 0x42ac60
mov byte [ebp - 0x10], 0x20
jmp 0x42ac60
mov byte [ebp - 0x10], 0x2d
jmp 0x42ac60
mov byte [ebp - 0x10], 0x27
jmp 0x42ac60
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4382d0
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.004382c0
push ebp
push 0x4145c0
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 0x4383e0
mov al, byte [ebp - 0x110]
test al, al
je 0x4383a9
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, 0x59c3f0
call fcn.004520b0
mov edx, 0x43833a
mov ecx, ebp
call fcn.00414480
jmp 0x4383e0
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, 0x59c3f0
call fcn.004520b0
mov edx, 0x4383a9
mov ecx, ebp
call fcn.00414480
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4384a4
mov al, byte [ebp - 0x110]
test al, al
je 0x43846d
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, 0x59c3f0
call fcn.004520b0
mov edx, 0x4383fe
mov ecx, ebp
call fcn.00414480
jmp 0x4384a4
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, 0x59c3f0
call fcn.004520b0
mov edx, 0x43846d
mov ecx, ebp
call fcn.00414480
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.00437960
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004382c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43b560
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, 0x59d07c
call fcn.0040d2a0
test al, al
je 0x43b646
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.0043b660
xor eax, eax
push fcn.0043b550
push ebp
push 0x4145c0
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.0043a770
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 8]
call fcn.0043a2c0
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.0043b550
jmp 0x43b651
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0043daf0
mov esp, ebp
pop ebp
ret
Function at 0x447aa0
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.00447a90
push ebp
push 0x4145c0
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 0x447b00
mov eax, 0x5ef2f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc18], eax
cmp eax, 0xc00
jbe 0x447baa
mov edx, dword [ebp - 0xc18]
lea eax, [ebp - 0xc0c]
call fcn.0040fce0
xor eax, eax
push fcn.00447a80
push ebp
push 0x4145c0
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 0x447b5c
mov eax, 0x5ef2f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x447b98
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x5a1c7c
push eax
push dword [ebp - 0xc0c]
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x447b98
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.00447a80
jmp 0x447c08
lea eax, [ebp - 0xc08]
push eax
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x447bcc
mov eax, 0x5ef2f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x447c08
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x5a1c7c
push eax
lea eax, [ebp - 0xc08]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x447c08
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.00447a90
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4535c0
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, 0x5a2be0
lea eax, [ebp - 0x268]
call fcn.0040ea90
xor eax, eax
push fcn.004535a0
push ebp
push 0x4145c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x453603
mov eax, 0x5ef2f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x45364b
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x45361f
clc
jmp 0x453626
bt dword [0x5a21b0], eax
jb 0x45363f
mov eax, ebp
call fcn.004536f0
test al, al
je 0x45363f
mov byte [ebp - 0x26c], 1
jmp 0x4536d0
mov byte [ebp - 0x26c], 0
jmp 0x4536d0
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x578e90]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x4536d0
and esi, 0x400
je 0x4536d0
lea ebx, [ebp - 0x268]
mov edx, 0x5a2be0
mov eax, ebx
call fcn.0040eb50
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.00453260
test eax, eax
je 0x4536a4
sub eax, 1
je 0x4536bc
jmp 0x4536c8
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.004535c0
mov byte [ebp - 0x26c], al
jmp 0x4536d0
mov byte [ebp - 0x26c], 1
jmp 0x4536d0
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004535a0
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x453920
Capabilities:
Get file attributes

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

Function at 0x453940
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edx
test eax, eax
jne 0x45394e
mov eax, 0x5ef2f0
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x45395c
xor ebx, ebx
jmp 0x453963
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453990
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x34]
push ebx
push esi
push edi
test al, al
jne 0x4539a8
mov byte [ebp - 4], 0x5c
mov byte [ebp - 3], 0
jmp 0x4539bf
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 [0x5f3060], 0
je 0x4539fb
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 [0x5f3060]
test eax, eax
je 0x4539ed
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x1c]
jmp 0x453a46
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
jmp 0x453a46
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 0x453a3a
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 0x453a46
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 0x453af0
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.00453ae0
push ebp
push 0x4145c0
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 0x453b60
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040ba70
cmp ebx, 1
jle 0x453b50
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 0x453b6b
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.00453ae0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x453f70
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.00453f60
push ebp
push 0x4145c0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x5f2ffc]
xor edx, edx
call fcn.00408b80
mov dword [ebx*4 + 0x5f301c], 0xffffffff
cmp ebx, 7
jl 0x453f98
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 0x454024
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.00449be0
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x454024
push 4
push ebx
push esi
mov eax, 0x453e40
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x453ed0
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.00453f60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x454670
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.00454640
push ebp
push 0x4145c0
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.00449360
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 0x45477c
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.004094d0
mov eax, dword [ebp - 8]
test eax, eax
je 0x454707
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.00449360
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00409740
test eax, eax
jne 0x454774
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x454763
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.004099a0
jmp 0x454785
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x4546f0
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.00454640
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4547e0
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.004547b0
push ebp
push 0x4145c0
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.0044fd00
jmp 0x4548b8
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.0044fd00
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040ba30
test eax, eax
jne 0x4548a8
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
test eax, eax
je 0x454896
mov eax, dword [eax - 4]
sub eax, ebx
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.0040bbf0
jmp 0x4548bf
mov eax, esi
call fcn.00404960
shl eax, 1
add eax, esi
add eax, 2
mov esi, eax
cmp word [esi], 0
jne 0x454840
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.004547b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4548f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x5f3060], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x5f2ec0], eax
mov eax, dword [ebp - 0x90]
mov dword [0x5f2ed0], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x5f2ee0], eax
mov eax, dword [ebp - 0x88]
mov dword [0x5f2ef0], eax
mov edx, 0x5f2f01
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.004037d0
lea eax, [ebp - 0x80]
call fcn.00404940
mov byte [0x5f2f00], al
mov eax, 0x5a2280
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x5f3070], eax
test eax, eax
je 0x454990
mov eax, 0x5a228c
push eax
push dword [0x5f3070]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5f3060], eax
nop
cmp dword [0x5f2ed0], 6
jae 0x4549a4
mov dword [0x578750], 0
nop
cmp dword [0x5f2ed0], 6
jb 0x4549c0
cmp dword [0x5f2ee0], 1
jb 0x4549c0
mov dword [0x578760], 2
mov esp, ebp
pop ebp
ret
Function at 0x490f90
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
lea esi, [ecx - 1]
test esi, esi
jl 0x490fc4
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 + 0x5f3670]
mov eax, ecx
add edx, 1
cmp esi, edi
jg 0x490fa0
pop edi
pop esi
pop ebx
ret
Function at 0x4b0d00
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.004b0ce0
push ebp
push 0x4145c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x4b0d3f
jmp 0x4b0d44
jmp 0x4b0e09
mov eax, dword [ebp - 4]
call fcn.004b0880
mov byte [ebp - 0x18], al
cmp byte [ebp - 0x18], 0
jne 0x4b0d57
jmp 0x4b0d77
mov eax, dword [ebp - 4]
call fcn.004b0910
test al, al
jne 0x4b0d65
jmp 0x4b0d77
mov eax, dword [ebp - 4]
mov dl, 1
call fcn.004b0a40
mov byte [ebp - 8], al
jmp 0x4b0e09
cmp byte [ebp - 0x18], 0
jne 0x4b0d7f
jmp 0x4b0d9b
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x20
call fcn.00409b00
cmp eax, 0
jg 0x4b0d95
jmp 0x4b0d9b
mov byte [ebp - 0x14], 1
jmp 0x4b0d9f
mov byte [ebp - 0x14], 0
cmp byte [ebp - 0x14], 0
jne 0x4b0da7
jmp 0x4b0dd0
push 0
mov eax, 0x5b5bf4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov eax, 0x5b5bf4
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 0x4b0df8
mov eax, 0x5ef2f0
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.004b0ce0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4b12e0
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 0x4b1311
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 0x4b1300
pop esi
pop ebx
ret
Function at 0x4b2af0
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 0x4b2b14
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 0x4b2bda
mov esi, esi
xor eax, eax
push 0x4b2bbb
push ebp
push 0x414940
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, 0x59ccd8
call fcn.00439b00
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
call fcn.004b2d70
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 8]
call fcn.004b2de0
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 8]
call fcn.004b2e50
mov edx, dword [ebp - 8]
mov dword [edx + 0x30], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
je 0x4b2bb0
cmp dword [ebp - 4], 0
je 0x4b2bb0
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 0x4b2bda
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bb7a0
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 0x4bb7bb
jmp 0x4bb7c8
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 0x4bb7d0
jmp 0x4bb7d8
jmp 0x4bb886
xor eax, eax
push 0x4bb863
push ebp
push 0x414940
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 0x4bb80e
jmp 0x4bb834
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.00437960
mov esi, esi
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
jne 0x4bb843
jmp 0x4bb858
cmp dword [ebp - 8], 0
jne 0x4bb84b
jmp 0x4bb858
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 0x4bb886
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4