joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40571c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call esi
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov edi, eax
call fcn.00401274
lea eax, [edi + 2]
push eax
mov ecx, ebx
mov dword [ebp + 8], eax
call fcn.00404ae6
inc edi
push edi
push dword [ebp + 8]
mov ecx, ebx
call fcn.00404ae6
push eax
push dword [ebp + 0xc]
call esi
mov ecx, ebx
call fcn.00404acd
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x405c5f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x42c258], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0040a85c
call fcn.00403dcd
push 3
call fcn.00403e28
push 0x28
mov dword [0x42c280], eax
call fcn.00403e28
push 2
mov dword [0x42c27c], eax
call fcn.00403e28
push 5
mov dword [0x42c278], eax
call fcn.00403e28
push 0x15
mov dword [0x42c274], eax
call fcn.00403e28
push 0x16
mov dword [0x42c270], eax
call fcn.00403e28
push 0x17
mov dword [0x42c26c], eax
call fcn.00403e28
xor ebx, ebx
add esp, 0x1c
mov dword [0x42c268], eax
mov dword [0x42c260], ebx
mov dword [0x42c264], ebx
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x405d53
push edi
lea eax, [ebp - 0x5c]
push str.SfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040576e
add esp, 0x18
xor esi, esi
cmp dword [esi + 0x42b3c4], edi
jne 0x405d4b
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [esi + 0x42b3c8]
call fcn.0040576e
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x405d2d
inc edi
cmp edi, 0x40
jl 0x405cf2
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40634d
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, 0x42c3bc
push edi
mov ecx, esi
xor edi, edi
call fcn.0041006e
test eax, eax
jle 0x4063b8
push edi
mov ecx, esi
call fcn.0040b736
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.00402920
lea eax, [ebp - 0xc]
push eax
call fcn.00405d95
pop ecx
lea ecx, [ebp - 0xc]
call fcn.0040a9b3
push eax
push edi
mov ecx, esi
call fcn.0040b736
mov ecx, eax
call fcn.0040a9b3
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0xc]
call fcn.00401894
mov ecx, esi
inc edi
call fcn.0041006e
cmp edi, eax
jl 0x406367
pop edi
pop esi
leave
ret
Function at 0x4066b2
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
lea ecx, [ebp + 8]
call fcn.0040a9b3
cmp word [eax + 2], 0x3a
jne 0x40686b
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x4066de
cmp ecx, 0x2f
jne 0x40686b
mov ax, word [eax]
push 0x3a
mov word [ebp - 0x10], ax
pop eax
mov word [ebp - 0xe], ax
push 0x5c
pop eax
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40686b
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00404b9e
pop ecx
pop ecx
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea ecx, [ebp - 0x28]
call fcn.0040a9b3
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x406863
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401274
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401000
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.00412e74
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004129e8
mov esi, 0x425af0
push esi
lea ecx, [ebp - 0x1c]
call fcn.00412e74
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.00412e74
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004129e8
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00412e74
push edi
lea ecx, [ebp - 0x1c]
call fcn.00412e74
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004129e8
push esi
lea ecx, [ebp - 0x1c]
call fcn.00412e74
push ebx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040102e
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00404c9c
add esp, 0xc
mov ecx, eax
call fcn.004042f5
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.00401894
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp esi, ebx
pop esi
je 0x40684c
lea ecx, [ebp - 0x1c]
call fcn.0040102e
cmp dword [ebp - 8], eax
jne 0x40684c
push ebx
lea ecx, [ebp + 8]
call fcn.0040a9b3
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040a9b3
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40685b
lea ecx, [ebp - 0x28]
call fcn.0040a9b3
push eax
call fcn.004045b4
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00401894
lea ecx, [ebp - 0x28]
call fcn.00401894
lea ecx, [ebp + 8]
call fcn.00401894
pop ebx
leave
ret
Function at 0x407a6b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.0041d46c
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00407a22
add esp, 0x1c
leave
ret

Function at 0x407b33
Capabilities:
Create thread

Disassembly:
add ecx, 0x38
jmp 0x40961c
push esi
mov esi, ecx
call fcn.004080d4
test eax, eax
jne 0x40963a
push eax
push eax
push esi
push 0x4095f8
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret
push dword [0x42c278]
mov ecx, esi
call fcn.0040102e
push eax
mov ecx, esi
call fcn.00408431
push 0x2d
call fcn.00403e28
pop ecx
push eax
push 0x4b2
mov ecx, esi
call fcn.00408d06
pop esi
ret

Function at 0x407bce
Capabilities:
Set current directory

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, 0x42c2bc
mov ecx, esi
call fcn.0040a9b3
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add edi, 4
mov ecx, edi
call fcn.004034fd
test al, al
jne 0x407c0e
push esi
push edi
call fcn.00407b4c
pop ecx
pop ecx
test al, al
je 0x407c0e
mov ecx, edi
call fcn.0040a9b3
push eax
call fcn.004045b4
pop ecx
mov ecx, edi
call fcn.00401db5
pop edi
mov al, 1
pop esi
ret
Function at 0x409b1e
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.0040844d
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
add eax, 2
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.0040846e
push 1
inc edi
push edi
mov ecx, esi
call fcn.0040846e
and dword [ebp - 0x2c4], 0
push 0x2b0
lea eax, [ebp - 0x2c0]
push 0
push eax
call fcn.0041c740
add esp, 0xc
push 0x104
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push 0x408ab2
push 0xfffffffffffffffc
push edi
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.004080fb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00409807
mov ecx, esi
mov edi, eax
call fcn.00409132
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40a85c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40a864
mov dword [ecx*4 + 0x42f480], eax
inc ecx
cmp ecx, 0x100
jb 0x40a85f
mov edx, 0x800
jmp 0x40a8b1
mov eax, dword [ecx*4 + 0x42f080]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x42f480]
inc ecx
mov dword [ecx*4 + 0x42f47c], eax
cmp ecx, edx
jb 0x40a890
mov eax, 0x423240
mov esi, 0x423160
mov dword [0x42f464], eax
mov dword [0x431480], eax
mov dword [0x42f460], esi
call fcn.00410e6b
test eax, eax
jne 0x40a8de
mov dword [0x431480], esi
pop esi
ret

Function at 0x4110b2
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 0x4110d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4110d8
xor al, al
jmp 0x4110ed
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 0x413e5f
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x1c]
shr eax, 2
mov esi, eax
shr esi, 1
add esi, 3
mov dword [ecx], esi
xor esi, esi
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], eax
test eax, eax
je 0x413e94
mov ebx, dword [edx]
mov dword [ecx + esi*4 + 0x10], ebx
inc esi
add edx, 4
cmp esi, eax
jb 0x413e86
cmp esi, edi
jae 0x413f75
mov edx, esi
sub edx, eax
lea eax, [ecx + edx*4 + 0x10]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov edi, dword [ecx + esi*4 + 0xc]
mov dword [ebp - 8], eax
test edx, edx
jne 0x413f0c
mov eax, edi
mov ebx, edi
mov edx, 0xff
and eax, edx
movzx eax, byte [eax + str.cw]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl eax, 8
or eax, ebx
mov ebx, edi
shr edi, 8
and edi, edx
shr ebx, 0x10
and ebx, edx
movzx edx, byte [edi + str.cw]
movzx ebx, byte [ebx + str.cw]
mov edi, dword [ebp - 8]
movzx edi, byte [edi + 0x426418]
shl eax, 8
or eax, ebx
shl eax, 8
xor edi, edx
or edi, eax
jmp 0x413f5c
cmp dword [ebp + 8], 6
jbe 0x413f5c
cmp edx, 4
jne 0x413f5c
mov edx, edi
shr edx, 0x10
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov eax, 0xff
and edx, eax
movzx edx, byte [edx + str.cw]
shl ebx, 8
or edx, ebx
mov ebx, edi
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
shl edx, 8
and edi, eax
movzx edi, byte [edi + str.cw]
or edx, ebx
shl edx, 8
or edi, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp - 4], 4
xor eax, edi
mov dword [ecx + esi*4 + 0x10], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x413ea7
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4149c1
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x414f7d
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
movzx ecx, byte [eax + str.cw]
mov byte [ecx + 0x42c558], al
inc eax
cmp eax, 0x100
jb 0x414f85
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ecx, dword [ebp - 4]
movzx esi, byte [ecx + str.cw]
mov eax, esi
and al, 0x80
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x1b
lea edx, [esi + esi]
xor eax, edx
mov edi, 0xff
and eax, edi
mov edx, eax
xor edx, esi
mov dword [ebp - 8], edx
shl edx, 8
or edx, esi
shl edx, 8
or edx, esi
shl edx, 8
or edx, eax
mov dword [ecx*4 + 0x42d660], edx
mov edx, esi
shl edx, 8
mov ebx, edx
or edx, eax
or ebx, esi
shl edx, 8
or edx, dword [ebp - 8]
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, dword [ebp - 8]
shl ebx, 8
or ebx, dword [ebp - 8]
shl edx, 8
shl eax, 8
mov dword [ecx*4 + 0x42da60], ebx
mov ebx, ecx
movzx esi, byte [ebx + str.cw]
or edx, esi
or eax, esi
mov dword [ecx*4 + 0x42de60], edx
movzx edx, byte [ebx + 0x42c558]
shl eax, 8
or eax, esi
mov dword [ecx*4 + 0x42e260], eax
mov eax, edx
and al, 0x80
mov dword [ebp - 8], edx
movzx eax, al
neg eax
sbb eax, eax
add edx, edx
and eax, 0x1b
xor eax, edx
and eax, edi
mov edx, eax
and dl, 0x80
movzx esi, dl
neg esi
sbb esi, esi
and esi, 0x1b
lea edx, [eax + eax]
xor esi, edx
and esi, edi
mov edx, esi
and dl, 0x80
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea ebx, [esi + esi]
xor edx, ebx
and edx, edi
mov edi, edx
xor edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov edi, edx
xor edi, eax
xor edi, dword [ebp - 8]
xor edx, esi
xor eax, edx
mov esi, edx
xor esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ebx, edi
shl ebx, 8
or ebx, esi
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
mov dword [ecx*4 + 0x42c658], ebx
mov ebx, esi
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
shl ebx, 8
or ebx, edi
mov dword [ecx*4 + 0x42ca58], ebx
mov ebx, edx
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, edi
shl ebx, 8
shl eax, 8
or ebx, edi
or eax, esi
shl ebx, 8
shl eax, 8
or ebx, esi
or eax, edx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
mov dword [ecx*4 + 0x42ce58], ebx
mov dword [ecx*4 + 0x42d258], eax
jb 0x414fa1
mov dword [0x42e660], 0x414885
mov dword [0x42d65c], 0x4148e1
mov dword [0x42d658], 0x414965
call fcn.00410f40
pop edi
pop esi
pop ebx
test eax, eax
je 0x41514c
mov dword [0x42e660], 0x423470
mov dword [0x42d65c], 0x423320
mov dword [0x42d658], 0x4234e0
leave
ret
Function at 0x41592d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
and esi, 7
cmp eax, 5
jae 0x41594d
xor eax, eax
jmp 0x415a62
add dword [ebp + 0x10], 5
push ebx
mov ebx, dword [ebp + 8]
sub eax, 4
add eax, ebx
push edi
mov dword [ebp + 0xc], eax
mov edi, dword [ebp - 4]
lea edx, [edi + ebx]
jmp 0x41596f
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x415974
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x415966
mov ecx, edx
sub ecx, edi
mov eax, edx
sub eax, ebx
sub ecx, ebx
mov dword [ebp - 4], eax
cmp edx, dword [ebp + 0xc]
jae 0x415a4b
cmp ecx, 2
jbe 0x4159cb
xor esi, esi
movzx ecx, byte [edx + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x4159e9
movzx eax, byte [edx + 3]
mov edi, dword [ebp + 0x10]
add edi, dword [ebp - 4]
add dword [ebp - 4], 5
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or eax, ecx
cmp dword [ebp + 0x18], 0
je 0x4159f6
add eax, edi
jmp 0x4159f8
shr esi, cl
test esi, esi
je 0x415991
cmp esi, 4
ja 0x4159e9
cmp esi, 3
je 0x4159e9
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edx + 1]
inc eax
test al, 0xfe
jne 0x415991
or esi, 8
shr esi, 1
inc dword [ebp - 4]
jmp 0x41595e
sub eax, edi
test esi, esi
je 0x415a29
and esi, 6
shl esi, 2
mov ebx, eax
mov ecx, esi
shr ebx, cl
inc ebx
test bl, 0xfe
jne 0x415a24
mov ebx, 0x100
shl ebx, cl
dec ebx
xor eax, ebx
cmp dword [ebp + 0x18], 0
je 0x415a22
add eax, edi
jmp 0x415a24
sub eax, edi
mov ebx, dword [ebp + 8]
xor esi, esi
mov ecx, eax
shr ecx, 8
mov byte [edx + 1], al
mov byte [edx + 2], cl
mov ecx, eax
shr eax, 0x18
shr ecx, 0x10
and al, 1
neg al
mov byte [edx + 3], cl
mov byte [edx + 4], al
jmp 0x41595e
push 2
pop eax
shr esi, cl
cmp eax, ecx
mov ecx, dword [ebp + 0x14]
sbb eax, eax
not eax
and eax, esi
pop edi
mov dword [ecx], eax
mov eax, dword [ebp - 4]
pop ebx
pop esi
leave
ret

Function at 0x420ded
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c110]
jne 0x420df7
repz ret
jmp fcn.00422dd8
Function at 0x421abb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041f635
and dword [ebp - 0x14], 0
cmp dword [0x42f0dc], 0
mov dword [ebp - 0x18], eax
jne 0x421b6e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x421c16
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x421c16
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42f0dc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42f0e0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42f0e4], eax
call edi
push eax
call esi
mov dword [0x42f0ec], eax
test eax, eax
je 0x421b6e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42f0e8], eax
mov eax, dword [0x42f0e8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x421bc7
cmp dword [0x42f0ec], ecx
je 0x421bc7
push eax
call esi
push dword [0x42f0ec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x421bc7
test ebx, ebx
je 0x421bc7
call edi
test eax, eax
je 0x421bbe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x421bbe
test byte [ebp - 8], 1
jne 0x421bc7
or dword [ebp + 0x10], 0x200000
jmp 0x421bfa
mov eax, dword [0x42f0e0]
cmp eax, dword [ebp - 0x18]
je 0x421bfa
push eax
call esi
test eax, eax
je 0x421bfa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x421bfa
mov eax, dword [0x42f0e4]
cmp eax, dword [ebp - 0x18]
je 0x421bfa
push eax
call esi
test eax, eax
je 0x421bfa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42f0dc]
call esi
test eax, eax
je 0x421c16
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x421c18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420ded
leave
ret

Function at 0x401190
Capabilities:
Terminate process

Disassembly:
push str.Usage:_SampleKSPconfig__enum___register___unregister_n
call fcn.00401010
add esp, 4
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x401a29
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a68
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a68
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a68
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a68
cmp dword [ecx + 0x74], 0xe
jbe 0x401a68
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10006436
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10006445
pop dword [ebp - 0x2c]
mov eax, 0x10006445
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x3615cef8
sub dword [ebp - 0x3c], 0xe7c389ad
mov dword [ebp - 0x38], 0xc8255245
sub dword [ebp - 0x38], 0x95f20600
mov dword [ebp - 0x34], 0xfb3e2ac8
sub dword [ebp - 0x34], 0xaef1e69a
mov dword [ebp - 0x30], 0x70a04323
sub dword [ebp - 0x30], 0x70a04323
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x2d1b4438
add eax, 0xe2e4cd48
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xb61639a3
add dword [ebp - 0x3c], 0xbe5c2fb3
mov dword [ebp - 0x38], 0xb6282477
add dword [ebp - 0x38], 0x8b443cfe
mov dword [ebp - 0x34], 0xb5920316
add dword [ebp - 0x34], 0xaddd6956
mov dword [ebp - 0x30], 0x2aeb3c5b
sub dword [ebp - 0x30], 0x2aeb3c5b
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xeeb9f445
sub eax, 0xdeb9e2cd
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3b65f
push 0
call eax
mov ecx, 0xa979c1d9
add ecx, 0x56867e0e
xor esi, esi
add esi, eax
mov edx, 0x58235d8e
add edx, 0xb7de7072
add edx, dword [ebp - 0x2c]
mov edi, 0xba6e02fc
sub dword [ebp - 4], edi
mov ebx, dword [edx]
sub dword [ebp - 0x14], edi
xor ebx, edi
sub dword [ebp - 8], ebx
mov dword [esi], ebx
add esi, 0xb7c8d1c9
add esi, 0x48372e3b
add edx, 4
loop 0x1000655e
add eax, 0xf5eba8a6
add eax, 0xa1549c9
mov ebx, eax
add eax, 5
mov ecx, 0x6e5a542e
sub ecx, 0x5e5a542e
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x1000efb0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000efc0]
jne 0x10017eea
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1001a2f0], eax
mov dword [0x1001a2ec], ecx
mov dword [0x1001a2e8], edx
mov dword [0x1001a2e4], ebx
mov dword [0x1001a2e0], esi
mov dword [0x1001a2dc], edi
mov word [0x1001a308], ss
mov word [0x1001a2fc], cs
mov word [0x1001a2d8], ds
mov word [0x1001a2d4], es
mov word [0x1001a2d0], fs
mov word [0x1001a2cc], gs
pushfd
pop dword [0x1001a300]
mov eax, dword [ebp]
mov dword [0x1001a2f4], eax
mov eax, dword [ebp + 4]
mov dword [0x1001a2f8], eax
lea eax, [ebp + 8]
mov dword [0x1001a304], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1001a240], 0x10001
mov eax, dword [0x1001a2f8]
mov dword [0x1001a1f4], eax
mov dword [0x1001a1e8], 0xc0000409
mov dword [0x1001a1ec], 1
mov eax, dword [0x1000efc0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1001a044]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1001a238], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10017fec
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1001a238], 0
jne 0x10017fd6
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x40b7f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b831
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040456c
jmp 0x40b83a
mov eax, ebx
mov edx, esi
call fcn.004044d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b844
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b865
mov al, byte [esp]
jmp 0x40b867
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40beec
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bd64
mov eax, dword [0x4c9e84]
cmp byte [eax], 0
je 0x40bf54
mov eax, dword [0x4c9c10]
call fcn.00402e14
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408fdc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bf9c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bf8a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4c9bbc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ca718]
call fcn.00405c28
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40cce8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40cd4c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004046e4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408c44
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd53
lea eax, [ebp - 0xc]
call fcn.0040447c
ret