joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d199
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x445610]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x114
lea eax, [ebp - 0x118]
push esi
push 0
push eax
call fcn.0041f3b0
add esp, 0xc
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0042109c
mov esp, ebp
pop ebp
ret

Function at 0x40d987
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x50
mov eax, 0x436ffc
call fcn.00421173
mov esi, ecx
push 0x4d
pop eax
push 0x79
mov ebx, dword [ebp + 0x14]
mov word [ebp - 0x30], ax
pop eax
push 0x68
mov word [ebp - 0x2e], ax
pop eax
push 0x6f
pop ecx
push 0x64
mov word [ebp - 0x2c], ax
pop eax
mov word [ebp - 0x28], ax
push 0x61
pop eax
mov word [ebp - 0x26], ax
xor eax, eax
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x30]
mov word [ebp - 0x2a], cx
mov word [ebp - 0x24], cx
mov ecx, esi
push eax
call fcn.0040897d
mov dword [esi + 0x464], eax
test eax, eax
je 0x40da0e
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x72617453
push ecx
push eax
mov dword [ebp - 0x1c], 0x6e695774
mov dword [ebp - 0x18], 0x6b6f6f48
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40da0e
push dword [esi + 4]
call eax
mov ecx, esi
call fcn.0040936b
lea edi, [esi + 0x418]
push edi
push 0x439d20
push 0xc9
lea ecx, [esi + 4]
call fcn.00408710
cmp dword [esi + 0x48c], 0
jne 0x40da53
push str.about:blank
call fcn.0041f4a0
pop ecx
push eax
push str.about:blank
lea ecx, [esi + 0x47c]
call fcn.00413d17
mov ecx, dword [edi]
test ecx, ecx
je 0x40dafa
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x110]
mov eax, dword [edi]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov eax, dword [edi]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xac]
push 3
pop eax
mov word [ebp - 0x40], ax
mov dword [ebp - 0x38], 0xe
and dword [ebp - 4], 0
lea eax, [esi + 0x47c]
and dword [ebp - 0x44], 0
mov ecx, esi
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00406996
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x40dab6
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x44]
call fcn.00402d95
push 0
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00413939
mov eax, dword [edi]
xor edx, edx
push edx
push edx
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0x40]
push edx
push dword [ebp - 0x44]
push eax
call dword [ecx + 0x2c]
push dword [ebp - 0x44]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x6a
mov ecx, esi
call fcn.00407da1
push 1
push esi
call fcn.004019ee
xor eax, eax
pop ecx
inc eax
pop ecx
mov dword [ebx], eax
call fcn.00421122
ret 0x10
Function at 0x40ead7
Capabilities:
Create thread

Disassembly:
push 0x84
mov eax, 0x437090
call fcn.00421173
mov esi, ecx
mov dword [ebp - 0x84], esi
mov ecx, dword [esi + 0x418]
xor ebx, ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x8c], eax
mov dword [esi + 0x40c], 1
push 3
pop edi
test ecx, ecx
je 0x40eb75
mov eax, dword [ecx]
push ebx
push ecx
call dword [eax + 0x110]
mov eax, dword [esi + 0x418]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov eax, dword [esi + 0x418]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xac]
mov word [ebp - 0x34], di
mov dword [ebp - 0x2c], 0xe
mov dword [ebp - 4], ebx
mov word [ebp - 0x24], di
mov dword [ebp - 0x1c], edi
mov eax, dword [esi + 0x418]
lea edx, [ebp - 0x24]
push edx
push eax
mov byte [ebp - 4], 1
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x24]
push eax
call esi
lea eax, [ebp - 0x34]
push eax
call esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
lea eax, [ebp - 0x80]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x20
call esi
push 0x20
mov dword [ebp - 0x90], eax
call esi
push 2
mov edi, eax
call esi
push 3
mov dword [ebp - 0x88], eax
call esi
mov esi, eax
mov dword [ebp - 0x70], 0x3c
lea eax, [ebp - 0x70]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowInfo]
mov ebx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x50]
push 0x40
mov ecx, dword [ebx + 0x43c]
sub eax, ecx
mov edx, dword [ebx + 0x438]
sub eax, esi
push ecx
sub eax, edi
push edx
push eax
mov eax, dword [ebp - 0x54]
sub eax, edx
sub eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x90]
push eax
push 0xffffffffffffffff
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor esi, esi
cmp dword [ebx + 0x440], esi
jne 0x40ec17
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push 0x414002
push esi
push esi
call fcn.00420d0b
mov dword [ebx + 0x440], eax
add esp, 0x18
mov eax, dword [ebp - 0x8c]
mov dword [eax], 1
xor eax, eax
call fcn.00421122
ret 0x10
Function at 0x40fce9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x445610]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov edx, dword [ebp + 8]
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40fd60
cmp dword [ebp - 8], 1
je 0x40fd38
cmp dword [ebp - 8], 2
je 0x40fd38
push 0xd
pop eax
jmp 0x40fd60
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x40fd5a
test ecx, ecx
je 0x40fd55
test cl, 1
jne 0x40fd33
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x40fd5a
jmp 0x40fd33
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042109c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41108a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x4371e8
call fcn.004211df
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x430], esi
push 0x404
lea eax, [ebp - 0x420]
mov dword [ebp - 0x1c], esi
push esi
mov dword [ebp - 0x18], esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
call fcn.0041f3b0
add esp, 0xc
mov dword [ebp - 0x420], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x41111c
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x41111c
call fcn.00405b76
mov esi, eax
jmp 0x4111f0
push dword [ebp - 0x428]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x41113f
call fcn.00405b76
jmp 0x4111e3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x411135
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x41116f
mov esi, 0x8007000e
jmp 0x4111e5
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.00404b79
jmp 0x411195
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
je 0x411168
push ebx
push dword [ebp - 0x420]
push ebx
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x411135
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.00410ee1
mov esi, eax
test edi, edi
je 0x4111f0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x411209
lea ecx, [ebp - 0x420]
call fcn.00408291
mov eax, esi
call fcn.00421131
ret 0x10
Function at 0x412355
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x445610]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x4123a4
push edi
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x40d40b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4123a1
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], ebx
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042109c
mov esp, ebp
pop ebp
ret

Function at 0x412fcd
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x4372e2
call fcn.00421173
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4130c4
cmp byte [ebx + 0x45], 0
je 0x4130c4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x413002
xor al, al
jmp 0x4130c6
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00413cc9
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x41305c
dec eax
je 0x413060
dec eax
dec eax
je 0x4130b2
xor bl, bl
jmp 0x4130b4
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x413098
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004208bd
add esp, 0x10
cmp esi, eax
jne 0x413058
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x45], 0
je 0x4130b2
test esi, esi
jne 0x413026
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00413b32
jmp 0x413020
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004138f5
mov al, bl
jmp 0x4130c6
mov al, 1
call fcn.00421122
ret
Function at 0x42dda5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x445610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00423f63
mov dword [ebp - 0x14], eax
cmp dword [0x447e88], esi
jne 0x42de98
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x42de25
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42df78
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x42df78
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42df78
push eax
call ebx
push 0x43ed48
push edi
mov dword [0x447e88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x447e8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x447e90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x447e98], eax
test eax, eax
je 0x42de95
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x447e94], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42debd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42deb0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x42ded2
push 4
pop eax
jmp 0x42df7a
cmp dword [ebp - 0x14], esi
je 0x42ded2
push dword [0x447e88]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42deb7
mov eax, dword [0x447e94]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x42df30
cmp dword [0x447e98], edi
je 0x42df30
push eax
call ebx
push dword [0x447e98]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42df30
test eax, eax
je 0x42df30
call ecx
test eax, eax
je 0x42df25
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x42df25
test byte [ebp - 8], 1
jne 0x42df30
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x42df60
mov eax, dword [0x447e8c]
cmp eax, edi
je 0x42df5d
push eax
call ebx
test eax, eax
je 0x42df5d
call eax
mov esi, eax
test esi, esi
je 0x42df5d
mov eax, dword [0x447e90]
cmp eax, edi
je 0x42df5d
push eax
call ebx
test eax, eax
je 0x42df5d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x447e88]
call ebx
test eax, eax
je 0x42df78
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x42df7a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042109c
mov esp, ebp
pop ebp
ret
Function at 0x1006aaa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101115a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.101069f1
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1006ec70
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1006aaf4
jmp dword [ecx*4 + 0x1006ac5c]
mov al, byte [esi]
test al, al
je 0x1006ab22
cmp al, 0x20
je 0x1006ab0e
cmp al, 0xa1
jne 0x1006ab22
cmp byte [esi + 1], al
jne 0x1006ab22
test al, 0x80
je 0x1006ab1a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1006ab22
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1006ab01
test ecx, ecx
je case.default.0x1006aaf4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1006aaf4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1006ab68
cmp dl, 0xa1
jne 0x1006ab5c
cmp byte [eax + 1], 0xa1
jne 0x1006ab5c
test ecx, ecx
jne 0x1006ab54
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1006ab7c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1006ab96
jmp 0x1006ab7c
cmp dl, 0x20
jne 0x1006ab7a
test ecx, ecx
jne 0x1006ab73
mov edi, eax
mov ecx, 1
jmp 0x1006ab7c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1006ab3c
cmp ecx, 1
jne case.default.0x1006aaf4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1006aaf4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1006aaf4
mov al, byte [esi]
test al, al
je 0x1006abee
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1006abd4
mov cl, byte [esi + 1]
test cl, cl
je 0x1006abee
cmp al, 0xa1
jne 0x1006abc4
cmp cl, al
je 0x1006abd1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1006ef40
inc esi
jmp 0x1006abe6
cmp al, 0x20
je 0x1006abe6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1006ef80
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1006abad
push 0
lea ecx, [esp + 0x14]
call fcn.1006ef80
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10078420
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1006ac21
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x101350f8
call fcn.1006ee70
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10106983
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10072d80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x10111a8b
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.101066f8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10072e02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1010460a
mov eax, dword [eax]
push 0x10158e00
push eax
call fcn.100f5c34
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.10106983
test bl, bl
je 0x10072e02
push 0x10158e00
lea ecx, [esp + 0xc]
call fcn.10106d13
push 0x10158e0c
lea ecx, [esp + 0xc]
call fcn.10106d13
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 0x10072e3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.10106983
jmp 0x10072f09
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 0x10072ec2
lea edx, [esp + 0x7c]
push 0x10158e08
push edx
call fcn.100f5c34
add esp, 8
test eax, eax
je 0x10072ec2
lea eax, [esp + 0x7c]
push 0x10158e04
push eax
call fcn.100f5c34
add esp, 8
test eax, eax
je 0x10072ec2
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 0x10072e52
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.10106983
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 0x10073710
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 0x10073772
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 0x10073780
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x10111b0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x10171fe8]
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 0x100738b8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x100737e6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10106983
xor eax, eax
jmp 0x1007392f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.10106ac0
push esi
lea ecx, [esp + 0xc]
call fcn.10106d4f
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 0x1007390d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.10073710
test eax, eax
jne 0x1007390d
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 SysReAllocString
mov ecx, edi
call fcn.10073710
test eax, eax
jne 0x1007390d
lea eax, [esp + 0x14]
push 0x10158e1c
push eax
call fcn.100f6d80
mov esi, eax
add esp, 8
test esi, esi
jne 0x100738ec
lea ecx, [esp + 0x14]
push 0x10158e18
push ecx
call fcn.100f6d00
mov esi, eax
add esp, 8
test esi, esi
jne 0x100738ec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x100738ef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.10106a70
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x100737fe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10106983
xor eax, eax
jmp 0x1007392f
mov byte [esi], 0
push 0x10158e14
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.10106983
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 0x100844d0
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 0x1008453e
cmp si, 0x69
ja 0x1008453e
add esi, 0xffd0
cmp si, 0x11
je 0x1008450e
push 0x11
call edi
test ax, ax
jge 0x1008450e
or esi, 0x2000
cmp si, 0x10
je 0x10084523
push 0x10
call edi
test ax, ax
jge 0x10084523
or esi, 0x4000
cmp si, 0x12
je 0x10084538
push 0x12
call edi
test ax, ax
jge 0x10084538
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1008454b
mov esi, 0xbd
jmp 0x100844ff
cmp si, 0x6e
jne 0x10084558
mov esi, 0xbe
jmp 0x100844ff
cmp si, 0x6f
jne 0x100844f9
mov esi, 0xbf
jmp 0x100844ff

Function at 0x10086450
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x101828b0]
xor edx, edx
cmp eax, edx
jne 0x10086476
xor eax, eax
mov byte [eax + 0x101827b0], al
inc eax
cmp eax, 0x100
jl 0x1008645e
mov dword [0x101828b0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x101827b0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x10086507
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 0x100864da
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 0x100864a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10086580
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 0x100865d3
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 0x100865ba
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