joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40686f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x4068ad
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406883
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x40687e
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4068da
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4068bb
not eax
pop ebp
ret 0xc

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x492b71ef
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x504f3bcf
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402a90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c24a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x490208]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.00450510
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x402b50
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0x47334c
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.004545ca
add esp, 8
mov dword [ebp - 0x24], 0x47336c
lea eax, [ebp - 0x24]
push 0x487c14
push eax
call fcn.00453aa4
push edi
push esi
call fcn.00450bf1
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00451705
mov esp, ebp
pop ebp
ret 4
Function at 0x401af0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x114]
push edi
mov edi, dword [esp + 0x10]
add eax, edi
cmp eax, dword [esi + 0x110]
jbe 0x401b21
push 0
push 0x43a6ac
push str.File
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
ret 8
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0xc]
push ecx
push 1
push edi
push edx
call fcn.0042178d
add dword [esi + 0x114], edi
add esp, 0x10
pop edi
pop esi
ret 8

Function at 0x401e30
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 0x401e49
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401e84
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401e80
lea ebx, [ebx]
cmp esi, eax
jae 0x401e84
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401e70
cmp esi, eax
jb 0x401e8a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4024f0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x84
mov eax, dword [0x44b650]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x88]
test eax, eax
push esi
mov esi, ecx
je 0x402525
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402515
sub eax, edx
cmp eax, 2
jae 0x40256b
mov eax, dword [0x44cb08]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
lea ecx, [esp + 8]
push str.Update_failed_with_error_code__d_
push ecx
call fcn.004222e6
add esp, 0xc
push 0x10
push str.LASTROGUE_Online
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x84]
pop esi
xor ecx, esp
call fcn.00421b6f
add esp, 0x84
ret 4

Function at 0x402590
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x84
mov eax, dword [0x44b650]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [0x44cb08]
push esi
push 0
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_ShowWindow]
movzx ecx, word [esp + 0x8c]
push ecx
lea edx, [esp + 8]
push str.Update_failed_with_error_code__d_
push edx
call fcn.004222e6
add esp, 0xc
push 0x10
push str.LASTROGUE_Online
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x84]
pop esi
xor ecx, esp
call fcn.00421b6f
add esp, 0x84
ret 4
Function at 0x405bce
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x44b650]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x405c0e
push 0x43b0d0
push 4
push eax
call fcn.00423876
push eax
call fcn.004054b0
add esp, 0x10
jmp 0x405c20
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x405c8e
push edi
call fcn.004239a6
mov edi, dword [eax]
call fcn.004239a6
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0042237d
add esp, 0x18
mov ebx, eax
call fcn.004239a6
cmp dword [eax], 0
je 0x405c6e
call fcn.004239a6
push dword [eax]
call fcn.00405b49
pop ecx
jmp 0x405c75
call fcn.004239a6
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x405c8e
cmp ebx, esi
jae 0x405c8e
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x405c90
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00421b6f
leave
ret
Function at 0x408bcc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x408c12
call fcn.004100d1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x408c12
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x408c55
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x408c3e
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x408c3e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x408c52
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40e6dd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40e720
call fcn.004100d1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40e720
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40e73b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040e294
test ebx, ebx
mov esi, eax
je 0x40e739
test edi, edi
je 0x40e739
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x411964
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x411992
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4119b0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004118ce
jmp 0x4119b0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4119b0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004118ce
test edi, edi
mov eax, edi
jne 0x41199a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44e6b0]
test ecx, ecx
je 0x411a73
jmp 0x411963
ret 8
Function at 0x4214f1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x42152e
cmp dword [ebp + 0x14], edi
je 0x42152e
cmp ecx, edi
jne 0x421535
call fcn.004239a6
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00421fa6
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x421549
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x42156a
cmp ebx, 0xffffffff
je 0x421559
push ebx
push edi
push ecx
call fcn.00420fa0
add esp, 0xc
cmp esi, edi
je 0x421516
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x421516
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x421586
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x42158d
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x42167e
test word [esi + 0xc], 0x10c
je 0x4215e1
mov eax, dword [esi + 4]
test eax, eax
je 0x4215e1
jl 0x4216df
cmp ebx, eax
mov edi, ebx
jb 0x4215b2
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x421686
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004220d0
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x421676
cmp ebx, dword [ebp - 0xc]
jb 0x42164e
cmp dword [ebp - 0xc], 0
je 0x42160b
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x421600
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x421607
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x421616
mov eax, SysReAllocString
cmp ebx, eax
ja 0x421616
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4216b2
push eax
push dword [ebp - 8]
push esi
call fcn.00426df3
pop ecx
push eax
call fcn.00428108
add esp, 0xc
test eax, eax
je 0x4216f1
cmp eax, 0xffffffff
je 0x4216df
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x421676
push esi
call fcn.00427a27
cmp eax, 0xffffffff
pop ecx
je 0x4216e3
cmp dword [ebp - 4], 0
je 0x4216b2
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x421595
mov eax, dword [ebp + 0x14]
jmp 0x421530
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x42169d
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00420fa0
add esp, 0xc
call fcn.004239a6
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x421526
cmp dword [ebp + 0xc], 0xffffffff
je 0x4216c8
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00420fa0
add esp, 0xc
call fcn.004239a6
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x421526
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x421530
or dword [esi + 0xc], 0x10
jmp 0x4216e3
Function at 0x421b6f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b650]
jne 0x421b79
repz ret
jmp fcn.00429d3c

Function at 0x42acbe
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44bd28]
je 0x42acd9
inc edi
cmp edi, 0x17
jb 0x42acca
cmp edi, 0x17
jae 0x42ae59
push ebp
push 3
call fcn.004320ff
cmp eax, 1
pop ecx
je 0x42ae25
push 3
call fcn.004320ff
test eax, eax
pop ecx
jne 0x42ad0d
cmp dword [0x44b670], 1
je 0x42ae25
cmp ebx, 0xfc
je 0x42ae58
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x44eeb8
push ebp
call fcn.00423876
add esp, 0xc
test eax, eax
je 0x42ad43
push esi
push esi
push esi
push esi
push esi
call fcn.00421eaa
add esp, 0x14
push 0x104
mov esi, 0x44eed1
push esi
push 0
mov byte [0x44efd5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42ad87
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00423876
add esp, 0xc
test eax, eax
je 0x42ad87
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00421eaa
add esp, 0x14
push esi
call fcn.004238e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42adcc
push esi
call fcn.004238e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44f1cc
push 0x43e11c
sub ecx, eax
push ecx
push eax
call fcn.004253e8
add esp, 0x14
test eax, eax
je 0x42adcc
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00421eaa
add esp, 0x14
jmp 0x42adce
xor esi, esi
push 0x43e118
push ebx
push ebp
call fcn.00423a71
add esp, 0xc
test eax, eax
je 0x42adee
push esi
push esi
push esi
push esi
push esi
call fcn.00421eaa
add esp, 0x14
push dword [edi*8 + 0x44bd2c]
push ebx
push ebp
call fcn.00423a71
add esp, 0xc
test eax, eax
je 0x42ae10
push esi
push esi
push esi
push esi
push esi
call fcn.00421eaa
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00431f42
add esp, 0xc
jmp 0x42ae58
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42ae58
cmp ebp, 0xffffffff
je 0x42ae58
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44bd2c]
push dword [esi]
call fcn.004238e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x431f42
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042976b
xor ebx, ebx
cmp dword [0x44f448], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x432018
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4320f8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43eac8
push edi
call esi
cmp eax, ebx
je 0x4320f8
push eax
call fcn.004296fd
mov dword [esp], 0x43eab8
push edi
mov dword [0x44f448], eax
call esi
push eax
call fcn.004296fd
mov dword [esp], 0x43eaa4
push edi
mov dword [0x44f44c], eax
call esi
push eax
call fcn.004296fd
mov dword [0x44f450], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00423326
test eax, eax
pop ecx
pop ecx
je 0x431fe6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00421eaa
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x432018
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004296fd
cmp eax, ebx
pop ecx
mov dword [0x44f458], eax
je 0x432018
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004296fd
pop ecx
mov dword [0x44f454], eax
mov eax, dword [0x44f454]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43209d
cmp dword [0x44f458], ecx
je 0x43209d
push eax
call fcn.00429774
push dword [0x44f458]
mov esi, eax
call fcn.00429774
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43209d
cmp edi, ebx
je 0x43209d
call esi
cmp eax, ebx
je 0x43206a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43206a
test byte [ebp - 0x18], 1
jne 0x43209d
lea eax, [ebp - 0x10]
push eax
call fcn.0042335d
test eax, eax
pop ecx
je 0x432085
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00421eaa
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x432094
or dword [ebp + 0x10], 0x200000
jmp 0x4320d8
or dword [ebp + 0x10], 0x40000
jmp 0x4320d8
mov eax, dword [0x44f44c]
cmp eax, dword [ebp - 8]
je 0x4320d8
push eax
call fcn.00429774
cmp eax, ebx
pop ecx
je 0x4320d8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4320d8
mov eax, dword [0x44f450]
cmp eax, dword [ebp - 8]
je 0x4320d8
push eax
call fcn.00429774
cmp eax, ebx
pop ecx
je 0x4320d8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f448]
call fcn.00429774
cmp eax, ebx
pop ecx
je 0x4320f8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4320fa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43674f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44b650]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004366e4
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00420fa0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x43679e
cmp dword [ebp - 0x1c], 5
jb 0x4367b6
jmp 0x4367b2
cmp dword [ebp - 0x10], 1
jne 0x4367b6
cmp dword [ebp - 0x1c], 4
ja 0x4367b2
jne 0x4367b6
cmp dword [ebp - 0x18], 0
jbe 0x4367b6
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43fcb4
call fcn.004365b8
test eax, eax
jge 0x4367d7
mov byte [0x44cb80], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00421b6f
add ebp, 0x78
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push str.bsafe_error:_strncpy___is_not_safe__use_bmidstr_instead._n
push 0x4126b0
call fcn.004064f6
pop ecx
pop ecx
push 0xffffffffffffffff
call fcn.00406421
Function at 0x403061
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40f13b
call fcn.004074c0
sub esp, 0x418
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
push 0x413370
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 2
call fcn.00401c0f
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x423]
mov byte [ebp - 0x424], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
push 0x20019
push ebx
mov dword [ebp - 0x18], 0x400
push dword [ebp + 0x14]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403100
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x424]
push eax
push ebx
push ebx
push dword [ebp + 0x20]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4030f7
lea eax, [ebp - 0x424]
lea ecx, [ebp - 0x24]
push eax
call fcn.00401d74
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.00401c73
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00401d53
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401d53
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], bl
call fcn.00401d53
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c

Function at 0x403149
Capabilities:
Set registry value

Disassembly:
mov eax, 0x40f158
call fcn.004074c0
push ecx
push ecx
lea eax, [ebp - 0x14]
and byte [ebp - 0xd], 0
push eax
push 0xf003f
push 0
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4031a2
mov eax, dword [ebp + 0x24]
inc eax
push eax
push dword [ebp + 0x28]
push 1
push 0
push dword [ebp + 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0xd], 1
lea ecx, [ebp + 8]
call fcn.00401d53
and byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00401d53
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00401d53
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
mov dword fs:[0], ecx
leave
ret 0x24

Function at 0x4031d3
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x40f16c
call fcn.004074c0
push ecx
push ebx
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push 0xf003f
push ebx
mov dword [ebp - 4], ebx
push dword [ebp + 0x10]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403217
push dword [ebp + 0x1c]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
lea ecx, [ebp + 8]
call fcn.00401d53
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00401d53
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x4049f7
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40f5ef
call fcn.004074c0
push ecx
and dword [ebp - 0x10], 0
push esi
push edi
push 1
xor esi, esi
cmp dword [ebp + 0x10], esi
pop edi
mov dword [ebp - 4], edi
jle 0x404a33
mov eax, dword [ebp + 0x14]
lea ecx, [eax + esi]
mov al, byte [eax + esi]
mov dl, al
shr dl, 4
shl al, 4
or dl, al
xor dl, 0xfe
inc esi
mov byte [ecx], dl
cmp esi, dword [ebp + 0x10]
jl 0x404a15
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00401c73
mov dword [ebp - 0x10], edi
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401d53
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x404a61
Capabilities:
Check internet connectivity via wininet

Disassembly:
push esi
push edi
mov edi, ecx
xor eax, eax
push eax
lea esi, [edi + 0x88]
mov byte [edi + 1], al
push esi
mov dword [esi], eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x404a8e
mov ecx, dword [esi]
push 1
pop eax
and ecx, eax
cmp cl, al
jne 0x404a90
mov byte [edi + 1], al
jmp 0x404a90
xor al, al
pop edi
pop esi
ret