joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466fc0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov esi, esp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], esp
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x24], 0x46cd40
lea eax, [esi + 0x20]
mov ecx, dword fs:[0]
mov dword [esi + 0x20], ecx
mov dword fs:[0], eax
mov eax, dword [0x4c1054]
test eax, eax
je 0x46700c
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x467025
jmp 0x467032
push 0x4c1054
call fcn.004649b0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x467032
mov edi, eax
mov eax, dword [eax]
or eax, dword [edi + 4]
jne 0x46717c
mov eax, dword [0x4c1054]
test eax, eax
je 0x467120
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x46713d
mov edi, eax
test eax, eax
jne 0x46709d
push 8
push 0x20
call fcn.00406c70
add esp, 8
test eax, eax
je 0x467192
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x4c1054
mov edi, eax
mov eax, dword [0x4c1054]
test eax, eax
jne 0x467095
push 0x4c1054
call fcn.004649b0
add esp, 4
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4670c3
mov ecx, dword [eax]
movups xmm0, xmmword [eax + 8]
mov dword [eax], 0
xor ecx, 1
or ecx, dword [eax + 4]
mov dword [eax + 4], 0
je 0x46716b
mov eax, dword [0x4c11a0]
cmp eax, 3
jne 0x467141
cmp byte [0x4c11a4], 0
je 0x46714f
xorps xmm0, xmm0
mov ebx, esi
movaps xmmword [esi], xmm0
push 0x10
push ebx
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
jne 0x467168
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
mov dword [esi + 0x28], 1
push 0x4b28e8
push 0x4b0f0c
push ebx
push 0x30
push str.couldnt_generate_random_bytes_with_fallback_RNGlibrary_std_src_syswindows_rand.rs
call fcn.004806c0
add esp, 0x14
jmp 0x4671d0
push 0x4c1054
call fcn.004649b0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x46704f
xor edi, edi
jmp 0x46717f
call fcn.004802c0
cmp byte [0x4c11a4], 0
jne 0x4670d6
xorps xmm0, xmm0
mov ebx, esi
movaps xmmword [esi], xmm0
push 2
push 0x10
push ebx
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
jne 0x4671a0
movaps xmm0, xmmword [esi]
mov dword [edi + 4], 0
mov dword [edi], 1
movups xmmword [edi + 8], xmm0
add edi, 8
mov eax, dword [esi + 0x20]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 8
push 0x20
call fcn.004804a0
add esp, 8
ud2
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
mov dword [esi + 0x28], 0
push 0x4b292c
push 0x4b0f0c
push ebx
push 0x31
push str.couldnt_generate_random_bytes_with_preferred_RNG
call fcn.004806c0
add esp, 0x14
ud2
Function at 0x4675a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [0x4c105c]
mov esi, ecx
test eax, eax
je 0x4675bd
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x4675d6
jmp 0x4675e5
push 0x4c105c
call fcn.004649b0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x4675e5
cmp dword [eax], 0
mov ebx, eax
je 0x4675e5
add ebx, 4
jmp 0x4676ac
mov eax, dword [0x4c105c]
test eax, eax
je 0x46765f
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x467678
mov edi, eax
test eax, eax
jne 0x467641
push 4
push 0xc
call fcn.00406c70
add esp, 8
test eax, eax
je 0x4676b3
mov dword [eax], 0
mov dword [eax + 8], 0x4c105c
mov edi, eax
mov eax, dword [0x4c105c]
test eax, eax
jne 0x467639
push 0x4c105c
call fcn.004649b0
add esp, 4
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
xor ebp, ebp
test esi, esi
je 0x46768a
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esi], 0
test eax, eax
je 0x46768a
cmp eax, 1
jne 0x46767c
mov ebp, ecx
jmp 0x46768a
push 0x4c105c
call fcn.004649b0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x4675fa
xor ebx, ebx
jmp 0x4676ac
test ecx, ecx
je 0x46768a
lock dec dword [ecx]
jne 0x46768a
call fcn.00459fa0
mov ecx, dword [edi + 4]
cmp dword [edi], 0
lea ebx, [edi + 4]
mov dword [edi], 1
mov dword [edi + 4], ebp
je 0x4676ac
test ecx, ecx
je 0x4676ac
lock dec dword [ecx]
jne 0x4676ac
call fcn.00459fa0
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
push 4
push 0xc
call fcn.004804a0
add esp, 8
ud2
Function at 0x469da0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x46cdd0
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
push 4
push 8
call fcn.00406c70
add esp, 8
mov ebx, eax
test eax, eax
je 0x469e8b
mov eax, dword [ebp + 0xc]
mov dword [ebx], edi
mov dword [ebx + 4], esi
push 0
push 0x10000
push ebx
push 0x469ef0
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x469e1b
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
xor eax, eax
jmp 0x469e76
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x28], ecx
call dword [ecx]
add esp, 4
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 4]
test eax, eax
je 0x469e4f
push dword [ecx + 8]
push eax
push dword [ebp - 0x24]
call fcn.00406c80
add esp, 0xc
push 4
push 8
push dword [ebp - 0x20]
call fcn.00406c80
add esp, 0xc
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov eax, 1
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], 0
push 4
push 8
call fcn.004804a0
add esp, 8
ud2
Function at 0x46a0b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
je 0x46a0c5
test eax, eax
jne 0x46a1dd
mov ebp, dword [0x4c11a8]
test ebp, ebp
je 0x46a1dd
mov edi, dword [sym.imp.kernel32.dll_TlsGetValue]
xor ebx, ebx
jmp 0x46a0e7
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x46a108
push dword [ebp + 4]
call edi
test eax, eax
je 0x46a0e0
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
mov bl, 1
jmp 0x46a0e0
test bl, 1
je 0x46a1dd
mov ebp, dword [0x4c11a8]
test ebp, ebp
je 0x46a1dd
xor ebx, ebx
jmp 0x46a137
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x46a158
push dword [ebp + 4]
call edi
test eax, eax
je 0x46a130
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
mov bl, 1
jmp 0x46a130
test bl, 1
je 0x46a1dd
mov ebp, dword [0x4c11a8]
test ebp, ebp
je 0x46a1dd
xor ebx, ebx
jmp 0x46a177
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x46a198
push dword [ebp + 4]
call edi
test eax, eax
je 0x46a170
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
mov bl, 1
jmp 0x46a170
test bl, 1
je 0x46a1dd
mov ebp, dword [0x4c11a8]
test ebp, ebp
je 0x46a1dd
xor ebx, ebx
jmp 0x46a1b7
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x46a1d8
push dword [ebp + 4]
call edi
test eax, eax
je 0x46a1b0
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
mov bl, 1
jmp 0x46a1b0
test bl, 1
jne 0x46a1e9
mov al, byte [0x4be800]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebp, dword [0x4c11a8]
jmp 0x46a1f4
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x46a1dd
push dword [ebp + 4]
call edi
test eax, eax
je 0x46a1f1
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
jmp 0x46a1f1
Function at 0x46bc20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x4c1068]
mov esi, ecx
test eax, eax
je 0x46bc3b
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x46bc54
jmp 0x46bc60
push 0x4c1068
call fcn.004649b0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x46bc60
cmp byte [eax + 4], 0
mov edi, eax
jne 0x46bcf5
mov eax, dword [0x4c1068]
test eax, eax
je 0x46bccc
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x46bce5
mov edi, eax
test eax, eax
jne 0x46bcb5
push 4
push 8
call fcn.00406c70
add esp, 8
test eax, eax
je 0x46bcfd
mov byte [eax + 4], 0
mov dword [eax], 0x4c1068
mov edi, eax
mov eax, dword [0x4c1068]
test eax, eax
jne 0x46bcad
push 0x4c1068
call fcn.004649b0
add esp, 4
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x46bcec
movzx eax, word [esi]
mov byte [esi], 0
mov ecx, eax
shr ecx, 8
and eax, 1
cmovne eax, ecx
jmp 0x46bcee
push 0x4c1068
call fcn.004649b0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x46bc75
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
xor eax, eax
mov byte [edi + 4], 1
mov byte [edi + 5], al
add edi, 5
mov eax, edi
pop esi
pop edi
ret
push 4
push 8
call fcn.004804a0
add esp, 8
ud2

Function at 0x46bd10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push edi
push esi
mov eax, dword [0x4c1070]
mov esi, ecx
test eax, eax
je 0x46bd2c
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x46bd45
jmp 0x46bd54
push 0x4c1070
call fcn.004649b0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x46bd54
cmp dword [eax], 0
mov ebx, eax
je 0x46bd54
add ebx, 4
jmp 0x46be3c
mov eax, dword [0x4c1070]
test eax, eax
je 0x46bdd5
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x46bdf2
mov edi, eax
test eax, eax
jne 0x46bdb4
push 4
push 0x10
call fcn.00406c70
add esp, 8
test eax, eax
je 0x46be42
mov dword [eax], 0
mov dword [eax + 0xc], 0x4c1070
mov edi, eax
mov eax, dword [0x4c1070]
test eax, eax
jne 0x46bdac
push 0x4c1070
call fcn.004649b0
add esp, 4
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
xor edx, edx
test esi, esi
je 0x46bdf6
mov ebx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esi], 0
test ebx, ebx
je 0x46bdfa
cmp ebx, 1
jne 0x46bdfe
mov edx, ecx
jmp 0x46be17
push 0x4c1070
call fcn.004649b0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x46bd6d
xor ebx, ebx
jmp 0x46be3c
xor eax, eax
jmp 0x46be17
mov eax, ebx
jmp 0x46be17
test ecx, ecx
je 0x46be13
xor eax, eax
lock dec dword [ecx]
mov edx, 0
jne 0x46be17
call fcn.00407f60
xor eax, eax
xor edx, edx
mov ecx, dword [edi + 8]
cmp dword [edi], 0
lea ebx, [edi + 4]
mov dword [edi], 1
mov dword [edi + 4], eax
mov dword [edi + 8], edx
je 0x46be3c
test ecx, ecx
je 0x46be3c
lock dec dword [ecx]
jne 0x46be3c
call fcn.00407f60
mov eax, ebx
pop esi
pop edi
pop ebx
ret
push 4
push 0x10
call fcn.004804a0
add esp, 8
ud2
Function at 0x46be50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x4c1078]
mov esi, ecx
test eax, eax
je 0x46be6b
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x46be84
jmp 0x46be8f
push 0x4c1078
call fcn.004649b0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x46be8f
cmp dword [eax], 0
mov edi, eax
jne 0x46bf2a
mov eax, dword [0x4c1078]
test eax, eax
je 0x46beff
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x46bf18
mov edi, eax
test eax, eax
jne 0x46bee7
push 4
push 0xc
call fcn.00406c70
add esp, 8
test eax, eax
je 0x46bf32
mov dword [eax], 0
mov dword [eax + 8], 0x4c1078
mov edi, eax
mov eax, dword [0x4c1078]
test eax, eax
jne 0x46bedf
push 0x4c1078
call fcn.004649b0
add esp, 4
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x46bf1f
mov ecx, dword [esi]
xor eax, eax
mov dword [esi], 0
cmp ecx, 1
jne 0x46bf21
mov eax, dword [esi + 4]
jmp 0x46bf21
push 0x4c1078
call fcn.004649b0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x46bea4
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
xor eax, eax
mov dword [edi], 1
mov dword [edi + 4], eax
add edi, 4
mov eax, edi
pop esi
pop edi
ret
push 4
push 0xc
call fcn.004804a0
add esp, 8
ud2
Function at 0x47a290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47a2e8
mov esi, dword [esp + 0x18]
lea edi, [edx + eax*2]
xor ebx, ebx
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea ebp, [ebx + eax]
jne 0x47a2e0
cmp ebp, ebx
jb 0x47a362
cmp ebp, dword [esp + 0x1c]
ja 0x47a371
add ebx, esi
nop word [eax + eax]
test eax, eax
je 0x47a2e2
dec eax
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x47a2d0
jmp 0x47a33f
ja 0x47a2e8
cmp edx, edi
mov ebx, ebp
jne 0x47a2a5
mov edx, dword [esp + 0x24]
test edx, edx
je 0x47a343
mov esi, dword [esp + 0x20]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax + eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x47a320
mov esi, edi
sub ecx, ebx
jns 0x47a337
jmp 0x47a345
cmp edi, edx
je 0x47a34c
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x47a345
xor al, 1
cmp esi, edx
jne 0x47a300
jmp 0x47a345
xor eax, eax
jmp 0x47a345
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4b4d04
push 0x2b
push str.called__Option::unwrap____on_a__None__value:
call fcn.00480530
add esp, 0xc
ud2
sub esp, 4
push ebp
push ebx
call fcn.00480760
add esp, 0xc
ud2
sub esp, 4
push dword [esp + 0x20]
push ebp
call fcn.00480750
add esp, 0xc
ud2
Function at 0x4072c4
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c55c
mov eax, esi
mov edx, 8
test al, 1
je 0x4072e0
shr eax, 1
xor eax, 0xedb88320
jmp 0x4072e2
shr eax, 1
dec edx
jne 0x4072d3
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4072cc
pop esi
ret

Function at 0x40730f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c558], 0
jne 0x40731b
call fcn.004072c4
push 1
push 0x40c558
call fcn.00403e30
mov eax, edi
test esi, esi
je 0x407346
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407321
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40a560
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x469deb
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.0045e6ee
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a5e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045c46d
mov eax, dword [eax]
push 0x4931c0
push eax
call fcn.0044f2d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045e979
test bl, bl
je 0x40a5e2
push 0x4931c0
lea ecx, [esp + 0xc]
call fcn.0045ed09
push 0x496d3c
lea ecx, [esp + 0xc]
call fcn.0045ed09
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 0x40a61e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045e979
jmp 0x40a6e9
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 0x40a6a2
lea edx, [esp + 0x7c]
push 0x496d38
push edx
call fcn.0044f2d4
add esp, 8
test eax, eax
je 0x40a6a2
lea eax, [esp + 0x7c]
push 0x496d34
push eax
call fcn.0044f2d4
add esp, 8
test eax, eax
je 0x40a6a2
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 0x40a632
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.0045e979
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 0x40aee0
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 0x40af42
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 0x40af50
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x469e6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49d218]
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 0x40b088
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40afb6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045e979
xor eax, eax
jmp 0x40b0ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045eab6
push esi
lea ecx, [esp + 0xc]
call fcn.0045ed45
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 0x40b0dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040aee0
test eax, eax
jne 0x40b0dd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040aee0
test eax, eax
jne 0x40b0dd
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.00450310
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b0bc
lea ecx, [esp + 0x14]
push 0x496d4c
push ecx
call fcn.00450290
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b0bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b0bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045ea66
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40afce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045e979
xor eax, eax
jmp 0x40b0ff
mov byte [esi], 0
push 0x496d48
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.0045e979
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 0x41d130
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 0x41d19e
cmp si, 0x69
ja 0x41d19e
add esi, 0xffd0
cmp si, 0x11
je 0x41d16e
push 0x11
call edi
test ax, ax
jge 0x41d16e
or esi, 0x2000
cmp si, 0x10
je 0x41d183
push 0x10
call edi
test ax, ax
jge 0x41d183
or esi, 0x4000
cmp si, 0x12
je 0x41d198
push 0x12
call edi
test ax, ax
jge 0x41d198
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41d1ab
mov esi, 0xbd
jmp 0x41d15f
cmp si, 0x6e
jne 0x41d1b8
mov esi, 0xbe
jmp 0x41d15f
cmp si, 0x6f
jne 0x41d159
mov esi, 0xbf
jmp 0x41d15f

Function at 0x41e850
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4ad868]
xor edx, edx
cmp eax, edx
jne 0x41e876
xor eax, eax
mov byte [eax + 0x4ad768], al
inc eax
cmp eax, 0x100
jl 0x41e85e
mov dword [0x4ad868], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4ad768
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41e907
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 0x41e8da
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 0x41e8a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41e980
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 0x41e9d3
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 0x41e9ba
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