joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4216b0
Capabilities:
Hash data using sha1

Disassembly:
call fcn.00418750
add eax, 0xfffffffd
cmp eax, 0x25
ja case.0x4216c4.4
movzx eax, byte [eax + 0x421738]
jmp dword [eax*4 + 0x421728]
mov eax, dword [esp + 4]
mov dword [eax + 0x5c], 0x4266f8
jmp 0x4216fd
mov eax, dword [esp + 4]
mov dword [eax + 0x5c], 0x425650
jmp 0x4216fd
mov eax, dword [esp + 4]
mov dword [eax + 0x5c], 0x421680
jmp 0x4216fd
mov eax, dword [esp + 4]
mov dword [eax + 0x5c], 0x424510
xor ecx, ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret

Function at 0x421760
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x60
mov eax, dword [0x43c510]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x6c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x70]
push edi
mov edi, dword [esp + 0x78]
lea ecx, [esp + 0x1c]
and ecx, 7
push 0x48
lea ebx, [esp + 0x28]
sub ebx, ecx
push 0
push ebx
mov dword [esp + 0x1c], eax
call fcn.0040b480
mov edx, dword [esi + 0x18]
and edx, 0x3f
mov eax, 0x40
sub eax, edx
add esp, 0xc
cmp eax, 8
ja 0x4217b1
add eax, 0x40
mov ecx, dword [esi + 0x14]
mov ebp, dword [esi + 0x18]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov edx, ebp
shr edx, 0x1d
or ecx, edx
mov byte [ebx], 0x80
lea edx, [ebp*8]
mov dword [esp + 0x18], edx
mov edx, ecx
shr edx, 0x18
mov byte [eax + ebx - 8], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + ebx - 7], dl
mov edx, ecx
shr edx, 8
mov byte [eax + ebx - 6], dl
mov byte [eax + ebx - 5], cl
mov ecx, dword [esp + 0x18]
mov edx, ecx
shr edx, 0x18
mov byte [eax + ebx - 4], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + ebx - 3], dl
mov edx, ecx
mov byte [eax + ebx - 1], cl
mov ecx, dword [esp + 0x10]
push ecx
push eax
shr edx, 8
push ebx
push esi
mov byte [eax + ebx - 2], dl
call fcn.00421580
movzx edx, byte [esi + 3]
mov byte [edi], dl
movzx eax, byte [esi + 2]
mov byte [edi + 1], al
mov ecx, dword [esi]
shr ecx, 8
mov byte [edi + 2], cl
movzx edx, byte [esi]
mov byte [edi + 3], dl
movzx eax, byte [esi + 7]
mov byte [edi + 4], al
movzx ecx, byte [esi + 6]
mov byte [edi + 5], cl
mov edx, dword [esi + 4]
shr edx, 8
mov byte [edi + 6], dl
movzx eax, byte [esi + 4]
mov byte [edi + 7], al
movzx ecx, byte [esi + 0xb]
mov byte [edi + 8], cl
movzx edx, byte [esi + 0xa]
mov byte [edi + 9], dl
mov eax, dword [esi + 8]
shr eax, 8
mov byte [edi + 0xa], al
movzx ecx, byte [esi + 8]
mov byte [edi + 0xb], cl
movzx edx, byte [esi + 0xf]
mov byte [edi + 0xc], dl
movzx eax, byte [esi + 0xe]
mov byte [edi + 0xd], al
mov ecx, dword [esi + 0xc]
shr ecx, 8
mov byte [edi + 0xe], cl
movzx edx, byte [esi + 0xc]
mov byte [edi + 0xf], dl
movzx eax, byte [esi + 0x13]
mov byte [edi + 0x10], al
movzx ecx, byte [esi + 0x12]
mov byte [edi + 0x11], cl
mov edx, dword [esi + 0x10]
shr edx, 8
mov byte [edi + 0x12], dl
movzx eax, byte [esi + 0x10]
push esi
mov byte [edi + 0x13], al
call fcn.004216b0
mov ecx, dword [esp + 0x80]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042fc34
add esp, 0x60
ret
Function at 0x42c250
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
push esi
push 0
push 1
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
test eax, eax
mov dword [esi + 4], eax
jne 0x42c29b
push eax
push 0xffffffffffffffff
push str.unable_to_create_tls_index
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], vtable.RSException.0
call fcn.00429b00
push 0x43558c
lea eax, [esp + 8]
push eax
call sub.MSVCR80.dll__CxxThrowException
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
add esp, 0x1c
ret

Function at 0x42c2b0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [ecx + 4]
sub esp, 0x1c
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x42c2ee
push eax
push 0xffffffffffffffff
push str.unable_to_set_tls_value
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], vtable.RSException.0
call fcn.00429b00
push 0x43558c
lea edx, [esp + 4]
push edx
call sub.MSVCR80.dll__CxxThrowException
add esp, 0x1c
ret 4

Function at 0x42c300
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
test eax, eax
push esi
mov esi, ecx
je 0x42c34d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x42c34d
push eax
push 0xffffffffffffffff
push str.unable_to_set_tls_value
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], vtable.RSException.0
call fcn.00429b00
push 0x43558c
lea ecx, [esp + 8]
push ecx
call sub.MSVCR80.dll__CxxThrowException
pop esi
add esp, 0x1c
ret 4

Function at 0x42c360
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x42c3bd
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x42c3af
push eax
push 0xffffffffffffffff
push str.unable_to_create_tls_data
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], vtable.RSException.0
call fcn.00429b00
push 0x43558c
lea ecx, [esp + 0xc]
push ecx
call sub.MSVCR80.dll__CxxThrowException
push esi
mov ecx, edi
mov dword [esi], 0
call fcn.0042c2b0
pop edi
mov eax, esi
pop esi
add esp, 0x1c
ret

Function at 0x42c490
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x42c4cc
push eax
push 0xffffffffffffffff
push str.likely_unbalanced_enter_exit_monitor_pair__extra_exit_
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], vtable.RSException.0
call fcn.00429b00
push 0x43558c
lea ecx, [esp + 8]
push ecx
call sub.MSVCR80.dll__CxxThrowException
add dword [eax], 0xffffffff
jne 0x42c4d9
push eax
mov ecx, esi
call fcn.0042c300
pop esi
add esp, 0x1c
ret
Function at 0x42c550
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, dword [ecx + 4]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42c567
cmp dword [eax], 0
jne 0x42c571
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
call fcn.0042c360
add dword [eax], 1
pop esi
ret

Function at 0x42c580
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
test eax, eax
je 0x42c4fc
cmp dword [eax], 0
ja 0x42c525
push 0
push 0xffffffffffffffff
push str.must_own_monitor_prior_to_calling_exit__
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], vtable.RSException.0
call fcn.00429b00
push 0x43558c
lea ecx, [esp + 0xc]
push ecx
call sub.MSVCR80.dll__CxxThrowException
mov ecx, esi
call fcn.0042c490
mov edx, dword [esi + 4]
push edx
call edi
test eax, eax
je 0x42c53b
cmp dword [eax], 0
jne 0x42c545
add esi, 8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
add esp, 0x1c
ret
mov ecx, dword [ecx + 4]
jmp 0x42c4e0

Function at 0x42cdf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x431528
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x43c510]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor esi, esi
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], esi
call fcn.00429271
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], esi
call fcn.00429b90
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call fcn.00429271
mov edx, dword [esp + 0x1c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x18]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret
Function at 0x42d570
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x431528
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x43c510]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x42d608
push eax
lea ecx, [esp + 0x10]
call fcn.0042bac3
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0
call fcn.004296e0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0xc]
call fcn.004296e0
mov ecx, dword [edi + 0x14]
push 0xffffffffffffffff
push esi
push eax
movzx eax, word [esp + 0x40]
add eax, 1
push eax
push ecx
call sub.sqlite.dll_sqlite3_bind_text
mov edx, dword [esp + 0x30]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x2c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0x1c
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 8
mov edx, dword [edi]
mov eax, dword [esp + 0x34]
mov edx, dword [edx + 0x24]
push eax
call edx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 8
Function at 0x42eb30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x431910
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c510]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor esi, esi
push esi
push 0xffffffffffffffff
push str.:memory:
lea ecx, [esp + 0x24]
call fcn.00429b00
mov ebp, dword [esp + 0x88]
push esi
push esi
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
mov dword [esp + 0x8c], esi
call fcn.0042a1a0
mov ecx, dword [esp + 0x28]
test ax, ax
push ecx
setne bl
mov dword [esp + 0x84], 0xffffffff
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x24]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 8
test bl, bl
je 0x42ebbb
push ebp
call fcn.0042eed0
add esp, 4
push ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], esi
call fcn.0042bac3
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x80], 1
xor edi, edi
lea ecx, [esp + 0x30]
call fcn.004296e0
push ebx
push ebp
lea ecx, [esp + 0x1c]
push ecx
push eax
call sub.sqlite.dll_sqlite3_open_v2
add esp, 0x10
test eax, eax
je 0x42ec76
cmp eax, 0xe
jne 0x42ec2f
cmp edi, 0x7d0
jae 0x42ec21
mov eax, esi
mov edx, 0x3e8
mul edx
push edx
push eax
call fcn.0042ee70
add esp, 8
add esi, 5
add edi, 1
cmp esi, 0x2710
jb 0x42ebe4
push 0
push 0xffffffffffffffff
push str.error_opening_database
lea ecx, [esp + 0x54]
call fcn.00429b00
mov ecx, dword [esp + 0x88]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x8c], 2
call fcn.0042cdf0
add esp, 0xc
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x88], 3
call fcn.0042e9e0
mov eax, dword [esp + 0x14]
push 0
push 0
push 0x42e8e0
push 0
push 1
push 3
push 0x433cd0
push eax
call sub.sqlite.dll_sqlite3_create_function
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x34]
add esp, 0x20
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x3c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
Function at 0x42f210
Capabilities:
Get disk information

Disassembly:
push edi
mov ecx, esi
xor edi, edi
call fcn.00429750
cmp dword [esi + 4], 1
jne 0x42f23e
push edi
mov ecx, esi
call fcn.0042a580
movzx eax, ax
cmp ax, 0x2f
je 0x42f237
cmp ax, 0x5c
jne 0x42f23e
mov eax, 1
pop edi
ret
mov ecx, esi
call fcn.00429750
cmp dword [esi + 4], 3
jne 0x42f2a4
push 0
mov ecx, esi
call fcn.0042a580
push eax
call dword [sym.imp.MSVCR80.dll_iswalpha]
add esp, 4
test eax, eax
je 0x42f2a4
push 1
mov ecx, esi
call fcn.0042a580
cmp ax, 0x3a
jne 0x42f2a4
push 2
mov ecx, esi
call fcn.0042a580
movzx eax, ax
cmp ax, 0x2f
je 0x42f289
cmp ax, 0x5c
jne 0x42f2a4
mov ecx, esi
call fcn.00429750
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, 1
cmp ecx, eax
sbb eax, eax
neg eax
pop edi
ret
push 0
mov ecx, esi
call fcn.0042a580
movzx eax, ax
cmp ax, 0x2f
je 0x42f2c0
cmp ax, 0x5c
jne 0x42f3d9
push 1
mov ecx, esi
call fcn.0042a580
movzx eax, ax
cmp ax, 0x2f
je 0x42f2dc
cmp ax, 0x5c
jne 0x42f3d9
mov ecx, esi
mov edi, 2
call fcn.00429750
cmp dword [esi + 4], edi
je 0x42f3dd
push edi
mov ecx, esi
call fcn.0042a580
movzx eax, ax
cmp ax, 0x2f
je 0x42f3dd
cmp ax, 0x5c
je 0x42f3dd
mov ecx, esi
add edi, 1
call fcn.00429750
cmp edi, dword [esi + 4]
jae 0x42f336
push edi
mov ecx, esi
call fcn.0042a580
movzx eax, ax
cmp ax, 0x2f
je 0x42f336
cmp ax, 0x5c
jne 0x42f310
mov ecx, esi
call fcn.00429750
cmp dword [esi + 4], edi
je 0x42f3dd
mov ecx, esi
add edi, 1
call fcn.00429750
cmp dword [esi + 4], edi
je 0x42f3dd
push edi
mov ecx, esi
call fcn.0042a580
call fcn.0042f1f0
test al, al
jne 0x42f3dd
lea ebx, [ebx]
mov ecx, esi
add edi, 1
call fcn.00429750
cmp edi, dword [esi + 4]
jae 0x42f396
push edi
mov ecx, esi
call fcn.0042a580
movzx eax, ax
cmp ax, 0x2f
je 0x42f396
cmp ax, 0x5c
jne 0x42f370
mov ecx, esi
call fcn.00429750
lea edx, [edi + 1]
cmp dword [esi + 4], edx
ja 0x42f3dd
mov ecx, esi
call fcn.00429750
cmp dword [esi + 4], edi
jne 0x42f3c0
movzx eax, word [0x43c4dc]
push eax
mov ecx, esi
call fcn.004297d0
mov ecx, esi
call fcn.00429750
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, 1
cmp ecx, eax
sbb edi, edi
neg edi
mov eax, edi
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x42f780
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x431aa0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x43c510]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov esi, dword [esp + 0x50]
mov ecx, esi
mov dword [esp + 0x48], ebx
call fcn.00429750
mov edi, eax
movzx eax, word [0x43c4dc]
push eax
mov ecx, esi
call fcn.0042a5f0
test eax, eax
je 0x42f836
mov ecx, esi
call fcn.00429750
mov eax, dword [esi + 4]
add eax, 0xffffffff
push eax
push ebx
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.00429f80
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 1
call fcn.00429860
mov edx, dword [esp + 0x38]
push edx
mov byte [esp + 0x4c], bl
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x34]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00429750
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x20]
mov esi, eax
neg esi
sbb esi, esi
push ecx
add esi, 1
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x1c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x3c
ret

Function at 0x42fc34
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c510]
jne 0x42fc3e
repz ret
jmp fcn.004304b0
Function at 0x45c028
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x45c060
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x45c04e
mov al, 1
jmp 0x45c0bf
cmp dword [ebx + 0x54], ecx
jne 0x45c057
mov al, 2
jmp 0x45c0bf
cmp dword [ebx + 0x7c], ecx
jne 0x45c0bf
mov al, 3
jmp 0x45c0bf
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x45c075
mov al, 4
jmp 0x45c0bf
cmp ecx, 5
jne 0x45c095
cmp ebx, 0
jne 0x45c083
mov al, 5
jmp 0x45c0bf
cmp ebx, 1
jne 0x45c08c
mov al, 6
jmp 0x45c0bf
cmp ebx, 2
jne 0x45c095
mov al, 7
jmp 0x45c0bf
cmp ecx, 6
jne 0x45c0bd
cmp ebx, 0
jne 0x45c0a3
mov al, 8
jmp 0x45c0bf
cmp ebx, 1
jne 0x45c0aa
mov al, 9
cmp ebx, 2
jne 0x45c0b1
mov al, 0xa
cmp ebx, 3
jne 0x45c0b8
mov al, 0xb
cmp ebx, 4
jne 0x45c0bf
mov al, 0xc
pop ebx
leave
ret
Function at 0x4ab390
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a2bbb
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.005932e1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4ab412
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0058f958
mov eax, dword [eax]
push 0x8e6f98
push eax
call fcn.005809b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0059356c
test bl, bl
je 0x4ab412
push 0x8e6f98
lea ecx, [esp + 0xc]
call fcn.005938fc
push 0x8e6fa4
lea ecx, [esp + 0xc]
call fcn.005938fc
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 0x4ab44e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0059356c
jmp 0x4ab519
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 0x4ab4d2
lea edx, [esp + 0x7c]
push 0x8e6fa0
push edx
call fcn.005809b4
add esp, 8
test eax, eax
je 0x4ab4d2
lea eax, [esp + 0x7c]
push 0x8e6f9c
push eax
call fcn.005809b4
add esp, 8
test eax, eax
je 0x4ab4d2
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 0x4ab462
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.0059356c
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 0x4abd30
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 0x4abd92
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 0x4abda0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a2c3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x8f5848]
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 0x4abed8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4abe06
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0059356c
xor eax, eax
jmp 0x4abf4f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.005936a9
push esi
lea ecx, [esp + 0xc]
call fcn.00593938
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x8e6fd8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4abf2d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x8e6fd0
push closesocket
call fcn.004abd30
test eax, eax
jne 0x4abf2d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x8e6fbc
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.004abd30
test eax, eax
jne 0x4abf2d
lea eax, [esp + 0x14]
push 0x8e6fb4
push eax
call fcn.00581c60
mov esi, eax
add esp, 8
test esi, esi
jne 0x4abf0c
lea ecx, [esp + 0x14]
push 0x8e6fb0
push ecx
call fcn.00581be0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4abf0c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4abf0f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00593659
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4abe1e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0059356c
xor eax, eax
jmp 0x4abf4f
mov byte [esi], 0
push 0x8e6fac
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.0059356c
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 0x4c3100
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 0x4c316e
cmp si, 0x69
ja 0x4c316e
add esi, 0xffd0
cmp si, 0x11
je 0x4c313e
push 0x11
call edi
test ax, ax
jge 0x4c313e
or esi, 0x2000
cmp si, 0x10
je 0x4c3153
push 0x10
call edi
test ax, ax
jge 0x4c3153
or esi, 0x4000
cmp si, 0x12
je 0x4c3168
push 0x12
call edi
test ax, ax
jge 0x4c3168
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4c317b
mov esi, 0xbd
jmp 0x4c312f
cmp si, 0x6e
jne 0x4c3188
mov esi, 0xbe
jmp 0x4c312f
cmp si, 0x6f
jne 0x4c3129
mov esi, 0xbf
jmp 0x4c312f

Function at 0x4c5470
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x907010]
xor edx, edx
cmp eax, edx
jne 0x4c5496
xor eax, eax
mov byte [eax + 0x906f10], al
inc eax
cmp eax, 0x100
jl 0x4c547e
mov dword [0x907010], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x906f10
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4c5527
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 0x4c54fa
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 0x4c54c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4c55a0
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 0x4c55f3
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 0x4c55da
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