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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c834b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x20], ebx
xor esi, esi
mov dword [ebp - 4], esi
lea edi, [ebx + 4]
push edi
push esi
push esi
push esi
push esi
push str.FopdMonPort
call sub.FLTLIB.DLL_FilterConnectCommunicationPort
test eax, eax
jne 0x4a8ee7
push 4
push esi
push esi
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [ebx + 8], eax
cmp eax, esi
je 0x4a8ee7
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x18], esi
mov edi, edi
cmp dword [ebp - 0x18], 2
jae 0x4a8ecb
push 0x2c
call fcn.004aa724
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4a8e4a
mov ecx, eax
call fcn.004a8240
mov esi, eax
jmp 0x4a8e4c
xor esi, esi
mov byte [ebp - 4], 0
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp + 8]
mov dword [esi + 0x28], ecx
mov eax, dword [esi]
lea edx, [eax + 0x220]
push edx
push 0x220
push eax
mov eax, dword [edi]
push eax
call sub.FLTLIB.DLL_FilterGetMessage
cmp eax, 0x800703e5
jne 0x4a8eba
mov ecx, dword [edi]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
mov ecx, esi
call fcn.004a8690
push 0
push 0
push esi
push 0x4a8c80
push 0
push 0
call fcn.004a9f99
add esp, 0x18
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebx + 0xc]
call fcn.004a8440
mov byte [ebp - 0x11], 1
inc dword [ebp - 0x18]
jmp 0x4a8e20
push 1
mov ecx, esi
call fcn.004a8420
inc dword [ebp - 0x18]
jmp 0x4a8e20
cmp byte [ebp - 0x11], 0
je 0x4a8ee7
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
jmp 0x4a8f00
mov ecx, ebx
call fcn.004a8560
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a8f20
Capabilities:
Get common file path
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4c8391
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x34]
mov ecx, edi
call fcn.00405840
mov dword [esp + 0x2c], ebx
push 0x800
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0x400
mov byte [esp + 0x24], 1
call fcn.004aace3
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4a8f9e
push 0x800
push ebx
push esi
call fcn.004ac3b0
add esp, 0xc
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], 1
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
xor eax, eax
push esi
mov word [esi + 6], ax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov cl, byte [esp + 0x10]
movzx edx, byte [esp + 0x11]
movzx eax, cl
add eax, edx
movzx edx, byte [esp + 0x12]
add eax, edx
movzx edx, byte [esp + 0x13]
add eax, edx
movzx edx, byte [esp + 0x13]
push eax
mov byte [esp + 0x14], dl
movzx edx, byte [esp + 0x16]
mov byte [esp + 0x17], cl
mov cl, byte [esp + 0x15]
push 0x4dd8bc
push edi
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], cl
call fcn.0041bb30
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
push eax
push 0x4dd8bc
push ecx
call fcn.0041bb30
mov byte [esp + 0x44], bl
push esi
call fcn.004aabc6
add esp, 0x1c
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x4a974c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ff0f4]
jne 0x4a9756
repz ret
jmp fcn.004aeda4
Function at 0x4b9acd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004af5ff
and dword [ebp - 4], 0
cmp dword [0x512a10], 0
mov ebx, eax
jne 0x4b9b7e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4b9c2f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4b9c2f
push eax
call fcn.004af58d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x512a10], eax
call esi
push eax
call fcn.004af58d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x512a14], eax
call esi
push eax
call fcn.004af58d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x512a18], eax
call esi
push eax
call fcn.004af58d
pop ecx
mov dword [0x512a20], eax
test eax, eax
je 0x4b9b7e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004af58d
pop ecx
mov dword [0x512a1c], eax
mov eax, dword [0x512a1c]
cmp eax, ebx
je 0x4b9bd6
cmp dword [0x512a20], ebx
je 0x4b9bd6
push eax
call fcn.004af608
push dword [0x512a20]
mov esi, eax
call fcn.004af608
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4b9bd6
test edi, edi
je 0x4b9bd6
call esi
test eax, eax
je 0x4b9bcd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b9bcd
test byte [ebp - 0xc], 1
jne 0x4b9bd6
or dword [ebp + 0x10], 0x200000
jmp 0x4b9c0f
mov eax, dword [0x512a14]
cmp eax, ebx
je 0x4b9c0f
push eax
call fcn.004af608
pop ecx
test eax, eax
je 0x4b9c0f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4b9c0f
mov eax, dword [0x512a18]
cmp eax, ebx
je 0x4b9c0f
push eax
call fcn.004af608
pop ecx
test eax, eax
je 0x4b9c0f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x512a10]
call fcn.004af608
pop ecx
test eax, eax
je 0x4b9c2f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b9c31
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4bf1d1
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 0x3c], 0
je 0x4bf1db
or eax, 0xffffffff
ret
cmp dword [esi + 4], 0
jne 0x4bf224
call fcn.004ae785
and dword [eax], 0
push dword [esi + 0x40]
push 0x4000
push 1
push dword [esi + 0x44]
call fcn.004c4f10
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x4bf21f
push dword [esi + 0x40]
mov dword [esi + 0x3c], 1
call fcn.004c4c3c
pop ecx
test eax, eax
je 0x4bf1d7
or dword [esi + 0x38], 0xffffffff
jmp 0x4bf1d7
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi]
dec dword [esi + 4]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
ret
Function at 0x4bf232
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov edi, dword [esi + 4]
inc ebx
cmp edi, 2
jae 0x4bf2a4
test edi, edi
je 0x4bf251
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov al, byte [eax]
mov byte [ecx], al
call fcn.004ae785
and dword [eax], 0
push dword [esi + 0x40]
mov ecx, edi
mov eax, 0x4000
sar eax, cl
push eax
mov eax, dword [esi + 0x44]
add eax, edi
push ebx
push eax
call fcn.004c4f10
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4bf28c
push dword [esi + 0x40]
call fcn.004c4c3c
pop ecx
test eax, eax
je 0x4bf28c
or dword [esi + 0x38], 0xffffffff
add dword [esi + 4], edi
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
cmp eax, 2
jae 0x4bf2a4
mov dword [esi + 0x58], eax
jmp 0x4bf35d
mov eax, dword [esi]
cmp byte [eax], 0x1f
jne 0x4bf35a
cmp byte [eax + 1], 0x8b
jne 0x4bf35a
add dword [esi + 4], 0xfffffffe
add eax, 2
mov dword [esi], eax
call fcn.004bf1d1
mov edi, eax
call fcn.004bf1d1
mov ebx, eax
cmp edi, 8
jne 0x4bf351
test bl, 0xe0
jne 0x4bf351
push 6
pop edi
call fcn.004bf1d1
dec edi
jne 0x4bf2dd
test bl, 4
je 0x4bf30c
call fcn.004bf1d1
mov edi, eax
call fcn.004bf1d1
shl eax, 8
add edi, eax
mov eax, edi
dec edi
test eax, eax
je 0x4bf30c
call fcn.004bf1d1
cmp eax, 0xffffffff
jne 0x4bf2fb
test bl, 8
je 0x4bf31f
call fcn.004bf1d1
test eax, eax
je 0x4bf31f
cmp eax, 0xffffffff
jne 0x4bf311
test bl, 0x10
je 0x4bf332
call fcn.004bf1d1
test eax, eax
je 0x4bf332
cmp eax, 0xffffffff
jne 0x4bf324
test bl, 2
je 0x4bf342
push 2
pop edi
call fcn.004bf1d1
dec edi
jne 0x4bf33a
mov eax, dword [esi + 0x3c]
neg eax
sbb eax, eax
and eax, 0xfffffffd
mov dword [esi + 0x38], eax
jmp 0x4bf35d
mov dword [esi + 0x38], 0xfffffffd
jmp 0x4bf35d
mov dword [esi + 0x58], ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4bf3fb
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4bf49d
cmp byte [esi + 0x5c], 0x77
jne 0x4bf49d
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [esi], eax
mov dword [esi + 4], ebx
test ebx, ebx
je 0x4bf483
push edi
mov edi, 0x4000
cmp dword [esi + 0x10], 0
jne 0x4bf44e
push dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push edi
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.004c4bba
add esp, 0x10
cmp eax, edi
jne 0x4bf47e
mov dword [esi + 0x10], edi
mov eax, dword [esi + 4]
add dword [esi + 0x64], eax
mov eax, dword [esi + 0x10]
add dword [esi + 0x68], eax
push 0
push esi
call fcn.004bfb9f
pop ecx
pop ecx
mov ecx, dword [esi + 4]
sub dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x10]
sub dword [esi + 0x68], ecx
mov dword [esi + 0x38], eax
test eax, eax
jne 0x4bf482
cmp dword [esi + 4], eax
jne 0x4bf42c
jmp 0x4bf482
or dword [esi + 0x38], 0xffffffff
pop edi
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x4c]
call fcn.004c28d1
mov dword [esi + 0x4c], eax
add esp, 0xc
mov eax, ebx
sub eax, dword [esi + 4]
pop ebx
jmp 0x4bf4a0
push 0xfffffffffffffffe
pop eax
pop esi
pop ebp
ret
Function at 0x4bf4a3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
cmp esi, ebx
je 0x4bf54d
cmp byte [esi + 0x5c], 0x77
jne 0x4bf54d
mov dword [esi + 4], ebx
mov edi, 0x4000
sub edi, dword [esi + 0x10]
je 0x4bf4f0
push dword [esi + 0x40]
push edi
push 1
push dword [esi + 0x48]
call fcn.004c4bba
add esp, 0x10
cmp eax, edi
jne 0x4bf545
mov eax, dword [esi + 0x48]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x4000
test ebx, ebx
jne 0x4bf537
push dword [ebp + 8]
mov eax, dword [esi + 0x10]
add dword [esi + 0x68], eax
push esi
call fcn.004bfb9f
pop ecx
pop ecx
mov ecx, dword [esi + 0x10]
sub dword [esi + 0x68], ecx
mov dword [esi + 0x38], eax
test edi, edi
jne 0x4bf51a
cmp eax, 0xfffffffb
jne 0x4bf51a
and dword [esi + 0x38], edi
test ecx, ecx
jne 0x4bf528
cmp dword [esi + 0x38], 1
je 0x4bf528
xor ebx, ebx
jmp 0x4bf52b
xor ebx, ebx
inc ebx
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4bf4c4
cmp eax, 1
je 0x4bf4c4
mov esi, dword [esi + 0x38]
mov eax, esi
dec eax
neg eax
sbb eax, eax
and eax, esi
jmp 0x4bf550
or eax, 0xffffffff
mov dword [esi + 0x38], eax
jmp 0x4bf550
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4c0617
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x4c06a6
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.004ac5e0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4c0666
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4c0688
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x4c0764
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x4c06ce
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x4c06d9
xor eax, eax
jmp 0x4c0725
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x4c06f6
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.004c2914
jmp 0x4c0706
cmp ecx, 2
jne 0x4c070f
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.004c28d1
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.004ac5e0
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x4c0750
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x4c0764
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x4c0624
pop edi
pop ebx
leave
ret
Function at 0x10001000
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
jne 0x10001038
mov eax, dword [ebp + 8]
push eax
mov dword [0x1001cb00], eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x10005e80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10001038
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10002da0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
xor ecx, ecx
test edx, edx
je 0x10002dd0
push esi
mov esi, dword [ebp + 8]
push edi
movzx edi, byte [ecx + esi]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1001b4c0]
inc ecx
cmp ecx, edx
jb 0x10002db3
pop edi
pop esi
pop ebp
ret
Function at 0x10004a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
cmp eax, 0x40
jb 0x10004b0f
mov eax, 0x40
sub eax, esi
mov dword [ebp - 8], eax
push ebx
call fcn.10003130
add esp, 4
lea edx, [esi + 0xc]
lea eax, [edi + 4]
lea ecx, [ebx + 0x1004]
sub esi, edi
mov dword [ebp - 4], 4
mov ebx, dword [ecx - 4]
xor ebx, dword [edx - 0xc]
add ecx, 0x10
mov dword [eax - 4], ebx
mov ebx, dword [esi + eax]
xor ebx, dword [ecx - 0x10]
add eax, 0x10
mov dword [eax - 0x10], ebx
mov ebx, dword [ecx - 0xc]
xor ebx, dword [edx - 4]
add edx, 0x10
mov dword [eax - 0xc], ebx
mov ebx, dword [ecx - 8]
xor ebx, dword [edx - 0x10]
dec dword [ebp - 4]
mov dword [eax - 8], ebx
jne 0x10004ac2
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
add esi, 0x40
add ecx, esi
add edi, 0x40
mov dword [ebp + 0xc], esi
cmp ecx, eax
jbe 0x10004aa4
and eax, 0x3f
mov dword [ebp + 0x14], eax
je 0x10004b45
push ebx
call fcn.10003130
xor eax, eax
add esp, 4
cmp dword [ebp + 0x14], eax
jbe 0x10004b45
mov ecx, esi
sub ecx, edi
jmp 0x10004b30
mov dl, byte [ebx + eax + 0x1000]
lea esi, [eax + edi]
xor dl, byte [ecx + esi]
inc eax
mov byte [esi], dl
cmp eax, dword [ebp + 0x14]
jb 0x10004b30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1001b8d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10004f87
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jle 0x10004f86
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.10007ec0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
push str.c:_tmp_DMPTMP_s__d__d.TMP
lea ecx, [ebp - 0x108]
push 0x103
push ecx
call fcn.10008f9f
lea edx, [ebp - 0x108]
push 0x10016320
push edx
call fcn.10008f88
mov esi, eax
add esp, 0x20
test esi, esi
je 0x10004f86
push esi
push ebx
push 1
push edi
call fcn.10008091
push esi
call fcn.10008e58
add esp, 0x14
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10008b3b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10004fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov word [ebp - 4], si
cmp dword [ebp + 0xc], esi
je 0x1000501d
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x1000501c
mov ecx, dword [ebp + 8]
push edi
mov eax, ebx
shr eax, 8
push 0x10016320
push ecx
mov byte [ebp - 4], al
mov byte [ebp - 3], bl
call fcn.10008f88
mov edi, eax
add esp, 8
test edi, edi
je 0x1000501b
cmp dword [ebp + 0x14], esi
je 0x10004ff1
push edi
push 2
lea edx, [ebp - 4]
push 1
push edx
call fcn.10008091
add esp, 0x10
test ebx, ebx
je 0x10005012
mov ecx, dword [ebp + 0xc]
push edi
mov eax, ebx
sub eax, esi
push eax
lea edx, [esi + ecx]
push 1
push edx
call fcn.10008091
add esi, eax
add esp, 0x10
cmp esi, ebx
jb 0x10004ff5
push edi
call fcn.10008e58
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10005030
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1001cb2c]
sub esp, 0xc
test eax, eax
jne 0x10005059
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push ecx
push edx
push ebx
push edi
call eax
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push edi
call fcn.10004e20
add esp, 0xc
test eax, eax
je 0x100050ca
movzx edx, word [ebp - 4]
mov eax, dword [ebp - 8]
push edx
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebp + 0x10]
push eax
push esi
push ecx
push ebx
push edi
push str.RECV_SOCK_0x_p__BUF_0x_p__LEN_0x_08X__RET__08X__IP__s__Port__d
call fcn.10004c30
add esp, 0x1c
test esi, esi
jle 0x100050ca
push 0x10016340
push esi
push ebx
call fcn.10004ef0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100052b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x10016418
push str.c:_tmp_blk.dat
xor esi, esi
call fcn.10008f88
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100052d8
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push str.blacklist_found
call fcn.10004c30
push 2
push 0
push ebx
call fcn.100095fe
push ebx
call fcn.1000950f
add esp, 0x14
mov edi, eax
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x10005361
push 0
push 0
push ebx
call fcn.100095fe
add esp, 0xc
test edi, edi
jle 0x1000533d
lea esp, [esp]
mov ecx, dword [ebp - 4]
push ebx
mov eax, edi
sub eax, esi
push eax
lea edx, [esi + ecx]
push 1
push edx
call fcn.1000935e
add esi, eax
add esp, 0x10
cmp esi, edi
jl 0x10005320
push ebx
call fcn.10008e58
mov esi, dword [ebp - 4]
push edi
push esi
call fcn.10004bb0
add esp, 0xc
cmp byte [esi], 0x61
jne 0x1000536a
mov al, 0x6c
cmp byte [esi + 1], al
jne 0x1000536a
cmp byte [esi + 2], al
jne 0x1000536a
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
push esi
call fcn.10008d30
add esp, 8
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1001b8d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push 0x10016418
push str.c:_tmpinfo.dat
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x10c], esi
call fcn.10008f88
mov edi, eax
add esp, 8
mov dword [ebp - 0x108], edi
cmp edi, esi
jne 0x1000589d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.c:_tmpinfo.dat
push str.fopen__s___d
call fcn.10004c30
add esp, 0xc
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008b3b
mov esp, ebp
pop ebp
ret
push ebx
push 2
push esi
push edi
call fcn.100095fe
push edi
call fcn.1000950f
add esp, 0x10
mov edi, eax
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 0x11c], ebx
test ebx, ebx
je 0x10005a4c
mov eax, dword [ebp - 0x108]
push 0
push 0
push eax
call fcn.100095fe
add esp, 0xc
test edi, edi
je 0x10005902
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, edi
sub edx, esi
push edx
lea eax, [esi + ebx]
push 1
push eax
call fcn.1000935e
add esi, eax
add esp, 0x10
cmp esi, edi
jb 0x100058e2
push edi
push ebx
call fcn.10004bb0
call fcn.100030e0
push 0x1001650c
push ebx
mov dword [0x1001cb18], eax
call fcn.100096c6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10005a45
jmp 0x10005930
lea edx, [ebp - 0x104]
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10005940
lea ecx, [ebp - 0x104]
push 0x1001650c
push ecx
call fcn.10009680
lea edx, [ebp - 0x104]
push edx
mov byte [ebp + eax - 0x104], 0
call fcn.10001890
add esp, 0xc
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x114], eax
test eax, eax
jle 0x10005a3d
cmp byte [ebp + ecx - 0x104], 0x3b
jne 0x10005996
mov dword [ebp + edx*4 - 0x110], ecx
inc edx
inc ecx
cmp ecx, eax
jl 0x10005984
cmp edx, 2
jl 0x10005a3d
push 0x44
call fcn.10008c8e
mov edi, dword [ebp - 0x110]
mov esi, eax
push edi
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.100087c0
mov ebx, dword [ebp - 0x10c]
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x118], eax
dec eax
push eax
lea ecx, [ebp + edi - 0x103]
push ecx
lea edx, [esi + 0x14]
push edx
mov byte [esi + edi], 0
call fcn.100087c0
mov edi, dword [ebp - 0x114]
mov eax, dword [ebp - 0x118]
mov ecx, edi
sub ecx, ebx
push ecx
lea edx, [ebp + ebx - 0x103]
mov byte [eax + esi + 0x13], 0
push edx
lea eax, [esi + 0x30]
push eax
call fcn.100087c0
mov ecx, esi
sub ecx, ebx
push esi
mov byte [ecx + edi + 0x30], 0
mov edx, dword [0x1001cb18]
push esi
push edx
call fcn.10002f80
push 0x1001650c
push 0
call fcn.100096c6
mov ebx, dword [ebp - 0x11c]
add esp, 0x3c
mov esi, eax
test esi, esi
jne 0x10005930
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x108]
push eax
call fcn.10008e58
mov ecx, dword [ebp - 4]
add esp, 4
pop ebx
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.10008b3b
mov esp, ebp
pop ebp
ret