joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d5e7
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9e8
mov eax, dword [0x101c8c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x9e8], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100c026
lea eax, [ebp - 0x9e4]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100d13a
xor esi, esi
push esi
test eax, eax
jl 0x100d789
lea eax, [ebp - 0x9e4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x9e4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x9e0], eax
cmp eax, esi
jne 0x100d748
push 0x3e8
lea eax, [ebp - 0x9dc]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x9e8]
call fcn.0100d346
push dword [ebp + 0x14]
push dword [ebp - 0x9e8]
push dword [ebp + 0x18]
push esi
push edi
push dword [ebp - 0x9e4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov dword [ebp - 0x9e0], eax
push esi
cmp eax, esi
je 0x100d6f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100e909
push eax
push 0x10063ec
push 0x1005f40
push 0x12c
push esi
push 0x10052e8
push esi
push dword [ebp - 0x9e0]
lea eax, [ebp - 0x9dc]
push eax
push edi
push ebx
push 0x10063a8
push 0x2000000
call fcn.0100b725
add esp, 0x18
jmp 0x100d731
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100e909
push eax
push 0x10063ec
push 0x1005f40
push 0x130
push esi
push 0x10052e8
push esi
push dword [ebp + 0x18]
push edi
push ebx
push 0x100636c
push 0x4000000
call fcn.0100b725
add esp, 0x14
push eax
call fcn.0100f2dd
push dword [ebp - 0x9e4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100d7d1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100e909
push eax
push 0x10063ec
push 0x1005f40
push 0x137
push esi
push 0x10052e8
push esi
push dword [ebp - 0x9e0]
push edi
push ebx
push 0x1006330
push 0x2000000
call fcn.0100b725
add esp, 0x14
jmp 0x100d7cb
push esi
mov dword [ebp - 0x9e0], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100e909
push eax
push 0x10063ec
push 0x1005f40
push 0x13d
push esi
push 0x10052e8
push esi
push edi
push ebx
push 0x10062f0
push 0x2000000
call fcn.0100b725
add esp, 0x10
push eax
call fcn.0100f2dd
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x9e0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100e138
leave
ret 0x14
Function at 0x100e129
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x10187a8
call fcn.0100e334
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1020908
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x100dee0
cmp eax, esi
jne 0x100ded3
xor esi, esi
inc esi
mov ebx, esi
jmp 0x100dee3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100deba
xor esi, esi
inc esi
mov eax, dword [0x1020904]
cmp eax, esi
jne 0x100def6
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100df25
mov eax, dword [0x1020904]
test eax, eax
jne 0x100df1f
mov dword [0x1020904], esi
push 0x10014e8
push 0x10014dc
call fcn.0100de1f
pop ecx
pop ecx
test eax, eax
je 0x100df25
jmp 0x100e04d
mov dword [0x101ffb8], esi
mov eax, dword [0x1020904]
cmp eax, esi
jne 0x100df49
push 0x10014d8
push 0x10014b0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1020904], 2
test ebx, ebx
jne 0x100df55
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x102090c], 0
je 0x100df79
push 0x102090c
call fcn.0100e2a9
pop ecx
test eax, eax
je 0x100df79
push 0
push 2
push 0
call dword [0x102090c]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x100dfd5
test al, al
je 0x100df93
cmp dword [ebp - 0x1c], 0
jne 0x100dfd5
mov al, byte [esi]
test al, al
je 0x100dfa3
cmp al, 0x20
ja 0x100dfa3
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100df93
test byte [ebp - 0x3c], 1
je 0x100dfaf
movzx eax, word [ebp - 0x38]
jmp 0x100dfb2
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x101ffb4], eax
cmp dword [0x101ffa8], 0
jne 0x100e029
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x100dfe4
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x100dff7
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x100df80
cmp dword [0x101ffb8], 0
jne 0x100e038
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101ffb4]
jmp 0x100e059
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100e379
ret
call fcn.0100e527
jmp 0x100de80
Function at 0x100ea68
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x28
push 0x1018830
call fcn.0100e334
xor edi, edi
mov dword [ebp - 0x20], edi
or dword [ebp - 0x24], 0xffffffff
or dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], edi
push edi
push 0x100
push 2
push edi
push edi
push 0xc0000000
push dword [ebp + 0xc]
call dword [0x1020364]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x100eb1a
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x100eabc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
push edi
push edi
neg esi
sbb esi, esi
lea eax, [ebp - 0x38]
and esi, eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x1020368]
cmp eax, edi
je 0x100eb1a
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x100eb1a
push edi
push eax
push dword [ebp - 0x28]
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x100eb1a
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0100eb62
cmp dword [ebp - 0x20], edi
je 0x100eb52
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x100eb3d
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x100eb49
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x100eb52
mov dword [eax], ebx
mov eax, dword [ebp - 0x20]
call fcn.0100e379
ret 0x14
Function at 0x100ec9a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
push 0x1018870
call fcn.0100e334
xor edi, edi
mov dword [ebp - 0x20], edi
push dword [0x101c9e4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
jne 0x100edd1
push 0x1020314
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
mov ecx, dword [0x1020308]
cmp ecx, edi
jne 0x100ed05
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x1020308], eax
cmp eax, edi
je 0x100ed79
mov dword [0x102030c], 1
jmp 0x100ed38
mov eax, dword [0x102030c]
cmp dword [0x1020310], eax
jne 0x100ed38
lea eax, [eax*4 + 4]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp eax, edi
je 0x100ed79
mov dword [0x1020308], eax
inc dword [0x102030c]
push 0x8010
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
je 0x100ed79
lea eax, [esi + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x8000
push esi
push dword [0x101c9e4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x100ed79
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.0100eda5
cmp dword [ebp - 0x20], edi
je 0x100eda6
mov eax, dword [0x1020310]
mov ecx, dword [0x1020308]
mov dword [ecx + eax*4], esi
inc dword [0x1020310]
jmp 0x100edc4
push edi
push dword [0x101c9e4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
push 0x1020314
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
call fcn.0100e379
ret
Function at 0x100ef80
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x101c8c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x100effd
cmp eax, esi
ja 0x100effd
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100f013
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x100f013
xor eax, eax
jmp 0x100f04b
lea eax, [ebp - 0x414]
push eax
push 0
push 0x1006b50
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x100f00f
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 8]
push edi
call fcn.0100c026
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100e138
leave
ret 8

Function at 0x100f206
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x101ccf4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100f23f
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100f23f
mov eax, dword [eax]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x100f23f
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x100f23f
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x100f23f
mov eax, dword [eax]
test eax, eax
jne 0x100f244
mov eax, 0x10067d0
ret
Function at 0x10103bf
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x101c8c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
xor edi, edi
xor esi, esi
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x101043e
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x101042b
mov edi, dword [ebp - 0x14]
jmp 0x1010433
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x1010446
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100e138
leave
ret
Function at 0x1010f46
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101c8c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1020380], 0
jne 0x10110fc
mov eax, dword [ebp + 8]
mov dword [0x1020380], 1
mov dword [0x1020378], eax
call fcn.010109e1
test eax, eax
je 0x1010ff5
push 0x1007148
push 0x1007134
mov dword [0x1020330], 0x101083a
mov dword [0x1020340], 0x10108ae
mov dword [0x102034c], 0x1010928
mov dword [0x102035c], 0x101098c
mov dword [0x1020360], 0x101099d
mov dword [0x1020364], 0x10109ae
mov dword [0x1020370], 0x10109bf
mov dword [0x1020374], 0x10109d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1011045
mov dword [0x102036c], eax
jmp 0x101104f
mov dword [0x1020330], 0x1010a8c
mov dword [0x1020340], 0x1010b67
mov dword [0x102034c], 0x1010c48
mov dword [0x102035c], 0x101098c
mov dword [0x1020360], 0x1010d17
mov dword [0x1020364], 0x1010d88
mov dword [0x1020370], 0x1010e24
mov dword [0x1020374], 0x1010ec0
mov dword [0x102036c], 0x1010830
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov dword [0x1020334], 0x1010758
mov dword [0x1020338], 0x1010769
mov dword [0x102033c], 0x1016a65
mov dword [0x1020344], 0x101077a
mov dword [0x1020348], 0x101079b
mov dword [0x1020350], 0x10107ac
mov dword [0x1020354], 0x10107f4
mov dword [0x1020358], 0x1010a11
mov byte [ebp - 0x108], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x1007114
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x10110f2
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1020368], 0x1010816
test eax, eax
jne 0x10110fc
mov dword [0x1020368], 0x1010826
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.0100e138
leave
ret 4

Function at 0x1017f0b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x101c8c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01017ea0
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1017f7e
cmp dword [ebp - 0x94], 5
jb 0x1017f9f
jmp 0x1017f9b
cmp dword [ebp - 0x88], 1
jne 0x1017f9f
cmp dword [ebp - 0x94], 4
ja 0x1017f9b
jne 0x1017f9f
cmp dword [ebp - 0x90], 0
jbe 0x1017f9f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x100b090
call fcn.01017d68
test eax, eax
jge 0x1017fc0
mov byte [0x10207d8], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100e138
leave
ret
Function at 0x8bed37
Capabilities:
Access peb ldr_data

Disassembly:
call fcn.008bdcba
push edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
jmp 0x8bed47
pop word [esp]
lea esp, [esp + 1]
push bx
lea esp, [esp + 3]
jmp 0x8bed17
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
jmp 0x8bedad
push eax
jmp 0x8bdcb5

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

Disassembly:
xor edx, edx
push esi
mov esi, ecx
cmp dword [0x40b0c4], edx
jne 0x4013d5
push ebx
push edi
push 8
mov ecx, edx
pop edi
mov ebx, ecx
and bl, 1
movzx ebx, bl
neg ebx
sbb ebx, ebx
and ebx, 0xedb88320
shr ecx, 1
xor ecx, ebx
dec edi
jne 0x4013aa
mov dword [edx*4 + 0x40b0c0], ecx
inc edx
cmp edx, 0x100
jl 0x4013a5
pop edi
pop ebx
not esi
jmp 0x4013f3
movzx ecx, byte [eax]
dec dword [esp + 8]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x40b0c0]
inc eax
cmp dword [esp + 8], 0
ja 0x4013d9
mov eax, esi
not eax
pop esi
ret 4

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x401f35
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [0x486b58]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x401f99
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00402630
lea ecx, [esp + 0x14]
call fcn.00401d65
cmp eax, 0x8aafdc01
je 0x401fb1
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402ef5
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x401f68
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004069ff
add esp, 0x24
ret
mov edx, str.QwruxAA
call fcn.00403895
push eax
call fcn.00403863
mov eax, dword [ebx + 0x24]
pop ecx
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402ef5
jmp 0x401f9b
Function at 0x41834a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407940
mov eax, dword [0x42c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00414745
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41838c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4184e8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421760
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x486750]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418770
mov ecx, dword [esi*4 + 0x486750]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4184e1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4184e1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4184e1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418770
add esp, 0x14
test edx, edx
jl 0x4184e1
jg 0x418457
test eax, eax
jb 0x4184e1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4184e1
jl 0x418471
cmp dword [ebp - 0x1008], eax
ja 0x4184e1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41848f
test ebx, ebx
je 0x4184c8
cmp ecx, edi
jae 0x4184c8
mov al, byte [ecx]
cmp al, 0xd
jne 0x4184a9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4184b5
cmp byte [ecx + 1], 0xa
jne 0x4184b5
inc ecx
jmp 0x4184b5
movzx eax, al
movsx eax, byte [eax + 0x42c9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41848f
cmp edx, ebx
jne 0x41848f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4184e6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004069ff
leave
ret
Function at 0x41eada
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x486750]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41eb1a
cmp byte [ebx], 0xa
jne 0x41eb1a
or byte [eax + edi + 0x28], 4
jmp 0x41eb1f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ec1d
mov al, byte [edx]
cmp al, 0x1a
je 0x41ebff
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41eb4e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41eb73
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41eb7d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41eb30
jmp 0x41ec1d
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ebfa
cmp dword [ebp - 0xc], 0
je 0x41ebfa
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486750]
test byte [eax + edi + 0x28], 0x48
je 0x41ebd4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ebbf
mov byte [esi], dl
jmp 0x41ebd0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486750]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ec1d
cmp byte [ebp - 1], 0xa
jne 0x41ebe3
cmp esi, ebx
jne 0x41ebe3
mov byte [esi], 0xa
jmp 0x41ec1c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041878e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ec1d
mov byte [esi], 0xd
jmp 0x41ec1c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486750]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ec19
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ec1d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret