joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b6d5
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1001ff00]
xor eax, esp
mov dword [esp + 0x104], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x118]
lea eax, [esp + 0xc]
mov ebp, 0x104
xor esi, esi
push ebp
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000b738
lea eax, [esp + 0xc]
push 0x10017e60
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
lea eax, [esp + 0x14]
push edi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x1000b772
push ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1000b772
lea eax, [esp + 0xc]
push 0x10017e60
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
lea eax, [esp + 0x14]
push edi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
mov ecx, dword [esp + 0x110]
mov eax, esi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10014785
add esp, 0x108
ret

Function at 0x10012bc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x10012bcf
pop dword [ebp - 0x10]
mov eax, 0x77c479e
add eax, 0x884e431
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x60ca4289
sub dword [ebp - 0x20], 0x1277fd3e
mov dword [ebp - 0x1c], 0xf07f2252
sub dword [ebp - 0x1c], 0xbe4bd60d
mov dword [ebp - 0x18], 0x4132968a
sub dword [ebp - 0x18], 0xf4e6525c
mov dword [ebp - 0x14], 0x2db935f2
sub dword [ebp - 0x14], 0x2db935f2
lea eax, [ebp - 0x20]
push eax
mov eax, 0xe8be8c39
sub eax, 0xd8bd2bd9
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x6e9466e0
sub dword [ebp - 0x20], 0xfa21fd8a
mov dword [ebp - 0x1c], 0xe0bc5c34
add dword [ebp - 0x1c], 0x60b00541
mov dword [ebp - 0x18], 0x7448b88d
sub dword [ebp - 0x18], 0x10d94c21
mov dword [ebp - 0x14], 0x5be620ed
add dword [ebp - 0x14], 0xa419df13
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x362ae
push 0
call eax
mov ecx, 0x64683ae3
sub ecx, 0x6467fbc3
mov ebx, eax
mov esi, 0x3ca5e384
sub esi, 0x2ca3ad84
add esi, dword [ebp - 0x10]
mov edx, 0x8f5b67c7
add edx, 0x17e5aa88
xor dword [ebp - 8], 0x31400e08
mov edi, dword [esi]
add dword [ebp - 8], 0x795a2919
add edi, edx
add dword [ebp - 8], 0x9022f5af
mov dword [ebx], edi
add ebx, 0x1a1ce91e
sub ebx, 0x1a1ce91a
add esi, 4
loop 0x10012cec
add eax, 0x3a0a2a8f
add eax, 0xc5f6c4c4
mov ebx, eax
add eax, 0x5a3bb7f2
sub eax, 0x5a3bb7ed
mov ecx, 0x1caee858
sub ecx, 0xcaee858
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x100067a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x804
mov eax, dword [0x1000e004]
xor eax, esp
mov dword [esp + 0x800], eax
push ebp
mov ebp, dword [esp + 0x80c]
lea eax, [esp + 0x204]
push esi
push edi
push 0x200
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x20c]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_strrchr
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov esi, eax
add esp, 8
test esi, esi
je 0x1000683b
push str.System
push esi
call edi
add esp, 8
test eax, eax
jne 0x1000680d
push str.System32
push esi
call edi
add esp, 8
test eax, eax
je 0x1000683b
lea ecx, [esp + 0x20c]
mov byte [esi], 0
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x10006818
mov eax, dword [str.Fonts]
mov dword [ecx], eax
mov ax, word [0x1000ab74]
mov word [ecx + 4], ax
mov al, byte [0x1000ab76]
mov byte [ecx + 6], al
push 0x200
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0xc]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006852
sub ecx, edx
cmp ecx, 0x1f9
jbe 0x10006869
mov byte [esp + 0xc], al
jmp 0x10006893
lea ecx, [esp + 0xc]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x10006870
mov eax, dword [str.Fonts]
mov dword [ecx], eax
mov ax, word [0x1000ab74]
mov word [ecx + 4], ax
mov al, byte [0x1000ab76]
mov byte [ecx + 6], al
xor ecx, ecx
mov al, byte [esp + ecx + 0x20c]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x40b], al
test al, al
jne 0x10006895
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x210]
push eax
call edi
add esp, 8
test eax, eax
je 0x10006908
lea edi, [esp + 0x40c]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x100068c8
mov ax, word [0x1000ab78]
lea edx, [esp + 0xc]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x100068e1
lea edi, [esp + 0x40c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100068f2
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x40c]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10006912
mov eax, dword [ebp]
sub esi, ecx
push esi
push ebp
mov eax, dword [eax + 0x2c0]
call eax
mov edi, eax
test edi, edi
je 0x10006969
mov eax, dword [ebp]
push ebx
push 0
push edi
mov eax, dword [eax + 0x2e0]
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x10006966
push esi
lea eax, [esp + 0x414]
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp]
add esp, 0xc
mov eax, dword [eax + 0x300]
push 0
push ebx
push edi
push ebp
call eax
mov eax, edi
pop ebx
mov ecx, dword [esp + 0x80c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.100072d8
add esp, 0x804
ret 8
Function at 0x10006ee0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 4
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionFontLinkSystemLink
push 0x80000002
mov dword [esp + 0x28], 7
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000700c
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
push 0
push esi
mov eax, dword [edi]
push edi
mov eax, dword [eax + 0x294]
call eax
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push ebp
push dword [esp + 0x20]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000700c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000700c
push ebx
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
jne 0x10006f93
mov eax, dword [edi]
push ebp
push esi
push edi
mov eax, dword [eax + 0x298]
call eax
push dword [esp + 0x10]
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret 0xc
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
push 0
push ebp
push dword [esp + 0x24]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov ecx, dword [edi]
mov esi, eax
push ebp
push dword [esp + 0x2c]
mov ecx, dword [ecx + 0x298]
push edi
call ecx
push dword [esp + 0x10]
call dword [sym.imp.advapi32.dll_RegCloseKey]
test esi, esi
je 0x10006fe1
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [edi]
shr eax, 1
push eax
push ebx
mov eax, dword [ecx + 0x28c]
push edi
call eax
push ebx
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret 0xc

Function at 0x10007020
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x1000e004]
xor eax, esp
mov dword [esp + 0x9c], eax
push edi
mov edi, dword [esp + 0xa8]
lea eax, [esp + 8]
push 0x98
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 4], 0x9c
lea eax, [esp + 4]
push eax
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
jne 0x1000707d
pop edi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.100072d8
add esp, 0xa0
ret
cmp dword [esp + 8], 6
push esi
sbb esi, esi
and esi, 0xfffffffc
add esi, 0x1f8
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [edi], esi
push 0
push edi
push esi
push 0x29
call dword [sym.imp.user32.dll_SystemParametersInfoW]
mov ecx, dword [esp + 0xa4]
pop esi
pop edi
xor ecx, esp
call fcn.100072d8
add esp, 0xa0
ret
Function at 0x10007db7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x10007dc6
pop dword [ebp - 0x14]
mov eax, 0xe2d69d0b
add eax, 0x2d29e0bb
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x300c329a
sub dword [ebp - 0x24], 0xe1b9ed4f
mov dword [ebp - 0x20], 0x30c17a2e
sub dword [ebp - 0x20], 0xfe8e2de9
mov dword [ebp - 0x1c], 0x3cb2a602
add dword [ebp - 0x1c], 0xf999e2c
mov dword [ebp - 0x18], 0xa48ad1b
sub dword [ebp - 0x18], 0xa48ad1b
lea eax, [ebp - 0x24]
push eax
mov eax, 0x709b8f65
sub eax, 0x609aff11
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x26fa45b2
add dword [ebp - 0x24], 0x4d7823a4
mov dword [ebp - 0x20], 0xbac3c0e7
add dword [ebp - 0x20], 0x86a8a08e
mov dword [ebp - 0x1c], 0x457af6f6
sub dword [ebp - 0x1c], 0xe20b8a8a
mov dword [ebp - 0x18], 0xaaaae4fe
add dword [ebp - 0x18], 0x55551b02
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x63effd88
sub eax, 0x53ef6d38
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x36427
push 0
call eax
mov ecx, 0xe49af763
add ecx, 0x1b654ee3
xor edi, edi
add edi, eax
mov ebx, 0x528bacc3
sub ebx, 0x428aa2c3
add ebx, dword [ebp - 0x14]
mov esi, 0x55486744
sub dword [ebp - 8], 0xe2239b3d
mov edx, dword [ebx]
add dword [ebp - 0xc], esi
sub edx, esi
xor dword [ebp - 0x10], ecx
mov dword [edi], edx
xor dword [ebp - 0x10], 0xfa04e118
add edi, 4
add ebx, 0xe1833eba
add ebx, 0x1e7cc14a
loop 0x10007ee4
add eax, 0x10beb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x45983325
sub ecx, 0x35983325
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x473420
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x4735bc
pushal
mov esi, section.Vs10
lea edi, [esi - 0x15000]
push edi
or ebp, 0xffffffff
jmp 0x47344a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x473451
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x473440
mov eax, 1
add ebx, ebx
jne 0x473463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x473474
jne 0x473484
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x473484
dec eax
add ebx, ebx
jne 0x473480
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x473458
xor ecx, ecx
sub eax, 3
jb 0x47349c
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47350e
sar eax, 1
mov ebp, eax
jmp 0x4734a7
add ebx, ebx
jne 0x4734a7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4734b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4734d8
inc ecx
add ebx, ebx
jne 0x4734c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4734b9
jne 0x4734d5
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4734b9
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4734f8
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4734e9
jmp 0x473446
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4734f8
add edi, ecx
jmp 0x473446
pop esi
mov edi, esi
mov ecx, 0xa23
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x473516
cmp byte [edi], 6
jne 0x473516
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x47351b
lea edi, [esi + 0x70000]
mov eax, dword [edi]
or eax, eax
je 0x47358a
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7358c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x735f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x473548
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x735f4]
or eax, eax
je 0x473584
mov dword [ebx], eax
add ebx, 4
jmp 0x473565
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4735bb
cmp al, 0xef
ja 0x4735ae
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x473590
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x47359d
popal
jmp 0x4147ac
Function at 0x10028ce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.ntdll.dll_wcscpy]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 0xc
lea eax, [ebp + eax*2 - 0x100]
dec eax
dec eax
mov cx, word [eax]
cmp cx, 0x5c
je 0x100290f
cmp cx, 0x2f
jne 0x1002915
and word [eax], 0
jmp 0x10028fe
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
leave
ret 4

Function at 0x1002930
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
push esi
push dword [edi + 4]
mov esi, dword [sym.imp.ntdll.dll_wcscpy]
lea eax, [ebp - 0x108]
push eax
call esi
push dword [edi + 4]
call dword [sym.imp.ntdll.dll_wcslen]
lea eax, [ebp + eax*2 - 0x108]
push 0x1001408
push eax
mov dword [ebp - 8], eax
call esi
add esp, 0x14
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x1002998
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x12
neg eax
sbb eax, eax
jmp 0x1002ac2
push ebx
mov ebx, dword [sym.imp.ntdll.dll_wcscmp]
lea eax, [ebp - 0x32c]
push 0x1001404
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1002a9a
lea eax, [ebp - 0x32c]
push 0x10013fc
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1002a9a
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.ntdll.dll__wcslwr]
push eax
push dword [ebp - 8]
call esi
mov eax, dword [edi + 0xc]
add esp, 0xc
test eax, eax
je 0x10029fc
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ntdll.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x32c]
push eax
push dword [edi + 8]
call fcn.01002c97
test eax, eax
je 0x1002a9a
cmp dword [edi + 0xc], 0
je 0x1002a75
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x458]
push eax
lea edx, [ebp - 0x108]
call fcn.01002809
test eax, eax
je 0x1002a75
test byte [ebp - 0x358], 0x10
je 0x1002a9a
lea eax, [ebp - 0x458]
push eax
call fcn.010028ce
test eax, eax
je 0x1002a9a
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x458]
push eax
mov eax, dword [ebp + 8]
call fcn.01002672
jmp 0x1002a9a
lea eax, [ebp - 0x108]
push eax
call fcn.010028ce
test eax, eax
je 0x1002a9a
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 0xc]
call fcn.01002742
mov ebx, eax
test ebx, ebx
jne 0x1002abf
lea eax, [ebp - 0x358]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test ebx, ebx
jne 0x1002999
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1002abf
mov eax, ebx
pop ebx
pop esi
leave
ret 8

Function at 0x1006c27
Capabilities:
Encode data using xor

Disassembly:
enter 0, 0
pushal
mov ebx, 0x7fffffff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, esi
Function at 0x10005637
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x10146a60
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x1019d1b0], 1
jge 0x10146acf
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x10146aa5
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x10146aa5
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x10146a82
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x10146abb
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x10146ac2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x10146bbf
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x10146b90
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10146b85
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x10146b79
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x10146b80
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x10146bbf
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x10146bba
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x10146ba3
mov eax, dword [ebx + 8]
jmp 0x10146bbf
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x10146bb1
xor eax, eax
jmp 0x10146bbf
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x10146aef
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x1010dd20
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.10001e7e
mov eax, dword [0x1019a624]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x1019da40]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x1010def8
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x1010de47
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x1010de47
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x1010de25
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x1010dda9
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1010deb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x1010df18
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x1010def3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x1010df18
jmp 0x1010dd82
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003314
mov esp, ebp
pop ebp
ret
Function at 0x1010dfb0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.10001e7e
mov eax, dword [0x1019a624]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x1019da40]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x1010e19b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x1010e0e6
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x1010e0e6
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x1010e0c2
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x1010e039
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1010e154
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x1010e1bb
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x1010e196
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x1010e1bb
jmp 0x1010e012
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003314
mov esp, ebp
pop ebp
ret