joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0eb0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x4b0f65
cmp dword [ebp + 4], 0xffffffff
jne 0x4b0f65
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x1379828
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x4b0f2d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4b0f2d
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.004afcb0
add esp, 0x10
test eax, eax
jne 0x4b0f50
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.004b01f0
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x4b13c0
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x4b1488
mov al, byte [ecx]
test al, al
je 0x4b1488
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x4b13eb
cmp al, 0x5c
jne 0x4b13ed
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4b13e3
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x4b1424
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.004c48cf
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.004b13c0
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x4b3930
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x1379914]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4b3943
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4b3984
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x13799bc]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4b39b6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4b39ba
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4b39ab
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4b39d8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4b39dc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4b39cd
xor ecx, ecx
mov eax, 0x1379924
xor ebx, ebx
mov bl, byte [ecx + 0x13799cc]
cmp byte [esp + ebx + 0x14], 0
je 0x4b3a07
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x13799e4]
cmp byte [esp + ebx + 0x14], 0
je 0x4b3a1e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4b39ee
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4b3977
lea edx, [esp + 0x84]
push edx
call fcn.004b3a60
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4c458d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c45ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004c621d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4c45d0
test byte [esp + 8], 2
je 0x4c45d0
call fcn.004c6290
mov dword [eax], 0xd
call fcn.004c6299
mov dword [eax], 5
jmp 0x4c45a9
xor eax, eax
ret

Function at 0x4d6880
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d68b8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d48fb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d48d3
jmp 0x4d68c4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d807e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d80c0
call fcn.004de89e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d80c0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d80b7
xor eax, eax
jmp 0x4d80c8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d80ce
pop edi
pop esi
pop ebx
ret 4

Function at 0x4dedce
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 0x4dedfc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dee1a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ded34
jmp 0x4dee1a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4dee1a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ded34
test edi, edi
mov eax, edi
jne 0x4dee04
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4026f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [esp + 4]
call dword [sym.imp.msvcp80.dll_protected:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Myptr_void_]
test eax, eax
je 0x402717
cmp byte [eax], 0
je 0x402717
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402717
and al, 0x10
cmp al, 0x10
sete al
ret
xor al, al
ret

Function at 0x402750
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [esp + 4]
call dword [sym.imp.msvcp80.dll_protected:_unsigned_short_int____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Myptr_void_]
test eax, eax
je 0x402778
cmp word [eax], 0
je 0x402778
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402778
and al, 0x10
cmp al, 0x10
sete al
ret
xor al, al
ret

Function at 0x4027d0
Capabilities:
Get common file path

Disassembly:
push 0x20a
push 0
push str.C:UsersBispoo
call sub.msvcr80.dll_memset
add esp, 0xc
push str.C:UsersBispoo
push 0
push 0
push 0x28
push 0
call dword [sym.imp.shell32.dll_SHGetFolderPathW]
cmp eax, 0x80004005
je 0x402838
push esi
mov esi, dword [esp + 8]
push str.C:UsersBispoo
mov ecx, esi
call dword [sym.imp.msvcp80.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_unsigned_short_int_const__]
mov eax, dword [0x40c230]
mov ecx, dword [eax]
push ecx
push 0x5c
mov ecx, esi
call dword [0x40c22c]
test eax, eax
jle 0x402834
add eax, 1
push eax
push 0
mov ecx, esi
call dword [sym.imp.msvcp80.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::erase_unsigned_int__unsigned_int_]
mov al, 1
pop esi
ret
xor al, al
ret
Function at 0x403280
Capabilities:
Create directory
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40b448
push eax
mov dword fs:[0], esp
sub esp, 0x10
push edi
mov edi, dword [esp + 0x24]
test edi, edi
je 0x4033c8
mov al, byte [edi]
test al, al
je 0x4033c8
push ebp
xor ebp, ebp
cmp al, 0x2f
push esi
mov esi, edi
je 0x403391
lea ecx, [ecx]
cmp al, 0x5c
je 0x4032d5
test al, al
je 0x4032d5
mov al, byte [esi + 1]
add esi, 1
add ebp, 1
cmp al, 0x2f
jne 0x4032c0
test ebp, ebp
je 0x403391
lea eax, [ebp + 1]
push eax
lea ecx, [esp + 0x10]
call fcn.00406490
cmp edi, esi
mov eax, dword [esp + 0x10]
je 0x403300
mov cl, byte [edi]
mov byte [eax], cl
add edi, 1
add eax, 1
cmp edi, esi
jne 0x4032f2
cmp ebp, 2
mov byte [eax], 0
mov eax, dword [esp + 0x10]
jne 0x403333
mov cl, 0x3a
cmp byte [eax + 1], cl
jne 0x403333
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], cl
mov byte [esp + 0x2e], 0x2f
mov byte [esp + 0x2f], 0
mov dl, byte [eax]
lea eax, [esp + 0x2c]
mov byte [esp + 0x2c], dl
push eax
jmp 0x403351
push eax
call dword [sym.imp.msvcr80.dll__mkdir]
add esp, 4
test eax, eax
je 0x40334c
call dword [sym.imp.msvcr80.dll__errno]
cmp dword [eax], 0x11
jne 0x40335b
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x403380
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00405c00
pop esi
pop ebp
xor al, al
pop edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00405c00
cmp byte [esi], 0
jne 0x4033aa
pop esi
pop ebp
mov al, 1
pop edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
add esi, 1
push esi
call fcn.00403280
add esp, 4
pop esi
pop ebp
pop edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov ecx, dword [esp + 0x14]
mov al, 1
pop edi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x403760
Capabilities:
Create directory
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40b4a7
push eax
mov dword fs:[0], esp
sub esp, 0x18
push edi
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x4038c8
movzx eax, word [edi]
test ax, ax
je 0x4038c8
push ebx
xor ebx, ebx
cmp ax, 0x2f
push esi
mov esi, edi
je 0x403890
movzx eax, ax
cmp ax, 0x5c
je 0x4037bf
test ax, ax
je 0x4037bf
movzx eax, word [esi + 2]
add esi, 2
add ebx, 1
cmp ax, 0x2f
jne 0x4037a4
test ebx, ebx
je 0x403890
lea eax, [ebx + 1]
push eax
lea ecx, [esp + 0x18]
call fcn.004066b0
cmp edi, esi
mov eax, dword [esp + 0x18]
je 0x4037f0
lea esp, [esp]
mov cx, word [edi]
mov word [eax], cx
add edi, 2
add eax, 2
cmp edi, esi
jne 0x4037e0
cmp ebx, 2
mov word [eax], 0
mov eax, dword [esp + 0x18]
jne 0x403832
mov ecx, 0x3a
cmp word [eax + 2], cx
jne 0x403832
mov word [esp + 0xc], 0
mov word [esp + 0xe], cx
mov word [esp + 0x10], 0x2f
mov word [esp + 0x12], 0
mov dx, word [eax]
lea eax, [esp + 0xc]
mov word [esp + 0xc], dx
push eax
jmp 0x403850
push eax
call dword [sym.imp.msvcr80.dll__wmkdir]
add esp, 4
test eax, eax
je 0x40384b
call dword [sym.imp.msvcr80.dll__errno]
cmp dword [eax], 0x11
jne 0x40385a
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x40387f
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00405bc0
pop esi
pop ebx
xor al, al
pop edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00405bc0
cmp word [esi], 0
jne 0x4038aa
pop esi
pop ebx
mov al, 1
pop edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
add esi, 2
push esi
call fcn.00403760
add esp, 4
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov ecx, dword [esp + 0x1c]
mov al, 1
pop edi
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x4040d0
Capabilities:
Get common file path
Set current directory

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x108
push ebx
push esi
call dword [sym.imp.msvcp80.dll_protected:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Myptr_void_]
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
push esi
call fcn.00403280
add esp, 4
lea ecx, [esp + 8]
push ecx
mov bl, al
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
pop esi
mov al, bl
pop ebx
add esp, 0x108
ret
Function at 0x404160
Capabilities:
Get common file path
Set current directory

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x20c
push ebx
push esi
call dword [sym.imp.msvcp80.dll_protected:_unsigned_short_int____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Myptr_void_]
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
push esi
call fcn.00403760
add esp, 4
lea ecx, [esp + 8]
push ecx
mov bl, al
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
pop esi
mov al, bl
pop ebx
add esp, 0x20c
ret

Function at 0x409040
Capabilities:
Terminate process

Disassembly:
sub esp, 0x404
mov ecx, dword [esp + 0x408]
lea eax, [esp + 0x40c]
push eax
push ecx
lea edx, [esp + 8]
push 0x400
push edx
call dword [sym.imp.msvcr80.dll__vsnprintf]
mov eax, dword [sym.imp.msvcp80.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
add esp, 0x10
push eax
lea ecx, [esp + 4]
push ecx
mov byte [esp + 0x408], 0
call fcn.00409920
push eax
call fcn.00404fe0
add esp, 8
mov ecx, eax
call dword [sym.imp.msvcp80.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::operator___class_std::basic_istream_char__struct_std::char_traits_char_______cdecl___class_std::basic_istream_char__struct_std::char_traits_char_____]
push 1
call dword [sym.imp.user32.dll_ShowCursor]
push 0x41031
push 0x40d400
lea edx, [esp + 8]
push edx
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
cmp eax, 1
je 0x4090be
int3
push 0
push 0
push 0
push 0x80000003
call dword [sym.imp.kernel32.dll_RaiseException]

Function at 0x409c10
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
cmp esi, 1
push edi
jne 0x409c32
call fcn.00409b60
add eax, 0x14
push ebx
mov ecx, eax
call fcn.00409ce0
xor esi, esi
call fcn.00409b60
lea ecx, [esi + esi*4]
mov esi, dword [eax + ecx*4 + 8]
mov edi, dword [eax + ecx*4 + 0xc]
cmp esi, edi
lea eax, [eax + ecx*4]
je 0x409c61
lea esp, [esp]
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add esi, 4
cmp esi, edi
jne 0x409c50
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
ret

Function at 0x409ce0
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
cmp esi, edi
je 0x409d02
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add esi, 4
cmp esi, edi
jne 0x409cf1
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
ret 4
Function at 0x100010a0
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cb4d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push 0x100d7288
movzx eax, word [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
add eax, 4
mov dword [0x100f43c8], eax
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
sub eax, 4
mov dword [0x100f5188], eax
mov ecx, dword [0x100f43c8]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x1c]
call fcn.100012a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.100012a0
mov byte [ebp - 4], 1
push 0x204
lea ecx, [ebp - 0x1c]
call fcn.10001390
push 0x204
lea ecx, [ebp - 0x14]
call fcn.10001390
mov edx, dword [ebp - 0x1c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
call fcn.1009e296
add esp, 4
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
push 0x100d7290
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x100d7298
mov eax, dword [ebp - 0x14]
push eax
push 0x100f5190
call fcn.1009e916
add esp, 0xc
mov ecx, dword [0x100f43c8]
push ecx
call fcn.1009de20
add esp, 4
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x24]
call fcn.100012a0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x24]
call fcn.10001390
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [0x100f5188]
push edx
mov eax, dword [0x100f43c8]
push eax
call fcn.1009de50
add esp, 0x10
mov dword [ebp - 0x30], eax
cmp dword [0x100f5190], 0
je 0x10001201
mov ecx, dword [0x100f5190]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push 1
mov eax, dword [ebp - 0x24]
push eax
call fcn.1009e7b7
add esp, 0x10
cmp dword [0x100f5190], 0
je 0x10001219
mov ecx, dword [0x100f5190]
push ecx
call fcn.1009e9e0
add esp, 4
push 0x2010
push 0
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.100012d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.100012d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100012d0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10002000
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x100020a0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100020a0
mov dword [ebp - 0x238], 0x22c
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.1009eb40
add esp, 0xc
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10002096
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1009ebf1
add esp, 8
test eax, eax
jne 0x10002082
mov edx, dword [ebp - 0x230]
mov dword [ebp + 0xc], edx
jmp 0x10002096
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10002060
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
je 0x100020ba
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
je 0x100021c1
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.1009ec30
add esp, 4
add eax, 1
mov dword [ebp - 0x23c], eax
push 0x40
push 0x1000
mov edx, dword [ebp - 0x23c]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
je 0x100021b1
push 0
mov ecx, dword [ebp - 0x23c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x240]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
mov edx, dword [ebp - 0x240]
push edx
push 0x100d72a4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x10002194
push 0x2710
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
mov edx, dword [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x240]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [ebp + 0xc], 0
je 0x100021c1
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10003820
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 0x80
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.10001390
push 0x80
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.10001390
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10003871
xor al, al
jmp 0x10003965
mov dword [ebp - 8], 0x80
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1c]
push eax
push 0
push 0
push str.ProcessorNameString
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x80
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x24]
push ecx
push 0
push 0
push str.Identifier
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push str.SoftwareExploreAnywhereCustomer
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10003900
push str.CustomerID_Not_Yet_Set
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.10001460
xor al, al
jmp 0x10003965
push 0x80
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.10001390
mov dword [ebp - 8], 0x80
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
push 0
push 0
push str.CustomerID
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
push 0
push 0
push str.ProductID
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret