joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e87
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x470], 0
je 0x407eae
call fcn.00403f24
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x470], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp - 0x20]
xor eax, eax
cmp dword [edx + 0x5c], 0
setne al
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0x60], al
mov edx, dword [ebp - 0x20]
xor eax, eax
mov al, byte [edx + 0x60]
test eax, eax
jne 0x407f06
mov ecx, dword [ebp + 0x10]
and ecx, 1
test ecx, ecx
je 0x407f06
call dword [sym.imp.KERNEL32.dll_AllocConsole]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x5c], 0
je 0x407f19
push 1
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov dword [ebp - 8], 0xffffffff
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dl, byte [ecx + 0x60]
test edx, edx
je 0x407f6d
mov eax, dword [ebp + 0x10]
and eax, 1
test eax, eax
jne 0x407f6d
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp - 0x1c], 0
jge 0x407f54
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x18], 0
jge 0x407f61
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x1c]
shl ecx, 0x10
or ecx, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0x4084ec
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x451930
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x470]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x474], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.0040adbe
push 0x451930
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call fcn.004048cd
add esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x470]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x470], 0
jne 0x40801a
jmp 0x4080d4
mov ecx, dword [0x451948]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x470]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x5c], 0
je 0x40805f
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40805f
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x470]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x470]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x470]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x470], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x5c], 0
je 0x4080d4
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x5c]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4080d4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x5c]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x40a9c8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040a99d
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40aa02
xor al, al
jmp 0x40aa6d
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x40aa73
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040a99d
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40aaab
xor al, al
jmp 0x40ab32
mov edx, dword [ebp - 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00412e60
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x40273a
Capabilities:
Terminate process

Disassembly:
call section..text
push 0
push 0x406018
push 0x406014
call fcn.00402d64
push 0
push 0x406020
push 0x40601c
call fcn.00402d64
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403402
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x406a44]
test eax, eax
je 0x40341b
call eax
test eax, eax
jne 0x40341b
push 0xfffffffffffffffe
jmp 0x403435
push 1
push 0x406010
push 0x406008
call fcn.00402d64
add esp, 0xc
test eax, eax
je 0x40343b
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x406004
push section..data
call fcn.00402d64
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x403461
mov esi, 0x405bd1
mov cl, 0x20
jmp 0x40346a
cmp al, 0x20
ja 0x403474
inc esi
mov al, byte [esi]
test al, al
jne 0x403465
cmp al, 0x20
jbe 0x40348b
mov al, byte [esi]
cmp al, 0x22
jne 0x40347d
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x403476
jmp 0x40348b
cmp al, cl
ja 0x403491
inc esi
mov al, byte [esi]
test al, al
jne 0x403486
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x4034ba
movzx eax, word [ebp - 0x14]
jmp 0x4034bd
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0040273a
pop ecx
pop esi
leave
ret

Function at 0x4034f8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x406391], eax
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push 0x80000000
push 0xfffffc18
push 0xfffffc18
push 0xcf0000
push 0x4068a0
push 0x406908
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403542
xor eax, eax
jmp 0x403559
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
leave
ret
Function at 0x402bb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x41c
xor eax, eax
push ebx
mov dword [esp + 5], eax
push esi
xor ebx, ebx
mov dword [esp + 0xd], eax
push edi
mov byte [esp + 0xc], bl
mov byte [esp + 0x15], al
call fcn.00402d60
test eax, eax
lea edx, [esp + 0xc]
mov edi, str.Opened
jne 0x402be4
mov edi, str.Closed
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x18], bl
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x220], bl
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x104
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x225]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x1c]
push ecx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x220]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403c18
add esp, 8
cmp eax, ebx
je 0x402c7d
mov byte [eax], bl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11d]
mov byte [esp + 0x11c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x325]
mov byte [esp + 0x324], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x18]
push str.ASetup.exe
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x124]
push str._s_s
push eax
call fcn.00403bc6
add esp, 0x10
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
pop esi
cmp eax, 0xffffffff
pop ebx
je 0x402d21
lea edx, [esp]
lea eax, [esp + 0x318]
push edx
lea ecx, [esp + 0x114]
push eax
mov eax, dword [esp + 0x428]
lea edx, [esp + 0x21c]
push ecx
push edx
push str.RInstSvr.exe:__s_n_ipglogon.exe:__s_n_IPgAKit.exe:__s_n_admin_:__s_n
push eax
call fcn.00403bc6
add esp, 0x18
add esp, 0x41c
ret 4
lea ecx, [esp]
lea edx, [esp + 0x318]
push ecx
mov ecx, dword [esp + 0x424]
lea eax, [esp + 0x218]
push edx
push eax
push str.RInstSvr.exe:__s_n_ipglogon.exe:__n_IPgAKit.exe:__s_n_admin_:__s_n
push ecx
call fcn.00403bc6
add esp, 0x14
add esp, 0x41c
ret 4

Function at 0x402f00
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x402f2a
mov dword [esi], 0
mov eax, esi
pop esi
add esp, 0x190
ret
mov cx, word [esp + 4]
mov eax, esi
mov word [0x40fc9c], cx
mov dword [esi], 1
pop esi
add esp, 0x190
ret
Function at 0x402fc0
Capabilities:
Create udp socket

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jl 0x402fd2
call fcn.00403030
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
pop esi
test eax, eax
jge 0x402fec
xor eax, eax
add esp, 8
ret
push 0
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 0
lea edx, [esp + 0x18]
push 4
push edx
push 0x9800000c
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov eax, 1
add esp, 8
ret

Function at 0x4030e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push esi
mov esi, ecx
push eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x18]
mov word [esp + 6], ax
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
push 0x10
push edx
mov edx, dword [esi + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
pop esi
jle 0x403139
mov eax, 1
add esp, 0x10
ret 0x10
jne 0x403143
xor eax, eax
add esp, 0x10
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp eax, 0x2733
sete cl
mov eax, ecx
add esp, 0x10
ret 0x10

Function at 0x403160
Capabilities:
Set socket configuration

Disassembly:
mov al, byte [0x40fc9c]
push esi
cmp al, 2
push edi
mov esi, ecx
jae 0x403174
pop edi
xor eax, eax
pop esi
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x20], eax
call edi
cmp eax, 0xffffffff
jne 0x4031a5
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
push 4
push eax
push 0x1005
push 0xffff
push ecx
call edi
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop edi
mov eax, edx
pop esi
ret 4
Function at 0x40c1c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x468d3b
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.0045d7e7
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c242
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045b55d
mov eax, dword [eax]
push 0x5201e0
push eax
call fcn.0044e354
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045da72
test bl, bl
je 0x40c242
push 0x5201e0
lea ecx, [esp + 0xc]
call fcn.0045de02
push 0x523d6c
lea ecx, [esp + 0xc]
call fcn.0045de02
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 0x40c27e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045da72
jmp 0x40c349
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 0x40c302
lea edx, [esp + 0x7c]
push 0x523d68
push edx
call fcn.0044e354
add esp, 8
test eax, eax
je 0x40c302
lea eax, [esp + 0x7c]
push 0x523d64
push eax
call fcn.0044e354
add esp, 8
test eax, eax
je 0x40c302
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 0x40c292
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.0045da72
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 0x40cb40
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 0x40cba2
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 0x40cbb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x468dbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x52a280]
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 0x40cce8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40cc16
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045da72
xor eax, eax
jmp 0x40cd5f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045dbaf
push esi
lea ecx, [esp + 0xc]
call fcn.0045de3e
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 0x40cd3d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040cb40
test eax, eax
jne 0x40cd3d
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 accept
mov ecx, edi
call fcn.0040cb40
test eax, eax
jne 0x40cd3d
lea eax, [esp + 0x14]
push 0x523d80
push eax
call fcn.0044f390
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cd1c
lea ecx, [esp + 0x14]
push 0x523d7c
push ecx
call fcn.0044f310
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cd1c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40cd1f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045db5f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40cc2e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045da72
xor eax, eax
jmp 0x40cd5f
mov byte [esi], 0
push 0x523d78
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.0045da72
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 0x41e730
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 0x41e79e
cmp si, 0x69
ja 0x41e79e
add esi, 0xffd0
cmp si, 0x11
je 0x41e76e
push 0x11
call edi
test ax, ax
jge 0x41e76e
or esi, 0x2000
cmp si, 0x10
je 0x41e783
push 0x10
call edi
test ax, ax
jge 0x41e783
or esi, 0x4000
cmp si, 0x12
je 0x41e798
push 0x12
call edi
test ax, ax
jge 0x41e798
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41e7ab
mov esi, 0xbd
jmp 0x41e75f
cmp si, 0x6e
jne 0x41e7b8
mov esi, 0xbe
jmp 0x41e75f
cmp si, 0x6f
jne 0x41e759
mov esi, 0xbf
jmp 0x41e75f

Function at 0x41ff60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x53a910]
xor edx, edx
cmp eax, edx
jne 0x41ff86
xor eax, eax
mov byte [eax + 0x53a810], al
inc eax
cmp eax, 0x100
jl 0x41ff6e
mov dword [0x53a910], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x53a810
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x420017
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 0x41ffea
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 0x41ffb8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x420090
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 0x4200e3
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 0x4200ca
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