joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56bbe0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x100
push esi
mov esi, dword [esp + 0x108]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x56bc5a
cmp byte [esp + 0x10c], 0
je 0x56bc4b
push 1
push eax
call dword [sym.imp.ws2_32.dll_shutdown]
test eax, eax
jne 0x56bc4b
mov ecx, dword [esi]
push edi
mov edi, dword [sym.imp.ws2_32.dll_recv]
push eax
mov byte [esp + 0xc], al
push 0x100
lea eax, [esp + 0x10]
push eax
push ecx
call edi
cmp eax, 0xffffffff
je 0x56bc4a
lea esp, [esp]
test eax, eax
je 0x56bc4a
mov eax, dword [esi]
push 0
push 0x100
lea edx, [esp + 0x10]
push edx
push eax
call edi
cmp eax, 0xffffffff
jne 0x56bc30
pop edi
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ws2_32.dll_closesocket]
mov dword [esi], 0xffffffff
pop esi
add esp, 0x100
ret 8

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

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x304
push ebx
mov ebx, dword [esp + 0x30c]
push ebp
push edi
push 0
mov edi, ecx
mov ecx, dword [esp + 0x31c]
push eax
push ecx
mov ecx, ebx
call fcn.0056ac10
mov edx, dword [eax]
push edx
call dword [sym.imp.ws2_32.dll_send]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x56befd
push esi
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, ebx
mov esi, eax
call fcn.0056ac00
mov byte [esp + 0x14], 0
movzx ecx, word [eax + 2]
movzx ebx, byte [eax + 6]
mov dl, byte [eax + 7]
movzx ecx, cx
push ecx
movzx edx, dl
mov byte [esp + 0x17], bl
mov bl, byte [eax + 5]
movzx ecx, byte [esp + 0x17]
mov al, byte [eax + 4]
push edx
movzx edx, bl
push ecx
movzx eax, al
push edx
push eax
mov eax, esi
call fcn.0056a780
push eax
lea ecx, [esp + 0x2c]
push str.Error___s__sending_to__d._d._d._d:_d
push ecx
call fcn.00589571
add esp, 0x20
mov ecx, edi
call fcn.00571220
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push 2
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call edx
mov ecx, edi
call fcn.004d3040
cmp esi, 0x2733
pop esi
jne 0x56befb
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x304
ret 0xc
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0x304
ret 0xc
Function at 0x56f1c0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x618
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x62c]
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, edi
xor bl, bl
call fcn.0056af70
mov esi, dword [esp + 0x630]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0xc]
shr eax, 0x10
and ebp, 0x7ff
push eax
add ebp, 2
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call dword [sym.imp.ws2_32.dll_htons_1]
mov edx, dword [edi + 0x988]
push 0x10
mov word [esp + 0x1a], ax
lea eax, [esp + 0x18]
push eax
push 0
push ebp
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.ws2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x56f252
mov bl, 1
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x618
ret 8
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
add eax, 0xffffd8ca
cmp eax, 0x16
ja case.0x56f26d.10039
movzx eax, byte [eax + 0x56f344]
jmp dword [eax*4 + 0x56f31c]
push str.WSAENETDOWN
jmp 0x56f2aa
push str.WSAENOTSOCK
jmp 0x56f2aa
push str.WSAESHUTDOWN
jmp 0x56f2aa
push str.WSAECONNABORTED
jmp 0x56f2aa
push str.WSAECONNRESET
jmp 0x56f2aa
push str.WSAEADDRNOTAVAIL
jmp 0x56f2aa
push str.WSAEAFNOSUPPORT
jmp 0x56f2aa
push str.WSAETIMEDOUT
mov ecx, dword [esi]
mov edx, dword [esi + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xc]
mov dword [eax + 8], ecx
mov ecx, edi
mov dword [eax + 0xc], edx
call fcn.0056ea30
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x618
ret 8
push 1
lea eax, [esp + 0x14]
push eax
push esi
mov ecx, edi
call fcn.0056c350
test al, al
je case.0x56f26d.10039
mov ecx, edi
call fcn.00571220
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x38]
push ecx
mov ecx, eax
call edx
mov ecx, edi
call fcn.004d3040
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x618
ret 8
Function at 0x5715a0
Capabilities:
Resume thread

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x88]
mov bl, 1
mov ecx, edi
mov byte [esp + 0x13], bl
call fcn.00571260
mov ebp, eax
mov ecx, ebp
call fcn.00570f50
push ecx
mov ecx, ebp
fstp dword [esp]
call fcn.00570f30
mov ecx, edi
call fcn.005712c0
cmp dword [esi + 4], 0
je 0x571650
lea ecx, [esi + 0x1c]
mov dword [esp + 0x18], ecx
call fcn.005712e0
cmp byte [eax], 0
mov dword [esp + 0x14], eax
je 0x57161f
mov ebp, dword [sym.imp.kernel32.dll_ResumeThread]
mov ebx, dword [sym.imp.kernel32.dll_Sleep]
xor edi, edi
mov eax, dword [esi + 4]
push eax
add edi, 1
call ebp
test eax, eax
je 0x571634
cmp eax, 1
je 0x571634
push edi
call ebx
cmp edi, 0x32
jl 0x571600
mov byte [esp + 0x13], 0
mov ecx, dword [esp + 0x18]
call fcn.00408470
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x14]
mov byte [ecx], 0
mov ecx, dword [esp + 0x18]
call fcn.00408470
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0xc
ret

Function at 0x5731a0
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor ebp, ebp
jmp 0x5731b0
lea eax, [ebp + ebp*4]
cmp dword [ebx + eax*8 + 4], 0
lea esi, [ebx + eax*8]
jne 0x573217
test ebp, ebp
jne 0x573217
mov ecx, 0x5726b0
test ecx, ecx
je 0x573217
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.005712e0
mov ecx, edi
mov byte [eax], 0
call fcn.00408470
lea edi, [esi + 0x1c]
mov ecx, edi
call fcn.005712e0
mov ecx, edi
mov byte [eax], 1
call fcn.00408470
lea edx, [esi + 8]
push edx
push 4
push ebx
push 0x5726b0
push ebp
push ebp
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
mov dword [esi + 4], eax
je 0x573217
push 1
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
add ebp, 1
cmp ebp, 1
jl 0x5731b0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x58abbb
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x58abe8
call fcn.00590881
mov dword [eax], esi
call fcn.0059086e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0058ea7f
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x58ac06
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.00590894
pop ecx
jmp 0x58abe3
test byte [esp + 0xc], 0x80
je 0x58ac12
and eax, 0xfffffffe
jmp 0x58ac15
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x58abf7
xor eax, eax
pop esi
ret
Function at 0x58b78b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x58b7c8
cmp dword [ebp + 0x14], edi
je 0x58b7c8
cmp ecx, edi
jne 0x58b7cf
call fcn.0059086e
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0058ea7f
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x58b7e3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x58b804
cmp ebx, 0xffffffff
je 0x58b7f3
push ebx
push edi
push ecx
call fcn.0058ac30
add esp, 0xc
cmp esi, edi
je 0x58b7b0
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x58b7b0
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x58b820
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x58b827
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x58b918
test word [esi + 0xc], 0x10c
je 0x58b87b
mov eax, dword [esi + 4]
test eax, eax
je 0x58b87b
jl 0x58b979
cmp ebx, eax
mov edi, ebx
jb 0x58b84c
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x58b920
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00589471
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x58b910
cmp ebx, dword [ebp - 0xc]
jb 0x58b8e8
cmp dword [ebp - 0xc], 0
je 0x58b8a5
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x58b89a
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x58b8a1
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x58b8b0
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x58b8b0
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x58b94c
push eax
push dword [ebp - 8]
push esi
call fcn.00589608
pop ecx
push eax
call fcn.0058a41a
add esp, 0xc
test eax, eax
je 0x58b98b
cmp eax, 0xffffffff
je 0x58b979
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x58b910
push esi
call fcn.00597e8d
cmp eax, 0xffffffff
pop ecx
je 0x58b97d
cmp dword [ebp - 4], 0
je 0x58b94c
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x58b82f
mov eax, dword [ebp + 0x14]
jmp 0x58b7ca
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x58b937
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0058ac30
add esp, 0xc
call fcn.0059086e
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x58b7c0
cmp dword [ebp + 0xc], 0xffffffff
je 0x58b962
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0058ac30
add esp, 0xc
call fcn.0059086e
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x58b7c0
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x58b7ca
or dword [esi + 0xc], 0x10
jmp 0x58b97d
Function at 0x58bb79
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x58bba6
call fcn.00590881
mov dword [eax], esi
call fcn.0059086e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0058ea7f
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x58bb82
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x58bbd5
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.00590894
pop ecx
call fcn.0059086e
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x58bbfc
test al, 1
je 0x58bbfc
test byte [esp + 0xc], 2
je 0x58bbfc
call fcn.00590881
mov dword [eax], 5
call fcn.0059086e
mov dword [eax], 0xd
jmp 0x58bbcc
xor eax, eax
pop esi
ret

Function at 0x58f8bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x677b04]
jne 0x58f8c5
repz ret
jmp fcn.005a3699

Function at 0x594ff5
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x678370]
je 0x595010
inc edi
cmp edi, 0x17
jb 0x595001
cmp edi, 0x17
jae 0x595190
push ebp
push 3
call fcn.005a58ac
cmp eax, 1
pop ecx
je 0x59515c
push 3
call fcn.005a58ac
test eax, eax
pop ecx
jne 0x595044
cmp dword [0x677b00], 1
je 0x59515c
cmp ebx, 0xfc
je 0x59518f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0xa4f308
push ebp
call fcn.0059050a
add esp, 0xc
test eax, eax
je 0x59507a
push esi
push esi
push esi
push esi
push esi
call fcn.0058e983
add esp, 0x14
push 0x104
mov esi, 0xa4f321
push esi
push 0
mov byte [0xa4f425], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5950be
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0059050a
add esp, 0xc
test eax, eax
je 0x5950be
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0058e983
add esp, 0x14
push esi
call fcn.00591290
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x595103
push esi
call fcn.00591290
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0xa4f61c
push 0x5c02dc
sub ecx, eax
push ecx
push eax
call fcn.0058f5b9
add esp, 0x14
test eax, eax
je 0x595103
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0058e983
add esp, 0x14
jmp 0x595105
xor esi, esi
push 0x64f2c0
push ebx
push ebp
call fcn.0059c35a
add esp, 0xc
test eax, eax
je 0x595125
push esi
push esi
push esi
push esi
push esi
call fcn.0058e983
add esp, 0x14
push dword [edi*8 + 0x678374]
push ebx
push ebp
call fcn.0059c35a
add esp, 0xc
test eax, eax
je 0x595147
push esi
push esi
push esi
push esi
push esi
call fcn.0058e983
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.005a56ef
add esp, 0xc
jmp 0x59518f
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x59518f
cmp ebp, 0xffffffff
je 0x59518f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x678374]
push dword [esi]
call fcn.00591290
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.kernel32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x5a56ef
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.005937a4
xor ebx, ebx
cmp dword [0xa4fde0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x5a57c5
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5a58a5
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x5a58a5
push eax
call fcn.00593736
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0xa4fde0], eax
call esi
push eax
call fcn.00593736
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0xa4fde4], eax
call esi
push eax
call fcn.00593736
mov dword [0xa4fde8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0058d6fc
test eax, eax
pop ecx
pop ecx
je 0x5a5793
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0058e983
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x5a57c5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00593736
cmp eax, ebx
pop ecx
mov dword [0xa4fdf0], eax
je 0x5a57c5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00593736
pop ecx
mov dword [0xa4fdec], eax
mov eax, dword [0xa4fdec]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5a584a
cmp dword [0xa4fdf0], ecx
je 0x5a584a
push eax
call fcn.005937ad
push dword [0xa4fdf0]
mov esi, eax
call fcn.005937ad
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5a584a
cmp edi, ebx
je 0x5a584a
call esi
cmp eax, ebx
je 0x5a5817
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5a5817
test byte [ebp - 0x18], 1
jne 0x5a584a
lea eax, [ebp - 0x10]
push eax
call fcn.0058d733
test eax, eax
pop ecx
je 0x5a5832
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0058e983
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5a5841
or dword [ebp + 0x10], 0x200000
jmp 0x5a5885
or dword [ebp + 0x10], 0x40000
jmp 0x5a5885
mov eax, dword [0xa4fde4]
cmp eax, dword [ebp - 8]
je 0x5a5885
push eax
call fcn.005937ad
cmp eax, ebx
pop ecx
je 0x5a5885
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5a5885
mov eax, dword [0xa4fde8]
cmp eax, dword [ebp - 8]
je 0x5a5885
push eax
call fcn.005937ad
cmp eax, ebx
pop ecx
je 0x5a5885
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0xa4fde0]
call fcn.005937ad
cmp eax, ebx
pop ecx
je 0x5a58a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5a58a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x446c2c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x446c2c
lcall 0x5de5, 0x8b10c483
jmp loc.008cf1c0

Function at 0x8cf29b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
shr ecx, 2
xor dword [edx], eax
add edx, 4
dec ecx
jne 0x8cf2b3
pop ebp
ret 0xc

Function at 0x8cf362
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebp
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x8cf393
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8cf371
add dl, dl
jne 0x8cf3a6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8cf416
xor eax, eax
add dl, dl
jne 0x8cf3bb
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8cf4eb
add dl, dl
jne 0x8cf3ce
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8cf3dd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8cf3ec
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8cf3fb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8cf409
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8cf386
mov eax, 1
add dl, dl
jne 0x8cf428
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8cf437
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8cf41b
sub eax, ebx
mov ebx, 1
jne 0x8cf47e
mov ecx, 1
add dl, dl
jne 0x8cf45c
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8cf46b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8cf44f
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8cf386
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8cf499
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8cf4a8
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8cf48c
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8cf386
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8cf513
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 0x8cf386
pop ebp
sub edi, dword [ebp + 8]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x9dccd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9dcd1c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9dcce2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9dcd80
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9dcdd2
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9dcdd8
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x9f52c5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f4f85

Function at 0x9fa0bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f9f3e

Function at 0x9ff670
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x9ff69d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x9ff69d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0xd45bec
Capabilities:
Encode data using xor

Disassembly:
jmp 0xd45bf6
pushal
call 0xd45bfc
pop ebp
sub ebp, 0x10
sub ebp, 0x945bec
jmp 0xd45c12
mov eax, 0x945bec
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d1
mov edx, 0x6798b54d
xor byte [eax], dl
inc eax
dec ecx
jne 0xd45c29
jmp 0xd45c3c
mov byte [eax + 0x4d71c4c6], 0x4d
dec ebp
int3
Function at 0x41b58b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b22d

Function at 0x41b596
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b3bc

Function at 0x41b990
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409dd0
mov eax, dword [0x467f00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041852c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b9d2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41bb2e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425e70
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x469ce8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041cb60
mov ecx, dword [esi*4 + 0x469ce8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41bb27
cmp eax, dword [edi + ecx + 0x24]
jne 0x41bb27
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bb27
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cb60
add esp, 0x14
test edx, edx
jl 0x41bb27
jg 0x41ba9d
test eax, eax
jb 0x41bb27
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41bb27
jl 0x41bab7
cmp dword [ebp - 0x1008], eax
ja 0x41bb27
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41bad5
test ebx, ebx
je 0x41bb0e
cmp ecx, edi
jae 0x41bb0e
mov al, byte [ecx]
cmp al, 0xd
jne 0x41baef
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41bafb
cmp byte [ecx + 1], 0xa
jne 0x41bafb
inc ecx
jmp 0x41bafb
movzx eax, al
movsx eax, byte [eax + 0x4681d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41bad5
cmp edx, ebx
jne 0x41bad5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41bb2c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004092b4
leave
ret