joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c20
Capabilities:
Get disk information

Disassembly:
mov eax, 0x120c
call fcn.004022a0
mov al, byte [0x40b410]
push ebx
push esi
push edi
mov byte [esp + 0x218], al
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x219]
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x121c]
push 0xff
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [esp + 0x1c]
push ebx
push ecx
or edi, 0xffffffff
call fcn.004021a0
add esp, 0xc
lea edx, [esp + 0x118]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push 0xff
push edx
push eax
push ecx
push 0
push 0
lea edx, [esp + 0x30]
push 0
push edx
mov byte [esp + 0x3b], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea eax, [esp + 0x118]
push 0x408b78
push eax
call fcn.00402120
add esp, 8
test eax, eax
jne 0x401d20
call fcn.00401910
mov esi, eax
test esi, esi
je 0x401cf1
lea ecx, [esp + 0xc]
lea edx, [esp + 0x218]
push ecx
push 0x1000
push edx
push 4
push ebx
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
test eax, eax
jne 0x401cdb
xor esi, esi
test esi, esi
je 0x401cf1
lea eax, [esp + 0x218]
push eax
call fcn.00401ba0
add esp, 4
mov edi, eax
cmp edi, 0xffffffff
je 0x401d12
test edi, edi
jne 0x401d20
push ebx
push 0x408a54
call fcn.00401d30
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x120c
ret
push ebx
push 0x408960
call fcn.00401d30
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x120c
ret

Function at 0x401e80
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40b45c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x401e9f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40b458], 1
mov byte [0x40b454], bl
jne 0x401ef9
mov ecx, dword [0x40cb08]
test ecx, ecx
je 0x401ee7
mov esi, dword [0x40cb04]
sub esi, 4
cmp esi, ecx
jb 0x401ee7
mov eax, dword [esi]
test eax, eax
je 0x401ee0
call eax
mov ecx, dword [0x40cb08]
sub esi, 4
cmp esi, ecx
jae 0x401ed2
push 0x40801c
push 0x408014
call fcn.00401f30
add esp, 8
push 0x408024
push 0x408020
call fcn.00401f30
add esp, 8
test ebx, ebx
jne 0x401f20
push ebp
mov dword [0x40b45c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4022d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407108
push 0x404608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40b42c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40b428], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40b424], ecx
shr eax, 0x10
mov dword [0x40b420], eax
call fcn.004044d0
test eax, eax
jne 0x40233a
push 0x1c
call fcn.00402420
add esp, 4
mov dword [ebp - 4], 0
call fcn.00403160
call fcn.004044c0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40bae4], eax
call fcn.00403e80
mov dword [0x40b464], eax
test eax, eax
je 0x40236d
mov eax, dword [0x40bae4]
test eax, eax
jne 0x402377
push 0xffffffffffffffff
call fcn.00401e40
add esp, 4
call fcn.00403bd0
call fcn.00403ae0
call fcn.00401e10
mov eax, dword [0x40b43c]
mov dword [0x40b440], eax
push eax
mov eax, dword [0x40b434]
push eax
mov ecx, dword [0x40b430]
push ecx
call fcn.004015c0
add esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.00401e40
jmp 0x4023d2
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402420
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40b46c], 2
je 0x40242e
call fcn.004046e0
mov eax, dword [esp + 4]
push eax
call fcn.00404720
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403e80
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40b588]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x403ec2
call edi
mov esi, eax
test esi, esi
je 0x403eac
mov eax, 1
jmp 0x403ebd
call ebp
mov ebx, eax
test ebx, ebx
je 0x403fcf
mov eax, 2
mov dword [0x40b588], eax
cmp eax, 1
jne 0x403f62
test esi, esi
jne 0x403edb
call edi
mov esi, eax
test esi, esi
je 0x403fcf
cmp word [esi], 0
mov eax, esi
je 0x403ef5
add eax, 2
cmp word [eax], 0
jne 0x403ee3
add eax, 2
cmp word [eax], 0
jne 0x403ee3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x403f54
push edi
call fcn.00404900
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403f54
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x403f46
push ebx
call fcn.00404e30
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x403fcf
test ebx, ebx
jne 0x403f73
call ebp
mov ebx, eax
test ebx, ebx
je 0x403fcf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x403f8b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403f7b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403f7b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00404900
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x403fad
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x404720
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x408fb8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x404744
add eax, 8
inc ebp
cmp eax, 0x409048
jb 0x404735
cmp ecx, dword [ebp*8 + 0x408fb8]
jne 0x4048eb
mov eax, dword [0x40b46c]
cmp eax, 1
je 0x4048ad
test eax, eax
jne 0x404770
cmp dword [0x408e04], 1
je 0x4048ad
cmp ecx, 0xfc
je 0x4048eb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4047ab
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4047f4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x407460
add ebx, ecx
push ebx
call fcn.004021a0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x407440
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x408fbc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00405ab0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40b9e0]
test eax, eax
je 0x4048be
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4048c8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x408fbc]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x404c10
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40bae0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x404dbd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x40b9e0]
lea edi, [ecx*4 + 0x40b9e0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x404dbd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x404c7e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x404c8f
push 2
push ebp
push eax
call fcn.00404b50
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x404dee
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x404d39
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x404cea
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x404cd7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x404cba
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404ddf
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x404d35
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x404cb6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x404dae
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404d82
cmp eax, 5
jne 0x404d6b
mov dword [0x40b418], eax
mov dword [0x40b414], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00404e80
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x404da2
cmp byte [ebp], 0x1a
jne 0x404da2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40b414], 0x1c
jmp 0x404dc7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40b414], 9
pop edi
pop esi
pop ebp
mov dword [0x40b418], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404d35
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404e1f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x404d39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404d39
Function at 0x4114e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40d015
lea edi, [esi - 0xc015]
push edi
or ebp, 0xffffffff
jmp 0x411502
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x411509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4114f8
mov eax, 1
add ebx, ebx
jne 0x41151b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x411510
jne 0x41152c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411510
xor ecx, ecx
sub eax, 3
jb 0x411540
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4115b2
mov ebp, eax
add ebx, ebx
jne 0x41154b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x411558
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41157c
inc ecx
add ebx, ebx
jne 0x411568
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41155d
jne 0x411579
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41155d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41159c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41158d
jmp 0x4114fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41159c
add edi, ecx
jmp 0x4114fe
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4115ba
cmp byte [edi], 5
jne 0x4115ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4115bf
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x41162e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14958]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x14a0c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4115ec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x14a10]
or eax, eax
je 0x411628
mov dword [ebx], eax
add ebx, 4
jmp 0x411609
call dword [esi + 0x14a20]
mov ebp, dword [esi + 0x14a14]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x411662
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x42d672
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042d3f9

Function at 0x42f906
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042f0e0

Function at 0x42f911
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042f31b
Function at 0x407110
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x489e9b
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.0047c7a3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407192
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047a1ca
mov eax, dword [eax]
push 0x4a71e0
push eax
call fcn.0046c214
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047ca2e
test bl, bl
je 0x407192
push 0x4a71e0
lea ecx, [esp + 0xc]
call fcn.0047ce0a
push 0x4aad44
lea ecx, [esp + 0xc]
call fcn.0047ce0a
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 0x4071ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047ca2e
jmp 0x407299
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 0x407252
lea edx, [esp + 0x7c]
push 0x4aad40
push edx
call fcn.0046c214
add esp, 8
test eax, eax
je 0x407252
lea eax, [esp + 0x7c]
push 0x4aad3c
push eax
call fcn.0046c214
add esp, 8
test eax, eax
je 0x407252
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 0x4071e2
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.0047ca2e
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 0x407a90
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 0x407af2
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 0x407b00
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x489f1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b6d64]
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 0x407c38
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x407b66
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047ca2e
xor eax, eax
jmp 0x407caf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047cbb7
push esi
lea ecx, [esp + 0xc]
call fcn.0047ce46
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x407c8d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00407a90
test eax, eax
jne 0x407c8d
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 SysReAllocStringLen
mov ecx, edi
call fcn.00407a90
test eax, eax
jne 0x407c8d
lea eax, [esp + 0x14]
push 0x4aad58
push eax
call fcn.0046d330
mov esi, eax
add esp, 8
test esi, esi
jne 0x407c6c
lea ecx, [esp + 0x14]
push 0x4aad54
push ecx
call fcn.0046d2b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x407c6c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x407c6f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047cb67
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x407b7e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047ca2e
xor eax, eax
jmp 0x407caf
mov byte [esi], 0
push 0x4aad50
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.0047ca2e
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 0x419070
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 0x4190de
cmp si, 0x69
ja 0x4190de
add esi, 0xffd0
cmp si, 0x11
je 0x4190ae
push 0x11
call edi
test ax, ax
jge 0x4190ae
or esi, 0x2000
cmp si, 0x10
je 0x4190c3
push 0x10
call edi
test ax, ax
jge 0x4190c3
or esi, 0x4000
cmp si, 0x12
je 0x4190d8
push 0x12
call edi
test ax, ax
jge 0x4190d8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4190eb
mov esi, 0xbd
jmp 0x41909f
cmp si, 0x6e
jne 0x4190f8
mov esi, 0xbe
jmp 0x41909f
cmp si, 0x6f
jne 0x419099
mov esi, 0xbf
jmp 0x41909f

Function at 0x41a840
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4c7c28]
xor edx, edx
cmp eax, edx
jne 0x41a866
xor eax, eax
mov byte [eax + 0x4c7b28], al
inc eax
cmp eax, 0x100
jl 0x41a84e
mov dword [0x4c7c28], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4c7b28
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41a8f7
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 0x41a8ca
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 0x41a898
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41a970
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 0x41a9c3
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 0x41a9aa
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