joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10080a4
Capabilities:
Get domain controller name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
lea eax, [ebp - 8]
push eax
push 0x20
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
cmp eax, esi
je 0x10080db
jg 0x1008122
jmp 0x100812c
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
and ecx, 0x10
test cl, cl
jne 0x10080f2
mov ebx, 0x80072130
jmp 0x100821b
lea ecx, [ebp - 0x10]
push ecx
push esi
push dword [eax]
call dword [sym.imp.NTDSAPI.dll_DsBindW]
cmp eax, esi
jne 0x10080d7
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push 1
push dword [eax + 0x1c]
push dword [ebp - 0x10]
call dword [sym.imp.NTDSAPI.dll_DsGetDomainControllerInfoW]
cmp eax, esi
je 0x1008133
jle 0x100812c
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x100821b
mov ecx, dword [ebp - 0xc]
push edi
xor edi, edi
cmp ecx, esi
mov dword [ebp - 0x18], edi
jbe 0x1008158
mov eax, dword [ebp - 4]
add eax, 4
cmp dword [eax], esi
je 0x100814b
inc edi
add eax, 0x1c
dec ecx
jne 0x1008146
cmp edi, esi
mov dword [ebp - 0x18], edi
jne 0x1008162
mov ebx, 0x80070774
jmp 0x100821a
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea eax, [edi + edi*4]
shl eax, 2
push eax
push 0x40
call ebx
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x1008181
mov ebx, 0x8007000e
jmp 0x10081f7
cmp dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
jbe 0x10081e5
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [esi + eax + 4]
test eax, eax
je 0x10081d2
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0x40
call ebx
test eax, eax
mov dword [edi], eax
je 0x1008252
mov ecx, dword [ebp - 4]
push dword [esi + ecx + 4]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebp - 4]
cmp dword [esi + eax + 0x14], 0
pop ecx
setne al
mov byte [edi + 0x10], al
pop ecx
add edi, 0x14
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add esi, 0x1c
cmp eax, dword [ebp - 0xc]
jb 0x100818b
mov edi, dword [ebp - 0x18]
xor esi, esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], esi
mov dword [eax], edi
xor ebx, ebx
cmp dword [ebp + 8], esi
je 0x100821a
cmp edi, esi
jbe 0x1008211
mov esi, dword [ebp + 8]
push esi
call fcn.01008076
add esi, 0x14
dec edi
jne 0x1008203
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
cmp dword [ebp - 4], esi
je 0x100822e
push dword [ebp - 4]
push dword [ebp - 0xc]
push 1
call dword [sym.imp.NTDSAPI.dll_DsFreeDomainControllerInfoW]
cmp dword [ebp - 0x10], esi
je 0x100823d
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.NTDSAPI.dll_DsUnBindW]
cmp dword [ebp - 8], esi
je 0x100824a
push dword [ebp - 8]
call sub.NETAPI32.dll_NetApiBufferFree
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
mov edi, dword [ebp - 0x18]
mov ebx, 0x8007000e
xor esi, esi
jmp 0x10081f7
Function at 0x100825e
Capabilities:
List domain servers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
push 0x18
mov dword [eax], edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
push 0x65
push edi
mov dword [ebp - 4], edi
call sub.NETAPI32.dll_NetServerEnum
cmp eax, edi
je 0x10082a8
jle 0x10082a1
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x100839b
mov ecx, dword [ebp - 0xc]
push esi
xor esi, esi
cmp ecx, edi
mov dword [ebp - 0x10], esi
jbe 0x10082d4
mov eax, dword [ebp - 4]
add eax, 8
test byte [eax + 9], 0x10
je 0x10082c7
cmp dword [eax], 5
jb 0x10082c7
inc esi
add eax, 0x18
dec ecx
jne 0x10082bb
cmp esi, edi
mov dword [ebp - 0x10], esi
jne 0x10082de
mov ebx, 0x80070774
jmp 0x100839a
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea eax, [esi + esi*4]
shl eax, 2
push eax
push 0x40
call ebx
mov edi, eax
test edi, edi
mov dword [ebp + 8], edi
jne 0x10082ff
mov ebx, 0x8007000e
jmp 0x100837a
and dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
jbe 0x1008368
xor esi, esi
mov eax, dword [ebp - 4]
add eax, esi
test byte [eax + 0x11], 0x10
je 0x1008357
cmp dword [eax + 8], 5
jb 0x1008357
push dword [eax + 4]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0x40
call ebx
test eax, eax
mov dword [edi], eax
je 0x10083b1
mov ecx, dword [ebp - 4]
push dword [esi + ecx + 4]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebp - 4]
mov eax, dword [esi + eax + 0x10]
shr eax, 3
and al, 1
pop ecx
mov byte [edi + 0x10], al
pop ecx
add edi, 0x14
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add esi, 0x18
cmp eax, dword [ebp - 0xc]
jb 0x100830b
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp + 8], ebx
mov dword [eax], esi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100839a
test esi, esi
jbe 0x1008391
push edi
call fcn.01008076
add edi, 0x14
dec esi
jne 0x1008385
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
cmp dword [ebp - 4], 0
je 0x10083a9
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
pop edi
mov eax, ebx
pop ebx
leave
ret 0xc
mov esi, dword [ebp - 0x10]
mov ebx, 0x8007000e
jmp 0x100837a
Function at 0x4076c4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072b0
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x407756
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407820
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077aa
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40774f
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077c6
call fcn.0040d306
mov dword [eax], 0x16
call fcn.0040d23a
jmp 0x4077d5
push 0x1034
push edi
push eax
call fcn.00408e00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b11
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407989
leave
ret

Function at 0x40e897
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40e8d2
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40e8b9
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40e8ca
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x40e8d4
inc edi
add eax, 0x28
cmp edi, esi
jb 0x40e8af
xor eax, eax
pop edi
pop esi
ret

Function at 0x40eba7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.0040e81c
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.0040e857
inc ebx
sbb al, 0xde
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
invalid
inc ebp
Function at 0x40ec36
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040e867
push eax

Function at 0x40eedc
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x40ef0b
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x40ef06
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x40eef0
invalid
adc eax, dword [ecx + 0xfffe1]
add byte [ebx + 0x34572bd6], cl
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x40eef8
cmp edx, ebx
jne 0x40f046
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x40eec7
add eax, dword [eax + 4]
jmp 0x40eeb4
mov dword [ebp + 0xc], ebx
jmp 0x40ef16
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40ef2e
invalid

Function at 0x40ef7a
Capabilities:
Inspect section memory permissions

Disassembly:
loop 0x40ef7c
add byte [eax], al
and byte [ecx + 0x1065], al
add byte [eax + 0x3b184d8b], al
sal dword [esp + eax - 0x80], cl
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4

Function at 0x40f729
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0040e835
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
invalid
invalid
invalid
cld
Function at 0x8ba058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008ba1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8ba07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8ba06a
add dl, dl
jne 0x8ba089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8ba0dc
xor eax, eax
add dl, dl
jne 0x8ba096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8ba17d
add dl, dl
jne 0x8ba0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8ba0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8ba0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8ba0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8ba0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8ba075
mov eax, 1
add dl, dl
jne 0x8ba0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8ba0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8ba0e1
sub eax, ebx
mov ebx, 1
jne 0x8ba128
mov ecx, 1
add dl, dl
jne 0x8ba10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8ba119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8ba105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8ba075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8ba13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8ba14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8ba136
cmp eax, 0x7d00
jae 0x8ba16d
cmp eax, 0x500
jb 0x8ba168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8ba075
cmp eax, 0x7f
ja 0x8ba170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8ba075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8ba19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8ba075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4082a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48625b
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.00478de1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408322
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047685a
mov eax, dword [eax]
push 0x551c88
push eax
call fcn.00469244
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047906c
test bl, bl
je 0x408322
push 0x551c88
lea ecx, [esp + 0xc]
call fcn.00479448
push 0x551c94
lea ecx, [esp + 0xc]
call fcn.00479448
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 0x40835e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047906c
jmp 0x408429
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 0x4083e2
lea edx, [esp + 0x7c]
push 0x551c90
push edx
call fcn.00469244
add esp, 8
test eax, eax
je 0x4083e2
lea eax, [esp + 0x7c]
push 0x551c8c
push eax
call fcn.00469244
add esp, 8
test eax, eax
je 0x4083e2
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 0x408372
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.0047906c
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 0x408c20
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 0x408c82
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 0x408c90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4862db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x55c178]
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 0x408dc8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408cf6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047906c
xor eax, eax
jmp 0x408e3f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004791f5
push esi
lea ecx, [esp + 0xc]
call fcn.00479484
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 0x408e1d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00408c20
test eax, eax
jne 0x408e1d
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 SysReAllocStringLen
mov ecx, edi
call fcn.00408c20
test eax, eax
jne 0x408e1d
lea eax, [esp + 0x14]
push 0x551ca4
push eax
call fcn.0046a360
mov esi, eax
add esp, 8
test esi, esi
jne 0x408dfc
lea ecx, [esp + 0x14]
push 0x551ca0
push ecx
call fcn.0046a2e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x408dfc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x408dff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004791a5
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x408d0e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047906c
xor eax, eax
jmp 0x408e3f
mov byte [esi], 0
push 0x551c9c
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.0047906c
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 0x419590
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 0x4195fe
cmp si, 0x69
ja 0x4195fe
add esi, 0xffd0
cmp si, 0x11
je 0x4195ce
push 0x11
call edi
test ax, ax
jge 0x4195ce
or esi, 0x2000
cmp si, 0x10
je 0x4195e3
push 0x10
call edi
test ax, ax
jge 0x4195e3
or esi, 0x4000
cmp si, 0x12
je 0x4195f8
push 0x12
call edi
test ax, ax
jge 0x4195f8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41960b
mov esi, 0xbd
jmp 0x4195bf
cmp si, 0x6e
jne 0x419618
mov esi, 0xbe
jmp 0x4195bf
cmp si, 0x6f
jne 0x4195b9
mov esi, 0xbf
jmp 0x4195bf

Function at 0x41add0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x56d010]
xor edx, edx
cmp eax, edx
jne 0x41adf6
xor eax, eax
mov byte [eax + 0x56cf10], al
inc eax
cmp eax, 0x100
jl 0x41adde
mov dword [0x56d010], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x56cf10
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41ae87
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 0x41ae5a
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 0x41ae28
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41af00
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 0x41af53
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 0x41af3a
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
Function at 0x421f80
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x422118
cmp ebp, ebx
jle 0x422118
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, reloc.OLEAUT32.dll_VariantInit
mov dword [esp + 0x10], edi
jns 0x421fde
dec eax
or eax, 0xfffffff8
inc eax
je 0x421fe5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x421ff4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x421ffb
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00478dad
add esp, 4
cmp eax, ebx
je 0x42201c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00478dad
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x42210e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x4220f5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x4220e1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x4220d6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x4220e4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x4220e4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x422080
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x422071
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret