joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403393
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ax, word [0x40736c]
push esi
push eax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x407374
mov word [ebp - 0xe], ax
call fcn.0040101f
pop ecx
mov dword [ebp - 0xc], eax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4033eb
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x4033ed
mov eax, esi
pop esi
leave
ret

Function at 0x4037db
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push esi
push edi
call dword [sym.imp.USER32.dll_GetInputState]
xor esi, esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push esi
push esi
lea eax, [ebp - 0x2c]
push esi
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
mov edi, 0x104
lea eax, [ebp - 0x130]
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x130]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.00403891
test eax, eax
je 0x403866
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], str.Windows_Test_My_Version_4.0
push eax
mov dword [ebp - 0xc], 0x4035e3
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
pop edi
xor eax, eax
pop esi
leave
ret 0x10
push str.This_is_Windows_Test_My_Server_Version_4.0
push str.Windows_Test_My_Server_Version_4.0
push str.Windows_Test_My_Version_4.0
call fcn.004038fc
add esp, 0xc
cmp dword [0x40742c], esi
je 0x40385e
call fcn.00402996
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10033c40
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035abd
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10032eac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], 0
jmp 0x10033ca5
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x1c], ecx
jge 0x10033d93
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x10], 0
jne 0x10033d0a
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jle 0x10033d08
push 4
push 0x1000
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0xc]
push ecx
call dword [0x10035fb8]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x10033c93
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
add eax, dword [edx + 0xc]
push eax
call dword [0x10035fb8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, 1
test ecx, ecx
je 0x10033d50
mov dword [ebp - 0x28], 0x55
push 0x10035ee8
lea edx, [ebp - 0x28]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x10033d75
mov dword [ebp - 4], 0xffffffff
jmp 0x10033d85
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov dword [edx + 8], eax
jmp 0x10033c93
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10033df0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movzx edx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x10033e26
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0xc], edx
jge 0x10033f69
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
je 0x10033e4f
mov dword [ebp - 0x14], 1
jmp 0x10033e56
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x40000000
je 0x10033e73
mov dword [ebp - 0x18], 1
jmp 0x10033e7a
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x80000000
je 0x10033e97
mov dword [ebp - 0x1c], 1
jmp 0x10033e9e
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x2000000
je 0x10033ed0
push 0x4000
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [0x10035fa8]
jmp 0x10033e14
mov eax, dword [ebp - 0x20]
shl eax, 4
mov ecx, dword [ebp - 0x24]
lea edx, [eax + ecx*8 + 0x10032e88]
mov eax, dword [ebp - 0x28]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x4000000
je 0x10033f02
mov ecx, dword [ebp - 0x10]
or ecx, 0x200
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10033f42
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
and edx, 0x40
je 0x10033f29
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 8], edx
jmp 0x10033f42
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x80
je 0x10033f42
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jbe 0x10033f64
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [0x10035fac]
jmp 0x10033e14
mov esp, ebp
pop ebp
ret
Function at 0x406050
Capabilities:
Check if file exists
Enumerate processes
Get file attributes
Get process image filename

Disassembly:
push 0xffffffffffffffff
push 0x45aa02
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x473564]
xor eax, esp
mov dword [esp + 0x44c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473564]
xor eax, esp
push eax
lea eax, [esp + 0x464]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x474]
mov dword [esp + 0x14], 0
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], 0
mov dword [esp + 0x1c], ebp
mov byte [ebp + 4], 0
push 0
mov dword [esp + 0x470], 0
push 2
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x406269
lea eax, [esp + 0x20]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406262
lea ecx, [esp + 0x44]
push str.snr.exe
push ecx
call fcn.00451f60
add esp, 8
test eax, eax
je 0x406152
lea edx, [esp + 0x44]
push str.pd.exe
push edx
call fcn.00451f60
add esp, 8
test eax, eax
je 0x406152
lea eax, [esp + 0x44]
push str.ltm.exe
push eax
call fcn.00451f60
add esp, 8
test eax, eax
je 0x406152
lea ecx, [esp + 0x44]
push str.nos.exe
push ecx
call fcn.00451f60
add esp, 8
test eax, eax
jne 0x40624f
mov edx, dword [esp + 0x28]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40622e
push 0x104
lea eax, [esp + 0x35d]
push 0
push eax
mov byte [esp + 0x364], 0
call fcn.0043e250
add esp, 0xc
push 0x104
lea ecx, [esp + 0x35c]
push ecx
push ebx
call sub.PSAPI.DLL_GetProcessImageFileNameA
mov edi, 0x45fd0b
lea esi, [esp + 0x358]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x406223
push 0x104
push edx
lea eax, [esp + 0x259]
push eax
mov byte [esp + 0x25c], dl
call fcn.0043e250
lea ecx, [esp + 0x25c]
add esp, 0xc
push ecx
lea ecx, [esp + 0x35c]
call fcn.00405d80
add esp, 4
lea edx, [esp + 0x250]
push 0x5c
push edx
call fcn.004389b0
add esp, 8
test eax, eax
je 0x406223
lea ecx, [esp + 0x250]
sub eax, ecx
mov edx, ecx
push eax
push edx
mov ecx, ebp
call fcn.00403c00
push 7
push 0x45fe84
mov eax, ebp
call fcn.00404e30
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
mov eax, ebp
call fcn.00403610
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406262
push 0
push 0x45fd0b
mov ecx, ebp
call fcn.00403c00
lea eax, [esp + 0x20]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4060f6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.00438866
add esp, 0x45c
ret
Function at 0x4062a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x45918d
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x473564]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473564]
xor eax, esp
push eax
lea eax, [esp + 0x194]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1a4]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov edx, 0xf
mov dword [ebp + 0x18], edx
mov dword [ebp + 0x14], ebx
mov dword [esp + 0x28], ebp
mov byte [ebp + 4], bl
mov eax, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], vtable.CLmMv_struct_ns_config::_tagInterProcessParamEx_.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
mov dword [esp + 0x1b8], eax
push 0x26
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x14], ebx
push str.897184E9_DF31_4542_A244_3CBBA1334575
mov byte [ecx + 4], bl
call fcn.00403c00
lea esi, [esp + 0x30]
call fcn.00406df0
cmp al, bl
je 0x4063e0
push 0x5b
lea eax, [esp + 0x31]
push ebx
push eax
mov byte [esp + 0x38], bl
call fcn.0043e250
push 0x104
lea ecx, [esp + 0x98]
push ebx
push ecx
call fcn.0043e250
mov esi, dword [esp + 0x34]
add esp, 0x18
cmp esi, ebx
je 0x406383
mov ecx, 0x58
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x88]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x406390
sub eax, edx
push eax
lea edx, [esp + 0x8c]
push edx
mov ecx, ebp
call fcn.00403c00
push 6
push str.SERVER
mov eax, ebp
call fcn.00404e30
cmp dword [ebp + 0x18], 0x10
jb 0x4063c4
mov eax, dword [ebp + 4]
jmp 0x4063c7
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4063e0
push ebx
push 0x45fd0b
mov ecx, ebp
call fcn.00403c00
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4063ef
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4063fe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x194]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.00438866
add esp, 0x18c
ret
Function at 0x406430
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45ada6
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x473564]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
push ebp
push edi
mov eax, dword [0x473564]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x30]
push eax
call fcn.00406050
add esp, 4
mov dword [esp + 0xc0], ebx
mov edi, dword [esp + 0x48]
cmp edi, 0x10
mov ebp, dword [esp + 0x34]
mov eax, ebp
jae 0x40649a
lea eax, [esp + 0x34]
push eax
xor eax, eax
mov ecx, 0x45fd0b
call fcn.00401040
add esp, 4
cmp eax, ebx
jne 0x406500
xor eax, eax
cmp dword [esp + 0x44], ebx
setne al
cmp eax, ebx
jne 0x406500
lea ecx, [esp + 0x14]
push ecx
call fcn.004062a0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcc], 1
call fcn.00403810
mov byte [esp + 0xc0], bl
cmp dword [esp + 0x2c], 0x10
jb 0x4064f8
mov edx, dword [esp + 0x18]
push edx
call fcn.0043870c
add esp, 4
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x48]
cmp edi, 0x10
mov eax, ebp
jae 0x40650b
lea eax, [esp + 0x34]
push eax
xor eax, eax
mov ecx, 0x45fd0b
call fcn.00401040
add esp, 4
cmp eax, ebx
jne 0x406563
xor eax, eax
cmp dword [esp + 0x44], ebx
setne al
cmp eax, ebx
jne 0x406563
cmp edi, 0x10
jb 0x40653a
push ebp
call fcn.0043870c
add esp, 4
xor al, al
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.00438866
add esp, 0xb4
ret
push 0x63
lea eax, [esp + 0x51]
push ebx
push eax
mov byte [esp + 0x58], bl
call fcn.0043e250
add esp, 0xc
cmp edi, 0x10
mov eax, ebp
jae 0x406582
lea eax, [esp + 0x34]
push eax
push 0x63
lea ecx, [esp + 0x54]
push ecx
push 0x45fd0b
push 0x45febc
push 0x45fec0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4065a6
sub eax, edx
push eax
lea edx, [esp + 0x50]
push edx
lea ecx, [esi + 0x1c]
call fcn.00403c00
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x38]
push eax
lea ecx, [esi + 0x3c]
mov dword [esi + 0x38], 0x3ef
call fcn.00403810
cmp dword [esp + 0x48], 0x10
mov bl, 1
jb 0x4065ec
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0043870c
add esp, 4
mov al, bl
jmp 0x40653c
Function at 0x407320
Capabilities:
Write file on windows

Disassembly:
cmp dword [edi + 0x1c], 0x10
push ebx
mov ebx, dword [esp + 8]
push esi
jb 0x407331
mov eax, dword [edi + 8]
jmp 0x407334
lea eax, [edi + 8]
push 0x45fef8
push eax
call fcn.00438f9e
mov esi, eax
add esp, 8
test esi, esi
je 0x40736e
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407350
push esi
sub eax, edx
push 1
push eax
push ebx
call fcn.00438e58
push esi
call fcn.00439023
add esp, 0x14
pop esi
mov eax, edi
pop ebx
ret 4

Function at 0x4073f0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x458588
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
mov eax, dword [0x473564]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x24]
mov ebp, 0x10
cmp dword [esp + 0x38], ebp
mov dword [esp + 0xc], 0
jae 0x407436
lea eax, [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4074af
push esi
call fcn.00437a56
add esp, 4
test eax, eax
mov dword [edi + 4], eax
jne 0x407480
cmp dword [esp + 0x38], ebp
jb 0x4074c2
mov eax, dword [esp + 0x24]
push eax
call fcn.0043870c
add esp, 4
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x10
ret 0x1c
cmp dword [esp + 0x38], ebp
mov ecx, dword [esp + 0x24]
jae 0x40748e
lea ecx, [esp + 0x24]
push eax
push esi
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4074d8
mov ecx, dword [edi + 4]
push ecx
call fcn.00439136
add esp, 4
mov dword [edi + 4], 0
cmp dword [esp + 0x38], ebp
jb 0x4074c2
mov edx, dword [esp + 0x24]
push edx
call fcn.0043870c
add esp, 4
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x10
ret 0x1c
cmp dword [esp + 0x38], ebp
jb 0x4074eb
mov eax, dword [esp + 0x24]
push eax
call fcn.0043870c
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x10
ret 0x1c
Function at 0x408610
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x459102
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x473564]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
mov eax, dword [0x473564]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x104
lea eax, [esp + 0x15]
push ebx
mov dword [esp + 0x10], ebx
push eax
mov dword [esp + 0x18], esi
mov byte [esp + 0x1c], bl
call fcn.0043e250
add esp, 0xc
push ebx
push 0x1a
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea eax, [esp + 0x10]
mov dword [esp + 0x124], ebx
mov dword [esp + 8], 1
lea edx, [eax + 1]
jmp 0x4086a0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4086a0
sub eax, edx
push eax
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.00403c00
push 0x3d
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar
mov eax, esi
call fcn.00404e30
mov eax, esi
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00438866
add esp, 0x120
ret
Function at 0x4096a0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
xor ebx, ebx
cmp dword [esp + 0x24], 0x10
push ebp
mov ebp, dword [esp + 0x2c]
jae 0x4096b8
lea eax, [esp + 0x14]
push esi
push ebx
push ecx
push 2
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4096f9
push ebx
lea edx, [esp + 0x10]
push edx
push ebp
push edi
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4096f2
cmp dword [esp + 0xc], ebp
jne 0x4096f2
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x2c], 0x10
pop esi
jb 0x40970e
mov eax, dword [esp + 0x14]
push eax
call fcn.0043870c
add esp, 4
pop ebp
mov al, bl
pop ebx
pop ecx
ret
Function at 0x40b270
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x458f0d
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x473564]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push edi
mov eax, dword [0x473564]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x104
mov dword [esp + 0x148], ebx
lea eax, [esp + 0x35]
push ebx
mov dword [esp + 0x14], ebx
push eax
mov dword [esp + 0x1c], esi
mov byte [esp + 0x3c], bl
call fcn.0043e250
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, 0xf
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40b300
sub eax, edx
push eax
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x1c]
call fcn.00403c00
mov eax, 1
mov dword [esp + 0x144], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
jae 0x40b342
lea eax, [esp + 0x18]
push 0x5c
push eax
call fcn.004389b0
mov byte [eax], bl
mov edx, dword [esp + 0x20]
add esp, 8
cmp dword [esp + 0x2c], 0x10
jae 0x40b35e
lea edx, [esp + 0x18]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40b363
sub eax, edi
push eax
push edx
mov ecx, esi
call fcn.00403c00
cmp dword [esp + 0x2c], 0x10
jb 0x40b38b
mov eax, dword [esp + 0x18]
push eax
call fcn.0043870c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00438866
add esp, 0x13c
ret
Function at 0x40b720
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x458eb8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x473564]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x2c]
jae 0x40b765
lea eax, [esp + 0x2c]
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40b7da
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00437a56
mov edi, eax
add esp, 4
test edi, edi
je 0x40b7d3
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push edi
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x40b7ca
cmp dword [esp + 0x10], esi
jne 0x40b7ca
mov ecx, dword [esp + 0x14]
push esi
push edi
call fcn.00403c00
push edi
call fcn.00439136
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x40], 0x10
jb 0x40b7ee
mov edx, dword [esp + 0x2c]
push edx
call fcn.0043870c
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x40b810
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov ebx, 0x10
cmp dword [esp + 0x24], ebx
push edi
mov esi, ecx
jae 0x40b828
lea eax, [esp + 0x14]
push 0x4600d0
push eax
call fcn.00438f9e
mov edi, eax
add esp, 8
test edi, edi
je 0x40b87f
cmp dword [esi + 0x18], ebx
mov eax, dword [esi + 0x14]
jb 0x40b849
mov esi, dword [esi + 4]
jmp 0x40b84c
add esi, 4
push edi
push 1
push eax
push esi
call fcn.00438e58
push edi
mov esi, eax
call fcn.00439023
add esp, 0x14
cmp esi, 1
jne 0x40b87f
cmp dword [esp + 0x28], ebx
jb 0x40b879
mov eax, dword [esp + 0x14]
push eax
call fcn.0043870c
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
cmp dword [esp + 0x28], ebx
jb 0x40b892
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0043870c
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
ret