joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b270
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ebx
mov ebx, 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 0
push 1
push 0x4f3470
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40b2fc
mov eax, 0x51eb851f
mov ecx, ebx
imul ebx
sar edx, 5
mov eax, ebx
sar ecx, 0x1f
sub edx, ecx
imul esi, edx, 0x64
sub eax, esi
jne 0x40b2fc
cmp ebx, 0x15f90
jl 0x40b2f3
cmp ebx, 0x1d4c0
jge 0x40b2d0
mov eax, 0x32
jmp 0x40b2f5
cmp ebx, 0x2bf20
jge 0x40b2df
mov eax, 0x64
jmp 0x40b2f5
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x40b2f5
mov eax, 0xfa
jmp 0x40b2f5
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40b310
inc ebx
cmp ebx, 0x57e40
jl 0x40b288
mov eax, dword [ebp - 4]
test eax, eax
je 0x40b32a
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.00421bd0
add esp, 4
mov eax, dword [0x4f3474]
test eax, eax
jne 0x40b360
cmp dword [0x4e73a0], 1
je 0x40b3f9
xor ebx, ebx
xor esi, esi
cmp dword [0x4f346c], 0
je 0x40b3b6
mov dword [0x4f3474], 1
cmp dword [0x4e73a0], 1
je 0x40b3a1
mov dword [0x4f3470], 0
push dword [0x4f3468]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x40b437
mov eax, dword [ebp + 8]
mov dword [eax], ebx
cmp dword [0x4e73a0], 1
je 0x40b417
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.00461420
push ebx
push 0x16
call fcn.00461420
add esp, 0x10
jmp 0x40b360
mov dword [0x4f346c], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4f3468], eax
cmp eax, 0xffffffff
jne 0x40b3dd
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40b34d
push 0x40aff0
call fcn.00461e40
push 0x40afb0
call fcn.00461e40
add esp, 8
jmp 0x40b34d
push 1
push 2
call fcn.00461420
mov esi, eax
push 1
push 0x16
call fcn.00461420
add esp, 0x10
mov ebx, eax
jmp 0x40b344
push 1
push 2
call fcn.00461420
push 1
push 0x16
mov dword [ebx + 0x64], eax
call fcn.00461420
add esp, 0x10
mov dword [ebx + 0x68], eax
jmp 0x40b395
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.00421c10
add esp, 0xc
test eax, eax
je 0x40b45e
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x4e72fc]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x4e72f8]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x4e72f4]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x4e72f0]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x40b466
push dword [ebp - 0x10]
push dword [0x4f3468]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp - 0x10]
jmp 0x40b383
Function at 0x415980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 0x10], edi
mov edx, dword [ebx + 0x13c]
test edx, edx
mov ecx, edx
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
jne 0x4159a5
mov ecx, 0x20000
sub edi, eax
cmp edi, ecx
ja 0x4159d3
push 0
lea edx, [ebp - 8]
push edx
push edi
push eax
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x415a48
mov ecx, 1
jmp 0x415a48
test edx, edx
mov ecx, edi
mov dword [ebp - 0x18], edi
mov edi, eax
jne 0x4159e3
mov edx, 0x20000
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], esi
mov esi, ecx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x415a12
mov edi, dword [ebp - 0x18]
mov ecx, 0xffffffff
mov esi, dword [ebp - 0x14]
jmp 0x415a48
mov edx, dword [ebx + 0x13c]
test edx, edx
mov eax, dword [ebp - 8]
jne 0x415a24
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x415a35
mov dword [ebp - 4], esi
test esi, esi
jne 0x415a39
jmp 0x415a3d
test esi, esi
je 0x415a3d
test eax, eax
ja 0x4159eb
mov edi, dword [ebp - 0x18]
mov ecx, 1
mov esi, dword [ebp - 0x14]
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf8]
mov dword [ebx + 0x40], edx
add edx, eax
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
mov dword [ebx + 0x44], edx
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
mov dword [ebx + 0xc0], edi
adc edx, dword [ebx + 0xc4]
and byte [ebx + 0x16d], 0xfb
mov dword [ebx + 0xc4], edx
cmp ecx, 0xffffffff
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xbc], edx
je 0x415aa8
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xe8], eax
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x41acf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 0x10], edi
mov edx, dword [ebx + 0x13c]
test edx, edx
mov ecx, edx
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
jne 0x41ad15
mov ecx, 0x20000
sub edi, eax
cmp edi, ecx
ja 0x41ad43
push 0
lea edx, [ebp - 8]
push edx
push edi
push eax
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x41adb8
mov ecx, 1
jmp 0x41adb8
test edx, edx
mov ecx, edi
mov dword [ebp - 0x18], edi
mov edi, eax
jne 0x41ad53
mov edx, 0x20000
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], esi
mov esi, ecx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41ad82
mov edi, dword [ebp - 0x18]
mov ecx, 0xffffffff
mov esi, dword [ebp - 0x14]
jmp 0x41adb8
mov edx, dword [ebx + 0x13c]
test edx, edx
mov eax, dword [ebp - 8]
jne 0x41ad94
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x41ada5
mov dword [ebp - 4], esi
test esi, esi
jne 0x41ada9
jmp 0x41adad
test esi, esi
je 0x41adad
test eax, eax
ja 0x41ad5b
mov edi, dword [ebp - 0x18]
mov ecx, 1
mov esi, dword [ebp - 0x14]
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf8]
mov dword [ebx + 0x40], edx
add edx, eax
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
mov dword [ebx + 0x44], edx
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
mov dword [ebx + 0xc0], edi
adc edx, dword [ebx + 0xc4]
and byte [ebx + 0x16d], 0xfb
mov dword [ebx + 0xc4], edx
cmp ecx, 0xffffffff
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xbc], edx
je 0x41ae18
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xe8], eax
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x41ea10
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x421a00
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov esi, dword [eax + 0x7c]
test esi, esi
mov dword [ebp - 0xc], edi
je 0x421bbc
mov edx, dword [0x4e73a0]
mov edi, dword [esi + 0x14]
lea eax, [edi*4]
shl edi, 5
sub edi, eax
cmp edx, 2
lea ebx, [edi + 0x4f7fc8]
jge 0x421a4f
mov eax, dword [ebx]
test eax, eax
jne 0x421a90
mov dword [edi + 0x4f7fc8], 1
jmp 0x421a90
push ebx
call fcn.0040b500
add esp, 4
test eax, eax
jne 0x421a8a
cmp dword [edi + 0x4f7fc4], 0
je 0x421b9c
mov dword [edi + 0x4f7fc8], 0
push 0xffffffffffffffff
push dword [edi + 0x4f7fc4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call fcn.0040b500
add esp, 4
mov edx, dword [0x4e73a0]
cmp edx, 1
je 0x421b88
mov eax, dword [esi + 0x18]
dec eax
mov dword [esi + 0x18], eax
test eax, eax
jle 0x421aff
mov eax, dword [0x4e73a0]
cmp eax, 1
je 0x421ae4
cmp eax, 2
jge 0x421abf
mov dword [edi + 0x4f7fc8], 0
jmp 0x421ad5
mov dword [edi + 0x4f7fc8], 0
push dword [edi + 0x4f7fc4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push dword [edi + 0x4f7fd8]
push dword [edi + 0x4f7fd4]
call fcn.0040b4e0
add esp, 8
mov eax, dword [0x4e73a0]
jmp 0x421aae
mov edx, dword [esi]
test edx, edx
je 0x421b0b
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x421b16
mov dword [eax], edx
jmp 0x421b1c
mov dword [edi + 0x4f7fc0], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x7c], 0
mov eax, dword [0x4e73a0]
cmp eax, 1
je 0x421b6d
cmp eax, 2
jge 0x421b41
mov dword [edi + 0x4f7fc8], 0
jmp 0x421b57
mov dword [edi + 0x4f7fc8], 0
push dword [edi + 0x4f7fc4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 8]
call fcn.00421cd0
push esi
call fcn.00421cd0
add esp, 8
jmp 0x421ad5
push dword [edi + 0x4f7fd8]
push dword [edi + 0x4f7fd4]
call fcn.0040b4e0
add esp, 8
mov eax, dword [0x4e73a0]
jmp 0x421b30
lea eax, [edi + 0x4f7fd4]
push eax
call fcn.0040b4b0
add esp, 4
jmp 0x421a99
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x4f7fc4], eax
mov dword [edi + 0x4f7fc8], 0
jmp 0x421a73
xor eax, eax
mov esi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x421bd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.0042fc30
mov ebx, dword [ebp + 8]
cmp dword [0x4fdcc0], 0
jne 0x421bf7
test ebx, ebx
je 0x421bec
mov eax, dword [ebx]
jmp 0x421bee
xor eax, eax
push eax
call fcn.00464bd0
add esp, 4
test ebx, ebx
je 0x421bff
mov eax, dword [ebx]
jmp 0x421c01
xor eax, eax
push eax
call fcn.004b5c40
add esp, 4
jmp 0x421be4
Function at 0x42b620
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x4363c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]

Function at 0x4363cc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ebx
mov ebx, edx
mov dword [ebp - 4], edi
mov edx, eax
mov dword [ecx], 0
cmp dword [0x4fdcc0], 0
je 0x4364a3
cmp dword [ebp + 0x20], 2
je 0x436403
cmp dword [ebp + 0x20], 1
jne 0x436412
mov eax, 0xffffffff
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
je 0x436422
cmp dword [ebp + 0x20], 0xfffffffa
je 0x436568
cmp dword [ebp + 0x20], 0
je 0x436574
xor ecx, ecx
xor edi, edi
cmp dword [ebp + 0x18], 0
je 0x436457
cmp dword [ebp + 0x1c], 0
je 0x436457
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
call fcn.004b59f0
push edi
call fcn.004b5b60
mov edx, dword [ebp - 0x10]
add esp, 8
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4364a3
push edi
push esi
push ebx
call fcn.004b5a90
add esp, 0xc
mov esi, eax
mov eax, dword [ebp + 0x14]
cmp esi, 0xffffffff
mov dword [eax], esi
je 0x436598
push 0
push edi
push 2
push 0x4cea84
call fcn.004b5a50
add esp, 0x10
mov edx, dword [ebp + 0x14]
mov eax, 1
mov byte [esi + ebx], 0xa
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
inc dword [edx]
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x24]
test ecx, ecx
mov edx, dword [ebp - 0x10]
mov dword [edi], 0
je 0x4364cb
mov edi, dword [ecx + 0x13c]
test edi, edi
jne 0x4364d0
mov edi, 0x20000
cmp esi, edi
jbe 0x436544
cmp dword [ebp + 0x20], 0
je 0x436544
test ecx, ecx
je 0x4364e8
mov edi, dword [ecx + 0x13c]
test edi, edi
jne 0x4364ed
mov edi, 0x20000
mov dword [ebp - 0x10], edx
push 0
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x436532
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
add ebx, edx
sub esi, edx
add dword [ecx], edx
cmp dword [ebp + 0x24], 0
je 0x436527
mov edx, dword [ebp + 0x24]
mov edx, dword [edx + 0x13c]
test edx, edx
jne 0x43652c
mov edx, 0x20000
cmp esi, edx
ja 0x436532
mov edi, esi
test esi, esi
je 0x43655b
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
jne 0x43655b
test eax, eax
jne 0x4364f0
jmp 0x43655b
push 0
lea ecx, [ebp - 0x18]
push ecx
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edi, edx
mov ecx, 1
jmp 0x436436
mov dword [ebp - 0x10], edx
call fcn.004b5c80
mov edx, dword [ebp - 0x10]
mov edi, eax
cmp dword [0x4fdcc0], 0
je 0x43645b
mov ecx, 1
jmp 0x436430
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x444d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 0x10], edi
mov edx, dword [ebx + 0x13c]
test edx, edx
mov ecx, edx
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
jne 0x444d45
mov ecx, 0x20000
sub edi, eax
cmp edi, ecx
ja 0x444d73
push 0
lea edx, [ebp - 8]
push edx
push edi
push eax
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x444de8
mov ecx, 1
jmp 0x444de8
test edx, edx
mov ecx, edi
mov dword [ebp - 0x18], edi
mov edi, eax
jne 0x444d83
mov edx, 0x20000
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], esi
mov esi, ecx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x444db2
mov edi, dword [ebp - 0x18]
mov ecx, 0xffffffff
mov esi, dword [ebp - 0x14]
jmp 0x444de8
mov edx, dword [ebx + 0x13c]
test edx, edx
mov eax, dword [ebp - 8]
jne 0x444dc4
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x444dd5
mov dword [ebp - 4], esi
test esi, esi
jne 0x444dd9
jmp 0x444ddd
test esi, esi
je 0x444ddd
test eax, eax
ja 0x444d8b
mov edi, dword [ebp - 0x18]
mov ecx, 1
mov esi, dword [ebp - 0x14]
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf8]
mov dword [ebx + 0x40], edx
add edx, eax
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
mov dword [ebx + 0x44], edx
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
mov dword [ebx + 0xc0], edi
adc edx, dword [ebx + 0xc4]
and byte [ebx + 0x16d], 0xfb
mov dword [ebx + 0xc4], edx
cmp ecx, 0xffffffff
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xbc], edx
je 0x444e48
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xe8], eax
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x47e9d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e91c0]
jne 0x47e9da
repz ret
jmp fcn.00490b20
Function at 0x411cc0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x486dbb
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.0047b7f7
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x411d42
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00479530
mov eax, dword [eax]
push 0x828cc0
push eax
call fcn.0046bec4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047ba82
test bl, bl
je 0x411d42
push 0x828cc0
lea ecx, [esp + 0xc]
call fcn.0047be12
push 0x828ccc
lea ecx, [esp + 0xc]
call fcn.0047be12
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 0x411d7e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047ba82
jmp 0x411e49
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 0x411e02
lea edx, [esp + 0x7c]
push 0x828cc8
push edx
call fcn.0046bec4
add esp, 8
test eax, eax
je 0x411e02
lea eax, [esp + 0x7c]
push 0x828cc4
push eax
call fcn.0046bec4
add esp, 8
test eax, eax
je 0x411e02
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 0x411d92
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.0047ba82
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 0x412650
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 0x4126b2
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 0x4126c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x486e3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x8326f0]
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 0x4127f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x412726
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047ba82
xor eax, eax
jmp 0x41286f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047bbbf
push esi
lea ecx, [esp + 0xc]
call fcn.0047be4e
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x828d00
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41284d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00412650
test eax, eax
jne 0x41284d
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.00412650
test eax, eax
jne 0x41284d
lea eax, [esp + 0x14]
push 0x828cdc
push eax
call fcn.0046cf40
mov esi, eax
add esp, 8
test esi, esi
jne 0x41282c
lea ecx, [esp + 0x14]
push 0x828cd8
push ecx
call fcn.0046cec0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41282c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41282f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047bb6f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41273e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047ba82
xor eax, eax
jmp 0x41286f
mov byte [esi], 0
push 0x828cd4
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.0047ba82
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 0x4248d0
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 0x42493e
cmp si, 0x69
ja 0x42493e
add esi, 0xffd0
cmp si, 0x11
je 0x42490e
push 0x11
call edi
test ax, ax
jge 0x42490e
or esi, 0x2000
cmp si, 0x10
je 0x424923
push 0x10
call edi
test ax, ax
jge 0x424923
or esi, 0x4000
cmp si, 0x12
je 0x424938
push 0x12
call edi
test ax, ax
jge 0x424938
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42494b
mov esi, 0xbd
jmp 0x4248ff
cmp si, 0x6e
jne 0x424958
mov esi, 0xbe
jmp 0x4248ff
cmp si, 0x6f
jne 0x4248f9
mov esi, 0xbf
jmp 0x4248ff

Function at 0x4261e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x842eb0]
xor edx, edx
cmp eax, edx
jne 0x426206
xor eax, eax
mov byte [eax + 0x842db0], al
inc eax
cmp eax, 0x100
jl 0x4261ee
mov dword [0x842eb0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x842db0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x426297
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 0x42626a
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 0x426238
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x426310
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 0x426363
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 0x42634a
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