joyce8/EMBER2024-capa huggingface dataset:
Function at 0x639268
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
jmp 0x6392ad
pop edi
pop esi
pop ebx
leave
ret

Function at 0x63a5d8
Capabilities:
Link many functions at runtime

Disassembly:
lea esi, [0x6e1818]
push esi
mov eax, dword [0x6e1408]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x6e182d], eax
mov dword [0x6e10f5], 1
mov eax, 0x4000
push eax
lea eax, [0x6e1333]
push eax
lea eax, [0x6e10e1]
push eax
lea esi, [0x6e15cf]
call dword [esi]
cmp eax, 0xffffffff
jne 0x63a624
mov dword [0x6e10f5], 0
cmp dword [0x6e10f5], 0
je 0x63a69a
mov eax, 0x4000
push eax
lea eax, [0x6e1333]
push eax
lea eax, [0x6e10ca]
push eax
lea esi, [0x6e15cf]
call dword [esi]
cmp eax, 0xffffffff
je 0x63a69a
lea eax, [0x6e10ca]
push eax
call dword [0x6e11f3]
mov dword [0x6e10ed], eax
cmp eax, 0
je 0x63a69a
lea edx, [0x6e10f9]
push edx
push eax
call sub.KERNEL32.dll_GetProcAddress
cmp eax, 0
je 0x63a69a
mov dword [0x6e114b], eax
mov eax, dword [0x6e10ed]
lea edx, [0x6e1130]
push edx
push eax
call sub.KERNEL32.dll_GetProcAddress
cmp eax, 0
je 0x63a69a
mov dword [0x6e114f], eax
jmp 0x63a712
mov eax, 0x4000
push eax
lea eax, [0x6e1333]
push eax
lea eax, [0x6e10d7]
push eax
lea esi, [0x6e15cf]
call dword [esi]
cmp eax, 0xffffffff
je 0x63a707
lea eax, [0x6e10d7]
push eax
call dword [0x6e11f3]
mov dword [0x6e10f1], eax
cmp eax, 0
je 0x63a707
lea edx, [0x6e1115]
push edx
push eax
call sub.KERNEL32.dll_GetProcAddress
cmp eax, 0
je 0x63a707
mov dword [0x6e114b], eax
mov eax, dword [0x6e10f1]
lea edx, [0x6e113e]
push edx
push eax
call sub.KERNEL32.dll_GetProcAddress
cmp eax, 0
je 0x63a707
mov dword [0x6e114f], eax
jmp 0x63a71d
mov dword [0x6e1153], 0
ret
mov dword [0x6e1153], 1
ret
mov dword [0x6e1153], 2
ret

Function at 0x63aa35
Capabilities:
Packed with generic packer

Disassembly:
pushal
push eax
push ecx
push edx
test ax, 1
je 0x63aa52
push ecx
push edx
call dword [0x6e1763]
cmp eax, 0
je 0x63aa52
pop edx
pop ecx
pop eax
stc
jmp 0x63aa6d
pop edx
pop ecx
pop eax
test ax, 2
je 0x63aa6c
push ecx
push edx
call dword [0x6e1775]
cmp ax, 0
je 0x63aa6c
stc
jmp 0x63aa6d
clc
popal
ret
Function at 0x653490
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
sub esp, 0x408
mov edx, dword [esp + 0x40c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x653500
lea eax, [esp + 4]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [esp + 5], 0x3a
jne 0x6534f5
mov byte [esp + 0x404], 0x3d
mov al, byte [esp + 4]
mov byte [esp + 0x405], al
mov byte [esp + 0x406], 0x3a
mov byte [esp + 0x407], 0
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
xor eax, eax
add esp, 0x408
ret
or eax, 0xffffffff
add esp, 0x408
ret

Function at 0x667d50
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 8
mov esi, dword [ebp + 8]
cmp byte [0x78a028], 0
jne 0x667d76
mov dword [0x78a024], 0
mov byte [0x78a028], 1
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [eax + 8], 0
mov ebx, dword [0x78a020]
jmp 0x667d93
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x667d9d
mov eax, dword [ebx]
cmp dword [eax], esi
ja 0x667d90
test ebx, ebx
jne 0x667db0
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
mov edi, dword [ebx]
mov eax, dword [ebx + 4]
sub eax, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
xor edx, edx
mov ecx, eax
cmp eax, 1
je 0x667de9
lea eax, [eax]
lea ebx, [edx + ecx]
sar ebx, 1
cmp dword [edi + ebx*8], esi
ja 0x667de0
mov edx, ebx
jmp 0x667de2
mov ecx, ebx
mov ebx, edx
inc ebx
cmp ebx, ecx
jne 0x667dd0
cmp esi, dword [edi + edx*8]
jb 0x667ecc
mov ecx, edx
inc ecx
cmp ecx, eax
je 0x667e03
cmp esi, dword [edi + edx*8 + 8]
jae 0x667ecc
mov ecx, dword [edi + edx*8 + 4]
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [eax]
movsx eax, byte [ecx]
and eax, 1
jne 0x667ec2
movzx eax, word [ecx + 5]
mov dword [ebp - 0x10], eax
add ebx, 7
mov dword [ebp - 0x14], 0
test eax, eax
jle 0x667ec2
mov edi, dword [ebx]
mov al, byte [edi]
cmp al, 0xe8
je 0x667e41
cmp al, 0xcc
jne 0x667e46
add edi, 5
jmp case.default.0x667e7a
cmp al, 0xff
jne 0x667e90
movzx eax, byte [edi + 1]
mov edx, eax
sar edx, 6
and eax, 7
add edi, 2
cmp edx, 3
je case.default.0x667e7a
cmp eax, 4
jne 0x667e64
inc edi
test edx, edx
jne 0x667e72
cmp eax, 5
jne 0x667e72
add edi, 4
jmp case.default.0x667e7a
mov eax, edx
dec edx
cmp edx, 1
ja case.default.0x667e7a
jmp dword [edx*4 + 0x6de72c]
inc edi
jmp case.default.0x667e7a
add edi, 4
jmp case.default.0x667e7a
call fcn.006782e0
cmp edi, esi
jne 0x667eb0
add ebx, 4
mov ecx, dword [ebx]
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], ecx
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
add ebx, 8
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jl 0x667e35
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 0
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x66a110
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
mov ecx, dword [0x6de9e0]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x66a245
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x66a240
push 0x288
call fcn.00661870
pop ecx
mov esi, eax
test esi, esi
jne 0x66a150
xor eax, eax
pop esi
pop ebx
ret
mov ebx, 0x7d9618
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x78a090]
mov dword [esi], eax
mov dword [0x78a090], esi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 4], 0
mov dword [esi + 8], 1
mov dword [esi + 0xc], 0x6de9e4
mov dword [esi + 0x10], 0x6de9e4
mov eax, dword [esp + 0xc]
mov dword [esi + 0x14], eax
mov dword [esi + 0x280], 0x6de9e8
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 1
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 1
mov dword [esi + 0x58], 0
or dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 1
mov dword [esi + 0x34], 0
or dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x27c], 0x6df888
mov dword [esi + 0x284], 0
push esi
mov eax, dword [0x6de9e0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebx
ret
xor eax, eax
pop esi
pop ebx
ret
mov eax, 1
pop esi
pop ebx
ret
Function at 0x672880
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 0x10
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 4], 0
cmp edi, 0x100
jge 0x6728ae
mov edx, dword [edi*4 + 0x7f9f68]
test edx, edx
jne 0x6728c8
push 1
call fcn.0066a2c0
pop ecx
mov dword [eax + 4], 9
or eax, 0xffffffff
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [edx]
mov dword [esp + 8], eax
movsx eax, byte [edx + 4]
test eax, eax
je 0x67291b
xor esi, esi
xor eax, eax
jmp 0x6728e8
cmp byte [eax + ebp], 0xa
jne 0x6728e7
inc esi
inc eax
cmp eax, ebx
jb 0x6728e0
lea eax, [esi + ebx]
push eax
call fcn.00661870
pop ecx
mov dword [esp + 4], eax
mov ecx, eax
xor edx, edx
jmp 0x672911
cmp byte [edx + ebp], 0xa
jne 0x67290a
mov byte [ecx], 0xd
inc ecx
mov al, byte [edx + ebp]
mov byte [ecx], al
inc ecx
inc edx
cmp edx, ebx
jb 0x672900
add ebx, esi
mov ebp, dword [esp + 4]
mov eax, dword [edi*4 + 0x7f9f68]
cmp byte [eax + 5], 0
je 0x672935
push 2
push 0
push edi
call fcn.00672810
add esp, 0xc
push 0
lea eax, [esp + 0x10]
push eax
push ebx
push ebp
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
cmp dword [esp + 4], 0
je 0x67295b
push dword [esp + 4]
call fcn.006618a0
pop ecx
test esi, esi
je 0x672970
mov eax, dword [esp + 0xc]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0xa0cfe0], eax
xor eax, eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x6729f0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 8
cmp dword [esp + 0x1c], 0x100
jge 0x672a10
mov eax, dword [esp + 0x1c]
mov edx, dword [eax*4 + 0x7f9f68]
test edx, edx
jne 0x672a30
push 1
call fcn.0066a2c0
pop ecx
mov dword [eax + 4], 9
or eax, 0xffffffff
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
movsx ebx, byte [edx + 4]
push 0
lea eax, [esp + 8]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x672ae0
cmp dword [esp + 4], 0
je 0x672ad2
test ebx, ebx
je 0x672ad2
mov esi, dword [esp + 0x20]
mov ecx, esi
xor ebx, ebx
xor ebp, ebp
jmp 0x672a95
mov al, byte [ecx]
cmp al, 0xd
jne 0x672a90
mov edx, dword [esp + 4]
dec edx
cmp edi, edx
jae 0x672a90
cmp byte [ecx + 1], 0xa
jne 0x672a90
inc ecx
inc ebx
jmp 0x672a94
mov byte [esi], al
inc ecx
inc esi
inc ebp
mov edi, ebp
cmp edi, dword [esp + 4]
jb 0x672a70
mov eax, dword [esp + 0x24]
cmp dword [esp + 4], eax
jne 0x672ace
cmp dword [esp + 4], 1
jbe 0x672ace
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x20]
cmp byte [ecx + eax - 1], 0xd
jne 0x672ace
push 1
push 0xffffffffffffffff
push dword [esp + 0x24]
call fcn.00672810
add esp, 0xc
inc ebx
sub dword [esp + 4], ebx
mov eax, dword [esp + 4]
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0xa0cfe0], eax
xor eax, eax
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x677f70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 0x150
mov ebx, dword [0xa0d060]
mov edx, dword [0xa0d070]
mov eax, dword [ebx + edx*4 - 4]
mov dword [ebp - 0x158], eax
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ebx, 0xfffffffe
sub ebx, ecx
add ebx, dword [ebp - 0x158]
jmp 0x677fb1
dec ebx
cmp ebx, dword [ebp - 0x158]
jbe 0x677fce
movsx eax, byte [ebx - 1]
push eax
push 0x6df844
call fcn.00642690
pop ecx
pop ecx
test eax, eax
je 0x677fb0
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x150], eax
cmp eax, 0xffffffff
je 0x678087
lea esi, [ebp - 0x120]
sub ebx, dword [ebp - 0x158]
mov dword [ebp - 0x154], ebx
mov edi, esi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, 0xfffffffe
sub eax, ecx
add eax, dword [ebp - 0x154]
inc eax
push eax
call fcn.00661870
pop ecx
mov edi, eax
push dword [ebp - 0x158]
push edi
call fcn.00642560
pop ecx
pop ecx
push esi
lea eax, [ebx + edi]
push eax
call fcn.00642560
pop ecx
pop ecx
call fcn.00677f20
test eax, eax
je 0x67807b
mov ecx, dword [0xa0d060]
mov edx, dword [0xa0d070]
mov dword [ecx + edx*4 - 4], edi
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x150]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x67807b
mov eax, dword [0xa0d070]
inc dword [0xa0d070]
test eax, eax
jne 0x678002
push dword [ebp - 0x150]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x678090
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 8
mov dword [0x78a6a4], 1
mov dword [0xa0d070], 0
push 4
call fcn.00661870
pop ecx
mov dword [0xa0d060], eax
test eax, eax
jne 0x6780d0
call fcn.00677f00
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov edi, esi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, 0xfffffffe
sub eax, ecx
inc eax
push eax
call fcn.00661870
pop ecx
mov dword [0x78a6a0], eax
mov edi, eax
test edi, edi
jne 0x678109
call fcn.00677f00
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
inc esi
movsx eax, byte [esi]
push eax
push str.__t_r_n_v
call fcn.00642690
pop ecx
pop ecx
test eax, eax
jne 0x678108
jmp 0x67825c
call fcn.00677f20
test eax, eax
je 0x678265
mov dword [ebp - 0x10], 0
mov edx, dword [0xa0d070]
mov eax, dword [0xa0d060]
mov dword [eax + edx*4], edi
inc dword [0xa0d070]
xor ebx, ebx
jmp 0x678247
test ebx, ebx
jne 0x6781a0
movsx eax, al
push eax
push str.__t_r_n_v
call fcn.00642690
pop ecx
pop ecx
test eax, eax
je 0x678190
inc esi
mov cl, byte [esi]
test cl, cl
je 0x678184
movsx eax, cl
push eax
push str.__t_r_n_v
call fcn.00642690
pop ecx
pop ecx
test eax, eax
jne 0x678169
mov byte [edi], 0
inc edi
jmp 0x678251
cmp byte [esi], 0x22
jne 0x6781c2
inc esi
mov ebx, 1
jmp 0x678247
cmp al, 0x22
jne 0x6781b6
cmp byte [esi + 1], 0x22
jne 0x6781b6
mov byte [edi], 0x22
inc edi
add esi, 2
jmp 0x678247
cmp al, 0x22
jne 0x6781c2
inc esi
xor ebx, ebx
jmp 0x678247
mov al, byte [esi]
cmp al, 0x5c
jne 0x678204
cmp byte [esi + 1], 0x5c
jne 0x678204
mov ecx, 2
jmp 0x6781d6
inc ecx
mov al, byte [esi + ecx]
cmp al, 0x5c
je 0x6781d5
cmp al, 0x22
jne 0x6781fd
and ecx, 0xfffffffe
je 0x678247
mov al, byte [esi]
mov byte [edi], al
inc edi
add esi, 2
sub ecx, 2
test ecx, ecx
jne 0x6781e6
jmp 0x678247
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
sub ecx, 1
jae 0x6781f7
jmp 0x678247
cmp al, 0x5c
jne 0x678217
cmp byte [esi + 1], 0x22
jne 0x678217
mov byte [edi], 0x22
inc edi
add esi, 2
jmp 0x678247
cmp al, 0x5c
jne 0x678230
mov dl, byte [esi + 1]
cmp dl, 0x3f
je 0x678228
cmp dl, 0x2a
jne 0x678230
mov byte [edi], dl
inc edi
add esi, 2
jmp 0x678247
test ebx, ebx
jne 0x678243
cmp al, 0x2a
je 0x67823c
cmp al, 0x3f
jne 0x678243
mov dword [ebp - 0x10], 1
mov byte [edi], al
inc esi
inc edi
mov al, byte [esi]
test al, al
jne 0x678151
cmp dword [ebp - 0x10], 0
je 0x67825c
call fcn.00677f70
cmp byte [esi], 0
jne 0x678122
mov byte [edi], 0
mov edx, dword [0xa0d070]
mov eax, dword [0xa0d060]
mov dword [eax + edx*4], 0
push 0x677ec0
call fcn.006638f0
pop ecx
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0xa260a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0
pop ebp
ret 4
Function at 0x40d7c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49b8ab
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.00490797
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40d842
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048e511
mov eax, dword [eax]
push 0x2b6acb0
push eax
call fcn.00480534
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00490a22
test bl, bl
je 0x40d842
push 0x2b6acb0
lea ecx, [esp + 0xc]
call fcn.00490db2
push 0x2b6acbc
lea ecx, [esp + 0xc]
call fcn.00490db2
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 0x40d87e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00490a22
jmp 0x40d949
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 0x40d902
lea edx, [esp + 0x7c]
push 0x2b6acb8
push edx
call fcn.00480534
add esp, 8
test eax, eax
je 0x40d902
lea eax, [esp + 0x7c]
push 0x2b6acb4
push eax
call fcn.00480534
add esp, 8
test eax, eax
je 0x40d902
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 0x40d892
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.00490a22
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 0x40e140
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 0x40e1a2
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 0x40e1b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49b92b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x2b7bdc0]
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 0x40e2e8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40e216
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00490a22
xor eax, eax
jmp 0x40e35f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00490b5f
push esi
lea ecx, [esp + 0xc]
call fcn.00490dee
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 0x40e33d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040e140
test eax, eax
jne 0x40e33d
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.0040e140
test eax, eax
jne 0x40e33d
lea eax, [esp + 0x14]
push 0x2b6accc
push eax
call fcn.004815d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e31c
lea ecx, [esp + 0x14]
push 0x2b6acc8
push ecx
call fcn.00481550
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e31c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40e31f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00490b0f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40e22e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00490a22
xor eax, eax
jmp 0x40e35f
mov byte [esi], 0
push 0x2b6acc4
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.00490a22
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 0x41ed60
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 0x41edce
cmp si, 0x69
ja 0x41edce
add esi, 0xffd0
cmp si, 0x11
je 0x41ed9e
push 0x11
call edi
test ax, ax
jge 0x41ed9e
or esi, 0x2000
cmp si, 0x10
je 0x41edb3
push 0x10
call edi
test ax, ax
jge 0x41edb3
or esi, 0x4000
cmp si, 0x12
je 0x41edc8
push 0x12
call edi
test ax, ax
jge 0x41edc8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41eddb
mov esi, 0xbd
jmp 0x41ed8f
cmp si, 0x6e
jne 0x41ede8
mov esi, 0xbe
jmp 0x41ed8f
cmp si, 0x6f
jne 0x41ed89
mov esi, 0xbf
jmp 0x41ed8f

Function at 0x420740
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x2b8c540]
xor edx, edx
cmp eax, edx
jne 0x420766
xor eax, eax
mov byte [eax + 0x2b8c440], al
inc eax
cmp eax, 0x100
jl 0x42074e
mov dword [0x2b8c540], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x2b8c440
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4207f7
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 0x4207ca
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 0x420798
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x420800
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 0x420853
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 0x42083a
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