joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b540
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov byte [edi + esi + 0x28], 0x80
inc edi
xor ebx, ebx
mov ebp, edx
cmp edi, 0x38
je 0x40b575
jmp 0x40b560
and edi, 0x3f
jne 0x40b56b
push esi
call fcn.0040b080
mov byte [esi + edi + 0x28], bl
inc edi
cmp edi, 0x38
jne 0x40b560
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
push esi
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
call fcn.0040b080
xor eax, eax
mov ecx, dword [esi + eax*4 + 4]
mov edx, dword [esi + eax*4]
bswap edx
bswap ecx
mov dword [ebp], edx
mov dword [ebp + 4], ecx
add eax, 2
add ebp, 8
cmp eax, 8
jb 0x40b597
pop edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret
Function at 0x40b750
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
push esi
mov esi, ecx
cmp dword [esi], 0x3f
jne 0x40b7b6
xor eax, eax
cmp dword [esi + 4], eax
jbe 0x40b770
mov cl, byte [esi + eax + 8]
mov byte [esi + eax + 0x20], cl
inc eax
cmp eax, dword [esi + 4]
jb 0x40b762
xor ecx, ecx
cmp dword [esi + 0x1c], ecx
jbe 0x40b791
cmp eax, 0x20
jae 0x40b8b9
mov edx, dword [esi + 0x18]
mov dl, byte [ecx + edx]
mov byte [eax + esi + 0x20], dl
inc ecx
inc eax
cmp ecx, dword [esi + 0x1c]
jb 0x40b777
cmp eax, 0x20
jae 0x40b8b9
mov edx, 0x20
sub edx, eax
push edx
lea ecx, [eax + esi + 0x20]
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
pop esi
add esp, 0x74
ret
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x1c]
push ebx
push ebp
lea eax, [eax + ecx + 8]
xor ebp, ebp
xor ebx, ebx
push edi
mov dword [esp + 0x10], eax
cmp eax, ebp
je 0x40b7da
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov edx, dword [esi + 4]
push edx
lea eax, [esi + 8]
push eax
push ebx
call sub.msvcrt.dll_memcpy
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 4]
push ecx
push edx
add eax, ebx
push eax
call sub.msvcrt.dll_memcpy
mov edi, dword [esi + 4]
add edi, ebx
add edi, dword [esi + 0x1c]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov ecx, dword [esi]
add esp, 0x18
mov eax, 1
xor edx, edx
mov dword [esp + 0x1c], 0x6a09e667
mov dword [esp + 0x20], 0xbb67ae85
mov dword [esp + 0x24], 0x3c6ef372
mov dword [esp + 0x28], 0xa54ff53a
mov dword [esp + 0x2c], 0x510e527f
mov dword [esp + 0x30], 0x9b05688c
mov dword [esp + 0x34], 0x1f83d9ab
mov dword [esp + 0x38], 0x5be0cd19
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call fcn.00416380
mov ebp, eax
mov dword [esp + 0x18], edx
lea esp, [esp]
mov ecx, dword [esp + 0x10]
push ecx
mov edx, ebx
lea ecx, [esp + 0x20]
call fcn.0040b290
xor eax, eax
inc byte [eax + edi]
jne 0x40b88d
inc eax
cmp eax, 8
jb 0x40b882
mov eax, dword [esp + 0x18]
add ebp, 0xffffffff
adc eax, 0xffffffff
mov edx, ebp
or edx, eax
mov dword [esp + 0x18], eax
jne 0x40b870
lea edx, [esi + 0x20]
lea ecx, [esp + 0x1c]
call fcn.0040b540
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x74
ret

Function at 0x40e13a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e160
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e160
xor al, al
jmp 0x40e175
mov edx, dword [ebp - 4]
xor eax, eax
xor ecx, ecx
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x415d80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x41dae0], ecx
inc edx
cmp edx, 0x100
jb 0x415d82
cmp edx, 0x800
jae 0x415e59
lea esp, [esp]
mov eax, dword [edx*4 + 0x41d6e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x41dae0]
inc edx
mov dword [edx*4 + 0x41dadc], eax
cmp edx, 0x800
jb 0x415e30
mov eax, 0x416840
mov dword [0x41dad4], eax
mov dword [0x41fae0], eax
mov dword [0x41dad0], 0x416760
call fcn.00416060
test eax, eax
jne 0x415e85
mov dword [0x41fae0], 0x416760
ret

Function at 0x416160
Capabilities:
Check os version

Disassembly:
sub esp, 0x134
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x416187
cmp dword [esp + 0x24], 5
sbb eax, eax
inc eax
jne 0x416190
xor eax, eax
add esp, 0x134
ret
lea ecx, [esp]
call fcn.00415fc0
test eax, eax
je 0x416187
mov eax, dword [esp + 0x18]
shr eax, 0x19
and eax, 1
add esp, 0x134
ret
Function at 0x41641f
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4196e0
call fcn.004166f8
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x416473
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x416473
movzx ecx, word [eax + 0x400018]
cmp ecx, 0x10b
je 0x41648b
cmp ecx, 0x20b
je 0x416478
mov dword [ebp - 0x1c], ebx
jmp 0x4164a2
cmp dword [eax + 0x400084], 0xe
jbe 0x416473
xor ecx, ecx
cmp dword [eax + 0x4000f8], ebx
jmp 0x41649c
cmp dword [eax + 0x400074], 0xe
jbe 0x416473
xor ecx, ecx
cmp dword [eax + 0x4000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x41fae8], edi
mov dword [0x41faec], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41dacc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x41dac8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41fae4], eax
call fcn.004166f4
cmp dword [0x41b640], ebx
jne 0x4164ff
push fcn.004166f4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.004166e2
push 0x4173f8
push 0x4173f4
call sub.msvcrt.dll__initterm
mov eax, dword [0x41dac4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x41dac0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x4173f0
push 0x417394
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x41658a
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x41656a
cmp cl, 0x22
jne 0x41655b
cmp byte [eax], 0x22
jne 0x416573
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x41657e
cmp cl, 0x20
jbe 0x41656f
test byte [ebp - 0x54], 1
je 0x416595
movzx ecx, word [ebp - 0x50]
jmp 0x416598
cmp byte [eax], 0x20
jbe 0x416573
inc eax
mov dword [ebp - 0x20], eax
jmp 0x41658a
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00406f8e
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4165b6
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x4165f2
mov eax, esi
jmp 0x416606
call fcn.00416733
ret
Function at 0x401f70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push edi
call ebp
test eax, eax
jne 0x401fd0
push esi
push 0x5c
push edi
call fcn.0043bd47
mov esi, eax
add esp, 8
test esi, esi
je 0x401fc0
push ebx
movzx ebx, word [esi]
xor eax, eax
push edi
mov word [esi], ax
call ebp
test eax, eax
jne 0x401fa8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [esi], bx
push 0x5c
add esi, 2
push esi
call fcn.0043bd47
mov esi, eax
add esp, 8
test esi, esi
jne 0x401f91
pop ebx
push edi
call ebp
pop esi
test eax, eax
jne 0x401fd0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop ebp
ret

Function at 0x401fe0
Capabilities:
Write file on windows

Disassembly:
push ecx
push 0x464e24
push eax
lea ecx, [esp + 8]
push ecx
call fcn.0043bcf4
mov ecx, dword [esp + 0xc]
add esp, 0xc
test ecx, ecx
je 0x40202f
test eax, eax
jne 0x40202f
push eax
push eax
push ecx
call fcn.0043c6a0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push eax
push 1
push ecx
call fcn.0043c594
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043c79c
add esp, 0x20
mov al, 1
pop ecx
ret
xor al, al
pop ecx
ret
Function at 0x404030
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4588f1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x472bd0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0xc], ebx
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x44]
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
call fcn.00403000
mov eax, edi
mov dword [esp + 0x34], 1
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404090
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x14]
call fcn.00402f20
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0xffffffffffffffff
mov word [esi + 4], cx
push ebx
mov ecx, esi
call fcn.00403000
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x4040e5
mov edx, dword [esp + 0x14]
push edx
call fcn.0040466e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x404170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00419279

Function at 0x40ed9d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40ede4
call fcn.0041e31d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40ede4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40ee00
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040e915
mov esi, eax
test edi, edi
je 0x40edfe
test ebx, ebx
je 0x40edfe
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x410819
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x45628f
call fcn.0043e703
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41083e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x410884
lea ecx, [ebp - 0x10]
call fcn.00407a0a
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f22d
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00405717
mov eax, esi
call fcn.0043e7db
ret 8
Function at 0x4140e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0041e31d
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x41410d
xor eax, eax
jmp 0x4141b3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x414106
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x414106
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040463f
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x414164
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x414153
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00412dea
push edi
mov ebx, eax
call fcn.0040466e
pop ecx
test ebx, ebx
je 0x4141a6
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00413493
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00413547
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x417838
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x417880
call fcn.0041e31d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x417880
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4178c3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4178ac
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 0x4178ac
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4178c0
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 0x4191e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041e31d
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41921b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00418e2e
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x419279
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41929d
cmp dword [edi + 0x54], 0
jne 0x41929d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041e31d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041923a
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4385f9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x458132
call fcn.0043e703
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040e73f
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x43865b
call fcn.0041dbf7
cmp eax, 1
jne 0x43865b
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00416c42
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040fe49
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00405717
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00405717
mov eax, esi
call fcn.0043e7db
ret 0x10

Function at 0x438684
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x458132
call fcn.0043e703
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040e73f
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4386e6
call fcn.0041dbf7
cmp eax, 1
jne 0x4386e6
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00416c42
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040fe49
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00405717
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00405717
mov eax, esi
call fcn.0043e7db
ret 0x14

Function at 0x43bbce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x472bd0]
jne 0x43bbd8
repz ret
jmp fcn.004415c3
Function at 0x44a522
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00440fd2
and dword [ebp - 4], 0
cmp dword [0x476f50], 0
mov ebx, eax
jne 0x44a5d3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44a684
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x44a684
push eax
call fcn.00440f60
mov dword [esp], 0x4628b4
push edi
mov dword [0x476f50], eax
call esi
push eax
call fcn.00440f60
mov dword [esp], 0x4628a0
push edi
mov dword [0x476f54], eax
call esi
push eax
call fcn.00440f60
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x476f58], eax
call esi
push eax
call fcn.00440f60
pop ecx
mov dword [0x476f60], eax
test eax, eax
je 0x44a5d3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00440f60
pop ecx
mov dword [0x476f5c], eax
mov eax, dword [0x476f5c]
cmp eax, ebx
je 0x44a62b
cmp dword [0x476f60], ebx
je 0x44a62b
push eax
call fcn.00440fdb
push dword [0x476f60]
mov esi, eax
call fcn.00440fdb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44a62b
test edi, edi
je 0x44a62b
call esi
test eax, eax
je 0x44a622
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44a622
test byte [ebp - 0xc], 1
jne 0x44a62b
or dword [ebp + 0x10], 0x200000
jmp 0x44a664
mov eax, dword [0x476f54]
cmp eax, ebx
je 0x44a664
push eax
call fcn.00440fdb
pop ecx
test eax, eax
je 0x44a664
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44a664
mov eax, dword [0x476f58]
cmp eax, ebx
je 0x44a664
push eax
call fcn.00440fdb
pop ecx
test eax, eax
je 0x44a664
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x476f50]
call fcn.00440fdb
pop ecx
test eax, eax
je 0x44a684
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44a686
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ff7
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
lea edx, [eax + 1]
imul edx, dword [0x404050]
mov ebx, eax
mov eax, 0x404054
call fcn.00401f33
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x402fd6
push edx
sub edi, fcn.00402780
push edi
xor eax, eax
push fcn.00402780
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x402063
mov eax, fcn.00402780
mov ebx, esi
mov edx, edi
call fcn.00401f33
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.0040186d
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.004019f0
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x404731]
lea edx, [fcn.00401a74]
sub eax, edx
push eax
push fcn.00401a74
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40132d
push edi
call fcn.004018e0
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.0040192f
mov eax, edi
add eax, 0x1e200
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov esi, dword [ebp - 0x88]
mov ecx, edi
sar esi, cl
push esi
lea esi, [0x4070e4]
mov ebx, edi
dec ebx
and esi, ebx
push esi
call fcn.00401a74
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4019f0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push edi
and dword [ebp - 0x120], 0
xor edi, edi
push 0
push 0
call sub.USER32.DLL_GetWindowLongA
push 0
push 0
call sub.USER32.DLL_GetDlgItem
push 0
push 0
push 0
push 0
call sub.USER32.DLL_GetDlgItemInt
mov dword [ebp - 0x11c], 0x14
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
mov eax, edi
pop edi
leave
ret