joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434b24
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
and dword [ebp - 4], edi
xor esi, esi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x434b6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434b66
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x434b76
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jb 0x434b33
jmp 0x434b86
push edi
push 0x34c
push 0x44ca26
call fcn.00431468
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x434b8e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.0040b8c0
mov eax, dword [0x44f9f8]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa0]
push ebx
mov ebx, dword [ebp + 0xfb0]
push esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xfa4]
xor esi, esi
push edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x70], esi
xor edi, edi
mov ecx, dword [ebp + 0xfa8]
xor edx, edx
cmp ecx, edx
jne 0x434bee
cmp dword [ebp + 0xfac], edx
jne 0x434bee
mov dword [ebp - 0x74], 0x1000
jmp 0x434c16
mov eax, dword [ebp + 0xfac]
sub ecx, edi
sbb eax, esi
cmp eax, edx
jb 0x434c10
ja 0x434c06
cmp ecx, 0x1000
jbe 0x434c10
mov ecx, 0x1000
mov dword [ebp - 0x74], edx
jmp 0x434c13
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x74], ecx
push edx
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x434c93
cmp dword [ebp - 0x74], 0
je 0x434c4b
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call fcn.00434b24
mov dword [ebp - 0x70], eax
test eax, eax
js 0x434c76
add edi, dword [ebp - 0x74]
adc esi, 0
cmp esi, dword [ebp + 0xfac]
ja 0x434c6d
jb 0x434c63
cmp edi, dword [ebp + 0xfa8]
jae 0x434c6d
cmp dword [ebp - 0x74], 0
jne 0x434bd1
test ebx, ebx
je 0x434c76
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov ecx, dword [ebp + 0xf94]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408498
add ebp, 0xf98
leave
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434ca7
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x70], eax
test eax, eax
jl 0x434cb5
mov dword [ebp - 0x70], 0x80004005
push dword [ebp - 0x70]
push 0x36c
push 0x44ca26
call fcn.00431468
jmp 0x434c76
Function at 0x434cca
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor eax, eax
xor esi, esi
xor edi, edi
cmp dword [ebp + 0x10], esi
sete al
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x434da5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x434d13
cmp eax, 0x50
je 0x434d0b
cmp eax, 0xb7
jne 0x434d13
xor edi, edi
inc edi
jmp 0x434da5
cmp eax, 3
jne 0x434d95
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x434d8e
cmp ax, 0x5c
jne 0x434d2a
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x434d22
test esi, esi
je 0x434d8e
xor eax, eax
push eax
push ebx
mov word [esi], ax
call fcn.004356f2
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x434da5
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x434da5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434d76
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jns 0x434da5
push edi
push 0x3b1
push 0x44ca26
call fcn.00431468
jmp 0x434da5
mov edi, 0x80070003
jmp 0x434da5
cmp eax, esi
jle 0x434da3
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x434e02
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
je 0x434e1e
mov dword [ebp - 4], 1
cmp dword [ebp + 0x14], esi
je 0x434e27
or dword [ebp - 4], 2
push dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x434ef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x434e5e
cmp eax, 0x50
je 0x434e56
cmp eax, 0xb7
jne 0x434e5e
xor edi, edi
inc edi
jmp 0x434ef0
cmp eax, 3
jne 0x434ee0
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x434ed9
cmp ax, 0x5c
jne 0x434e75
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x434e6d
test esi, esi
je 0x434ed9
xor eax, eax
push eax
push ebx
mov word [esi], ax
call fcn.004356f2
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x434ef0
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x434ef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434ec1
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jns 0x434ef0
push edi
push 0x424
push 0x44ca26
call fcn.00431468
jmp 0x434ef0
mov edi, 0x80070003
jmp 0x434ef0
cmp eax, esi
jle 0x434eee
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x434f56
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor ebx, ebx
call fcn.00434aae
test eax, eax
je 0x434fe6
test byte [ebp - 4], 7
push esi
push edi
mov edi, 0xffff
mov esi, 0x80070000
je 0x434fb3
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x434fb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434fa5
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jns 0x434fb3
push ebx
push 0x519
jmp 0x434fda
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x434fe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434fce
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jns 0x434fe4
push ebx
push 0x51f
push 0x44ca26
call fcn.00431468
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x435016
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jne 0x435072
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435057
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x435072
push esi
push 0x118
push 0x44ca26
call fcn.00431468
jmp 0x43511b
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x435091
mov esi, 0x8007000e
push esi
push 0x11c
jmp 0x435063
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4350c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4350b2
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x4350c0
push esi
push 0x120
jmp 0x4350f3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x44c53c
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4350ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4350e7
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x4350ff
push esi
push 0x125
push 0x44ca26
call fcn.00431468
jmp 0x435112
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4356c6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push esi
push dword [esp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4356eb
test al, 0x10
je 0x4356eb
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4356e8
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
ret 8

Function at 0x4356f2
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push ebp
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4357b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4357b9
cmp eax, 3
je 0x435736
push esi
push ebx
call fcn.004356c6
test eax, eax
jne 0x4357b9
movzx eax, word [ebx]
push edi
xor edi, edi
mov ecx, ebx
test ax, ax
je 0x43575a
cmp ax, 0x5c
jne 0x43574b
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x435743
test edi, edi
jne 0x43576e
mov esi, 0x80070003
push esi
push 0x7a
push 0x44ca5a
call fcn.00431468
jmp 0x4357b8
push ebp
xor eax, eax
push ebx
mov word [edi], ax
call fcn.004356f2
mov esi, eax
push 0x5c
pop eax
mov word [edi], ax
test esi, esi
js 0x4357b8
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4357b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4357a4
xor esi, esi
inc esi
jmp 0x4357b8
test eax, eax
jle 0x4357b2
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x4357b8
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x43683e
Capabilities:
Get http content length

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x20000005
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x436892
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43687d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jns 0x436892
push esi
push 0x20
push 0x44cbfe
call fcn.00431468
jmp 0x43689e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
and dword [eax + 4], 0
mov dword [eax], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x436af4
Capabilities:
Parse url

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x23f0]
mov eax, 0x2470
call fcn.0040b8c0
mov eax, dword [0x44f9f8]
xor eax, ebp
mov dword [ebp + 0x23ec], eax
mov eax, dword [ebp + 0x23f8]
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x2404]
push ebx
mov ebx, dword [ebp + 0x23fc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x2408]
push esi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x240c]
push edi
mov edi, dword [ebp + 0x2400]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x2410]
push 0x3c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x2414]
pop esi
push esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00408720
mov dword [ebp - 0x80], esi
xor esi, esi
add esp, 0xc
cmp edi, esi
je 0x436b89
lea eax, [ebp + 0x1fe0]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0x101
mov eax, 0x81
cmp dword [ebp - 0x38], esi
je 0x436b9f
lea ecx, [ebp + 0x22e8]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x34], esi
je 0x436bb0
lea ecx, [ebp + 0x21e4]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], eax
mov eax, 0x801
cmp dword [ebp - 0x3c], esi
je 0x436bc6
lea ecx, [ebp + 0xfdc]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x30], esi
je 0x436bd4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x80]
push eax
push 0x90000000
push esi
push dword [ebp - 0x44]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x436c21
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x436bff
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x436c0d
mov dword [ebp - 0x2c], 0x80004005
push dword [ebp - 0x2c]
push 0x5e
push 0x44cc32
call fcn.00431468
jmp 0x436cb3
cmp ebx, esi
je 0x436c2a
mov eax, dword [ebp - 0x74]
mov dword [ebx], eax
cmp edi, esi
je 0x436c41
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push edi
call fcn.0042f9d0
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x436cb3
mov eax, dword [ebp - 0x40]
cmp eax, esi
je 0x436c4f
mov cx, word [ebp - 0x68]
mov word [eax], cx
cmp dword [ebp - 0x38], esi
je 0x436c69
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push dword [ebp - 0x38]
call fcn.0042f9d0
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x436cb3
cmp dword [ebp - 0x34], esi
je 0x436c83
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x34]
call fcn.0042f9d0
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x436cb3
cmp dword [ebp - 0x3c], esi
je 0x436c9d
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x3c]
call fcn.0042f9d0
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x436cb3
cmp dword [ebp - 0x30], esi
je 0x436cb3
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x30]
call fcn.0042f9d0
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x23ec]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408498
add ebp, 0x23f0
leave
ret 0x20
Function at 0x1001a98
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x240]
call dword [sym.imp.ulib.dll_public:_void___thiscall_PATH::constructor_void_]
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x1001ae6
cmp dword [ebp + 0xc], ebx
mov eax, dword [esi]
je 0x1001ad5
push dword [ebp + 0xc]
push 0x1001214
push 1
push dword [ebp + 8]
push esi
call dword [eax + 8]
add esp, 0x14
jmp 0x1001ae6
push 0x1001213
push 1
push dword [ebp + 8]
push esi
call dword [eax + 8]
add esp, 0x10
cmp byte [esi + 0x90], bl
je 0x1001b15
mov eax, dword [esi + 0x98]
cmp eax, ebx
jne 0x1001b07
push ebx
push 0x5221
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
jmp 0x1001b3c
push eax
push 0x1001210
push ebx
push 0x521f
jmp 0x1001b33
mov eax, dword [esi + 0x9c]
cmp eax, ebx
jne 0x1001b27
push ebx
push 0x5220
jmp 0x1001afe
push eax
push 0x1001210
push ebx
push 0x521e
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
add esp, 0x14
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x1001b8a
Capabilities:
Set file attributes

Disassembly:
push esi
lea esi, [ecx + 0x248]
mov eax, dword [esi]
and eax, 0xfffffffe
push eax
add ecx, 0x274
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1001baf
and dword [esi], 0xfffffffe
mov al, 1
jmp 0x1001bc1
mov esi, dword [esp + 8]
test esi, esi
je 0x1001bbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
pop esi
ret 4

Function at 0x100200f
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax + 0x21c]
mov esi, ecx
lea edi, [edi + edi + 2]
cmp edi, dword [esi + 0xb0]
jbe 0x1002042
push edi
lea ebx, [esi + 0xac]
push dword [ebx]
call dword [sym.imp.ulib.dll_void____stdcall_UlibRealloc_void___unsigned_long_int_]
mov dword [ebx], eax
mov dword [esi + 0xb0], edi
mov ebp, dword [esp + 0x18]
mov ebx, dword [ebp + 0x21c]
lea ebx, [ebx + ebx + 2]
cmp ebx, dword [esi + 0xb8]
jbe 0x100206f
push ebx
lea edi, [esi + 0xb4]
push dword [edi]
call dword [sym.imp.ulib.dll_void____stdcall_UlibRealloc_void___unsigned_long_int_]
mov dword [edi], eax
mov dword [esi + 0xb8], ebx
xor ebx, ebx
cmp dword [esi + 0xac], ebx
je 0x1002081
cmp dword [esi + 0xb4], ebx
jne 0x1002090
push 8
push ebx
push 0x5241
mov ecx, esi
call fcn.01001a98
mov eax, dword [esi + 0xb0]
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.ulib.dll_public:_unsigned_short_int____thiscall_WSTRING::QueryWSTR_unsigned_long_int__unsigned_long_int__unsigned_short_int___unsigned_long_int__unsigned_char_const]
push 1
shr eax, 1
push eax
push dword [esi + 0xac]
add ecx, 0x210
push 0xffffffffffffffff
push ebx
call edi
mov eax, dword [esi + 0xb8]
push 1
shr eax, 1
push eax
push dword [esi + 0xb4]
lea ecx, [ebp + 0x210]
push 0xffffffffffffffff
push ebx
call edi
push ebx
push dword [esi + 0xb4]
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10020f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.01001b46
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
Function at 0x1002517
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa8
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x30]
call dword [sym.imp.ulib.dll_public:_void___thiscall_FSN_FILTER::constructor_void_]
lea edi, [esi + 0xa4]
push edi
lea eax, [esi + 0xa0]
push eax
push dword [esi + 0x88]
mov ecx, esi
call fcn.01001e28
lea eax, [ebp + 0x74]
push eax
push dword [esi + 0x8c]
mov ecx, esi
call fcn.01001ef7
xor ebx, ebx
cmp byte [esi + 0x95], bl
je 0x10025e5
mov eax, dword [esi]
push ebx
push 0x5222
mov ecx, esi
call dword [eax + 0xc]
mov ecx, esi
call fcn.01001bc5
mov ecx, dword [esi + 0xbc]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_KEYBOARD::DisableLineMode_void_]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [eax]
push ebx
lea ecx, [ebp + 0x70]
push ecx
mov ecx, eax
call dword [edx + 0x14]
mov ecx, dword [esi + 0xbc]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_KEYBOARD::EnableLineMode_void_]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push dword [ebp + 0x70]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov edx, dword [eax]
push 0xd
mov ecx, eax
call dword [edx + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov edx, dword [eax]
push 0xa
mov ecx, eax
call dword [edx + 0x28]
cmp word [ebp + 0x70], 3
jne 0x10025e5
push 3
call dword [sym.imp.msvcrt.dll_exit]
push dword [edi]
mov ecx, esi
push dword [esi + 0xa0]
call fcn.01001f30
cmp byte [esi + 0x93], bl
mov edi, dword [ebp + 0x74]
push ebx
push edi
mov dword [esi + 0xa8], eax
push esi
je 0x1002638
call fcn.010024ec
lea ecx, [ebp - 0x30]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSN_FILTER::Initialize_void_]
push ebx
push ebx
push 0x10
lea ecx, [ebp - 0x30]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSN_FILTER::SetAttributes_unsigned_long_int__unsigned_long_int__unsigned_long_int_]
push fcn.010024ec
push ebx
lea eax, [ebp - 0x30]
push eax
push esi
mov ecx, edi
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSN_DIRECTORY::Traverse_void___class_FSN_FILTER___class_PATH___unsigned_char____stdcall___void___class_FSNODE___class_PATH___const]
jmp 0x100263d
call fcn.010024ec
cmp edi, ebx
je 0x1002649
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea ecx, [ebp - 0x30]
call dword [sym.imp.ulib.dll_public_virtual:_void___thiscall_FSN_FILTER::destructor_void_]
pop edi
pop esi
mov al, 1
pop ebx
add ebp, 0x78
leave
ret
Function at 0x10026be
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x1001250
call fcn.0100285c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10026f9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10026f9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1002711
cmp eax, 0x20b
je 0x10026fe
mov dword [ebp - 0x1c], edi
jmp 0x1002725
cmp dword [ecx + 0x84], 0xe
jbe 0x10026f9
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100271f
cmp dword [ecx + 0x74], 0xe
jbe 0x10026f9
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1004040], 0xffffffff
or dword [0x1004044], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100403c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1004038]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1004048], eax
call fcn.01002856
cmp dword [section..data], edi
jne 0x1002780
push fcn.01002856
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01002844
push 0x1001188
push 0x1001184
call sub.msvcrt.dll__initterm
mov eax, dword [0x1004034]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1004030]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001180
push 0x100117c
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100265c
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x10027f7
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100282c
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002895
ret
Function at 0x1001bb0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
and byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x1001c1e
cmp word [ebx + 8], 2
jne 0x1001c06
cmp word [ebx + 0xa], 4
jne 0x1001c06
mov esi, dword [ebx + 0xc]
jmp 0x1001c00
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01001b4d
test eax, eax
mov dword [edi], eax
je 0x1001c19
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x1001be4
mov ecx, dword [ebx]
mov edx, dword [ebp + 0x18]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x1001c0b
xor eax, eax
jmp 0x1001c44
push 8
pop eax
jmp 0x1001c44
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x1001c44
dec ecx
je 0x1001c3f
dec ecx
je 0x1001c38
dec ecx
jmp 0x1001c44
mov eax, 0x2afb
jmp 0x1001c44
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18