joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov al, byte [ebp + 0x44]
test al, al
js 0x47066a
push ebx
push esi
xor ebx, ebx
push edi
test al, al
jle 0x470608
add ebp, 0x78
lea esp, [esp]
mov ecx, dword [ebp]
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x4705eb
mov eax, dword [ecx + 0x14]
dec dword [eax + 0x78]
mov edx, dword [eax + 0x88]
mov dword [ecx + 0x10], edx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], ecx
push dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x18]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004021f0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4705f4
push ecx
call fcn.004c6f10
add esp, 4
mov eax, dword [esp + 0x14]
inc ebx
add ebp, 4
movsx eax, byte [eax + 0x44]
cmp ebx, eax
jl 0x4705a0
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0x74]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x47065a
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004021f0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov byte [ebp + 0x44], 0xff
pop edi
pop esi
pop ebx
pop ebp
ret
push edx
call fcn.004c6f10
add esp, 4
mov byte [ebp + 0x44], 0xff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x494370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
xor ebp, ebp
push edi
mov al, byte [esi + 0x44]
test al, al
js 0x49440a
je 0x494472
mov eax, dword [esi + 0x74]
push dword [eax + 0x48]
call fcn.004c5db0
add esp, 4
dec byte [esi + 0x44]
je 0x4943ff
push ebx
mov edi, edi
movsx eax, byte [esi + 0x44]
mov eax, dword [esi + eax*4 + 0x78]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4943f0
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov edi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov ebx, dword [edi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004021f0
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x4943f9
push edx
call fcn.004c6f10
add esp, 4
dec byte [esi + 0x44]
jne 0x4943a0
pop ebx
mov eax, dword [esi + 0x78]
mov dword [esi + 0x74], eax
jmp 0x49448e
cmp dword [esi + 0x40], ebp
jne 0x49441b
pop edi
mov byte [esi], 1
mov eax, 0x10
pop esi
pop ebp
ret
mov al, byte [esi]
cmp al, 3
jb 0x49443d
cmp al, 4
jne 0x49442c
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebp
ret
push dword [esi + 0x10]
call fcn.0045d750
add esp, 4
mov dword [esi + 0x10], ebp
mov byte [esi], 1
movzx eax, byte [esi + 2]
lea edi, [esi + 0x74]
push eax
mov eax, dword [esi + 8]
push 0
push edi
push dword [esi + 0x40]
push dword [eax + 4]
call fcn.0048f280
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x494466
pop edi
mov byte [esi], 1
pop esi
pop ebp
ret
mov eax, dword [edi]
mov byte [esi + 0x44], 0
mov al, byte [eax + 2]
mov byte [esi + 0x45], al
mov eax, dword [esi + 0x74]
cmp byte [eax], 0
je 0x4944f9
movzx eax, byte [eax + 2]
xor ecx, ecx
cmp dword [esi + 0x70], ecx
sete cl
cmp ecx, eax
jne 0x4944f9
and byte [esi + 1], 0xf1
xor eax, eax
mov word [esi + 0x46], ax
mov word [esi + 0x32], ax
mov eax, dword [esi + 0x74]
cmp word [eax + 0x18], 0
jbe 0x4944af
pop edi
mov byte [esi], 0
mov eax, ebp
pop esi
pop ebp
ret
cmp byte [eax + 8], 0
jne 0x4944eb
cmp dword [eax + 4], 1
je 0x4944cb
pop edi
pop esi
pop ebp
mov dword [esp + 4], 0x11084
jmp fcn.004abc10
movzx ecx, byte [eax + 9]
mov eax, dword [eax + 0x38]
mov eax, dword [ecx + eax + 8]
bswap eax
push eax
push esi
mov byte [esi], 0
call fcn.00494150
add esp, 8
mov ebp, eax
pop edi
pop esi
pop ebp
ret
pop edi
mov ebp, 0x10
mov byte [esi], 1
pop esi
mov eax, ebp
pop ebp
ret
push 0x52b284
push 0x11077
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00466a50
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
ret
Function at 0x497330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x497363
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x88], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x10], 0
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x4973d7
movzx edi, word [ebx + 0x8c]
add edi, 0x28
push 0
push edi
call fcn.004c2de0
mov esi, eax
add esp, 8
test esi, esi
je 0x49738a
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov dword [ecx], esi
test esi, esi
jne 0x4973c7
push dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x98]
dec ecx
mov esi, dword [ebx + 0x3c]
push 0
cdq
push ecx
mov edi, dword [esi]
push edx
push eax
call fcn.004021f0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, 7
pop edi
pop esi
pop ebx
ret
lea eax, [esi + 0x28]
mov dword [esi + 0x1c], 0x10020
mov dword [esi + 8], eax
mov dword [esi + 0x14], ebx
mov eax, dword [esp + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
xor eax, eax
inc dword [ebx + 0x78]
pop edi
pop esi
pop ebx
ret
Function at 0x49ea20
Capabilities:
Reference sql statements

Disassembly:
push edi
push dword [esp + 0x10]
mov edi, dword [esp + 0x10]
push edi
push edi
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push dword [esp + 0x18]
call fcn.004c3660
add esp, 0x14
cmp dword [esp + 0x10], 0
jne 0x49ea55
push edi
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push dword [esp + 0x10]
call fcn.004c3660
add esp, 0xc
pop edi
ret

Function at 0x4a6e00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
xor ebx, ebx
push esi
xor ebp, ebp
mov dword [esp + 0x10], ebx
call fcn.00494370
add esp, 4
cmp eax, 0x10
jne 0x4a6e2e
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
mov dword [eax], ebx
mov dword [eax + 4], ebx
xor eax, eax
pop ebx
pop ecx
ret
push edi
test eax, eax
jne 0x4a6f72
jmp 0x4a6e40
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x110], 0
jne 0x4a6f72
mov edi, dword [esi + 0x74]
mov cl, byte [edi + 8]
test cl, cl
jne 0x4a6e60
cmp byte [edi + 2], cl
jne 0x4a6e6d
movzx eax, word [edi + 0x18]
cdq
add ebp, eax
adc ebx, edx
mov dword [esp + 0x10], ebx
test cl, cl
je 0x4a6f0f
mov cl, byte [esi + 0x44]
test cl, cl
je 0x4a6f5c
and byte [esi + 1], 0xf9
xor eax, eax
mov word [esi + 0x32], ax
movsx eax, cl
dec cl
mov ax, word [esi + eax*2 + 0x46]
mov word [esi + 0x46], ax
movsx eax, cl
mov byte [esi + 0x44], cl
mov eax, dword [esi + eax*4 + 0x78]
mov dword [esi + 0x74], eax
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4a6eed
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov edi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov ebx, dword [edi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004021f0
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x4a6ef6
push edx
call fcn.004c6f10
add esp, 4
mov edi, dword [esi + 0x74]
mov ax, word [esi + 0x46]
cmp ax, word [edi + 0x18]
jae 0x4a6e75
inc word [esi + 0x46]
mov ebx, dword [esp + 0x10]
movzx ecx, word [esi + 0x46]
movzx eax, word [edi + 0x18]
cmp ecx, eax
jne 0x4a6f28
movzx ecx, byte [edi + 9]
mov eax, dword [edi + 0x38]
mov eax, dword [ecx + eax + 8]
jmp 0x4a6f42
mov eax, dword [edi + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [edi + 0x38]
mov eax, dword [ecx + eax]
bswap eax
push eax
push esi
call fcn.00494150
add esp, 8
test eax, eax
je 0x4a6e40
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push esi
mov dword [eax], ebp
mov dword [eax + 4], ecx
call fcn.00494370
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4b4c70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebp
push esi
xor esi, esi
xor ebp, ebp
cmp dword [eax + 0x14], esi
jle 0x4b4d2d
mov edx, dword [esp + 0x1c]
push ebx
push edi
lea esp, [esp]
mov edi, esi
cmp esi, 2
jge 0x4b4c9a
xor edi, 1
mov eax, dword [eax + 0x10]
mov ecx, edi
add ecx, ecx
mov ebx, dword [eax + ecx*8 + 0xc]
mov dword [esp + 0x10], ebx
test edx, edx
je 0x4b4cf4
mov eax, dword [eax + ecx*8]
mov ebx, edx
sub ebx, eax
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x4b4cc6
test edx, edx
je 0x4b4cf4
inc eax
jmp 0x4b4cb4
movzx ecx, byte [ecx + 0x523870]
movzx edx, byte [edx + 0x523870]
sub edx, ecx
jne 0x4b4cdb
inc eax
jmp 0x4b4cb4
test edi, edi
jne 0x4b4d11
push dword [esp + 0x24]
push str.main
call fcn.004d02b0
add esp, 8
test eax, eax
jne 0x4b4d11
mov eax, dword [esp + 0x10]
push 0
push dword [esp + 0x24]
add eax, 0x18
push eax
call fcn.0047b260
add esp, 0xc
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x4b4d23
mov eax, dword [esp + 0x1c]
inc esi
mov edx, dword [esp + 0x24]
cmp esi, dword [eax + 0x14]
jl 0x4b4c90
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x4d0700
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov dword [edi], 0
cmp dword [0x52e2d8], 0
je 0x4d0753
mov eax, dword [0x530c58]
test eax, eax
je 0x4d0728
push eax
call dword [0x52e328]
add esp, 4
lea eax, [esp + 0xc]
push eax
push 0x14
call fcn.00493a90
mov eax, dword [0x530c58]
add esp, 8
test eax, eax
je 0x4d074d
push eax
call dword [0x52e330]
mov esi, dword [esp + 0x10]
jmp 0x4d075d
mov esi, dword [esp + 0xc]
jmp 0x4d0760
push 0x14
call dword [0x52e2f8]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4d076a
pop edi
lea eax, [esi + 7]
pop esi
ret
cmp byte [0x52e2dc], 0
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
je 0x4d07b9
mov eax, dword [0x52e3cc]
test eax, eax
je 0x4d0794
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x4d07b9
lea eax, [esi + 4]
mov dword [esi + 8], ebp
push eax
push 0
push esi
push 0x4d0850
push 0
push 0
mov dword [esi + 0xc], ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4d07c9
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp dword [esi + 8], 0
jne 0x4d07e1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call ebp
add esp, 4
mov dword [esi + 0x10], eax
pop ebp
pop ebx
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
ret
Function at 0x4dce60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
push edi
call fcn.0048f400
mov ebx, dword [edi + 0x28]
xor eax, eax
movzx ecx, word [edi + 0x30]
xor ebp, ebp
mov esi, dword [edi + 0x2c]
add esp, 4
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x74]
mov dword [esp + 0x28], ebp
mov eax, dword [eax + 0x3c]
sub eax, ebx
cmp ecx, eax
jle 0x4dcea9
xor ecx, ecx
test eax, eax
sets cl
dec ecx
and ecx, eax
mov dword [esp + 0x20], ebx
cmp esi, ecx
ja 0x4dcec1
mov eax, 0x1010
mov dword [esp + 0x1c], esi
mov word [esp + 0x18], ax
jmp 0x4dcee6
lea eax, [esp + 0x10]
push eax
push esi
push 0
push edi
call fcn.004ddbf0
add esp, 0x10
test eax, eax
jne 0x4dcfc7
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
movzx edi, byte [ebx]
mov dword [esp + 0x68], edi
cmp edi, 0x80
jb 0x4dcf07
lea eax, [esp + 0x68]
push eax
push ebx
call fcn.004bee60
mov edi, dword [esp + 0x70]
add esp, 8
cmp edi, 3
jb 0x4dcf89
cmp edi, esi
ja 0x4dcf89
lea eax, [edi - 1]
add eax, ebx
movzx ecx, byte [eax]
mov dword [esp + 0x68], ecx
cmp ecx, 0x80
jb 0x4dcf36
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.004bee60
mov ecx, dword [esp + 0x70]
add esp, 8
lea eax, [ecx - 1]
cmp eax, 8
ja 0x4dcf89
cmp ecx, 7
je 0x4dcf89
movzx edx, byte [ecx + 0x522ca8]
lea eax, [edx + edi]
cmp esi, eax
jb 0x4dcf89
lea eax, [esp + 0x38]
sub esi, edx
push eax
push ecx
add esi, ebx
push esi
call fcn.004df860
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x44]
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 4], eax
lea eax, [esp + 0x1c]
push eax
call fcn.004de170
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
test dword [esp + 0x18], 0x2400
jne 0x4dcf97
test ebp, ebp
je 0x4dcfa4
lea eax, [esp + 0x10]
push eax
call fcn.004ee330
add esp, 4
push 0x52b284
push 0x1432c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00466a50
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x4f27a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
mov ecx, 0xc
push ebx
mov ebx, dword [esp + 0x68]
push ebp
push esi
push edi
cmp byte [ebx + 0x2b], 2
lea edi, [esp + 0x10]
mov eax, dword [ebx + 0x20]
mov ebp, dword [eax]
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
je 0x4f27d1
mov eax, dword [ebx + 4]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x3c]
call eax
add esp, 4
lea esi, [ebp + 0x30]
mov ecx, 0xc
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
mov esi, 0x2c
lea edx, [esp + 0x40]
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4f28a1
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4f27f0
cmp byte [esp + 0x1c], 0
je 0x4f28a1
xor edx, edx
lea ecx, [esp + 0x10]
xor esi, esi
mov eax, dword [ecx]
add eax, edx
add esi, eax
mov eax, dword [ecx + 4]
add eax, esi
add ecx, 8
add edx, eax
lea eax, [esp + 0x38]
cmp ecx, eax
jb 0x4f2818
cmp esi, dword [esp + 0x38]
jne 0x4f28a1
cmp edx, dword [esp + 0x3c]
jne 0x4f28a1
lea edi, [ebx + 0x34]
mov esi, 0x2c
mov ecx, edi
lea edx, [esp + 0x10]
lea ebx, [ebx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4f286b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4f2850
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x78]
lea esi, [esp + 0x10]
mov ecx, 0xc
mov dword [eax], 1
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [ebx + 0x42]
mov eax, ecx
and ecx, 0xfe00
and eax, 1
pop edi
shl eax, 0x10
pop esi
add eax, ecx
mov dword [ebx + 0x24], eax
xor eax, eax
pop ebp
pop ebx
add esp, 0x60
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret
Function at 0x408a50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46af8b
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.0045f828
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408ad2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045d43d
mov eax, dword [eax]
push 0x4841d0
push eax
call fcn.0044f8d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045fab3
test bl, bl
je 0x408ad2
push 0x4841d0
lea ecx, [esp + 0xc]
call fcn.0045fe43
push 0x487d44
lea ecx, [esp + 0xc]
call fcn.0045fe43
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 0x408b0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045fab3
jmp 0x408bd9
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 0x408b92
lea edx, [esp + 0x7c]
push 0x487d40
push edx
call fcn.0044f8d4
add esp, 8
test eax, eax
je 0x408b92
lea eax, [esp + 0x7c]
push 0x487d3c
push eax
call fcn.0044f8d4
add esp, 8
test eax, eax
je 0x408b92
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 0x408b22
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.0045fab3
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 0x4093d0
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 0x409432
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 0x409440
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b00b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48e6f0]
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 0x409578
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4094a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045fab3
xor eax, eax
jmp 0x4095ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045fbf0
push esi
lea ecx, [esp + 0xc]
call fcn.0045fe7f
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 0x4095cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004093d0
test eax, eax
jne 0x4095cd
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 closesocket
mov ecx, edi
call fcn.004093d0
test eax, eax
jne 0x4095cd
lea eax, [esp + 0x14]
push 0x487d58
push eax
call fcn.00450910
mov esi, eax
add esp, 8
test esi, esi
jne 0x4095ac
lea ecx, [esp + 0x14]
push 0x487d54
push ecx
call fcn.00450890
mov esi, eax
add esp, 8
test esi, esi
jne 0x4095ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4095af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045fba0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4094be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045fab3
xor eax, eax
jmp 0x4095ef
mov byte [esi], 0
push 0x487d50
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.0045fab3
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 0x419ad0
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 0x419b3e
cmp si, 0x69
ja 0x419b3e
add esi, 0xffd0
cmp si, 0x11
je 0x419b0e
push 0x11
call edi
test ax, ax
jge 0x419b0e
or esi, 0x2000
cmp si, 0x10
je 0x419b23
push 0x10
call edi
test ax, ax
jge 0x419b23
or esi, 0x4000
cmp si, 0x12
je 0x419b38
push 0x12
call edi
test ax, ax
jge 0x419b38
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x419b4b
mov esi, 0xbd
jmp 0x419aff
cmp si, 0x6e
jne 0x419b58
mov esi, 0xbe
jmp 0x419aff
cmp si, 0x6f
jne 0x419af9
mov esi, 0xbf
jmp 0x419aff

Function at 0x41b1f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x49ede8]
xor edx, edx
cmp eax, edx
jne 0x41b216
xor eax, eax
mov byte [eax + 0x49ece8], al
inc eax
cmp eax, 0x100
jl 0x41b1fe
mov dword [0x49ede8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x49ece8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41b2a7
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 0x41b27a
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 0x41b248
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41b320
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 0x41b373
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 0x41b35a
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