joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41a988
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebp
push esi
push edi
mov eax, dword [0x422060]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push 0x40
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0040d560
mov edx, dword [0x42332c]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x42332c
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 0x181
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push ecx
push edx
push str.__s___s
lea edi, [esp + 0x1c]
mov dword [esp + 0x84], 0
call fcn.00405430
mov edi, dword [esp + 0x1c]
add esp, 0xc
push edi
push str.RunApp_strExePath_s
push 0xc8
push str..ProcessCommon.cpp
call fcn.004035b0
add esp, 0x10
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
mov word [esp + 0x7c], 0xa
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
push esi
push str.RunApp_bRetCode_d
push 0xc8
push str..ProcessCommon.cpp
call fcn.004035b0
add esp, 0x10
test esi, esi
jne 0x406909
lea eax, [edi - 0x10]
mov dword [esp + 0x78], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4068f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x6c
ret
mov eax, dword [esp + 0x18]
test eax, eax
mov esi, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40691e
push eax
call ebp
test esi, esi
je 0x406925
push esi
call ebp
lea eax, [edi - 0x10]
mov dword [esp + 0x78], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406949
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x6c
ret
Function at 0x408a00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x408a0f
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x408af7
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x41ec38]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41ec38]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x41ec38]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41ec38]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41ec38]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41ec38]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41ec38]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41ec38]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x408a20
pop ebp
test edi, edi
je 0x408b1c
jmp 0x408b00
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x41ec38]
add ecx, 1
sub edi, 1
jne 0x408b00
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x408b30
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x41ec38]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x41ec38]
mov dword [edx + 8], ecx
ret

Function at 0x408b80
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
xor al, bl
movzx ebx, al
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x41ec38]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x41ec38]
pop ebx
mov dword [esi + 8], ecx
ret
Function at 0x409340
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, ebx
imul edi, dword [esp + 8]
cmp byte [esi], 0
je 0x409372
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409368
mov byte [esi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop edi
ret
xor eax, eax
mov ecx, edi
add ecx, dword [esi + 0x28]
adc eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x24]
jl 0x40938e
jg 0x409388
cmp ecx, dword [esi + 0x20]
jbe 0x40938e
mov edi, dword [esi + 0x20]
sub edi, dword [esi + 0x28]
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x28]
push edi
push eax
push edx
call fcn.0040e300
add esp, 0xc
add dword [esi + 0x28], edi
mov eax, edi
pop edi
adc dword [esi + 0x2c], 0
xor edx, edx
div ebx
ret
Function at 0x409e20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x409e40
mov eax, 0xffffff9a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [edi + 0x18], ebx
je 0x409e33
cmp dword [edi + 0x7c], ebx
je 0x409e4f
call fcn.0040a220
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00409c20
add esp, 0xc
test eax, eax
je 0x409e77
mov eax, 0xffffff99
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x84
call fcn.0040cb8a
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x409eb7
push 0x4000
call fcn.0040cb8a
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x409ec4
push esi
call fcn.0040cc4d
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x409f0c
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00408e40
test eax, eax
jne 0x409f0c
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x409f36
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x409f3f
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
mov al, byte [esi + 0x6c]
neg al
lea edx, [esi + 0x70]
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
sbb eax, eax
and eax, 0xc
cmp ebp, ebx
mov dword [esi + 0x7c], eax
je 0x409f78
mov cl, byte [ebp]
cmp cl, bl
je 0x409f78
call fcn.00408b30
add ebp, 1
jne 0x409f67
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x1c]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x40a2a0
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [edi], 0
push esi
jne 0x40a35f
cmp dword [edi + 4], 0xffffffff
jne 0x40a35f
lea esi, [edi + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a2d0
sub eax, edx
sar eax, 1
movzx eax, word [edi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x40a327
cmp ax, 0x2f
je 0x40a327
mov eax, esi
lea edx, [eax + 2]
jmp 0x40a300
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a300
sub eax, edx
push 1
sar eax, 1
mov ecx, 0x104
push 0x41d2a8
sub ecx, eax
push ecx
push esi
call fcn.0040d445
add esp, 0x10
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
call fcn.004092a0
add esp, 4
test eax, eax
jne 0x40a345
mov eax, dword [esp + 0xc]
pop esi
pop ecx
ret 4
call fcn.00409760
mov dword [edi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop esi
pop ecx
ret 4
mov eax, 0x1000000
pop esi
pop ecx
ret 4
Function at 0x40aa00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x422060]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x41c]
test ebx, ebx
push edi
mov edi, dword [esp + 0x424]
je 0x40aa3d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40aa3d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [edi]
test ax, ax
je 0x40ab34
mov ecx, edi
mov edx, edi
movzx eax, ax
cmp ax, 0x2f
je 0x40aa5c
cmp ax, 0x5c
jne 0x40aa5e
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x40aa50
cmp ecx, edi
push esi
je 0x40aaa1
sub ecx, edi
sar ecx, 1
add ecx, ecx
mov esi, ecx
push esi
lea eax, [esp + 0x218]
push edi
push eax
call fcn.0040e300
lea ecx, [esp + 0x220]
push ecx
push ebx
mov word [esp + esi + 0x228], 0
call fcn.0040aa00
add esp, 0x14
test ebx, ebx
mov word [esp + 0xc], 0
je 0x40aac4
push 0x103
push ebx
lea edx, [esp + 0x14]
push 0x104
push edx
call fcn.0040cf9d
add esp, 0x10
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40aad0
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0xc]
lea esi, [eax + 2]
jmp 0x40aaf0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40aaf0
push edx
sub eax, esi
sar eax, 1
mov ecx, 0x104
push edi
sub ecx, eax
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040d445
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop esi
jne 0x40ab34
push 0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x418]
pop edi
pop ebx
xor ecx, esp
call fcn.0040b949
add esp, 0x414
ret
Function at 0x40b35c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x422060]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040b2f1
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.0040d560
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 0x40b3ab
cmp dword [ebp - 0x1c], 5
jb 0x40b3c3
jmp 0x40b3bf
cmp dword [ebp - 0x10], 1
jne 0x40b3c3
cmp dword [ebp - 0x1c], 4
ja 0x40b3bf
jne 0x40b3c3
cmp dword [ebp - 0x18], 0
jbe 0x40b3c3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41b298
call fcn.0040b1e2
test eax, eax
jge 0x40b3e4
mov byte [0x423fb8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040b949
add ebp, 0x78
leave
ret

Function at 0x40b949
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422060]
jne 0x40b953
repz ret
jmp fcn.0040ecba
Function at 0x40fd73
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 + 0x4221f8]
je 0x40fd8e
inc edi
cmp edi, 0x17
jb 0x40fd7f
cmp edi, 0x17
jae 0x40ff0e
push ebp
push 3
call fcn.00416ec6
cmp eax, 1
pop ecx
je 0x40feda
push 3
call fcn.00416ec6
test eax, eax
pop ecx
jne 0x40fdc2
cmp dword [0x422050], 1
je 0x40feda
cmp ebx, 0xfc
je 0x40ff0d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x423760
push ebp
call fcn.0040e665
add esp, 0xc
test eax, eax
je 0x40fdf8
push esi
push esi
push esi
push esi
push esi
call fcn.0040b819
add esp, 0x14
push 0x104
mov esi, 0x423779
push esi
push 0
mov byte [0x42387d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40fe3c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040e665
add esp, 0xc
test eax, eax
je 0x40fe3c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040b819
add esp, 0x14
push esi
call fcn.0040da00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40fe81
push esi
call fcn.0040da00
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x423a74
push 0x41b954
sub ecx, eax
push ecx
push eax
call fcn.0040c3cd
add esp, 0x14
test eax, eax
je 0x40fe81
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040b819
add esp, 0x14
jmp 0x40fe83
xor esi, esi
push 0x41b950
push ebx
push ebp
call fcn.00416e55
add esp, 0xc
test eax, eax
je 0x40fea3
push esi
push esi
push esi
push esi
push esi
call fcn.0040b819
add esp, 0x14
push dword [edi*8 + 0x4221fc]
push ebx
push ebp
call fcn.00416e55
add esp, 0xc
test eax, eax
je 0x40fec5
push esi
push esi
push esi
push esi
push esi
call fcn.0040b819
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00416c98
add esp, 0xc
jmp 0x40ff0d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40ff0d
cmp ebp, 0xffffffff
je 0x40ff0d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4221fc]
push dword [esi]
call fcn.0040da00
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 0x416c98
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040e7d8
xor ebx, ebx
cmp dword [0x423ea4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x416d6e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x416e4e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x416e4e
push eax
call fcn.0040e76a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423ea4], eax
call esi
push eax
call fcn.0040e76a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423ea8], eax
call esi
push eax
call fcn.0040e76a
mov dword [0x423eac], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040fb00
test eax, eax
pop ecx
pop ecx
je 0x416d3c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b819
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x416d6e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040e76a
cmp eax, ebx
pop ecx
mov dword [0x423eb4], eax
je 0x416d6e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040e76a
pop ecx
mov dword [0x423eb0], eax
mov eax, dword [0x423eb0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x416df3
cmp dword [0x423eb4], ecx
je 0x416df3
push eax
call fcn.0040e7e1
push dword [0x423eb4]
mov esi, eax
call fcn.0040e7e1
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x416df3
cmp edi, ebx
je 0x416df3
call esi
cmp eax, ebx
je 0x416dc0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416dc0
test byte [ebp - 0x18], 1
jne 0x416df3
lea eax, [ebp - 0x10]
push eax
call fcn.0040fb37
test eax, eax
pop ecx
je 0x416ddb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b819
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x416dea
or dword [ebp + 0x10], 0x200000
jmp 0x416e2e
or dword [ebp + 0x10], 0x40000
jmp 0x416e2e
mov eax, dword [0x423ea8]
cmp eax, dword [ebp - 8]
je 0x416e2e
push eax
call fcn.0040e7e1
cmp eax, ebx
pop ecx
je 0x416e2e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x416e2e
mov eax, dword [0x423eac]
cmp eax, dword [ebp - 8]
je 0x416e2e
push eax
call fcn.0040e7e1
cmp eax, ebx
pop ecx
je 0x416e2e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423ea4]
call fcn.0040e7e1
cmp eax, ebx
pop ecx
je 0x416e4e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416e50
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001874
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10060b0]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
xor esi, esi
lea eax, [ebp - 0x210]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1001260
push 0x80000000
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001a04
cmp dword [ebp - 0x214], 1
jne 0x1001a04
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, 0x1001268
push ebx
call edi
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push esi
push esi
push dword [ebp - 0x210]
call ebx
test eax, eax
jne 0x1001a02
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1001278
push 0x80000000
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001a02
push 0x1001288
call edi
push eax
push 0x1001288
push 1
push esi
push esi
push dword [ebp - 0x210]
call ebx
test eax, eax
jne 0x1001a02
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1001294
push 0x80000000
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001a02
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01001829
lea eax, [ebp - 0x20c]
push eax
push 0x10012b8
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call edi
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push esi
push esi
push dword [ebp - 0x210]
call ebx
test eax, eax
jne 0x1001a02
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x210], esi
pop edi
pop ebx
cmp dword [ebp - 0x210], esi
pop esi
je 0x1001a19
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
call fcn.010048f0
leave
ret
Function at 0x10026ac
Capabilities:
Check if file exists
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10060b0]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
je 0x1002785
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push ebx
push 0x10013e4
push 0x80000002
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002771
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push 0x10013e3
push dword [ebp - 0x10c]
mov dword [ebp - 0x114], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002771
cmp dword [ebp - 0x110], 2
lea eax, [ebp - 0x108]
jne 0x1002754
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [ebp - 0x114], eax
jmp 0x1002771
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1002771
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp - 0x10c], ebx
je 0x1002785
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.010048f0
leave
ret 8
Function at 0x1003214
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.0100487d
jmp fcn.01003190

Function at 0x1004209
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
je 0x10042ca
cmp dword [ebp + 0x10], ebx
je 0x10042ca
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x100424e
mov dword [ebp - 4], 0x80040116
jmp 0x10042be
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1004267
mov dword [ebp - 4], 0x80040116
jmp 0x10042b6
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
jne 0x1004280
mov dword [ebp - 4], 0x8007000e
jmp 0x10042b5
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100429d
mov dword [ebp - 4], 0x80040116
jmp 0x10042b5
cmp esi, dword [ebp - 8]
je 0x10042ab
mov dword [ebp - 4], 0x80004005
jmp 0x10042b5
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
pop edi
mov eax, dword [ebp + 8]
cmp eax, ebx
pop esi
je 0x10042c5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x10042cf
mov eax, 0x80070057
pop ebx
leave
ret 0xc
Function at 0x1022612
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
mov ebx, ecx
mov edi, 0x2000
push edi
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x1022642
mov eax, 0x8007000e
jmp 0x10227ab
push eax
mov ecx, ebx
call fcn.01022519
test eax, eax
jge 0x1022655
mov edi, eax
jmp 0x102279b
lea eax, [ebp - 2]
push eax
push dword [ebp - 0x10]
call fcn.0102238f
test eax, eax
jne 0x102266f
mov edi, 0x80020009
jmp 0x102279b
push edi
call esi
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0xc], esi
jne 0x1022686
mov edi, 0x8007000e
jmp 0x102279b
mov ecx, ebx
call fcn.010224f0
push esi
mov ecx, ebx
call fcn.01022519
test eax, eax
jl 0x1022791
movzx eax, word [ebp - 2]
sub eax, 8
je 0x1022776
sub eax, 9
je 0x10226d9
dec eax
dec eax
jne 0x1022782
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push esi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.01021fdd
jmp 0x1022782
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 8], eax
je 0x10226f1
mov edi, 0x80004005
jmp 0x1022793
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.01032890
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, esp
mov dword [ebp - 4], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp esp, edi
je 0x10226e7
cmp dword [ebp - 8], edi
jle 0x102275d
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + edi*2]
push eax
call fcn.01022419
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x1022727
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 4]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1022782
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
call fcn.01022000
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
call fcn.01022519
test eax, eax
jge 0x10227a9
mov edi, eax
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, edi
jmp 0x10227ab
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 0xc