joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aab5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x413164]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x40aae6
xor eax, eax
jmp 0x40ac6f
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x416e60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40ab22
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0040ccee
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40abfd
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x40ac3b
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x40ab86
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40ab77
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x40ab57
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40abc6
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x40abcf
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x40ab48
jmp 0x40abd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x40ac6a
cmp dword [ebp - 0x6c], edi
je 0x40ac3b
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x40ac30
call fcn.0040ae9d
mov dword [eax], 9
call fcn.0040aea6
mov dword [eax], esi
jmp 0x40ac65
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ac25
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x40abd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x40abd1
push dword [ebp - 0x6c]
call fcn.0040aeaf
pop ecx
jmp 0x40ac65
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40ac53
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x40ac53
xor eax, eax
jmp 0x40ac6d
call fcn.0040ae9d
mov dword [eax], 0x1c
call fcn.0040aea6
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x40ac6d
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00406cd3
add ebp, 0x3a0
leave
ret
Function at 0x40b044
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x413164]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4136c8]
je 0x40b079
inc eax
cmp eax, 0x13
jb 0x40b06a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4136c8]
jne 0x40b19f
mov eax, dword [0x416638]
cmp eax, 1
je 0x40b177
cmp eax, edx
jne 0x40b0a9
cmp dword [0x4131a4], 1
je 0x40b177
cmp ecx, 0xfc
je 0x40b19f
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b0df
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040bb00
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00408070
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40b113
mov eax, edi
push eax
call fcn.00408070
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40fc3c
push edi
call fcn.0040bd00
add esp, 0x10
push edi
call fcn.00408070
push dword [esi + 0x4136cc]
mov ebx, eax
call fcn.00408070
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004078c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040bb00
push edi
push ebx
call fcn.0040bb10
push 0x40fc38
push ebx
call fcn.0040bb10
push dword [esi + 0x4136cc]
push ebx
call fcn.0040bb10
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040bbf8
add esp, 0x2c
jmp 0x40b19f
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4136cc]
push dword [esi]
call fcn.00408070
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00406cd3
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40b667
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x416a5c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x40b6b0
call ebp
mov esi, eax
cmp esi, ebx
je 0x40b696
mov dword [0x416a5c], 1
jmp 0x40b6b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40b6ab
push 2
pop eax
mov dword [0x416a5c], eax
jmp 0x40b6b0
mov eax, dword [0x416a5c]
cmp eax, 1
jne 0x40b70d
cmp esi, ebx
jne 0x40b6c8
call ebp
mov esi, eax
cmp esi, ebx
jne 0x40b6c8
xor eax, eax
jmp 0x40b7b4
cmp word [esi], bx
mov eax, esi
je 0x40b6dd
inc eax
inc eax
cmp word [eax], bx
jne 0x40b6cf
inc eax
inc eax
cmp word [eax], bx
jne 0x40b6cf
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.004079a9
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x40b700
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x40b7b4
push ebp
push esi
push edi
call fcn.00408100
add esp, 0xc
jmp 0x40b6f2
cmp eax, 2
je 0x40b716
cmp eax, ebx
jne 0x40b6c1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x40b6c1
cmp byte [ebp], bl
mov esi, ebp
je 0x40b74c
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x40b6c1
push esi
add edi, eax
call fcn.00408070
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x40b729
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.004079a9
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x40b7c5
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x40b7a6
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40b7bb
push edi
call fcn.00408070
push esi
lea edi, [edi + eax + 1]
call fcn.00407aad
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x40b76c
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00406f79
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40b6c1
Function at 0x40b7d1
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x416a60]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x40b811
call esi
test eax, eax
je 0x40b7f6
mov dword [0x416a60], 1
jmp 0x40b816
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40b80d
mov dword [0x416a60], 2
jmp 0x40b81f
xor eax, eax
jmp 0x40b86d
cmp eax, 1
jne 0x40b81a
call esi
jmp 0x40b86d
cmp eax, 2
jne 0x40b80d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x40b865
lea eax, [esi + esi]
push eax
call fcn.004079a9
mov ebp, eax
test ebp, ebp
pop ecx
je 0x40b865
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x40b869
push ebp
call fcn.00406f79
pop ecx
xor eax, eax
jmp 0x40b86b
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x40bbf8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x416a64], ebx
push esi
push edi
jne 0x40bc78
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40bcb3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x416a64], eax
je 0x40bcb3
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x416a68], eax
call esi
cmp dword [0x416804], 2
mov dword [0x416a6c], eax
jne 0x40bc78
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x416a74], eax
je 0x40bc78
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x416a70], eax
mov eax, dword [0x416a70]
test eax, eax
je 0x40bcbd
call eax
test eax, eax
je 0x40bca4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x416a74]
test eax, eax
je 0x40bca4
test byte [ebp - 8], 1
jne 0x40bcbd
cmp dword [0x416810], 4
jb 0x40bcb7
or byte [ebp + 0x12], 0x20
jmp 0x40bcdc
xor eax, eax
jmp 0x40bcec
or byte [ebp + 0x12], 4
jmp 0x40bcdc
mov eax, dword [0x416a68]
test eax, eax
je 0x40bcdc
call eax
mov ebx, eax
test ebx, ebx
je 0x40bcdc
mov eax, dword [0x416a6c]
test eax, eax
je 0x40bcdc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x416a64]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dc33
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004078c0
mov eax, dword [0x413164]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0040cb61
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x40dd66
push 2
push esi
push dword [ebp + 8]
call fcn.0040cb61
add esp, 0xc
cmp eax, ebx
je 0x40dd66
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40dd06
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00407fa0
push 0x8000
push dword [ebp + 8]
call fcn.0040e315
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x40dcbc
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0040aab5
add esp, 0xc
cmp eax, 0xffffffff
je 0x40dcdc
sub edi, eax
test edi, edi
jg 0x40dcb4
jmp 0x40dcf4
call fcn.0040aea6
cmp dword [eax], 5
jne 0x40dcf1
call fcn.0040ae9d
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0040e315
pop ecx
pop ecx
jmp 0x40dd4e
jge 0x40dd4e
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040cb61
push dword [ebp + 8]
call fcn.0040c78b
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x40dd4e
call fcn.0040ae9d
mov dword [eax], 0xd
call fcn.0040aea6
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0040cb61
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40dd68
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00406cd3
leave
ret
Function at 0x40dd74
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x40df48
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x416e60]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x40df48
test cl, 0x48
je 0x40dddf
cmp byte [eax + 5], 0xa
je 0x40dddf
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40de31
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x40de19
call fcn.0040ae9d
mov dword [eax], 9
call fcn.0040aea6
mov dword [eax], esi
jmp 0x40de29
cmp eax, 0x6d
je 0x40df48
push eax
call fcn.0040aeaf
pop ecx
or eax, 0xffffffff
jmp 0x40df4a
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x40df43
test eax, eax
je 0x40de58
cmp byte [ebx], 0xa
jne 0x40de58
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40de61
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x40df3d
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x40df2d
cmp al, 0xd
je 0x40de93
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x40df1f
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x40dead
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x40dea8
add dword [ebp + 0x10], 2
jmp 0x40df01
mov dword [ebp + 0x10], eax
jmp 0x40df1b
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ded5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40df1b
cmp dword [ebp - 0xc], 0
je 0x40df1b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40def6
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40df01
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40df1e
cmp ebx, dword [ebp + 0xc]
jne 0x40df06
cmp byte [ebp - 1], 0xa
jne 0x40df06
mov byte [ebx], 0xa
jmp 0x40df1e
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040cb61
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40df1f
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x40de77
jmp 0x40df3d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40df3d
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x40df4a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40df9e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004078c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40e039
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x416804]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40e039
cmp eax, 1
je 0x40e05a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40e039
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40e006
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40e035
xor eax, eax
inc eax
jmp 0x40e079
cmp edi, eax
jae 0x40e03d
xor eax, eax
jmp 0x40e079
cmp eax, esi
jae 0x40e044
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x416804]
jmp 0x40e05d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406a50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47177b
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.004624c4
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406ad2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045ff7a
mov eax, dword [eax]
push 0x48c200
push eax
call fcn.00452a84
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046274f
test bl, bl
je 0x406ad2
push 0x48c200
lea ecx, [esp + 0xc]
call fcn.00462b2b
push 0x48fd48
lea ecx, [esp + 0xc]
call fcn.00462b2b
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 0x406b0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046274f
jmp 0x406bd9
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 0x406b92
lea edx, [esp + 0x7c]
push 0x48fd44
push edx
call fcn.00452a84
add esp, 8
test eax, eax
je 0x406b92
lea eax, [esp + 0x7c]
push 0x48fd40
push eax
call fcn.00452a84
add esp, 8
test eax, eax
je 0x406b92
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 0x406b22
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.0046274f
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 0x407e50
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 0x407eb2
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 0x407ec0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4718db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49635c]
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 0x407ff8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x407f26
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046274f
xor eax, eax
jmp 0x40806f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004628d8
push esi
lea ecx, [esp + 0xc]
call fcn.00462b67
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 0x40804d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.00407e50
test eax, eax
jne 0x40804d
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 0x80000000
mov ecx, edi
call fcn.00407e50
test eax, eax
jne 0x40804d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.00453b60
mov esi, eax
add esp, 8
test esi, esi
jne 0x40802c
lea ecx, [esp + 0x14]
push 0x48fd58
push ecx
call fcn.00453ae0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40802c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40802f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00462888
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x407f3e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046274f
xor eax, eax
jmp 0x40806f
mov byte [esi], 0
push 0x48fd54
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.0046274f
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 0x418a10
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 0x418a7e
cmp si, 0x69
ja 0x418a7e
add esi, 0xffd0
cmp si, 0x11
je 0x418a4e
push 0x11
call edi
test ax, ax
jge 0x418a4e
or esi, 0x2000
cmp si, 0x10
je 0x418a63
push 0x10
call edi
test ax, ax
jge 0x418a63
or esi, 0x4000
cmp si, 0x12
je 0x418a78
push 0x12
call edi
test ax, ax
jge 0x418a78
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x418a8b
mov esi, 0xbd
jmp 0x418a3f
cmp si, 0x6e
jne 0x418a98
mov esi, 0xbe
jmp 0x418a3f
cmp si, 0x6f
jne 0x418a39
mov esi, 0xbf
jmp 0x418a3f

Function at 0x41a0f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a7188]
xor edx, edx
cmp eax, edx
jne 0x41a116
xor eax, eax
mov byte [eax + 0x4a7088], al
inc eax
cmp eax, 0x100
jl 0x41a0fe
mov dword [0x4a7188], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a7088
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41a1a7
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 0x41a17a
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 0x41a148
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41a220
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 0x41a273
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 0x41a25a
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