joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4216c4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x421818
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x421664]
call fcn.0040d00c
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x421694]
call fcn.0040d00c
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00421b8c
test al, al
jne 0x42173a
mov dl, 1
mov eax, esi
call fcn.00421af4
test al, al
je 0x4217c4
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.004221b4
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.00429a7c
push 0x104
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040abe8
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x4217bf
test byte [ebp - 0x14], 1
je 0x42178a
or bl, 1
test byte [ebp - 0x14], 2
je 0x421793
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x42179c
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x4217b0
dec eax
je 0x4217b5
dec eax
je 0x4217ba
dec eax
jne 0x4217dc
or bl, 0x10
jmp 0x4217dc
or bl, 4
jmp 0x4217dc
or bl, 8
jmp 0x4217dc
call fcn.0042ac60
push esi
mov ecx, dword [0x506438]
mov dl, 1
mov eax, dword [0x41a4b0]
call fcn.0042893c
call fcn.00409780
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42181f
lea eax, [ebp - 0x1c]
call fcn.0040a088
lea eax, [ebp - 0xc]
mov edx, dword [0x421694]
call fcn.0040d130
lea eax, [ebp - 8]
mov edx, dword [0x421664]
call fcn.0040d130
lea eax, [ebp - 4]
call fcn.0040a088
pop eax
jmp eax

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040abe8
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x421b5e
test ah, 4
je 0x421b57
test bl, bl
jne 0x421b1c
mov al, 1
jmp 0x421b85
test al, 0x10
je 0x421b24
xor eax, eax
jmp 0x421b85
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421b48
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x421b85
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x421b85
test al, 0x10
sete al
jmp 0x421b85
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x421b7f
cmp ebx, 3
je 0x421b7f
cmp ebx, 0x7b
je 0x421b7f
mov eax, esi
call fcn.00421ab4
test al, al
jne 0x421b83
xor eax, eax
jmp 0x421b85
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x421b8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040abe8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x421c2a
test esi, 0x400
jne 0x421bc1
test esi, 0x10
setne bl
jmp 0x421c2a
cmp byte [esp], 0
je 0x421bf5
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421c2a
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x421c2a
test esi, 0x10
je 0x421c01
mov bl, 1
jmp 0x421c2a
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421c28
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x421c2a
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x421e60
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040abe8
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x421eb5
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x421eaf
test ah, 4
je 0x421eaf
test al, 0x10
je 0x421eaf
mov eax, esi
call fcn.0040abe8
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x421eb5
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x426ebc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x426ef5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a220
jmp 0x426efe
mov eax, ebx
mov edx, esi
call fcn.0040a478
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426f08
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x426f2c
movzx eax, word [esp]
jmp 0x426f2e
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x428360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x428487
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00428168
mov esi, eax
mov eax, dword [0x506384]
cmp byte [eax], 0
je 0x42842d
mov eax, dword [0x506100]
call fcn.00407d18
call fcn.004073ec
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x428330]
call fcn.0040d00c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4284a0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x428469
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5060a0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x50a63c]
call fcn.0040d5a0
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42848e
lea eax, [ebp - 4]
mov edx, dword [0x428330]
call fcn.0040d130
pop eax
jmp eax
Function at 0x429364
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4293a7
mov eax, dword [ebp - 0x10c]
mov dword [0x50a954], eax
mov eax, 0x50a958
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040ac84
mov eax, 0x50a95c
call fcn.0040a088
xor eax, eax
mov dword [0x50a960], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x50a818], 0xa
jl 0x4294fd
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x429508
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4294fd
xor eax, eax
push ebp
push 0x4294f6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x429564
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x429456
cmp dword [ebp - 8], 2
jle 0x429456
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x429429
adc edx, 0
mov eax, 0x50a95c
call fcn.0040ad5c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x50a95c]
call fcn.0040abe8
push eax
push 0
push 0
push 0x429564
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x4294b0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x429584
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4294b0
cmp dword [ebp - 8], 2
jle 0x4294b0
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x429485
adc edx, 0
mov eax, 0x50a95c
call fcn.0040ad5c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x50a95c]
call fcn.0040abe8
push eax
push 0
push 0
push 0x429584
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x50a960
push 0
push 0
push 0x429598
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x4294dd
xor eax, eax
mov dword [0x50a960], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4294fd
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x500710], 1
mov esp, ebp
pop ebp
ret
Function at 0x42aaa8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040a598
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410124
mov edi, eax
cmp edi, 0x104
jbe 0x42aa53
mov eax, edi
add eax, eax
call fcn.00407278
mov esi, eax
jmp 0x42aa55
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410124
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42aa8e
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42aa78
mov eax, esp
cmp esi, eax
je 0x42aa9b
mov eax, esi
call fcn.00407294
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42aad4
cmp bl, 0
je 0x42aad0
cmp bl, 0x41
jl 0x42aacb
cmp bl, 0x5a
jg 0x42aacb
or bl, 0x20
xor al, bl
inc esi
jmp 0x42aaaf
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42aa14

Function at 0x42b458
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.0040a088
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040abe8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x42b49d
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040a220
jmp 0x42b4b6
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040ad5c
push ebx
mov eax, dword [esi]
call fcn.0040abe8
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42bafc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42bb1c
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42bb36
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42bb31
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x42bb3b
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42bba9
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42bbf2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42bb67
inc dword [ebp - 0xc]
jmp 0x42bb7f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42bb7f
cmp dword [ebp - 0xc], 0
jle 0x42bb7f
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42bba1
xor eax, eax
jmp 0x42bb9d
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42bb9c
mov eax, esi
jmp 0x42bbf5
inc eax
cmp eax, ecx
jle 0x42bb89
inc esi
cmp esi, dword [ebp - 8]
jl 0x42bb53
jmp 0x42bbf2
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42bbf2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42bbca
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42bbec
xor eax, eax
jmp 0x42bbe8
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42bbe7
mov eax, esi
jmp 0x42bbf5
inc eax
cmp eax, ecx
jle 0x42bbd4
inc esi
cmp esi, dword [ebp - 8]
jl 0x42bbb2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42bd64
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x42bd83
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42bd93
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x42beb5
test ebx, ebx
jl 0x42beb5
test esi, esi
jle 0x42beb5
mov eax, dword [ebp - 8]
call fcn.0040abe8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040abe8
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x42be52
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42beb5
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42be37
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42be06
inc dword [ebp - 0x14]
jmp 0x42be16
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x42be16
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x42be21
or eax, 0xffffffff
jmp 0x42be37
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42be34
inc eax
jmp 0x42be37
or eax, 0xffffffff
test eax, eax
jl 0x42be3f
cmp esi, eax
jg 0x42bdf4
cmp esi, eax
jg 0x42be4a
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42beb8
inc edx
dec dword [ebp - 0x1c]
jne 0x42bdf0
jmp 0x42beb5
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42beb5
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42be9c
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42be7b
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42be86
or eax, 0xffffffff
jmp 0x42be9c
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42be99
inc eax
jmp 0x42be9c
or eax, 0xffffffff
test eax, eax
jl 0x42bea4
cmp esi, eax
jg 0x42be64
cmp esi, eax
jg 0x42beaf
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42beb8
inc edx
dec dword [ebp - 0x1c]
jne 0x42be60
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43a1dc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x43a1e4
mov eax, edx
pop esi
pop ebx
ret
Function at 0x43dc24
Capabilities:
Hash data using sha1

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x68
call fcn.00407d90
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
mov dword [ebx + 0x10], 0xc3d2e1f0
pop ebx
ret
Function at 0x43f6c8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x43f6df
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x43f6cf
mov eax, ecx
pop ebx
ret

Function at 0x44ea70
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x44ea84
add esp, 0xfffffff0
call fcn.004088f0
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x448b0c]
call fcn.00468eec
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x44daac]
call fcn.0046a548
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x44daac]
call fcn.0046a548
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]

Function at 0x4a2c1c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4a2c5f
cmp byte [ebx + 0x11], 0
jne 0x4a2c5f
cmp byte [ebx + 0x24], 0
jne 0x4a2c5f
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4a2c76
mov ecx, dword [0x506318]
mov dl, 1
mov eax, dword [0x47ab40]
call fcn.00428570
call fcn.00409780
pop ebx
ret
mov ecx, dword [0x506318]
mov dl, 1
mov eax, dword [0x47ab40]
call fcn.00428570
call fcn.00409780
pop ebx
ret

Function at 0x4a31b8
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4a3206
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004a2b94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a321f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b2e18
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x4b2eb4
push 0
mov eax, ebx
call fcn.0040abe8
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExW
mov ebx, eax
test ebx, ebx
jne 0x4b2e8f
mov ebx, esi
test ebx, ebx
je 0x4b2e61
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.0040abe8
push eax
push 1
push 0
mov eax, edi
call fcn.0040abe8
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
test ebx, ebx
je 0x4b2eaa
mov ecx, dword [0x506118]
mov dl, 1
mov eax, dword [0x4b1b44]
call fcn.00428570
call fcn.00409780
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4b4bd0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
test ecx, ecx
jbe 0x4b4c01
dec ecx
test ecx, ecx
jb 0x4b4c01
inc ecx
xor ebx, ebx
movzx esi, byte [edx + ebx]
mov edi, dword [eax]
and edi, 0xff
xor esi, edi
mov esi, dword [esi*4 + 0x50d984]
mov edi, dword [eax]
shr edi, 8
xor esi, edi
mov dword [eax], esi
inc ebx
dec ecx
jne 0x4b4bdf
pop edi
pop esi
pop ebx
ret

Function at 0x4b6288
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b63d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x501d68]
mov edx, dword [eax]
call dword [edx]
xor eax, eax
push ebp
push 0x4b63af
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x501d74], 0
jne 0x4b6382
mov dword [0x501d74], 0x104
mov eax, dword [0x501d70]
test eax, eax
je 0x4b62fe
cmp word [eax], 0
je 0x4b62fe
lea eax, [ebp - 4]
mov edx, dword [0x501d70]
call fcn.0040ac48
mov eax, dword [ebp - 4]
sub eax, 0xa
movzx esi, word [eax]
jmp 0x4b6302
mov si, 2
movzx eax, si
imul dword [0x501d74]
call fcn.00407278
mov dword [0x501d70], eax
mov eax, dword [0x501d70]
push eax
mov eax, dword [0x501d74]
push eax
call sub.kernel32.dll_GetTempPathW
mov dword [0x501d74], eax
mov eax, ebx
mov ecx, dword [0x501d74]
mov edx, dword [0x501d70]
call fcn.0040a220
mov eax, dword [ebx]
call fcn.004b626c
mov eax, dword [ebx]
call fcn.004b73dc
test al, al
jne 0x4b6395
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, 0x4b6264
call fcn.0041007c
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x419754]
call fcn.004284ec
call fcn.00409780
jmp 0x4b6395
mov eax, ebx
mov ecx, dword [0x501d74]
mov edx, dword [0x501d70]
call fcn.0040a220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b63b6
mov eax, dword [0x501d68]
mov edx, dword [eax]
call dword [edx + 4]
pop eax
jmp eax
Function at 0x4b6848
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
mov ebx, eax
mov dword [ebp - 0xc], 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040abe8
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4b6885
call fcn.0042ac60
xor eax, eax
push ebp
push 0x4b69f3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSizeEx
test al, al
jne 0x4b68a9
call fcn.0042ac60
cmp dword [ebp - 0x1c], 0
jne 0x4b68bb
cmp dword [ebp - 0x20], 0
jbe 0x4b69da
jmp 0x4b68c1
jle 0x4b69da
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4b68e2
call fcn.0042ac60
xor eax, eax
push ebp
push 0x4b69d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x24], 0x400000
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
jmp 0x4b69a2
mov eax, dword [ebp - 0x24]
xor edx, edx
cmp edx, dword [ebp - 0x1c]
jne 0x4b691b
cmp eax, dword [ebp - 0x20]
ja 0x4b6925
jmp 0x4b691d
jg 0x4b6925
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
jmp 0x4b692b
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4b6950
call fcn.0042ac60
xor eax, eax
push ebp
push 0x4b6985
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
call fcn.004b4bd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b698c
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
pop eax
jmp eax
cmp dword [ebp - 0x1c], 0
jne 0x4b69b4
cmp dword [ebp - 0x20], 0
ja 0x4b690a
jmp 0x4b69ba
jg 0x4b690a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b69da
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b69fa
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax