joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a6c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6260
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4e24e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x14], esi
or ebx, 0xffffffff
nop
push 0x4cc004
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.0040f510
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x4e4a84]
push ecx
push eax
lea edx, [ebp - 0x10]
push edx
call fcn.0040f510
add esp, 0x18
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a73c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
jne 0x40a755
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jmp 0x40a75a
shr eax, 4
test al, 1
je 0x40a7aa
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a77d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, 8
jb 0x40a6f0
mov esi, dword [ebp + 8]
push esi
mov ecx, 0x4cc2d8
call fcn.00411220
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004115b0
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40a797
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 2
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x40db35
push edi
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40db2d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40db2d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x40db26
mov ecx, dword [ebp - 4]
push ecx
call fcn.00445dc6
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40db26
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push edx
push eax
push ebx
call fcn.0044d4f0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor esi, esi
cmp ebx, esi
je 0x40db79
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0x4cd010
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40db70
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov esi, 1
push ebx
call fcn.00445f81
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40df61
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
push esi
push edi
push 0x32
pop eax
push 0x6c
pop ebx
push 0x33
pop edx
push 0x6b
mov byte [ebp - 0x27], al
pop eax
push 0x65
pop ecx
push 0x72
mov word [ebp - 0x68], ax
pop eax
push 0x6e
mov word [ebp - 0x64], ax
pop eax
push 0x32
mov word [ebp - 0x62], ax
pop eax
push 0x2e
mov word [ebp - 0x5a], ax
pop eax
mov word [ebp - 0x58], ax
push 0x64
pop eax
mov word [ebp - 0x56], ax
xor eax, eax
mov word [ebp - 0x66], cx
mov word [ebp - 0x60], cx
mov ecx, 0x3d090c
mov dword [ebp - 0x2c], 0x46555924
mov byte [ebp - 0x28], 0x5a
mov dword [ebp - 0x26], 0x58372934
mov word [ebp - 0x22], 0x5a57
mov byte [ebp - 0x20], 0x53
mov byte [ebp - 0x1f], bl
mov word [ebp - 0x1e], 0x2a54
mov byte [ebp - 0x1c], 0x4a
mov byte [ebp - 0x1b], dl
in eax, 0xc6
inc ebp
out 0, al
mov word [ebp - 0x5e], bx
mov word [ebp - 0x5c], dx
mov word [ebp - 0x54], bx
mov word [ebp - 0x52], bx
mov word [ebp - 0x50], ax
xor eax, eax
mov byte [ebp + eax - 0xd4], al
inc eax
cmp eax, 0x6a
jb 0x40dffb
dec ecx
jne 0x40dff9
cmp byte [ebp - 0xa4], 0x30
jne 0x40e041
call fcn.0040e2f4
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0xc]
mov esi, edi
push ecx
mov ecx, dword [esi + 0x30]
lea edx, [ebp - 0x68]
call fcn.0040e312
pop ecx
test eax, eax
je 0x40e03c
mov esi, dword [esi]
cmp esi, edi
jne 0x40e021
xor esi, esi
jmp 0x40e044
mov esi, dword [esi + 0x18]
jmp 0x40e044
mov esi, dword [ebp - 0x38]
mov edx, 0xe3142
mov ecx, esi
call fcn.0040e394
mov ebx, eax
mov edx, 0xd5786
mov ecx, esi
mov dword [ebp - 0x18], ebx
call fcn.0040e394
mov edx, 0x348bfa
mov dword [ebp - 0x38], eax
mov ecx, esi
call fcn.0040e394
push 4
push 0x3000
push 0xd2e00
push 0
mov dword [ebp - 0x34], eax
call ebx
movsx edx, byte [ebp - 0x7c]
mov ebx, eax
movsx ecx, byte [ebp - 0xd4]
mov edi, section._9
imul edx, ecx
xor esi, esi
mov dword [ebp - 0xc], ebx
imul eax, edx, 0x16
sub edi, ebx
mov dword [ebp - 8], eax
xor edx, edx
mov dword [ebp - 4], 0x13
mov eax, esi
lea ecx, [esi + ebx]
div dword [ebp - 4]
sub edx, dword [ebp - 8]
mov al, byte [ebp + edx - 0x2c]
xor al, byte [ecx + edi]
inc esi
mov byte [ecx], al
cmp esi, 0xd2e00
jb 0x40e0a5
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + eax + 0x50]
movsx eax, byte [ebp - 0xcc]
shl eax, 3
push eax
push 0x3000
push ecx
push 0
call dword [ebp - 0x18]
mov edi, eax
test edi, edi
je 0x40e2eb
mov esi, dword [ebx + 0x3c]
add esi, ebx
mov dword [ebp - 0x14], esi
sub eax, dword [esi + 0x34]
movzx ecx, word [esi + 0x14]
adc al, 0x89
inc ebp
ror byte [ebx + 0x4d895446], 1
clc
Function at 0x40e080
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
push esi
push edi
push 0x32
pop eax
push 0x6c
pop ebx
push 0x33
pop edx
push 0x6b
mov byte [ebp - 0x27], al
pop eax
push 0x65
pop ecx
push 0x72
mov word [ebp - 0x68], ax
pop eax
push 0x6e
mov word [ebp - 0x64], ax
pop eax
push 0x32
mov word [ebp - 0x62], ax
pop eax
push 0x2e
mov word [ebp - 0x5a], ax
pop eax
mov word [ebp - 0x58], ax
push 0x64
pop eax
mov word [ebp - 0x56], ax
xor eax, eax
mov word [ebp - 0x66], cx
mov word [ebp - 0x60], cx
mov ecx, 0x3d090c
mov dword [ebp - 0x2c], 0x46555924
mov byte [ebp - 0x28], 0x5a
mov dword [ebp - 0x26], 0x58372934
mov word [ebp - 0x22], 0x5a57
mov byte [ebp - 0x20], 0x53
mov byte [ebp - 0x1f], bl
mov word [ebp - 0x1e], 0x2a54
mov byte [ebp - 0x1c], 0x4a
mov byte [ebp - 0x1b], dl
in eax, 0xc6
inc ebp
out 0, al
mov word [ebp - 0x5e], bx
mov word [ebp - 0x5c], dx
mov word [ebp - 0x54], bx
mov word [ebp - 0x52], bx
mov word [ebp - 0x50], ax
xor eax, eax
mov byte [ebp + eax - 0xd4], al
inc eax
cmp eax, 0x6a
jb 0x40dffb
dec ecx
jne 0x40dff9
cmp byte [ebp - 0xa4], 0x30
jne 0x40e041
call fcn.0040e2f4
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0xc]
mov esi, edi
push ecx
mov ecx, dword [esi + 0x30]
lea edx, [ebp - 0x68]
call fcn.0040e312
pop ecx
test eax, eax
je 0x40e03c
mov esi, dword [esi]
cmp esi, edi
jne 0x40e021
xor esi, esi
jmp 0x40e044
mov esi, dword [esi + 0x18]
jmp 0x40e044
mov esi, dword [ebp - 0x38]
mov edx, 0xe3142
mov ecx, esi
call fcn.0040e394
mov ebx, eax
mov edx, 0xd5786
mov ecx, esi
mov dword [ebp - 0x18], ebx
call fcn.0040e394
mov edx, 0x348bfa
mov dword [ebp - 0x38], eax
mov ecx, esi
call fcn.0040e394
push 4
push 0x3000
push 0xd2e00
push 0
mov dword [ebp - 0x34], eax
call ebx
movsx edx, byte [ebp - 0x7c]
mov ebx, eax
movsx ecx, byte [ebp - 0xd4]
mov edi, section._9
imul edx, ecx
xor esi, esi
mov dword [ebp - 0xc], ebx
imul eax, edx, 0x16
sub edi, ebx
mov dword [ebp - 8], eax
xor edx, edx
mov dword [ebp - 4], 0x13
mov eax, esi
lea ecx, [esi + ebx]
div dword [ebp - 4]
sub edx, dword [ebp - 8]
mov al, byte [ebp + edx - 0x2c]
xor al, byte [ecx + edi]
inc esi
mov byte [ecx], al
cmp esi, 0xd2e00
jb 0x40e0a5
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + eax + 0x50]
movsx eax, byte [ebp - 0xcc]
shl eax, 3
push eax
push 0x3000
push ecx
push 0
call dword [ebp - 0x18]
mov edi, eax
test edi, edi
je 0x40e2eb
mov esi, dword [ebx + 0x3c]
add esi, ebx
mov dword [ebp - 0x14], esi
sub eax, dword [esi + 0x34]
movzx ecx, word [esi + 0x14]
adc al, 0x89
inc ebp
ror byte [ebx + 0x4d895446], 1
clc
Function at 0x40e394
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
add ecx, edi
mov ebx, dword [eax + 0x1c]
add edx, edi
mov eax, dword [eax + 0x18]
add ebx, edi
mov dword [ebp - 0x10], ecx
xor ecx, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
test eax, eax
je 0x40e3f4
mov edx, dword [edx + ecx*4]
add edx, edi
xor esi, esi
jmp 0x40e3e0
movzx eax, al
or eax, 0x60
add esi, eax
inc edx
add esi, esi
mov al, byte [edx]
test al, al
jne 0x40e3d5
cmp esi, dword [ebp - 4]
je 0x40e3fd
mov edx, dword [ebp - 0xc]
inc ecx
cmp ecx, dword [ebp - 8]
jb 0x40e3cc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
add eax, edi
jmp 0x40e3f6
Function at 0x4109f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a532b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e24e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.004115b0
add eax, 0x10
mov dword [esi + 4], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.004115b0
add eax, 0x10
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 5
jne 0x410a5a
xor edi, edi
jmp 0x410a6a
neg edi
sbb edi, edi
and edi, 0xffffff00
add edi, 0x200
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [esi + 0xc], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410a90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410ab6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x410ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
lea ecx, [ebp - 4]
push ecx
or edx, 1
push edx
push 0
push eax
mov eax, dword [esi]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410b30
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [esi + 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x410c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
cmp eax, 0x4bc5f4
je 0x410ce6
push 0x20019
mov ecx, 0x4bc5f4
mov edx, reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x10]
call fcn.00410dc0
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x410ce6
mov edx, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4bc5dc
push esi
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410ce6
cmp dword [ebp - 0xc], 4
jne 0x410ce6
mov bl, 1
jmp 0x410ce8
xor bl, bl
test esi, esi
je 0x410cf3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41105d
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x411094
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x411090
lea ecx, [ecx]
cmp esi, eax
jae 0x411094
sub edi, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x411080
cmp esi, eax
jb 0x41109b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4124e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, eax
test edi, edi
je 0x412679
mov edx, dword [ebp + 8]
test edx, edx
je 0x412679
test ebx, ebx
je 0x412679
cmp dword [ebp + 0x10], 0
je 0x412679
push esi
xor esi, esi
cmp edx, 2
jbe 0x4125bd
mov dword [ebp - 4], 4
mov al, byte [edi]
mov cl, byte [edi + 1]
sub dword [ebp + 8], 3
mov bl, al
inc edi
mov dl, byte [edi + 1]
shr bl, 2
and al, 3
mov byte [ebp - 8], bl
mov bl, cl
shl al, 4
inc edi
shr bl, 4
add al, bl
and cl, 0xf
mov byte [ebp - 7], al
add cl, cl
mov al, dl
shr al, 6
add cl, cl
add cl, al
mov eax, dword [ebp - 4]
and dl, 0x3f
inc edi
mov byte [ebp - 5], dl
cmp eax, dword [ebp + 0x10]
ja 0x412662
movzx edx, byte [ebp - 8]
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebx, dword [ebp + 0xc]
mov byte [esi + ebx], dl
movzx edx, byte [ebp - 7]
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
mov byte [esi + ebx], dl
movzx ecx, cl
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ecx, byte [ebp - 5]
inc esi
inc eax
mov byte [esi + ebx], dl
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
inc esi
inc eax
mov byte [esi + ebx], dl
inc eax
inc esi
cmp dword [ebp + 8], 2
mov dword [ebp - 4], eax
ja 0x412525
mov edx, dword [ebp + 8]
test edx, edx
je 0x41265d
xor al, al
xor cl, cl
mov byte [ebp - 2], 0
mov byte [ebp - 3], al
mov byte [ebp - 4], cl
test edx, edx
jbe 0x4125eb
push edx
lea eax, [ebp - 4]
push edi
push eax
call fcn.0044d4f0
mov al, byte [ebp - 3]
mov cl, byte [ebp - 4]
add esp, 0xc
mov dl, cl
shr dl, 2
mov byte [ebp - 8], dl
mov dl, al
and cl, 3
shr dl, 4
and al, 0xf
shl cl, 4
add cl, dl
mov dl, byte [ebp - 2]
add al, al
shr dl, 6
add al, al
add al, dl
lea edx, [esi + 4]
cmp edx, dword [ebp + 0x10]
jbe 0x412622
pop esi
pop edi
mov eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
movzx edx, byte [ebp - 8]
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx], dl
movzx ecx, cl
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
mov byte [esi + ebx], dl
inc esi
cmp dword [ebp + 8], 1
jne 0x41264b
mov byte [esi + ebx], 0x3d
jmp 0x412657
movzx eax, al
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx], cl
inc esi
mov byte [esi + ebx], 0x3d
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x41266c
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi + ebx], 0
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416250
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x11c
lea eax, [ebp - 0x530]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x534], esi
call fcn.0044b7d0
push 0x11c
push 0
push ebx
mov dword [ebp - 0x530], 0x11c
call fcn.0044b7d0
add esp, 0x18
push ebx
mov dword [ebx], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 4], 5
jne 0x4162c5
call fcn.00416150
test eax, eax
je 0x4162c5
mov dword [esi + 4], 0
jmp 0x4163b2
push str.RtlGetVersion
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4162e9
lea ecx, [ebp - 0x530]
push ecx
call eax
mov eax, dword [ebx + 4]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 8]
push edi
lea edi, [eax + edx*2]
mov eax, dword [ebp - 0x52c]
mov edx, dword [ebp - 0x528]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2]
cmp eax, edi
jle 0x41631d
mov ecx, 0x47
lea esi, [ebp - 0x530]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.0044b7d0
add esp, 0xc
lea esi, [ebp - 0x414]
call fcn.004161a0
test eax, eax
jl 0x4163a4
lea edx, [ebp - 0x568]
push edx
mov eax, esi
call fcn.004163d0
test eax, eax
je 0x4163a4
mov ecx, dword [ebp - 0x558]
mov eax, ecx
shr eax, 0x10
movzx ecx, cx
lea edx, [eax + eax*4]
lea edx, [ecx + edx*2]
cmp edi, edx
jge 0x416395
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x554]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x534]
shr eax, 0x10
mov dword [ebx + 0xc], eax
mov dword [ecx + 4], 1
jmp 0x4163b1
mov edx, dword [ebp - 0x534]
mov dword [edx + 4], 0
jmp 0x4163b1
mov eax, dword [ebp - 0x534]
mov dword [eax + 4], 0
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0044557a
mov esp, ebp
pop ebp
ret 4
Function at 0x4163d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x416454
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41644d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41644d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x416446
mov ecx, dword [ebp - 4]
push ecx
call fcn.00445dc6
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x416446
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push edx
push eax
push ebx
call fcn.0044d4f0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
cmp ebx, esi
je 0x416492
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0x4cd010
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x416489
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov esi, 1
push ebx
call fcn.00445f81
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42ded0
Capabilities:
Move file

Disassembly:
mov eax, dword [0x4ebb88]
test eax, eax
jne 0x42dee3
call fcn.0040da20
mov dword [0x4ebb88], eax
mov eax, dword [eax + 0x140]
cmp eax, 2
jne 0x42df06
mov eax, dword [0x4ebb88]
mov ecx, dword [eax + 0x140]
cmp ecx, 2
jne 0x42df06
mov eax, dword [eax + 0xbc]
jmp 0x42df08
xor eax, eax
push 0
push esi
push edi
test eax, eax
je 0x42df13
call eax
ret
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
ret
Function at 0x431900
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0xc]
mov esi, 1
cmp eax, esi
jne 0x431928
push edi
call fcn.0046eff0
mov dword [ebx], eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 2
jne 0x431955
push edi
mov dword [edi + 0x190], esi
call fcn.0046e510
mov dword [ebx], 0
cmp dword [edi + 0x190], 0
je 0x431a5d
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 0x10
jne 0x431989
mov dword [edi + 0x190], esi
cmp byte [edi + 0x18c], 0
mov byte [edi + 0x18d], 1
je 0x431939
push 0
push 0
mov byte [edi + 0x18c], 0
mov eax, dword [edi + 0x30]
push 0
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x431939
cmp eax, 0x14
jne 0x431998
mov dword [edi + 0x190], esi
mov dword [ebx], esi
jmp 0x43193f
cmp eax, 0x47
jne 0x4319c9
mov dword [edi + 0x190], esi
mov esi, edi
call fcn.0046e480
mov dword [ebx], 0
cmp dword [edi + 0x190], 0
je 0x431a5d
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0x14
cmp eax, 0x467
jne 0x4319fb
push edi
mov esi, 3
call fcn.0046eb30
mov ecx, dword [edi + 0x30]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
lea eax, [esi - 2]
pop esi
mov dword [ebx], 0
pop ebx
pop ebp
ret 0x14
cmp eax, 0x4c8
jne 0x431a34
cmp dword [ebp + 0x14], 0x20d
jne 0x431a25
mov edi, dword [edi + 0x1a0]
test edi, edi
je 0x431a25
push 0
push 0
push 0x806
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
mov eax, esi
pop esi
mov dword [ebx], 0
pop ebx
pop ebp
ret 0x14
cmp eax, 0x4cd
jne 0x431a5d
mov edi, dword [edi + 0x1a0]
test edi, edi
je 0x431a4e
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov eax, esi
pop esi
mov dword [ebx], 0
pop ebx
pop ebp
ret 0x14
mov edx, dword [edi + 0x58]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea esi, [edi + 0x54]
push eax
mov dword [ebp + 0x18], edx
mov edx, dword [ebp + 0xc]
push ecx
push edx
mov edi, ebx
mov eax, esi
call fcn.00417ac0
mov ecx, dword [ebp + 0x18]
xor edx, edx
test eax, eax
setne dl
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov eax, edx
pop ebp
ret 0x14

Function at 0x432160
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x432173
lea eax, [esi + 0xd]
pop esi
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
xor edi, edi
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x432180
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc