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

Disassembly:
sub esp, 0x158
push ebx
push esi
mov ebx, dword [esp + 0x168]
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x14], eax
test ebx, ebx
mov dword [esp + 0x18], eax
je 0x100316b1
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x60]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1003172b
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
test ebx, ebx
je 0x10031774
mov al, byte [ebx - 1]
test al, al
je 0x1003176a
cmp al, 0xff
je 0x1003176a
dec al
pop edi
mov byte [ebx - 1], al
pop esi
pop ebx
add esp, 0x158
ret
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
test ebx, ebx
je 0x10031774
mov al, byte [ebx - 1]
test al, al
je 0x1003176a
cmp al, 0xff
je 0x1003176a
dec al
pop edi
mov byte [ebx - 1], al
pop esi
pop ebx
add esp, 0x158
ret
dec ebx
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x158
ret

Function at 0x10031780
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push 0x20006
push 0
push str.SoftwarePPLive
push reloc.WSOCK32.dll_accept
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100317f8
mov cl, byte [esp + 0xc]
mov eax, 0xc8
test cl, cl
jne 0x100317bc
mov eax, 0x32
mov esi, dword [esp + 4]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push 0
push str.memorysize
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x100317ed
test esi, esi
je 0x100317f8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret
test esi, esi
je 0x100317f8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret
Function at 0x10031800
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
push esi
lea eax, [esp + 8]
push edi
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREPPLive
push reloc.WSOCK32.dll_accept
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x1003187d
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
push ebx
push str.citycode
push esi
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10031889
cmp esi, ebx
je 0x1003187d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
mov byte [esp + ecx + 0x14], bl
je 0x100318a0
push esi
call edi
xor esi, esi
lea edx, [esp + 0x14]
push ebp
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp esi, ebx
mov ebp, eax
je 0x100318b8
push esi
call edi
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
Function at 0x1003bb80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10049350
push 0x1003b0ba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x1003bbb8
lea esi, [eax + 0x10000]
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
or ebx, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
push 0x1c
lea eax, [ebp - 0x38]
push eax
push esi
call edi
test eax, eax
jbe 0x1003bc42
cmp dword [ebp - 0x28], 0x1000
jne 0x1003bbff
mov eax, dword [ebp - 0x24]
test ah, 1
jne 0x1003bbff
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], esi
cmp word [esi], 0x5a4d
je 0x1003bc0a
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
lea esi, [edx + ecx]
jmp 0x1003bbcd
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x40], eax
cmp dword [eax], 0x4550
mov dword [ebp - 4], ebx
jne 0x1003bbff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1003c040
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100493a0
push 0x1003b0ba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
xor edi, edi
cmp eax, edi
jne 0x1003c080
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edi
cmp word [ecx], 0x5a4d
je 0x1003c094
push 0xc1
jmp 0x1003c188
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x24], eax
cmp dword [eax], 0x4550
je 0x1003c0ae
push 0xbf
jmp 0x1003c188
mov cx, word [eax + 0x14]
cmp cx, di
je 0x1003c183
and ecx, 0xffff
lea ecx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edi
xor edx, edx
mov dx, word [eax + 6]
cmp edi, edx
jae 0x1003c183
lea eax, [edi + edi*4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax*8]
mov esi, str..detour
mov ecx, eax
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x1003c10d
test dl, dl
je 0x1003c109
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x1003c10d
add ecx, 2
add esi, 2
test dl, dl
jne 0x1003c0e9
xor ecx, ecx
jmp 0x1003c112
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x1003c16e
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1003c183
mov edx, dword [eax + 0x10]
test edx, edx
je 0x1003c183
mov edx, dword [ebp - 0x1c]
lea esi, [ecx + edx]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
cmp eax, 0x40
jb 0x1003c183
cmp dword [esi + 4], 0x727444
jne 0x1003c183
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x1003c14a
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x24]
jmp 0x1003c0cb
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1003c310
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
cmp dword [ebx], 0x150
jne 0x1003c3f8
cmp dword [esp + 0x14], 0x150
jb 0x1003c3f8
mov ecx, dword [ebx + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x18]
push esi
push eax
push 0x40
push 0x40
push ecx
xor esi, esi
call ebp
test eax, eax
je 0x1003c3ed
mov eax, dword [ebx + 8]
lea edx, [esp + 0xc]
push edx
push 0x40
push 0xf8
push eax
call ebp
test eax, eax
je 0x1003c3db
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1003c380
lea ecx, [esp + 0x10]
push ecx
push 0x40
push 4
push eax
call ebp
test eax, eax
je 0x1003c3c6
push edi
mov edi, dword [ebx + 4]
lea esi, [ebx + 0x14]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx + 8]
lea esi, [ebx + 0x54]
mov ecx, 0x3e
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0xc]
pop edi
test eax, eax
je 0x1003c3ab
mov edx, dword [ebx + 0x14c]
mov dword [eax], edx
mov eax, dword [ebx + 0xc]
mov esi, 1
test eax, eax
je 0x1003c3c6
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push edx
push 4
push eax
call ebp
mov ecx, dword [esp + 0xc]
mov edx, dword [ebx + 8]
lea eax, [esp + 0x18]
push eax
push ecx
push 0xf8
push edx
call ebp
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 4]
lea eax, [esp + 0x18]
push eax
push ecx
push 0x40
push edx
call ebp
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x1003c4d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100493c0
push 0x1003b0ba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x1003c56b
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x1003c56b
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
mov esi, dword [ebp + 0xc]
cmp esi, edi
jb 0x1003c56b
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x1003c56b
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003c600
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x10057ecc]
test esi, esi
je 0x1003c62a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x1003c613
pop edi
pop esi
pop ecx
ret
Function at 0x1003c630
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10057ed8], eax
je 0x1003c646
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x10057ee8]
xor ebp, ebp
push edi
cmp esi, ebp
je 0x1003c69d
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
xor eax, eax
mov al, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
cmp dword [esi + 4], ebp
jne 0x1003c68c
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x1003c68c
push eax
call fcn.1003c720
add esp, 4
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1003c65c
mov dword [0x10057ee8], ebp
call fcn.1003c6f0
mov esi, dword [0x10057ee4]
cmp esi, ebp
je 0x1003c6cf
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1003c6b8
pop edi
mov dword [0x10057ee4], ebp
mov dword [0x10057ed8], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x1003ca00
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x10057edc]
push esi
test eax, eax
push edi
jne 0x1003ca76
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x1003ca74
push 8
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
jne 0x1003ca30
mov edi, 8
jmp 0x1003ca4d
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1003ca64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [0x10057edc], edi
mov eax, edi
pop edi
mov dword [0x10057ee0], 0
pop esi
ret 4
mov dword [esi + 4], edi
mov eax, dword [0x10057ee4]
mov dword [esi], eax
mov dword [0x10057ee4], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x1003cfd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100493d0
push 0x1003b0ba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1003d05a
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp word [eax], 0x5a4d
jne 0x1003d053
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x3c], ecx
cmp dword [ecx], 0x4550
jne 0x1003d053
cmp word [ecx + 0x14], 0
mov dword [ebp - 4], 0xffffffff
je 0x1003d05a
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003d070
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10057ed8], eax
je 0x1003d090
pop edi
pop esi
pop ebp
mov eax, 0x10dd
pop ebx
pop ecx
ret 8
mov eax, dword [0x10057edc]
test eax, eax
jne 0x1003d19e
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x1003d0b2
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
pop ecx
ret 8
cmp dword [ebp], 0
jne 0x1003d0d0
pop edi
mov eax, 6
mov dword [0x10057ee0], ebp
pop esi
pop ebp
mov dword [0x10057edc], eax
pop ebx
pop ecx
ret 8
push 0x18
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
jne 0x1003d0ea
mov edi, 8
jmp 0x1003d183
mov eax, dword [esp + 0x1c]
mov ebx, dword [ebp]
push 0
push eax
call fcn.1003c460
mov edi, dword [ebx + 0x18]
xor ecx, ecx
mov cl, byte [ebx + 0x17]
sub edi, ecx
test ecx, ecx
je 0x1003d175
cmp ecx, 0x17
ja 0x1003d175
cmp dword [ebx + 0x1c], eax
je 0x1003d121
mov eax, dword [0x10057ed4]
mov edi, 9
test eax, eax
jne 0x1003d189
jmp 0x1003d183
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push 0x40
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1003d146
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1003d183
mov dword [esi + 4], 1
mov dword [esi + 8], ebp
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], edi
mov eax, dword [esp + 0x10]
pop edi
mov dword [esi + 0x14], eax
mov ecx, dword [0x10057ee8]
mov dword [esi], ecx
mov dword [0x10057ee8], esi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov eax, dword [0x10057ed4]
mov edi, 9
test eax, eax
jne 0x1003d189
mov dword [0x10057edc], edi
test esi, esi
je 0x1003d196
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [0x10057ee0], ebp
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x40e9f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ae8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045f7d3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40ea72
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045d6ea
mov eax, dword [eax]
push 0x4841c0
push eax
call fcn.00450444
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045fa5e
test bl, bl
je 0x40ea72
push 0x4841c0
lea ecx, [esp + 0xc]
call fcn.0045fdee
push 0x487d34
lea ecx, [esp + 0xc]
call fcn.0045fdee
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40eaae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045fa5e
jmp 0x40eb79
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40eb32
lea edx, [esp + 0x7c]
push 0x487d30
push edx
call fcn.00450444
add esp, 8
test eax, eax
je 0x40eb32
lea eax, [esp + 0x7c]
push 0x487d2c
push eax
call fcn.00450444
add esp, 8
test eax, eax
je 0x40eb32
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40eac2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045fa5e
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40f370
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40f3d2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40f3e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46af0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48e1e0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40f518
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40f446
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045fa5e
xor eax, eax
jmp 0x40f58f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045fb9b
push esi
lea ecx, [esp + 0xc]
call fcn.0045fe2a
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40f56d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040f370
test eax, eax
jne 0x40f56d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040f370
test eax, eax
jne 0x40f56d
lea eax, [esp + 0x14]
push 0x487d48
push eax
call fcn.00451480
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f54c
lea ecx, [esp + 0x14]
push 0x487d44
push ecx
call fcn.00451400
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f54c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40f54f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045fb4b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40f45e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045fa5e
xor eax, eax
jmp 0x40f58f
mov byte [esi], 0
push 0x487d40
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0045fa5e
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x4209c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x420a2e
cmp si, 0x69
ja 0x420a2e
add esi, 0xffd0
cmp si, 0x11
je 0x4209fe
push 0x11
call edi
test ax, ax
jge 0x4209fe
or esi, 0x2000
cmp si, 0x10
je 0x420a13
push 0x10
call edi
test ax, ax
jge 0x420a13
or esi, 0x4000
cmp si, 0x12
je 0x420a28
push 0x12
call edi
test ax, ax
jge 0x420a28
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x420a3b
mov esi, 0xbd
jmp 0x4209ef
cmp si, 0x6e
jne 0x420a48
mov esi, 0xbe
jmp 0x4209ef
cmp si, 0x6f
jne 0x4209e9
mov esi, 0xbf
jmp 0x4209ef

Function at 0x4221f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x49e848]
xor edx, edx
cmp eax, edx
jne 0x422216
xor eax, eax
mov byte [eax + 0x49e748], al
inc eax
cmp eax, 0x100
jl 0x4221fe
mov dword [0x49e848], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x49e748
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4222a7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x42227a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x422248
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x422320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x422373
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x42235a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret