joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100217b0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x1007b00c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x18], edx
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
xor esi, esi
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x10021946
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1002192e
cmp eax, 0xffffffff
je 0x1002192e
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1002192e
push edi
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x18]
push ebx
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10021914
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x20]
jne 0x10021914
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1002187f
xor edi, edi
jmp 0x10021914
cmp dword [ebx], 0x54534346
jne 0x10021914
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x10021914
mov eax, dword [esp + 0x10]
lea ecx, [ebx + 0x10]
add eax, 0xfffffff0
mov edx, 0x26
push eax
push ecx
push eax
push ecx
mov ecx, str.C6642F75_8DBE_473d_A98B_940F84EF702C
mov dword [esp + 0x28], eax
call fcn.100241e0
add esp, 0x10
test eax, eax
jne 0x10021914
mov eax, dword [ebx + 8]
lea ecx, [ebx + 0x10]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x18]
call fcn.10021590
add esp, 8
test eax, eax
je 0x10021914
push 0
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x18]
push dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10021914
mov eax, dword [esp + 0x10]
mov ecx, 1
cmp dword [esp + 0x20], eax
cmove esi, ecx
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call ebx
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x1002192e
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1002193f
push eax
call ebx
test edi, edi
je 0x10021946
push edi
call ebx
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x10021960
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10072058
push 0x1005c7db
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1007b00c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x30], edx
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], eax
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x20], eax
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x38], edi
cmp edi, 0xffffffff
jne 0x100219d0
xor edi, edi
jmp 0x10021ad3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10021ad3
cmp eax, 0xffffffff
je 0x10021ad3
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x10021ae5
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10021ad3
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jne 0x10021ad3
cmp dword [esi], 0x54534346
jne 0x10021ad3
push dword [esi + 8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov ebx, eax
mov dword [ebp - 0x40], ebx
test ebx, ebx
je 0x10021ad3
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov dword [ebp - 0x2c], eax
lea ecx, [esi + 0x10]
push eax
push ecx
push eax
push ecx
mov edx, 0x26
mov ecx, str.C6642F75_8DBE_473d_A98B_940F84EF702C
call fcn.100241e0
add esp, 0x10
test eax, eax
jne 0x10021ad3
mov eax, dword [esi + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push ebx
mov edx, dword [ebp - 0x2c]
lea ecx, [esi + 0x10]
call fcn.10021590
add esp, 8
test eax, eax
je 0x10021ad3
mov dword [ebp - 4], 0
push dword [ebp - 0x24]
push ebx
mov ecx, dword [ebp - 0x30]
call fcn.10012640
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0x28], 1
jmp 0x10021ad3
test esi, esi
je 0x10021ae5
push esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
add esp, 4
jmp 0x10021aeb
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test ebx, ebx
je 0x10021af5
push ebx
call esi
add esp, 4
test edi, edi
je 0x10021b00
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x10021ba0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
test edx, edx
je 0x10021d6e
xor ecx, ecx
cmp cx, word [edx]
je 0x10021d6e
test eax, eax
je 0x10021d6e
cmp cx, word [eax]
je 0x10021d6e
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x18], ecx
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push edx
mov dword [ebp - 8], ecx
xor esi, esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10021d59
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x10021d11
cmp edi, 0xffffffff
je 0x10021d11
push 0x1007da74
push edi
call fcn.1005be25
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10021d11
push edi
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push esi
push eax
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10021d11
cmp dword [ebp - 8], edi
jne 0x10021d11
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.10022b00
mov esi, eax
push 0x1007da74
push esi
mov dword [ebp - 0x10], esi
call fcn.1005be25
mov ebx, eax
add esp, 8
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x10021d18
push esi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
push dword [eax + 4]
call fcn.10022b30
add esp, 0x18
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [ebp - 0x10]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10021d18
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10021d11
cmp dword [ebp - 8], esi
jne 0x10021d11
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 1
jmp 0x10021d18
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10021d38
test edi, edi
je 0x10021d2f
push edi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
call fcn.1005be17
add esp, 4
mov ebx, dword [ebp - 0x14]
pop edi
test ebx, ebx
je 0x10021d59
test esi, esi
jle 0x10021d50
push esi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
call fcn.1005be17
add esp, 4
mov eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
Function at 0x10021d80
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x10021f40
xor edx, edx
cmp dx, word [eax]
je 0x10021f40
test ecx, ecx
je 0x10021f40
cmp dx, word [ecx]
je 0x10021f40
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0x14], edx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10021f2b
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x10021ee3
cmp esi, 0xffffffff
je 0x10021ee3
push 0x1007da74
push esi
call fcn.1005be25
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10021ee3
push esi
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push ebx
push eax
push esi
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10021ee3
cmp dword [ebp - 8], esi
jne 0x10021ee3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1007da74
push esi
mov dword [ebp - 0x10], esi
call fcn.1005be25
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10021eea
push esi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push ebx
push dword [eax + 4]
call fcn.10022e50
add esp, 0x18
test eax, eax
je 0x10021eea
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10021eea
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10021ee3
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
jne 0x10021ee3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 1
jmp 0x10021eea
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10021f0d
test esi, esi
je 0x10021f04
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0xc]
add esp, 0xc
push eax
call fcn.1005be17
add esp, 4
test ebx, ebx
je 0x10021f2a
test esi, esi
je 0x10021f21
push esi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
call fcn.1005be17
add esp, 4
pop esi
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
Function at 0x10022030
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x100221f9
xor edx, edx
cmp dx, word [eax]
je 0x100221f9
test ecx, ecx
je 0x100221f9
cmp dx, word [ecx]
je 0x100221f9
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], 0x69466e45
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
xorps xmm0, xmm0
mov dword [ebp - 0x18], edx
push eax
movq qword [ebp - 0xc], xmm0
xor ebx, ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100220bf
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100221c2
cmp eax, 0xffffffff
je 0x100221c2
push 0x1007da74
push eax
call fcn.1005be25
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100221c2
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100221c2
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jne 0x100221c2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100221c9
push 0
lea eax, [ebp - 0x14]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100221c2
cmp dword [ebp - 0x14], 0xc
jne 0x100221c2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100221c2
push 0x1007da74
push eax
call fcn.1005be25
mov edi, eax
add esp, 8
test edi, edi
je 0x100221c2
push 0xffffffffffffffff
push dword [ebp - 0x18]
lea edx, [ebp - 0x14]
mov ecx, edi
push ebx
call fcn.100249c0
add esp, 0xc
test eax, eax
jne 0x100221c2
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100221c2
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp eax, dword [ebp - 0x14]
mov edx, 1
cmove ecx, edx
mov dword [ebp - 0x1c], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x100221d6
push ebx
call fcn.1005be17
add esp, 4
test edi, edi
je 0x100221e3
push edi
call fcn.1005be17
add esp, 4
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
Function at 0x10022210
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x100223df
xor edx, edx
cmp dx, word [eax]
je 0x100223df
test ecx, ecx
je 0x100223df
cmp dx, word [ecx]
je 0x100223df
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x14], edx
push ebx
push 0x80
push 3
push ebx
push 1
xor ecx, ecx
xorps xmm0, xmm0
push SysReAllocString
push eax
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10022299
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x100223a5
cmp edi, 0xffffffff
je 0x100223a5
push 0
lea eax, [ebp - 8]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100223a5
cmp dword [ebp - 8], 0xc
jne 0x100223a5
cmp dword [ebp - 0x14], 0x69466e45
jne 0x100223a5
cmp dword [ebp - 0x10], ebx
je 0x100223a5
sub edi, 0xc
push 0x1007da74
push edi
call fcn.1005be25
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100223a5
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100223a5
cmp dword [ebp - 8], edi
jne 0x100223a5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100223ac
push 0x1007da74
push dword [ebp - 0x10]
call fcn.1005be25
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100223a5
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x10]
push edi
push ecx
mov ecx, ebx
call fcn.1002a270
add esp, 8
test eax, eax
jne 0x100223a5
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100223a5
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp eax, dword [ebp - 0x10]
mov edx, 1
cmove ecx, edx
mov dword [ebp - 0x1c], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
pop edi
test eax, eax
je 0x100223bd
push eax
call fcn.1005be17
add esp, 4
test ebx, ebx
je 0x100223ca
push ebx
call fcn.1005be17
add esp, 4
mov eax, dword [ebp - 0x1c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
Function at 0x100225a0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test edi, edi
je 0x100226f3
push 0x208
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x100226f3
cmp eax, 0x104
ja 0x100226f3
push ebx
push esi
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.Dr_x.drt
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.1000f290
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x14
push edi
call ebx
mov ecx, 0x5c
cmp cx, word [edi + eax*2 - 2]
je 0x10022675
push edi
call ebx
push 0x10067494
mov esi, eax
call ebx
add esi, eax
cmp esi, 0x104
jge 0x100226de
push 1
push 0x10067494
push 0x104
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
push edi
call ebx
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call ebx
add esi, eax
cmp esi, 0x104
jge 0x100226de
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022692
sub ecx, edx
mov eax, 0x103
sar ecx, 1
sub eax, ecx
push eax
lea eax, [ebp - 0x210]
push eax
push 0x104
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 0x10
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10022710
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x20a
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x210]
push 0
push eax
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x42c], esi
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
test ebx, ebx
je 0x100228f7
xor eax, eax
cmp ax, word [ebx]
je 0x100228f7
test edi, edi
je 0x100228f7
test esi, esi
je 0x100228f7
cmp dword [ebp - 0x428], eax
je 0x100228f7
push 0x5c
push ebx
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x100228f7
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 8
lea eax, [ebp - 0x41c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x100228f7
cmp eax, 0x104
ja 0x100228f7
push 0x103
lea eax, [ebp - 0x41c]
push eax
push 0x104
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov ecx, edi
add esp, 0x10
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022810
sub ecx, edx
mov eax, 0x103
sar ecx, 1
sub eax, ecx
push eax
lea eax, [esi + 2]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
push eax
push 0x104
push edi
call esi
push 4
push str..drt
push 0x104
push edi
call esi
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
call fcn.100225a0
test eax, eax
je 0x100228f7
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
lea eax, [ebp - 0x210]
push eax
call ebx
mov ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x424]
xor esi, esi
call fcn.10022030
test eax, eax
je 0x100228d2
mov ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.10021ba0
test eax, eax
je 0x100228d2
mov edx, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x424]
call fcn.10034540
test eax, eax
je 0x100228d2
mov edx, dword [ebp - 0x428]
mov ecx, edi
call fcn.10034540
test eax, eax
mov ecx, 1
cmovne esi, ecx
lea eax, [ebp - 0x210]
push eax
call ebx
test esi, esi
jne 0x100228e2
push edi
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100229a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 4], edx
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov dword [ebp - 8], eax
call ebx
mov edi, dword [ebp - 4]
mov ebx, eax
lea eax, [ebp - 0x18]
xor esi, esi
sub edi, eax
nop dword [eax]
lea eax, [edi + esi*4]
push dword [ebp + eax - 0x18]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x18], eax
inc esi
cmp esi, 4
jl 0x100229d0
mov edi, dword [ebp - 8]
xor edx, edx
lea esi, [edx + 0x10]
nop
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shl ecx, 4
mov eax, ebx
add ecx, dword [ebp - 0x18]
shr eax, 5
add eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x100229f0
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10022a50
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 4], edx
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, dword [ebp - 4]
xor esi, esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
sub ebx, eax
nop dword [eax]
lea eax, [ebx + esi*4]
push dword [ebp + eax - 0x18]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x18], eax
inc esi
cmp esi, 4
jl 0x10022a80
mov ebx, dword [ebp - 8]
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shl ecx, 4
add ecx, dword [ebp - 0x18]
shr eax, 5
add eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x10022aa4
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret