joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6cb16b80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x12c
mov ebx, dword [esp + 0x140]
call sym.__errno
mov dword [eax], 0
test ebx, ebx
je 0x6cb16d20
cmp byte [ebx], 0
je 0x6cb16d00
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x6cb16d38
test al, 0x10
je 0x6cb16d00
lea esi, [esp + 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov ebx, esi
mov dword [esp], esi
call sym.__fullpath
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x6cb16be4
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ebx + 2]
cmove ebx, edx
mov ecx, eax
add cl, al
sbb ebx, 3
sub ebx, esi
lea eax, [ebx + 0x233]
mov dword [esp], eax
call sym._malloc
mov ebp, eax
test eax, eax
je 0x6cb16d4a
lea edx, [eax + 0x22c]
lea eax, [ebx + 1]
cmp eax, 4
jb 0x6cb16cb0
mov ecx, dword [esp + eax + 0x18]
mov edi, edx
mov dword [edx + eax - 4], ecx
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp + 0x22c], 0
jne 0x6cb16cd0
add ebx, edx
mov eax, 0x2a
lea edx, [ebp + 0x120]
mov ecx, 0x41
mov word [ebx], ax
mov edi, edx
xor eax, eax
mov dword [ebp + 0x224], 0xffffffff
mov dword [ebp + 0x228], 0
mov dword [ebp + 0x118], 0
mov dword [ebp + 0x11c], 0
rep stosd dword es:[edi], eax
add esp, 0x12c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x6cb16c4d
movzx ecx, byte [esi]
mov byte [edx], cl
test al, 2
je 0x6cb16c4d
movzx ecx, word [esi + eax - 2]
mov word [edx + eax - 2], cx
jmp 0x6cb16c4d
movzx ecx, byte [ebp + ebx + 0x22b]
add ebx, edx
cmp cl, 0x5c
je 0x6cb16c58
cmp cl, 0x2f
je 0x6cb16c58
mov ecx, 0x5c
mov word [ebx], cx
lea ebx, [edx + eax]
jmp 0x6cb16c58
call sym.__errno
xor ebp, ebp
mov dword [eax], 0x14
add esp, 0x12c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
call sym.__errno
xor ebp, ebp
mov dword [eax], 0xe
jmp 0x6cb16c99
call sym.__errno
xor ebp, ebp
mov dword [eax], 2
jmp 0x6cb16c99
call sym.__errno
mov dword [eax], 0xc
jmp 0x6cb16c99
Function at 0x41c435c0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x41c436e9
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetEnhMetaFileBits]
test eax, eax
mov dword [esi + 0x18], eax
jne 0x41c435f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 4
call fcn.41c43250
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x41c4360e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 4
call fcn.41c43250
push edi
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
jne 0x41c4362b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 4
call fcn.41c43250
push 1
push 1
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push edi
push 0
mov dword [esi + 0x30], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x41c43657
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 4
call fcn.41c43250
mov edx, dword [esi + 0x1c]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call edi
test eax, eax
mov dword [esi + 8], eax
jne 0x41c43694
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
call fcn.41c43250
push 0
push 0
push 1
push 0
call edi
test eax, eax
mov dword [esi + 0xc], eax
jne 0x41c436b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
call fcn.41c43250
lea eax, [esi + 0x14]
push eax
push 4
push esi
push 0x41c43570
push 0
push 0
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi + 0x10], eax
jne 0x41c436e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
call fcn.41c43250
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
ret
Function at 0x41c4b190
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x41c9ac61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov eax, dword [esp + 0x18]
fld qword [0x41c9d660]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
fstp qword [esi + 0x28]
fld qword [0x41c9d660]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
fstp qword [esi + 0x30]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x1c], eax
xor eax, eax
mov dword [esi + 0x18], edx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x38], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
mov dword [esp + 0x10], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], eax
lea ecx, [esi + 0x60]
mov byte [esi + 0x5c], al
mov byte [esi + 0x5d], al
call fcn.41c46750
lea ecx, [esi + 0xa8]
mov byte [esp + 0x10], 2
call fcn.41c43390
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, dword [esp + 8]
mov dword [esi + 0x10], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x20
Function at 0x41c4da10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x618
mov eax, dword [0x41caa230]
mov dword [esp + 0x614], eax
mov eax, 0x200
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x118]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x118]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41c4da50
mov ecx, 0xb
mov esi, str.SoftwareBusiness_ObjectsSuite_11.5Shared
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x118]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41c4da70
mov eax, dword [str.Help]
mov cx, word [0x41c9d850]
mov dword [edi], eax
mov word [edi + 4], cx
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x218]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x418]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x18]
mov ecx, 0x40
lea edi, [esp + 0x18]
push edx
rep stosd dword es:[edi], eax
call fcn.41c4e950
lea eax, [esp + 0x1c]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c4dac7
sub eax, edx
mov esi, eax
lea eax, [esp + 0xc]
push eax
push 1
push 0
lea ecx, [esp + 0x124]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x41c]
push eax
push 0
push 0
push str.BaseName
push ecx
call edi
cmp esi, 2
jl 0x41c4db42
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x21c]
push eax
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
push edx
mov byte [esp + esi + 0x30], 0
call edi
test eax, eax
je 0x41c4db5a
dec esi
cmp esi, 2
jge 0x41c4db16
test eax, eax
je 0x41c4db5a
xor eax, eax
mov ecx, dword [esp + 0x61c]
call fcn.41c9a4ee
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x418]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c4db63
lea edi, [esp + 0x218]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41c4db74
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x218]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41c4db94
mov eax, dword [str..chm]
mov cl, byte [0x41c9d83c]
mov edx, dword [ebp + 8]
mov dword [edi], eax
lea eax, [esp + 0x218]
mov byte [edi + 4], cl
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41c4dbc0
mov ecx, dword [esp + 0x61c]
mov eax, 1
call fcn.41c9a4ee
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41c5cee0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x41caa358]
sub esp, 0x10
test eax, eax
jne 0x41c5cf91
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, closesocket
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 0
mov byte [0x41caa354], 0
xor esi, esi
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push 0
push str.SoftwareBusiness_ObjectsSuite_11.5Crystal_ReportsExportPdf
push eax
call edi
test eax, eax
jne 0x41c5cf78
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x41c9e258
push edx
call ebp
test eax, eax
jne 0x41c5cf6d
mov ecx, dword [esp + 0x10]
test ecx, ecx
setne al
mov byte [0x41caa354], al
inc esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, 2
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jl 0x41c5cf25
push 0x41caa358
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
pop edi
pop esi
pop ebp
mov al, byte [0x41caa354]
add esp, 0x10
ret
Function at 0x41c66bb0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x41caa230]
push esi
mov dword [esp + 0x194], eax
lea eax, [esp + 4]
push eax
push 0x3031
mov esi, ecx
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x41c66bf1
mov eax, 2
pop esi
mov ecx, dword [esp + 0x190]
call fcn.41c9a4ee
add esp, 0x194
ret
mov ecx, dword [esp + 0x194]
mov byte [esi + 0x14], 1
xor eax, eax
pop esi
call fcn.41c9a4ee
add esp, 0x194
ret

Function at 0x41c66c50
Capabilities:
Create udp socket
Get hostname
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x100c
call fcn.41c9a480
mov eax, dword [0x41caa230]
push ebx
mov ebx, ecx
mov dword [esp + 0x100c], eax
mov al, byte [ebx + 0x14]
test al, al
push esi
push edi
jne 0x41c66c85
call fcn.41c66bb0
test eax, eax
jne 0x41c66dd9
mov si, word [ebp + 0xc]
cmp si, 0x2000
jbe 0x41c66caa
mov eax, 7
mov ecx, dword [esp + 0x1014]
call fcn.41c9a4ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx], 0xffffffff
jne 0x41c66cdb
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x41c66cdb
mov eax, 4
mov ecx, dword [esp + 0x1014]
call fcn.41c9a4ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, 0x400
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push 0x1000
lea eax, [esp + 0x14]
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
je 0x41c66d15
mov eax, 6
mov ecx, dword [esp + 0x1014]
call fcn.41c9a4ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov cl, byte [ebx + 0x15]
test cl, cl
jne 0x41c66d6d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov cl, byte [eax]
mov dl, byte [eax + 1]
mov dword [esp + 0xc], 0
mov byte [esp + 0xc], cl
mov cl, byte [eax + 2]
mov byte [esp + 0xd], dl
mov dl, byte [eax + 3]
mov byte [esp + 0xe], cl
mov byte [esp + 0xf], dl
mov eax, dword [esp + 0xc]
push 0xf7f0
mov dword [ebx + 8], eax
mov word [ebx + 4], 2
call sub.WSOCK32.dll_htons
mov word [ebx + 6], ax
mov byte [ebx + 0x15], 1
movzx edx, si
mov ecx, edx
mov esi, ecx
shr ecx, 2
xor eax, eax
lea edi, [ebx + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [ebp + 8]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea edi, [ebx + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x10
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 4]
push ecx
push 0
push edx
mov edx, dword [ebx]
lea eax, [ebx + 0x1c]
push eax
push edx
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
jne 0x41c66dcf
mov eax, 8
mov ecx, dword [esp + 0x1014]
call fcn.41c9a4ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov ecx, dword [esp + 0x1014]
call fcn.41c9a4ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41c67220
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareBusiness_ObjectsSuite_11.5Crystal_Reports
push reloc.OLEAUT32.dll_SysReAllocString
xor bl, bl
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41c672d8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
push str.CommonFiles
push eax
call edi
test eax, eax
jne 0x41c672ad
cmp dword [esp + 0x10], 1
jne 0x41c672ad
mov ecx, dword [esp + 0xc]
cmp ecx, dword [esp + 0x18]
jae 0x41c672ad
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push 0
push str.CommonFiles
push ecx
call edi
test eax, eax
jne 0x41c672ad
mov bl, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
pop edi
je 0x41c672d8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x41c672d8
cmp byte [eax + esi - 1], 0x5c
je 0x41c672d8
mov byte [eax + esi], 0x5c
mov byte [eax + esi + 1], 0
mov al, bl
pop ebx
add esp, 0xc
ret

Function at 0x41c67960
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x41caa230]
mov dword [esp + 0x208], eax
mov eax, dword [0x41caa3b8]
test eax, eax
jne 0x41c67990
push 0x41caa3b8
mov dword [0x41caa3b8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x41caa3c8], 1
jne 0x41c67a28
push esi
mov esi, dword [esp + 0x218]
test esi, esi
jne 0x41c679c7
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop esi
mov ecx, dword [esp + 0x208]
call fcn.41c9a4ee
add esp, 0x20c
ret 8
lea eax, [esp + 4]
push eax
push 0x206
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x41c679f1
pop esi
mov ecx, dword [esp + 0x208]
call fcn.41c9a4ee
add esp, 0x20c
ret 8
mov ecx, dword [esp + 0x214]
push ecx
push esi
push 0xffffffffffffffff
lea edx, [esp + 0x10]
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [esi + eax*2], 0
inc eax
pop esi
mov ecx, dword [esp + 0x208]
call fcn.41c9a4ee
add esp, 0x20c
ret 8
mov eax, dword [esp + 0x214]
mov ecx, dword [esp + 0x210]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x208]
call fcn.41c9a4ee
add esp, 0x20c
ret 8
Function at 0x41c6c840
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c9ba4b
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x28
test eax, eax
push ebp
mov ebp, ecx
jne 0x41c6c875
pop ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
push esi
push edi
push eax
lea eax, [esp + 0x10]
push eax
call fcn.41c68a30
push 0x26
mov edi, eax
call fcn.41c671c0
add esp, 0xc
mov dword [esp + 0x44], eax
test eax, eax
mov dword [esp + 0x3c], 0
je 0x41c6c8a9
mov ecx, eax
call fcn.41c6d7e0
mov esi, eax
jmp 0x41c6c8ab
xor esi, esi
test esi, esi
mov dword [esp + 0x3c], 0xffffffff
jne 0x41c6c8cd
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
mov word [esi], 0x26
mov ecx, dword [edi + 2]
mov dword [esi + 2], ecx
mov dx, word [edi + 6]
mov word [esi + 6], dx
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov cx, word [edi + 0xc]
mov word [esi + 0xc], cx
mov dx, word [edi + 0xe]
mov word [esi + 0xe], dx
mov ax, word [edi + 0x10]
mov word [esi + 0x10], ax
mov cx, word [edi + 0x12]
mov word [esi + 0x12], cx
mov dx, word [edi + 0x14]
mov word [esi + 0x14], dx
mov ax, word [edi + 0x16]
mov word [esi + 0x16], ax
mov cx, word [edi + 0x18]
push ebx
lea eax, [esi + 0x1a]
lea ebx, [esi + 0x1e]
mov word [esi + 0x18], cx
mov dword [eax], 0
mov dword [ebx], 0
mov dword [esi + 0x22], 0
mov ecx, dword [edi + 0x1a]
test ecx, ecx
je 0x41c6c973
push eax
push ecx
mov ecx, ebp
call fcn.41c684d0
test eax, eax
jne 0x41c6c973
mov ecx, esi
call fcn.41c6ee00
push esi
call fcn.41c671e0
add esp, 4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
mov eax, dword [edi + 0x1e]
test eax, eax
je 0x41c6c987
push ebx
push eax
mov ecx, ebp
call fcn.41c684d0
test eax, eax
je 0x41c6c94c
mov eax, dword [edi + 0x22]
test eax, eax
je 0x41c6c9bc
cmp dword [ebp + 8], 0x80000
ja 0x41c6c9ad
push 0x48
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x41c6c9bc
mov eax, dword [edi + 0x22]
cmp word [eax], 0x48
jb 0x41c6c9bc
push eax
mov ecx, ebp
call fcn.41c6c240
test eax, eax
mov dword [esi + 0x22], eax
je 0x41c6c94c
mov ecx, dword [esp + 0x38]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x41c6c9e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41c9ba6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
xor ebp, ebp
cmp ebx, ebp
mov esi, ecx
mov dword [esp + 0xc], esi
jne 0x41c6ca21
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
push edi
push 0x1c
call fcn.41c671c0
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, ebp
mov dword [esp + 0x34], ebp
je 0x41c6ca43
mov ecx, eax
call fcn.41c6d9f0
mov edi, eax
jmp 0x41c6ca45
xor edi, edi
cmp edi, ebp
mov dword [esp + 0x34], 0xffffffff
je 0x41c6ca98
lea eax, [esp + 0x14]
push ebx
push eax
mov dword [edi + 0x18], ebx
call fcn.41c68a90
mov ebx, eax
mov ecx, dword [ebx + 2]
mov dword [edi + 2], ecx
mov dx, word [ebx + 6]
mov word [edi + 6], dx
mov eax, dword [ebx + 8]
add esp, 8
cmp eax, ebp
je 0x41c6caaf
push eax
mov ecx, esi
call fcn.41c69bc0
cmp eax, ebp
mov dword [edi + 8], eax
jne 0x41c6caaf
mov ecx, edi
call fcn.41c6ed60
push edi
call fcn.41c671e0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
mov ax, word [ebx + 0xc]
mov word [edi + 0xc], ax
cmp word [ebx + 0xc], bp
jbe 0x41c6cb10
cmp dword [ebx + 0xe], ebp
je 0x41c6cb10
movzx ecx, word [ebx + 0xc]
shl ecx, 2
push ecx
call fcn.41c671c0
add esp, 4
mov dword [edi + 0xe], eax
cmp word [ebx + 0xc], bp
jbe 0x41c6cb10
jmp 0x41c6cae0
mov edx, dword [ebx + 0xe]
mov ecx, dword [esp + 0x10]
movzx esi, bp
shl esi, 2
mov eax, dword [edx + esi]
push eax
call fcn.41c6c010
mov ecx, dword [edi + 0xe]
mov dword [esi + ecx], eax
mov edx, dword [edi + 0xe]
cmp dword [esi + edx], 0
je 0x41c6ca88
inc ebp
cmp bp, word [ebx + 0xc]
jb 0x41c6cae0
mov esi, dword [esp + 0x10]
cmp dword [esi + 8], 0x80000
jbe 0x41c6cb33
mov ebx, dword [ebx + 0x12]
test ebx, ebx
je 0x41c6cb33
push ebx
mov ecx, esi
call fcn.41c6b4d0
test eax, eax
mov dword [edi + 0x12], eax
je 0x41c6ca88
mov ecx, dword [esp + 0x2c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x41c701d0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x204
mov eax, dword [0x41caa230]
mov ecx, dword [esp + 0x208]
mov dword [esp + 0x200], eax
lea eax, [esp + 0x20c]
push eax
push ecx
lea edx, [esp + 8]
push 0x200
push edx
call dword [sym.imp.MSVCR71.dll__vsnprintf]
add esp, 0x10
lea eax, [esp]
push eax
mov byte [esp + 0x203], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x200]
call fcn.41c9a4ee
add esp, 0x204
ret
Function at 0x41c70ae0
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [esp + 4]
jmp 0x41c73e10
sub esp, 0x28
push ebx
push esi
mov esi, ecx
mov edx, dword [esi + 0x38]
push edi
lea edi, [esi + 0x38]
xor eax, eax
test edx, edx
jle 0x41c73d5f
mov ecx, dword [edi + 8]
add eax, dword [ecx]
add ecx, 4
dec edx
jne 0x41c73d57
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x74]
test eax, eax
mov dword [esp + 0x18], edi
jne 0x41c73da4
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0xf]
push eax
push 0
call ebx
lea edi, [eax + 1]
mov eax, edi
test eax, eax
jne 0x41c73d8b
mov eax, 1
push eax
call fcn.41c671c0
add esp, 4
test eax, eax
jne 0x41c73d9d
jmp fcn.41c43850
push eax
push edi
mov dword [esi + 0x74], eax
call ebx
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x41c73dc5
push 0x1e
lea ecx, [esp + 0x14]
call fcn.41c754f0
push 0x41ca5388
lea ecx, [esp + 0x14]
push ecx
call sub.MSVCR71.dll__CxxThrowException
mov ebx, dword [esi + 0x24]
mov edx, dword [esi + 0x6c]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], 0
jle 0x41c73e00
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + edi*4]
lea edx, [esp + 0x18]
mov dword [esp + 0x24], ecx
push edx
mov ecx, esi
mov dword [esp + 0x24], edi
call fcn.41c73b20
inc edi
cmp edi, ebx
jl 0x41c73de1
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebx
add esp, 0x28
ret
jmp 0x41c73d40
Function at 0x41c71f50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41c9bc0b
push eax
mov eax, 0x105c
mov dword fs:[0], esp
call fcn.41c9a480
mov eax, dword [0x41caa230]
push esi
mov esi, dword [esp + 0x1074]
push edi
mov dword [esp + 0x1060], eax
push 0x9021
lea eax, [esi + 0x54]
push eax
lea ecx, [esp + 0x58]
call fcn.41c7a960
mov al, byte [esi]
xor edx, edx
cmp al, dl
mov dword [esp + 0x106c], edx
mov word [esp + 0x16], 8
mov word [esp + 0x14], dx
je 0x41c71fb8
mov word [esp + 0x16], 0x18
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x50]
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 0x44]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x107c]
mov cx, word [eax + 0xc]
mov edi, dword [eax + 0x1c]
mov word [esp + 0x18], cx
mov cx, word [eax + 0xe]
mov word [esp + 0x1a], cx
mov cx, word [eax + 0x10]
mov word [esp + 0x24], cx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], edi
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
lea ecx, [esi + 1]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 8]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x1078]
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], str.Regular
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0x41c71f10
mov dword [esp + 0x4c], 0x41c71f30
mov dword [esp + 0x50], edx
call fcn.41c7d170
lea ecx, [esp + 0x50]
call fcn.41c7a400
lea ecx, [esp + 0x50]
mov dword [esi + 0x158], eax
call fcn.41c7a8a0
lea ecx, [esp + 0x50]
mov dword [esp + 0x106c], 0xffffffff
call fcn.41c7aa00
mov ecx, dword [esp + 0x1064]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x105c]
mov al, 1
pop esi
call fcn.41c9a4ee
add esp, 0x1068
ret

Function at 0x41c723c0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x74]
test eax, eax
push esi
push edi
je 0x41c723d5
push eax
call fcn.41c67200
add esp, 4
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x41c7241a
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x10]
push eax
push esi
call edi
lea esi, [eax + 1]
mov eax, esi
test eax, eax
jne 0x41c723f9
mov eax, 1
push eax
call fcn.41c671c0
add esp, 4
test eax, eax
jne 0x41c7240b
call fcn.41c43850
push eax
push esi
mov dword [ebx + 0x74], eax
call edi
pop edi
pop esi
mov al, 1
pop ebx
ret 4
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c72420
sub eax, edx
inc eax
jne 0x41c72431
mov eax, 1
push eax
call fcn.41c671c0
add esp, 4
test eax, eax
jne 0x41c72443
call fcn.41c43850
mov edx, eax
mov dword [ebx + 0x74], eax
mov ecx, esi
sub edx, esi
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x41c72450
pop edi
pop esi
mov al, 1
pop ebx
ret 4