joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44eb7c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44ebb4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44eb95
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44eba4
or bl, 4
test esi, 0x20000000
je 0x44ebaf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x455278
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45528a
add esp, 0xfffffff0
call fcn.00403964
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a04c
mov eax, dword [0x59db3c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45561c
mov eax, dword [0x59db48]
mov dword [eax + 4], ebx
mov dword [eax], 0x455628
mov eax, ebx
call fcn.00455634
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4121f0]
call fcn.00403614
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4121f0]
call fcn.00403614
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4121f0]
call fcn.00403614
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4121f0]
call fcn.00403614
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4121f0]
call fcn.00403614
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x451a4c
push eax
push 0
push 0
mov eax, dword [0x59dcb0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41bb04]
call fcn.0041cf6c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41bb04]
call fcn.0041cf6c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41bb04]
call fcn.0041cf6c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00455a84
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45594c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45594c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45594c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4553c7
call fcn.004039bc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x455730
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4558db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4558bc
mov dl, 1
mov eax, dword [0x41260c]
call fcn.00403614
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043b8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4558ab
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044316c
test al, al
je 0x45589e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4558ec
lea eax, [ebp - 0x254]
call fcn.00409434
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45589e
xor eax, eax
push ebp
push 0x455897
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x455924
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x455880
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404628
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x455880
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404628
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45589e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4557a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004161e4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4558e2
lea eax, [ebp - 0x260]
call fcn.004043b8
ret

Function at 0x456224
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x59eb4c]
cmp byte [eax + 0xa5], 0
jne 0x456295
cmp dword [0x59eb64], 0
jne 0x456256
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4561e0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x59eb64], eax
cmp dword [0x59eb60], 0
jne 0x456271
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x59eb60], eax
cmp dword [0x59eb68], 0
jne 0x456295
push esp
push 0
push 0
push 0x456184
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x59eb68], eax
pop edx
ret
Function at 0x456928
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x59eb4c]
cmp dword [eax + 0x30], 0
je 0x4569d2
cmp dword [ebx + 0x94], 0
jne 0x4569cc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4568b8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4569cc
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x456992
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4569cc
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041456c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4569a1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x457530
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x457565
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004044a8
jmp 0x457572
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040440c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458714
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458755
mov eax, esi
call fcn.0043e6c0
test al, al
je 0x458755
mov eax, dword [ebx + 0x84]
call fcn.0043e3bc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458755
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043e3bc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x460c3c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x460dad
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x460d88
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.004045a0
lea eax, [ebp - 0x118]
mov edx, 0x460dc4
call fcn.00404680
mov eax, dword [ebp - 0x118]
call fcn.00404878
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x460cfa
lea eax, [ebp - 0x111]
call fcn.00408dc0
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.004044a8
jmp 0x460d01
mov eax, esi
call fcn.004043b8
cmp bl, 0x61
jae 0x460d22
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040cb48
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.0040440c
jmp 0x460d3c
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040cabc
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.0040440c
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x460dd0
call fcn.004094cc
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.0040440c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460d8f
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x463f18
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404868
mov eax, dword [ebp - 8]
call fcn.00404868
xor eax, eax
push ebp
push 0x463fd2
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebp - 4]
push esi
call sub.kernel32.dll_LoadLibraryW
test eax, eax
push esi
call sub.kernel32.dll_GetModuleHandleW
mov dword [0x59ec1c], eax
cmp dword [0x59ec1c], 0
je 0x463fac
mov eax, dword [ebp - 8]
call fcn.00404878
push eax
mov eax, dword [0x59ec1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x59ec20], eax
push 0x59ec24
push 0x40
push 0x15751a34
push 0x59ec20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_VirtualProtectEx
mov edx, 0x59ec20
mov eax, sub.kernel32.dll_GetCPInfo
mov ecx, 4
call fcn.00402d98
mov eax, dword [0x59ec1c]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463fd9
lea eax, [ebp - 8]
mov edx, 2
call fcn.004043dc
ret
Function at 0xe4588ee
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0x449
call fcn.0e48451f
cmp al, 0x11
jne 0xe458908
or dword [ebp - 4], 0xffffffff
jmp 0xe458918
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov eax, dword [eax*4 + 0xe4b5550]
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x485
call fcn.0e48451f
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0xe4cc440]
movzx eax, al
lea esi, [edx + ecx*4]
mov dword [ebp + 0x10], eax
cmp ebx, 1
jne 0xe458972
test eax, eax
jbe 0xe4589b4
mov ebx, dword [ebp + 0x18]
shl ebx, 2
push edi
call fcn.0e48451f
movzx eax, al
mov ecx, eax
shl ecx, 8
or eax, ecx
mov ecx, eax
shl ecx, 0x10
or ecx, eax
and ecx, dword [ebp - 4]
inc edi
xor dword [esi], ecx
add esi, ebx
dec dword [ebp + 0x10]
jne 0xe45894c
jmp 0xe4589b4
mov ecx, dword [ebp + 0x18]
sub ecx, ebx
test eax, eax
jbe 0xe4589b4
mov eax, ecx
shl eax, 2
mov dword [ebp + 0x18], eax
push edi
call fcn.0e48451f
movzx ecx, al
mov eax, ecx
shl eax, 8
or ecx, eax
mov eax, ecx
shl eax, 0x10
or eax, ecx
and eax, dword [ebp - 4]
inc edi
mov ecx, ebx
test ebx, ebx
jbe 0xe4589ac
xor dword [esi], eax
add esi, 4
dec ecx
jne 0xe4589a4
add esi, dword [ebp + 0x18]
dec dword [ebp + 0x10]
jne 0xe458983
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0xe48a504
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
push edi
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
sub eax, 3
je 0xe48a531
dec eax
dec eax
je 0xe48a52c
dec eax
dec eax
jne 0xe48a536
lea eax, [ebp - 0x60]
jmp 0xe48a539
lea eax, [ebp - 0x58]
jmp 0xe48a539
lea eax, [ebp - 0x50]
jmp 0xe48a539
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push eax
push 1
call fcn.0e48a35e
xor edi, edi
cmp eax, edi
jl 0xe48a614
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call dword [0xe44156c]
test al, al
jne 0xe48a571
mov eax, 0x80070003
jmp 0xe48a614
mov eax, dword [ebp - 0x20]
push ebx
mov ebx, dword [ebp - 4]
xor ecx, ecx
push esi
cmp cx, ax
je 0xe48a58b
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
jmp 0xe48a58e
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
push 0x4020
lea eax, [ebp - 8]
mov dword [ebp - 0x30], eax
push 7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x100100
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x2c], 0x40
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call dword [0xe4414d0]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call dword [0xe441568]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push edi
push dword [eax + 0x18]
call dword [fcn.0e441530]
cmp esi, edi
jl 0xe48a610
push 4
push 0x28
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [0xe441510]
push dword [ebp + 8]
mov esi, eax
call dword [0xe44145c]
mov eax, esi
pop esi
pop ebx
pop edi
leave
ret 0xc
Function at 0xe48b0ce
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call dword [0xe44156c]
test al, al
jne 0xe48b0fc
mov eax, 0x80070003
jmp 0xe48b1bf
mov eax, dword [ebp - 0x18]
push esi
xor ecx, ecx
push edi
mov edi, dword [ebp - 4]
cmp cx, ax
je 0xe48b116
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
jmp 0xe48b119
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [0xe441578]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
call dword [0xe441568]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call dword [fcn.0e441530]
cmp esi, ebx
jge 0xe48b16f
mov eax, esi
jmp 0xe48b1bd
mov eax, dword [ebp + 8]
sub eax, 4
je 0xe48b189
dec eax
dec eax
je 0xe48b184
dec eax
dec eax
jne 0xe48b18e
lea eax, [ebp - 0x68]
jmp 0xe48b191
lea eax, [ebp - 0x60]
jmp 0xe48b191
lea eax, [ebp - 0x58]
jmp 0xe48b191
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0e48a667
neg eax
sbb eax, eax
and eax, 0x10
push eax
call fcn.0e48a35e
cmp eax, ebx
jge 0xe48b1bd
cmp eax, 0x8007000d
jne 0xe48b1bd
cmp dword [ebp + 8], 4
jne 0xe48b1bd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0xe4966b0
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
push edi
add ecx, ecx
push ecx
push 0
push dword [eax + 0x18]
call dword [fcn.0e441548]
mov edi, eax
test edi, edi
jne 0xe4966ec
push 8
call dword [fcn.0e441090]
xor eax, eax
pop edi
pop esi
leave
ret 8
mov ax, word [esi]
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 8], ax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
call dword [fcn.0e441354]
test eax, eax
jne 0xe496726
xor esi, esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [fcn.0e441530]
mov eax, esi
jmp 0xe4966e6
push edi
lea eax, [ebp - 0x10]
push eax
call dword [fcn.0e441460]
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call dword [fcn.0e44149c]
movzx eax, word [ebp - 8]
mov dword [esi], eax
xor esi, esi
inc esi
jmp 0xe49670d

Function at 0xe4976e3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ax, word [0xe4c99f4]
mov word [ebp - 4], ax
jmp 0xe497768
movzx edx, word [ebp - 4]
mov eax, dword [0xe4ee83c]
shr edx, 3
shl edx, 3
add eax, edx
cmp byte [eax + 5], 0
jne 0xe497713
cmp byte [eax + 7], 0x80
je 0xe497760
xor eax, eax
xor ecx, ecx
mov ax, word [ebp - 4]
or eax, 7
lsl ecx, eax
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0xffff
jne 0xe497760
mov eax, dword [0xe4ee83c]
add eax, edx
movzx ecx, byte [eax + 7]
movzx edx, byte [eax + 4]
shl ecx, 8
or ecx, edx
movzx edx, word [eax + 2]
shl ecx, 0x10
or ecx, edx
cmp dword [ebp + 8], ecx
jne 0xe497760
movzx eax, byte [eax + 5]
movzx ecx, byte [ebp + 0xc]
xor eax, ecx
test eax, 0xfffffffe
je 0xe497777
add dword [ebp - 4], 8
mov ax, word [ebp - 4]
cmp ax, word [0xe4c99f0]
jb 0xe4976f6
xor eax, eax
leave
ret 8
mov eax, dword [ebp - 4]
or eax, 7
jmp 0xe497773
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401090
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40330c], eax
mov eax, dword [ebp + 4]
mov dword [0x403159], eax
xor eax, eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x4010bb
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x403159]
mov dword [ebp - 0x48], eax
mov eax, 0x402291
mov dword [ebp - 0x54], eax
mov ecx, 0x403206
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x403159]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403358], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403358]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x401179
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x40116b
mov esp, ebp
ret
Function at 0x4012f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0xaaaaaaab
mul ecx
push ebx
push esi
mov esi, edx
shr esi, 1
lea eax, [esi + esi*2]
cmp ecx, eax
seta dl
add eax, 2
cmp ecx, eax
movzx ebx, dl
sete byte [ebp - 2]
add ebx, esi
add ebx, ebx
add ebx, ebx
lea eax, [ebx + 3]
push edi
push eax
mov byte [ebp - 1], dl
mov dword [ebp - 0xc], ebx
call fcn.0040612c
mov edi, eax
add esp, 4
xor eax, eax
test esi, esi
je 0x4013b8
mov ecx, dword [ebp + 8]
add ecx, 2
lea edx, [edi + 2]
mov dword [ebp - 8], esi
mov eax, esi
lea ebx, [ebx]
movzx esi, byte [ecx - 2]
shr esi, 2
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 2], bl
movzx esi, byte [ecx - 1]
movzx ebx, byte [ecx - 2]
shr esi, 4
shl ebx, 4
or esi, ebx
and esi, 0x3f
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 1], bl
movzx ebx, byte [ecx - 1]
movzx esi, byte [ecx]
add ebx, ebx
shr esi, 6
add ebx, ebx
or esi, ebx
and esi, 0x3f
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], bl
movzx esi, byte [ecx]
and esi, 0x3f
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], bl
add ecx, 3
add edx, 4
dec dword [ebp - 8]
jne 0x401350
mov ebx, dword [ebp - 0xc]
cmp byte [ebp - 1], 0
je 0x40143f
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
movzx ecx, byte [eax + edx]
lea esi, [eax + edx]
shr ecx, 2
cmp byte [ebp - 2], 0
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4], dl
movzx edx, byte [esi]
je 0x401425
movzx ecx, byte [esi + 1]
shr ecx, 4
shl edx, 4
or ecx, edx
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4 + 1], cl
movzx edx, byte [esi + 1]
and edx, 0xf
movzx ecx, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4 + 2], cl
mov byte [edi + eax*4 + 3], 0x3d
mov byte [edi + ebx], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
and edx, 3
shl edx, 4
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4 + 1], cl
mov byte [edi + eax*4 + 2], 0x3d
mov byte [edi + eax*4 + 3], 0x3d
mov byte [edi + ebx], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401c60
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406cd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
xor esi, esi
push edi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x28], 0
push 0xc
mov eax, str.MAIL_FROM:__
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.00403470
push esi
lea eax, [ebx + 0x20]
push eax
or eax, 0xffffffff
lea edi, [ebp - 0x28]
call fcn.004033c0
push 3
mov eax, 0x4072f8
mov ecx, edi
call fcn.00403470
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x401cc8
mov eax, edi
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x4c0]
push esi
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x401e19
push 0x401
lea edi, [ebx + 0xb8]
push esi
push edi
call sub.MSVCR100.dll_memset
mov eax, dword [ebx + 0x4c0]
add esp, 0xc
push esi
push 0x400
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x401e19
mov byte [eax + ebx + 0xb8], 0
push 0xa
mov eax, str.RCPT_TO:__
lea ecx, [ebp - 0x28]
call fcn.00403470
push esi
lea ecx, [ebx + 0x58]
push ecx
or eax, 0xffffffff
lea edi, [ebp - 0x28]
call fcn.004033c0
push 3
mov eax, 0x4072f8
mov ecx, edi
call fcn.00403470
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x401d56
mov eax, edi
mov edx, dword [ebp - 0x18]
push esi
push edx
push eax
mov eax, dword [ebx + 0x4c0]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x401e0d
mov edi, ebx
call fcn.00401880
test al, al
je 0x401e0d
mov edi, 6
mov eax, str.DATA_r_n
lea esi, [ebp - 0x28]
call fcn.00403aa0
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x401d9e
mov eax, esi
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x401df3
mov edi, ebx
call fcn.00401880
test al, al
je 0x401df3
lea eax, [ebp - 0x28]
mov ecx, ebx
call fcn.00401e40
push ebx
lea eax, [ebp - 0x28]
call fcn.00401850
lea esi, [ebp - 0x28]
test al, al
je 0x401df6
call fcn.00402680
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0x28]
call fcn.00402680
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 0x10
jb 0x401e2c
mov eax, dword [ebp - 0x28]
push eax
jmp 0x401e23
cmp dword [ebp - 0x14], 0x10
jb 0x401e2c
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret