joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408e98
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406830
mov eax, dword [ebp - 0x21c]
call fcn.00406830
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409037
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406848
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004068d4
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x408f38
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x408f4a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x408f35
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409003
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x408f73
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.004089e8
cmp dword [ebp - 0x220], 0
je 0x408fab
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00408d8c
pop ecx
mov ebx, eax
jmp 0x409003
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004086a4
mov eax, dword [ebp - 0x224]
call fcn.00408d8c
pop ecx
mov ebx, eax
test bl, bl
jne 0x408ff6
cmp byte [0x454b50], 0
jne 0x408ff6
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004086a4
mov eax, dword [ebp - 0x228]
call fcn.00408d8c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409003
push ebp
call fcn.00408e3c
pop ecx
mov ebx, eax
test bl, bl
je 0x409019
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406a30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40903e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406840
ret

Function at 0x409780
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x40b000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x454c48
push 0xa
push 0x40b094
mov eax, dword [0x454c38]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40b024
call fcn.00415e94
push ebx
mov eax, dword [0x454c38]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40b03b
call fcn.00415e94
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40b04d
call fcn.00415e94
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x454c4c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x454c50], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x454c54], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x454c58], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x454c5c], ecx
add edx, dword [eax + 0x14]
mov dword [0x454c60], edx
pop esi
pop ebx
ret

Function at 0x40ea44
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40eaed
test eax, edx
je 0x40eaf0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40ea6d
push edx
mov edx, eax
mov eax, esp
call fcn.00406a4c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40ea83
push eax
lea eax, [esp + 8]
call fcn.00406a4c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40ea92
movzx eax, word [eax]
sub eax, ecx
jmp 0x40eab9
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40ead3
add ecx, 4
js 0x40eaaa
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40ead0
push eax
mov eax, ecx
mov edx, 2
call fcn.00405ebc
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40eab7
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40eab9
xor eax, eax
ret
test eax, eax
je 0x40eb00
test edx, edx
jne 0x40ea54
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004068d4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40fc0a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40fc2b
cmp ebx, 3
je 0x40fc2b
cmp ebx, 0x7b
je 0x40fc2b
mov eax, esi
call fcn.0040fbac
test al, al
jne 0x40fc2f
xor eax, eax
jmp 0x40fc31
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004068d4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40fc4d
test al, 0x10
jne 0x40fc51
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x413290
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_1
test eax, eax
jle 0x4132c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406984
jmp 0x4132d2
mov eax, ebx
mov edx, esi
call fcn.00406848
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4132dc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4132fe
movzx eax, word [esp]
jmp 0x413300
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413a90
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 0x413bb5
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004138a0
mov esi, eax
mov eax, dword [0x4516b0]
cmp byte [eax], 0
je 0x413b5d
mov eax, dword [0x451544]
call fcn.004045cc
call fcn.004042c8
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_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x413a68]
call fcn.00407db0
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_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x413bd0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x413b99
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x451510]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x454c38]
call fcn.00407e74
push eax
call sub.user32.dll_LoadStringW_1
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 0x413bbc
lea eax, [ebp - 4]
mov edx, dword [0x413a68]
call fcn.00407dbc
ret
Function at 0x415d3c
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.004061f0
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x415ce6
mov eax, edi
add eax, eax
call fcn.00404180
mov esi, eax
jmp 0x415ce8
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x415d21
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 0x415d0b
mov eax, esp
cmp esi, eax
je 0x415d2e
mov eax, esi
call fcn.0040419c
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 0x415d68
cmp bl, 0
je 0x415d64
cmp bl, 0x41
jl 0x415d5f
cmp bl, 0x5a
jg 0x415d5f
or bl, 0x20
xor al, bl
inc esi
jmp 0x415d43
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x415ca8
Function at 0x43c820
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43c99b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040689c
mov eax, dword [ebp - 4]
call fcn.0043c0b8
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x43c872
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00407040
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0043d4cc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x43c951
xor eax, eax
push ebp
push 0x43c94a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0043c420
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0043c9d0
test al, al
je 0x43c928
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00406984
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x43c928
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.004068d4
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0043c380
test al, al
je 0x43c922
mov eax, dword [ebp - 8]
call fcn.004068d4
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.004069f4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0043c820
dec ebx
cmp ebx, 0xffffffff
jne 0x43c8d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c951
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0043c420
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.004068d4
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0043c40c
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0043c380
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c9a2
lea eax, [ebp - 0x3c]
call fcn.00406838
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406840
ret

Function at 0x43d3a8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.0043c12c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004068d4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.0043c380
test al, al
jne 0x43d410
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45160c]
mov dl, 1
mov eax, dword [0x43aedc]
call fcn.00413dd8
call fcn.00405784
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43d41c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004068d4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.0043c380
test al, al
jne 0x43d47d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x451774]
mov dl, 1
mov eax, dword [0x43aedc]
call fcn.00413dd8
call fcn.00405784
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0043c15c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43da7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x43dba4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.0043c420
xor eax, eax
push ebp
push 0x43db7f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0043c9d0
test al, al
je 0x43db63
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0043d95c
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406984
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x43db63
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004068d4
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0043c380
test al, al
je 0x43db5f
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004068d4
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.004069f4
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0043d95c
pop ecx
inc edi
dec ebx
jne 0x43db07
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43db86
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.0043c420
ret
Function at 0x43dbb4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x43de02
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.0043c420
xor eax, eax
push ebp
push 0x43ddd8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0043c9d0
test al, al
je 0x43ddbc
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406984
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x43ddbc
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.004068d4
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0043c380
test al, al
je 0x43ddb0
mov eax, dword [ebp - 4]
call fcn.004068d4
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.004069f4
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0043d4cc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x43ddb0
xor eax, eax
push ebp
push 0x43dda9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.0043c420
xor eax, eax
push ebp
push 0x43dd8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004068d4
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.004069f4
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0043c424
mov eax, dword [ebp - 4]
call fcn.004068d4
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.004069f4
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0043d4cc
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x43dd68
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0043da7c
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0043dbb4
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43dd6f
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x43dc3f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43dddf
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.0043c420
ret
Function at 0x442234
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x44223a
ret
Function at 0x44b9cc
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406830
xor eax, eax
push ebp
push 0x44ba65
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x44ba04
lea eax, [ebp - 4]
mov edx, 0x44ba80
call fcn.0040689c
lea eax, [ebp - 8]
push eax
push 0
push 2
mov eax, esi
call fcn.004068d4
push eax
mov eax, dword [ebp - 4]
call fcn.004068d4
push eax
mov eax, ebx
call fcn.004068d4
push eax
call sub.advapi32.dll_LogonUserW
test eax, eax
jne 0x44ba3e
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x52f
je 0x44ba3e
xor eax, eax
jmp 0x44ba40
mov al, 1
mov ebx, eax
test bl, bl
je 0x44ba4f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ba6c
lea eax, [ebp - 4]
call fcn.00406838
ret
Function at 0x44c120
Capabilities:
Shutdown system
Terminate process

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
xor eax, eax
push ebp
push 0x44c2a9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea edx, [ebp - 0xc]
mov eax, 2
call fcn.004044d4
mov eax, dword [ebp - 0xc]
call fcn.0040f714
mov ebx, eax
test ebx, ebx
jbe 0x44c16c
push ebx
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 4], eax
jmp 0x44c171
xor eax, eax
mov dword [ebp - 4], eax
test ebx, ebx
jbe 0x44c1d3
cmp dword [ebp - 4], 0
jbe 0x44c1d3
xor eax, eax
push ebp
push 0x44c1cc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x2710
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x44c1b5
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c1d3
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
lea edx, [ebp - 0x10]
mov eax, 3
call fcn.004044d4
mov eax, dword [ebp - 0x10]
or edx, 0xffffffff
call fcn.0040f6dc
sub eax, 1
jb 0x44c1fa
je 0x44c22c
dec eax
je 0x44c25e
jmp 0x44c28e
lea eax, [ebp - 0x14]
call fcn.0044bfe8
mov eax, dword [ebp - 0x14]
mov edx, 0x44c2c4
call fcn.00406f08
jne 0x44c221
call fcn.0044c0a4
push 0
push 0x1d
call sub.user32.dll_ExitWindowsEx
jmp 0x44c28e
push 0
push 0x1d
call sub.user32.dll_ExitWindowsEx
jmp 0x44c28e
lea eax, [ebp - 0x18]
call fcn.0044bfe8
mov eax, dword [ebp - 0x18]
mov edx, 0x44c2c4
call fcn.00406f08
jne 0x44c253
call fcn.0044c0a4
push 0
push 6
call sub.user32.dll_ExitWindowsEx
jmp 0x44c28e
push 0
push 6
call sub.user32.dll_ExitWindowsEx
jmp 0x44c28e
lea eax, [ebp - 0x1c]
call fcn.0044bfe8
mov eax, dword [ebp - 0x1c]
mov edx, 0x44c2c4
call fcn.00406f08
jne 0x44c285
call fcn.0044c0a4
push 0
push 0
call sub.user32.dll_ExitWindowsEx
jmp 0x44c28e
push 0
push 0
call sub.user32.dll_ExitWindowsEx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c2b0
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00406840
ret
Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

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

Function at 0x401750
Capabilities:
Copy file
Move file

Disassembly:
mov dl, byte [ecx + 0x20b0]
xor eax, eax
test dl, 1
je 0x401762
mov eax, 2
test byte [ecx + 0x20b0], 2
push esi
mov esi, dword [esp + 0xc]
je 0x401788
or eax, 0xa
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0x401670
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
jmp 0x40179e
push 8
push 0
push ecx
mov ecx, dword [esp + 0x14]
push 0x401670
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
push 0
push 0
push 3
push 0
push 7
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4017d0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call edi
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 8

Function at 0x402420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e75e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00402180
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401be0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4024b2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret