joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4771a5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00477121
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x477314
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x477314
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4772c9
jg 0x477201
test eax, eax
je 0x4772bf
push 1
push 0x1000
call fcn.0046780c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x477224
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4772b6
push 0x8000
push ebx
call fcn.0046465e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x47724d
jg 0x477248
cmp ecx, 0x1000
jb 0x47724d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0046846f
add esp, 0x10
cmp eax, 0xffffffff
je 0x477292
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x477248
jl 0x477279
test ecx, ecx
jne 0x47723a
push dword [ebp - 0xc]
push ebx
call fcn.0046465e
push esi
call fcn.0046868b
add esp, 0xc
xor ebx, ebx
jmp 0x477322
cmp byte [edi + 0x24], 0
je 0x4772a9
cmp dword [edi + 0x20], 5
jne 0x4772a9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4772b4
mov ebx, dword [edi + 0x18]
jmp 0x4772b6
xor ebx, ebx
push esi
call fcn.0046868b
pop ecx
jmp 0x477322
test ecx, ecx
jg 0x47728b
jl 0x4772c9
test eax, eax
jae 0x47728b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046c280
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4772e9
cmp byte [edi + 0x1c], 0
je 0x47728b
jmp 0x47731a
push ebx
call fcn.00470623
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x47728b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x477322
cmp byte [edi + 0x1c], 0
je 0x47731f
mov ebx, dword [edi + 0x18]
jmp 0x477322
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0046c280
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x477a90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x477abd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x477abd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401089
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4010c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4010c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4010c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010b0
cmp esi, eax
jb 0x4010ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40d470
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push 0xffffffffffffffff
push esi
mov edi, ecx
call fcn.0041d694
test eax, eax
jne 0x40d489
pop edi
pop esi
ret 8
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40d490
mov ecx, dword [edi + 4]
sub eax, edx
add eax, 1
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
add eax, 1
pop esi
ret 8

Function at 0x40d500
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [ecx + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
neg eax
sbb eax, eax
add eax, 1
ret 4

Function at 0x40d520
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
mov esi, ecx
push eax
push 0x104
mov ecx, edi
mov dword [esp + 0x20], 0x104
mov dword [esi + 0xc], 0
call fcn.0040d780
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
push 0xffffffffffffffff
mov ecx, edi
je 0x40d575
call fcn.0040d7a0
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
call fcn.0040d7a0
pop edi
mov eax, 1
pop esi
pop ecx
ret 4
Function at 0x40d5b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x443d08
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x45b7b0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x10]
push eax
push 0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0
push edi
push edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 1
call ebx
test eax, eax
jne 0x40d6ba
push 0x447f3b
lea ecx, [esp + 0x1c]
call fcn.0040d8e0
cmp dword [esp + 0x14], 1
mov dword [esp + 0x30], 0
je 0x40d669
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40d646
push eax
lea ecx, [esp + 0x1c]
call fcn.0040d810
lea eax, [esp + 0x18]
push eax
mov esi, dword [esp + 0x3c]
mov ecx, esi
call fcn.0040d910
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040d700
jmp 0x40d6e6
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
add edx, 1
push edx
lea ecx, [esp + 0x20]
call fcn.0040d780
mov ecx, dword [esi + 4]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
jne 0x40d6a4
call fcn.0040d7a0
lea edx, [esp + 0x18]
push edx
jmp 0x40d64b
call fcn.0040d7a0
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040d700
mov ebx, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
call fcn.0041d694
test eax, eax
je 0x40d6d6
push ebx
push edi
mov ecx, esi
call fcn.0040d470
push ebx
jmp 0x40d6db
push 0x447f3b
mov esi, dword [esp + 0x3c]
mov ecx, esi
call fcn.0040d8e0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x414248
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41428e
call fcn.0040ef6e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41428e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4142d1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4142ba
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4142ba
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4142ce
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x419d21
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x419d64
call fcn.0040ef6e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x419d64
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x419d7f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004198d8
test ebx, ebx
mov esi, eax
je 0x419d7d
test edi, edi
je 0x419d7d
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41cbea
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x41cc13
call fcn.0040ef6e
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x41cc36
push eax
push dword [esi + 4]
call fcn.0041cb75
push esi
push eax
mov ecx, 0x45e880
call fcn.0041c82b
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x41d459
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x444df9
call fcn.0042fbbb
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0041d41b
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00402630
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x41d4bf
push eax
push dword [esi + 8]
call fcn.0041cb75
push dword [esi + 0xc]
mov ecx, 0x45e880
push eax
call fcn.0041c82b
mov eax, esi
call fcn.0042fc93
ret 0x18

Function at 0x41e2e7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41e315
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e333
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041e251
jmp 0x41e333
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41e333
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041e251
test edi, edi
mov eax, edi
jne 0x41e31d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x45eb10]
test ecx, ecx
je 0x41e3f6
jmp 0x41e2e6
ret 8
Function at 0x429fbc
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x429fc5
xor eax, eax
jmp 0x42a02e
cmp dword [esp + 8], 0
jne 0x429fd1
call fcn.0040e5be
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00431e0f
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x42a00c
push dword [esi + 0x10]
call fcn.00431b54
test eax, eax
pop ecx
jne 0x42a00c
mov esi, dword [esi + 0xc]
call fcn.0042fdb5
push esi
push dword [eax]
push 1
call fcn.0042ada1
push dword [esi + 0x10]
call fcn.00431b83
test eax, eax
pop ecx
je 0x42a02b
push dword [esi + 0x10]
call fcn.00431aa8
push eax
call fcn.00401d00
pop ecx
pop ecx
jmp 0x429ffa
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x42a037
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x42a041
call fcn.0040e5be
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00431f44
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x42a06e
mov esi, dword [esi + 0xc]
call fcn.0042fdb5
push esi
push dword [eax]
push 1
call fcn.0042ada1
pop esi
ret 8

Function at 0x42c4bf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45b7b0]
jne 0x42c4c9
repz ret
jmp fcn.00433ebc
Function at 0x43e494
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043390c
xor ebx, ebx
cmp dword [0x45f628], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x43e569
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x43e4d4
xor eax, eax
jmp 0x43e62d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44ed44
push edi
call esi
cmp eax, ebx
je 0x43e4cd
push eax
call fcn.004338a9
mov dword [esp], 0x44ed34
push edi
mov dword [0x45f628], eax
call esi
push eax
call fcn.004338a9
mov dword [esp], 0x44ed20
push edi
mov dword [0x45f62c], eax
call esi
push eax
call fcn.004338a9
mov dword [0x45f630], eax
lea eax, [ebp - 8]
push eax
call fcn.0042ff97
test eax, eax
pop ecx
pop ecx
je 0x43e537
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00432aff
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x43e569
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004338a9
cmp eax, ebx
pop ecx
mov dword [0x45f638], eax
je 0x43e569
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004338a9
pop ecx
mov dword [0x45f634], eax
mov eax, dword [0x45f634]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x43e5e2
cmp dword [0x45f638], esi
je 0x43e5e2
push eax
call fcn.00433915
pop ecx
call eax
cmp eax, ebx
je 0x43e5af
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x45f638]
call fcn.00433915
pop ecx
call eax
test eax, eax
je 0x43e5af
test byte [ebp - 0x18], 1
jne 0x43e5e2
lea eax, [ebp - 0xc]
push eax
call fcn.0042ffce
test eax, eax
pop ecx
je 0x43e5ca
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00432aff
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x43e5d9
or dword [ebp + 0x10], 0x200000
jmp 0x43e613
or dword [ebp + 0x10], 0x40000
jmp 0x43e613
mov eax, dword [0x45f62c]
cmp eax, esi
je 0x43e613
push eax
call fcn.00433915
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43e613
mov eax, dword [0x45f630]
cmp eax, esi
je 0x43e613
push dword [ebp - 4]
push eax
call fcn.00433915
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x45f628]
call fcn.00433915
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x441fe6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45b7b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00441f7b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042d280
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x442035
cmp dword [ebp - 0x1c], 5
jb 0x44204d
jmp 0x442049
cmp dword [ebp - 0x10], 1
jne 0x44204d
cmp dword [ebp - 0x1c], 4
ja 0x442049
jne 0x44204d
cmp dword [ebp - 0x18], 0
jbe 0x44204d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44f5e8
call fcn.00441e4f
test eax, eax
jge 0x44206e
mov byte [0x45cd04], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042c4bf
add ebp, 0x78
leave
ret
Function at 0x412470
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e8db
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.00463205
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4124f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004610f0
mov eax, dword [eax]
push 0x4a8210
push eax
call fcn.00453d24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00463490
test bl, bl
je 0x4124f2
push 0x4a8210
lea ecx, [esp + 0xc]
call fcn.00463820
push 0x4abd8c
lea ecx, [esp + 0xc]
call fcn.00463820
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 0x41252e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00463490
jmp 0x4125f9
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 0x4125b2
lea edx, [esp + 0x7c]
push 0x4abd88
push edx
call fcn.00453d24
add esp, 8
test eax, eax
je 0x4125b2
lea eax, [esp + 0x7c]
push 0x4abd84
push eax
call fcn.00453d24
add esp, 8
test eax, eax
je 0x4125b2
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 0x412542
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.00463490
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 0x412df0
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 0x412e52
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 0x412e60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e95b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b2338]
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 0x412f98
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x412ec6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00463490
xor eax, eax
jmp 0x41300f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004635cd
push esi
lea ecx, [esp + 0xc]
call fcn.0046385c
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4abdc4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x412fed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00412df0
test eax, eax
jne 0x412fed
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.00412df0
test eax, eax
jne 0x412fed
lea eax, [esp + 0x14]
push 0x4abda0
push eax
call fcn.00454d60
mov esi, eax
add esp, 8
test esi, esi
jne 0x412fcc
lea ecx, [esp + 0x14]
push 0x4abd9c
push ecx
call fcn.00454ce0
mov esi, eax
add esp, 8
test esi, esi
jne 0x412fcc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x412fcf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046357d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x412ede
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00463490
xor eax, eax
jmp 0x41300f
mov byte [esi], 0
push 0x4abd98
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.00463490
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 0x423a60
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 0x423ace
cmp si, 0x69
ja 0x423ace
add esi, 0xffd0
cmp si, 0x11
je 0x423a9e
push 0x11
call edi
test ax, ax
jge 0x423a9e
or esi, 0x2000
cmp si, 0x10
je 0x423ab3
push 0x10
call edi
test ax, ax
jge 0x423ab3
or esi, 0x4000
cmp si, 0x12
je 0x423ac8
push 0x12
call edi
test ax, ax
jge 0x423ac8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x423adb
mov esi, 0xbd
jmp 0x423a8f
cmp si, 0x6e
jne 0x423ae8
mov esi, 0xbe
jmp 0x423a8f
cmp si, 0x6f
jne 0x423a89
mov esi, 0xbf
jmp 0x423a8f

Function at 0x425530
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4c29a8]
xor edx, edx
cmp eax, edx
jne 0x425556
xor eax, eax
mov byte [eax + 0x4c28a8], al
inc eax
cmp eax, 0x100
jl 0x42553e
mov dword [0x4c29a8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4c28a8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4255e7
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 0x4255ba
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 0x425588
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x425660
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 0x4256b3
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 0x42569a
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