joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411a70
Capabilities:
Print debug messages
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi]
mov dword [esp + 4], 0xfffffffe
call dword [eax + 0x1c]
test eax, eax
je 0x411ba3
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x411aa1
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
test eax, eax
je 0x411ba3
mov eax, dword [esi + 0x50]
test eax, eax
je 0x411b81
push edi
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x411acc
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push 0
lea eax, [esp + 0x18]
push eax
push ecx
push edi
push edx
call ebx
test eax, eax
jne 0x411b28
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
lea ecx, [eax - 0x44d]
cmp ecx, 0xb
ja case.0x411b04.1102
movzx ecx, byte [ecx + 0x411bc4]
jmp dword [ecx*4 + 0x411bb0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0xc]
push 0
lea eax, [esp + 0x18]
push eax
push ecx
push edi
push edx
call ebx
test eax, eax
je 0x411af0
mov esi, dword [esp + 0x14]
neg esi
sbb esi, esi
and esi, 0xffff
jmp 0x411b67
mov dword [esp + 0x10], 0
jmp 0x411b63
mov dword [esp + 0x10], 1
jmp case.0x411b04.1102
mov dword [esp + 0x10], 0xffff
cmp eax, 0x452
je 0x411b63
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x14]
mov esi, dword [esp + 0x10]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 8
ret
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x40
push str.ERROR:_CTape::GetTapeStatus___m_dwBlockSize_was_zero_bytes__n
push eax
call dword [sym.imp.MSVCR71.dll_fwprintf]
add esp, 8
push str.ERROR:_CTape::GetTapeStatus___m_dwBlockSize_was_zero_bytes__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 0xfffffffe
pop esi
add esp, 8
ret
Function at 0x411c20
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 8], eax
mov dword [esi], 0x421a64
mov dword [esi + 0xc], 0xffffffff
xor ecx, ecx
push edi
xor edi, edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
lea edx, [esi + 0x10]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ecx
xor eax, eax
lea ecx, [esi + 0x30]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push edi
mov dword [ecx + 0xc], eax
push edi
mov dword [ecx + 0x10], eax
push 3
mov dword [ecx + 0x14], eax
push edi
mov dword [ecx + 0x18], eax
push edi
mov dword [ecx + 0x1c], eax
mov edx, dword [esi + 8]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x411cef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push edi
lea ecx, [esp + 0x14]
push ecx
push 0x400
push eax
push edi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [esp + 0xc]
mov eax, dword [sym.imp.MSVCR71.dll__iob]
push edx
add eax, 0x40
push 0x421a8c
push eax
call dword [sym.imp.MSVCR71.dll_fwprintf]
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0xc
push ecx
call edi
push 0x41e304
call edi
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x413110
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
push 0x37dc
xor edi, edi
push 8
mov ebx, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0x37dc
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x413153
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlSession_ManagerMemory_Management
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41319d
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x20]
push str.PagingFiles
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41319d
push esi
mov ecx, ebx
call fcn.00413040
mov edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4131ac
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4131d0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push esi
mov esi, ecx
mov dword [esp + 0x18], eax
lea ecx, [esp + 4]
mov dword [esp + 0x1c], eax
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 8], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, esi
call fcn.00413110
mov edx, dword [esp + 0xc]
shr edx, 0x14
add edx, 0x10
cmp eax, edx
sbb eax, eax
inc eax
pop esi
add esp, 0x20
ret

Function at 0x4131e8
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push esi
mov esi, ecx
mov dword [esp + 0x18], eax
lea ecx, [esp + 4]
mov dword [esp + 0x1c], eax
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 8], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, esi
call fcn.00413110
mov edx, dword [esp + 0xc]
shr edx, 0x14
add edx, 0x10
cmp eax, edx
sbb eax, eax
inc eax
pop esi
add esp, 0x20
ret
Function at 0x4153e0
Capabilities:
Check os version
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x334
mov eax, dword [0x427b3c]
push ebx
mov dword [esp + 0x334], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
dec eax
push edi
je 0x415506
dec eax
je 0x41545f
dec eax
jne 0x415519
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x128]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x12c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x128]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x415519
mov word [eax], bx
jmp 0x415519
xor eax, eax
lea edx, [esp + 0x10]
mov ecx, 0x45
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], 2
jne 0x4154f1
cmp dword [esp + 0x14], 5
jb 0x4154f1
push 0x105
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x105
lea ecx, [esp + 0x12c]
push str.kernel32.dll
push ecx
call fcn.00415370
add esp, 0xc
test al, al
je 0x4154f1
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4154f1
push str.GetSystemWindowsDirectory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4154f1
push 0x105
lea ecx, [esp + 0x12c]
push ecx
call eax
jmp 0x415519
push 0x105
lea edx, [esp + 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x415519
push 0x105
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x105
lea ecx, [esp + 0x12c]
push esi
push ecx
call fcn.00415370
add esp, 0xc
test al, al
je 0x415554
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x33c]
call fcn.00416740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x33c]
mov eax, ebx
call fcn.00416740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415585
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4155db
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x41bcc8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4155ce
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4155dd
xor eax, eax
pop esi
leave
ret 4
Function at 0x4164fb
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x4227d0
call fcn.00416850
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x41653b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41653b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x416553
cmp eax, 0x20b
je 0x416540
mov dword [ebp - 0x1c], edi
jmp 0x416567
cmp dword [ecx + 0x84], 0xe
jbe 0x41653b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x416561
cmp dword [ecx + 0x74], 0xe
jbe 0x41653b
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x428134], 0xffffffff
or dword [0x428138], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x4280e8]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x4280e4]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x428130], eax
call fcn.00416999
call fcn.00416a4e
cmp dword [0x427b58], edi
jne 0x4165c7
push fcn.00416a4e
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00416a37
push 0x427030
push 0x42702c
call sub.MSVCR71.dll__initterm
push 0x4169e2
call fcn.0041682d
mov eax, dword [0x4280e0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4280dc]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x41661b
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x427028
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x416645
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x4166ff
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x4166b4
cmp ax, di
je 0x41665b
cmp dword [ebp - 0x20], edi
jne 0x4166b4
mov ax, word [esi]
cmp ax, di
je 0x416670
cmp ax, 0x20
ja 0x416670
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x41665b
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x41668c
movzx eax, word [ebp - 0x54]
jmp 0x41668f
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00416fe7
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x4166ac
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4166f9
cmp ax, 0x22
jne 0x4166c5
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x416645
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0041688b
ret
Function at 0x403ba0
Capabilities:
Encode data using xor
Hash data using murmur2
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
mov eax, dword [0x433014]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4c]
xor ecx, ecx
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x18], ecx
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x2c], eax
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edx, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], eax
test eax, eax
je 0x403d8a
nop dword [eax]
mov edx, dword [edx]
xorps xmm0, xmm0
add edx, esi
mov dword [esp + 0x40], 0
mov eax, edx
mov dword [esp + 0x44], 0
movups xmmword [esp + 0x30], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403c11
sub eax, esi
lea ecx, [esp + 0x30]
push eax
push edx
call fcn.004014d0
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x30]
mov ebx, dword [esp + 0x30]
mov esi, edi
xor esi, 0x235
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x44], 0x10
mov ebp, edi
cmovae eax, ebx
shr ebp, 2
xor edx, edx
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x403c89
mov ebx, eax
nop word [eax + eax]
imul ecx, dword [ebx + edx*4], 0x5bd1e995
inc edx
imul esi, esi, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor esi, ecx
cmp edx, ebp
jl 0x403c60
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
and edi, 3
xor ecx, ecx
sub edi, 1
je 0x403caf
sub edi, 1
je 0x403ca5
sub edi, 1
jne 0x403cc1
movsx ecx, byte [eax + ebp*4 + 2]
shl ecx, 0x10
movsx eax, byte [eax + ebp*4 + 1]
shl eax, 8
xor ecx, eax
mov eax, dword [esp + 0x10]
movsx eax, byte [eax + ebp*4]
xor eax, ecx
imul eax, eax, 0x5bd1e995
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
cmp eax, dword [esp + 0x54]
je 0x403d37
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
add edx, 4
mov dword [esp + 0x14], edx
cmp eax, 0x10
jb 0x403d1e
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x403d10
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403da3
push ecx
push ebx
call fcn.00407663
mov edx, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x28]
jb 0x403bf0
jmp 0x403d8a
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + esi]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x403d8a
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x403d80
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403da3
push ecx
push ebx
call fcn.00407663
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407671
add esp, 0x3c
ret
call fcn.0040c0ef
int3
Function at 0x4082bc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4082fb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4082fb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4082fb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4082fb
cmp dword [ecx + 0x74], 0xe
jbe 0x4082fb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x414866
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428f38
push 0x428f30
push str.FlsAlloc
push 0x1e
call fcn.004146d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41489a
push dword [ebp + 8]
mov ecx, esi
call dword [0x42513c]
call esi
jmp 0x4148a0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4148e4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428f48
push 0x428f40
push str.FlsGetValue
push 0x20
call fcn.004146d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41491b
push dword [ebp + 8]
mov ecx, esi
call dword [0x42513c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x416fcd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416c6f

Function at 0x416fd8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416dfe
Function at 0x418643
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408420
mov eax, dword [0x433014]
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.00415dfb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418685
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4187e1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423bc0
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 + 0x4349d0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418a69
mov ecx, dword [esi*4 + 0x4349d0]
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 0x4187da
cmp eax, dword [edi + ecx + 0x24]
jne 0x4187da
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 0x4187da
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418a69
add esp, 0x14
test edx, edx
jl 0x4187da
jg 0x418750
test eax, eax
jb 0x4187da
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4187da
jl 0x41876a
cmp dword [ebp - 0x1008], eax
ja 0x4187da
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418788
test ebx, ebx
je 0x4187c1
cmp ecx, edi
jae 0x4187c1
mov al, byte [ecx]
cmp al, 0xd
jne 0x4187a2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4187ae
cmp byte [ecx + 1], 0xa
jne 0x4187ae
inc ecx
jmp 0x4187ae
movzx eax, al
movsx eax, byte [eax + 0x433960]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418788
cmp edx, ebx
jne 0x418788
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4187df
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407671
leave
ret
Function at 0x41c0a3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41c140
push ebx
push esi
call fcn.0041c06c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041acf1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41c0ed
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c13f
push edi
push eax
call fcn.00414e99
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41c10d
call fcn.0041439b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c13e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041acf1
add esp, 0x20
test eax, eax
jne 0x41c12c
push edi
call fcn.0041439b
jmp 0x41c134
push ebx
call fcn.0041439b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x420cbd
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 + 0x4349d0]
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 0x420cfd
cmp byte [ebx], 0xa
jne 0x420cfd
or byte [eax + edi + 0x28], 4
jmp 0x420d02
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x420e00
mov al, byte [edx]
cmp al, 0x1a
je 0x420de2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x420d31
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x420d56
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x420d60
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 0x420d13
jmp 0x420e00
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 0x420ddd
cmp dword [ebp - 0xc], 0
je 0x420ddd
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4349d0]
test byte [eax + edi + 0x28], 0x48
je 0x420db7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x420da2
mov byte [esi], dl
jmp 0x420db3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4349d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x420e00
cmp byte [ebp - 1], 0xa
jne 0x420dc6
cmp esi, ebx
jne 0x420dc6
mov byte [esi], 0xa
jmp 0x420dff
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418a87
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x420e00
mov byte [esi], 0xd
jmp 0x420dff
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4349d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420dfc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420e00
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret