joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, dword [esp + 0x30]
push edi
xor edi, edi
mov dword [esp + 0xc], 0
test esi, esi
je 0x407e76
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x20], esi
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push edi
push ecx
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test esi, esi
jne 0x407ea5
test eax, eax
jne 0x407efa
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x10
test eax, eax
jne 0x407ec2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x407ec2
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x10
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x407edb
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x10
lea ecx, [esp + 0xc]
push 1
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x407efa
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x10
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x18
ret 0x10

Function at 0x407f10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, dword [esp + 0x30]
push edi
xor edi, edi
mov dword [esp + 0xc], 0
test esi, esi
je 0x407f46
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x20], esi
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push edi
push ecx
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
jne 0x407f75
test eax, eax
jne 0x407fd1
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x10
test eax, eax
jne 0x407f92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x407f92
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x10
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x407fab
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x10
lea ecx, [esp + 0xc]
push 1
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x407fca
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x18
ret 0x10

Function at 0x40a1d0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
lea eax, [esp]
push str._n_ULOG__t
push 0x400
push eax
call fcn.004206db
mov edx, dword [esp + 0x410]
lea ecx, [esp + 0x414]
push ecx
mov ecx, 0x400
push edx
sub ecx, eax
lea edx, [esp + eax + 0x14]
push ecx
push edx
call fcn.00420b7f
add esp, 0x1c
lea eax, [esp + 1]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x400
ret
Function at 0x40a440
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x400
push ebx
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov esi, dword [esp + 0x410]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [esp + 0xc]
mov ebx, dword [esp + 0x414]
push ecx
push 0x435d58
push ebx
push esi
call fcn.004206db
add esp, 0x10
lea edx, [esp + 0xc]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0xc]
push 0x400
push edx
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
test eax, eax
je 0x40a4c7
lea eax, [esp + 0xc]
push eax
push 0x435d5c
push ebx
push esi
call fcn.004206db
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x400
ret 8

Function at 0x40af20
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
push str.terminate_Process_ID:__ld
mov esi, eax
call fcn.0040a1d0
add esp, 8
test esi, esi
je 0x40af74
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40af68
push 0xffffffffffffffff
call fcn.0040a2c0
push eax
push edi
push str.TerminateProcess__ld___failed:__s
call fcn.0040a1d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4
push 0xffffffffffffffff
call fcn.0040a2c0
push eax
push edi
push str.OpenProcess__ld___failed:__s
call fcn.0040a1d0
add esp, 0xc
pop edi
pop esi
ret 4
Function at 0x40ccd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42d5ba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 8], al
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x38], ebx
call fcn.0040cde0
test al, al
jne 0x40cd67
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x40cd52
mov al, byte [ecx - 1]
cmp al, bl
je 0x40cd48
cmp al, 0xff
je 0x40cd48
dec al
pop esi
mov byte [ecx - 1], al
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
dec ecx
push ecx
call fcn.0041fa53
add esp, 4
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
call fcn.00412090
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
push ecx
mov ecx, esi
call fcn.0040db70
mov ecx, eax
call fcn.00412470
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.004123f0
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x40cdbe
mov al, byte [ecx - 1]
cmp al, bl
je 0x40cdb4
cmp al, 0xff
je 0x40cdb4
dec al
mov byte [ecx - 1], al
jmp 0x40cdbe
dec ecx
push ecx
call fcn.0041fa53
add esp, 4
mov ecx, dword [esp + 0x28]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x40d950
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42d67e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x34]
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], ebx
mov edx, dword [ecx]
mov dword [esp + 0xc], edx
mov edx, dword [0x42f350]
mov eax, dword [ecx + 4]
push edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [ecx + 8]
push ebx
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00408b50
mov eax, dword [esi + 0x5c]
mov ecx, dword [esp + 0x44]
add esi, 0x30
cmp eax, ebx
mov dword [esp + 0x28], ecx
je 0x40da45
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp eax, edx
je 0x40da45
lea ecx, [eax + 0x20]
cmp ecx, edx
jne 0x40da05
mov dword [esp + 0x40], eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov byte [esp + 0x34], 2
je 0x40d9f8
lea edx, [esp + 0xc]
mov ecx, eax
push edx
call fcn.00411320
mov ecx, esi
mov byte [esp + 0x34], bl
call fcn.0040fb40
jmp 0x40da70
mov edi, eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
cmp edi, ebx
mov byte [esp + 0x34], 3
je 0x40da70
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov edx, dword [esp + 0x10]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
mov dword [eax + 8], ecx
push edx
lea ecx, [edi + 0xc]
call fcn.004092c0
mov eax, dword [esp + 0x28]
mov dword [edi + 0x1c], eax
jmp 0x40da70
mov ecx, esi
call fcn.0040fb40
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
lea edx, [ecx + 0x20]
mov dword [esi + 0x1c], edx
cmp ecx, ebx
mov byte [esp + 0x34], 1
je 0x40da70
lea eax, [esp + 0xc]
push eax
call fcn.00411320
mov edx, dword [esi + 0x2c]
mov eax, dword [esp + 0x1c]
inc edx
cmp eax, ebx
mov dword [esi + 0x2c], edx
je 0x40da9c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40da93
cmp al, 0xff
je 0x40da93
dec al
mov byte [ecx], al
jmp 0x40da9c
push ecx
call fcn.0041fa53
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
Function at 0x41c490
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42df13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
call fcn.004200b2
mov dword [esi + 0x34], eax
mov eax, dword [0x43bdbc]
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
jae 0x41c4c6
inc ecx
mov dword [eax + 4], ecx
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], 0
mov eax, dword [esi + 0x20]
push 0
push 0
push 0
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x1c], 0
mov dword [ecx], 0
mov ecx, esi
call fcn.0041c5a0
mov cl, byte [esp + 0x18]
xor eax, eax
test cl, 1
mov dword [esi], 0x42f3cc
jne 0x41c533
mov eax, 4
test cl, 2
jne 0x41c53a
or al, 2
mov edx, dword [esi + 0xc]
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0x20
mov dword [esi + 0x44], eax
mov dword [edx], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov ecx, dword [esi + 0x2c]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov eax, esi
pop esi
mov dword [ecx], 0
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x458a6e
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.0046d3a4
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0046d3a4
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
push 0x10
call fcn.0046d3a4
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x20], esp
mov eax, 0x3c
call fcn.0046d3b0
cmp dword [ebp - 0x20], esp
je 0x458b2b
push 6
call fcn.0046d3aa
add esp, 4
mov dword [ebp - 4], eax
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x458b44
push ebx
call fcn.0046d39e
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xc]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 0x3d
call fcn.0046d3b0
cmp dword [ebp - 0x20], esp
je 0x458b73
push 6
call fcn.0046d3aa
add esp, 4
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x52729c
mov eax, 0x3e
call fcn.0046d3b0
cmp dword [ebp - 0x20], esp
je 0x458b9d
push 6
call fcn.0046d3aa
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 2
mov dword [ebp - 0x20], esp
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push 0x1c
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
mov eax, 0x3f
call fcn.0046d3b0
cmp dword [ebp - 0x20], esp
je 0x458c31
push 6
call fcn.0046d3aa
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
mov eax, 0x40
call fcn.0046d3b0
cmp dword [ebp - 0x20], esp
je 0x458c56
push 6
call fcn.0046d3aa
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x458c5e
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x458c6f
push ebx
call fcn.0046d39e
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0046d39e
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.0046d39e
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.0046d39e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x45ee06
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.0046d3a4
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0046d3a4
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
push 0x10
call fcn.0046d3a4
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x20], esp
mov eax, 0x43
call fcn.0046d3b0
cmp dword [ebp - 0x20], esp
je 0x45eec3
push 6
call fcn.0046d3aa
add esp, 4
mov dword [ebp - 4], eax
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x45eedc
push ebx
call fcn.0046d39e
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xc]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 0x44
call fcn.0046d3b0
cmp dword [ebp - 0x20], esp
je 0x45ef0b
push 6
call fcn.0046d3aa
add esp, 4
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x52729c
mov eax, 0x45
call fcn.0046d3b0
cmp dword [ebp - 0x20], esp
je 0x45ef35
push 6
call fcn.0046d3aa
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 2
mov dword [ebp - 0x20], esp
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push 0x1c
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
mov eax, 0x46
call fcn.0046d3b0
cmp dword [ebp - 0x20], esp
je 0x45efc9
push 6
call fcn.0046d3aa
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
mov eax, 0x47
call fcn.0046d3b0
cmp dword [ebp - 0x20], esp
je 0x45efee
push 6
call fcn.0046d3aa
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x45eff6
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x45f007
push ebx
call fcn.0046d39e
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0046d39e
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.0046d39e
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.0046d39e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x47b0a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x51c2cb
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.005106ba
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x47b122
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0050dce5
mov eax, dword [eax]
push 0x5a12a4
push eax
call fcn.004ec584
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00510945
test bl, bl
je 0x47b122
push 0x5a12a4
lea ecx, [esp + 0xc]
call fcn.00510cd5
push 0x5a4e2c
lea ecx, [esp + 0xc]
call fcn.00510cd5
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 0x47b15e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00510945
jmp 0x47b229
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 0x47b1e2
lea edx, [esp + 0x7c]
push 0x5a4e28
push edx
call fcn.004ec584
add esp, 8
test eax, eax
je 0x47b1e2
lea eax, [esp + 0x7c]
push 0x5a4e24
push eax
call fcn.004ec584
add esp, 8
test eax, eax
je 0x47b1e2
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 0x47b172
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.00510945
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 0x47ba20
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 0x47ba82
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 0x47ba90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x51c34b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5ba5a0]
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 0x47bbc8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x47baf6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00510945
xor eax, eax
jmp 0x47bc3f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00510a82
push esi
lea ecx, [esp + 0xc]
call fcn.00510d11
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x5a4e64
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x47bc1d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0047ba20
test eax, eax
jne 0x47bc1d
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.0047ba20
test eax, eax
jne 0x47bc1d
lea eax, [esp + 0x14]
push 0x5a4e40
push eax
call fcn.004ed720
mov esi, eax
add esp, 8
test esi, esi
jne 0x47bbfc
lea ecx, [esp + 0x14]
push 0x5a4e3c
push ecx
call fcn.004ed6a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x47bbfc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x47bbff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00510a32
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x47bb0e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00510945
xor eax, eax
jmp 0x47bc3f
mov byte [esi], 0
push 0x5a4e38
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.00510945
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 0x4917d0
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 0x49183e
cmp si, 0x69
ja 0x49183e
add esi, 0xffd0
cmp si, 0x11
je 0x49180e
push 0x11
call edi
test ax, ax
jge 0x49180e
or esi, 0x2000
cmp si, 0x10
je 0x491823
push 0x10
call edi
test ax, ax
jge 0x491823
or esi, 0x4000
cmp si, 0x12
je 0x491838
push 0x12
call edi
test ax, ax
jge 0x491838
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x49184b
mov esi, 0xbd
jmp 0x4917ff
cmp si, 0x6e
jne 0x491858
mov esi, 0xbe
jmp 0x4917ff
cmp si, 0x6f
jne 0x4917f9
mov esi, 0xbf
jmp 0x4917ff

Function at 0x493090
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5d56e8]
xor edx, edx
cmp eax, edx
jne 0x4930b6
xor eax, eax
mov byte [eax + 0x5d55e8], al
inc eax
cmp eax, 0x100
jl 0x49309e
mov dword [0x5d56e8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5d55e8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x493147
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 0x49311a
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 0x4930e8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x493150
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 0x4931a3
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 0x49318a
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