joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d40
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4094f2
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x40c018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.004027e0
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.00402810
push eax
lea ecx, [ebp - 0x14]
call fcn.004028a0
movzx edx, al
test edx, edx
je 0x401e9e
push 0x40a2ec
lea ecx, [ebp - 0x14]
call fcn.00402860
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004024a0
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
or edx, 1
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x38]
call fcn.00402640
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401e42
push 0x40a2ec
lea ecx, [ebp - 0x14]
call fcn.00402860
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004024a0
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
or edx, 2
mov dword [ebp - 0x2c], edx
push 0
lea ecx, [ebp - 0x14]
call fcn.00402860
mov ecx, eax
call fcn.00402640
push eax
mov ecx, dword [ebp - 0x40]
call fcn.00402640
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x401e42
mov dword [ebp - 0x44], 1
jmp 0x401e49
mov dword [ebp - 0x44], 0
mov al, byte [ebp - 0x44]
mov byte [ebp - 0x1d], al
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
and ecx, 2
je 0x401e6a
and dword [ebp - 0x2c], 0xfffffffd
lea ecx, [ebp - 0x28]
call fcn.004020e0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
and edx, 1
je 0x401e85
and dword [ebp - 0x2c], 0xfffffffe
lea ecx, [ebp - 0x24]
call fcn.004020e0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x401e91
xor al, al
jmp 0x401ea0
lea ecx, [ebp - 0x14]
call fcn.00402880
jmp 0x401d7b
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x406af8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x40c018]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00406a37
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x406b47
cmp dword [ebp - 0x1c], 5
jb 0x406b5f
jmp 0x406b5b
cmp dword [ebp - 0x10], 1
jne 0x406b5f
cmp dword [ebp - 0x1c], 4
ja 0x406b5b
jne 0x406b5f
cmp dword [ebp - 0x18], 0
jbe 0x406b5f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40a278
call fcn.00406911
test eax, eax
jge 0x406b80
mov byte [0x40c53c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00406bbc
add ebp, 0x78
leave
ret
Function at 0x406bbc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c018]
jne 0x406bc6
repz ret
jmp fcn.00407138

Function at 0x407670
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0x40
push 0
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x44], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x48], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4c], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0x54], 0x10325476
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4082a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402640
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4082d4
mov ecx, dword [ebp + 8]
call fcn.00402640
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
jne 0x4082d4
mov dword [ebp - 4], 1
jmp 0x4082db
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x408560
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4096cf
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40c018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x18]
call fcn.00401fa0
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x408677
mov dword [ebp - 0x1c], 0
jmp 0x4085cf
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jge 0x40866d
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx*4]
push eax
lea ecx, [ebp - 0x20]
call fcn.00402060
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00402270
push 0
mov ecx, 0x40c534
call fcn.00402640
push eax
lea ecx, [ebp - 0x20]
call fcn.004021a0
test eax, eax
jne 0x40865c
mov ecx, 0x40c534
call fcn.00402570
push eax
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004022c0
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402130
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.004020e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004020e0
jmp 0x40866d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004020e0
jmp 0x4085c6
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402000
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004020e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x408f80
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40988a
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x40c018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.004089a0
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x408fbf
xor eax, eax
jmp 0x409163
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [ebp - 0x1c]
push edx
call fcn.004017f0
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402640
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409001
lea ecx, [ebp - 0x1c]
call fcn.00402640
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
jne 0x40901f
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004020e0
mov eax, dword [ebp - 0x24]
jmp 0x409163
lea ecx, [ebp - 0x1c]
call fcn.00402640
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00408560
add esp, 8
mov byte [ebp - 4], 1
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004023f0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402570
test eax, eax
jle 0x409085
push 8
push 0
lea ecx, [ebp - 0x14]
call fcn.00402640
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x20], eax
jmp 0x4090c9
push 0x40a508
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.004024a0
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 3
push 8
push 0
mov ecx, dword [ebp - 0x38]
call fcn.00402640
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004020e0
cmp dword [ebp - 0x20], 0
jne 0x409102
mov dword [ebp - 0x2c], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004020e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004020e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004020e0
mov eax, dword [ebp - 0x2c]
jmp 0x409163
mov edx, dword [str.AliIMEntry]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x409132
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [ebp - 0x10]
add esp, 0x10
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004020e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004020e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004020e0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x624610
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x62a4cc]
cmp dword [eax + 0x28], 0
jne 0x624628
xor eax, eax
jmp 0x624757
mov ecx, dword [0x62a43c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0x62a430], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x62a42c], eax
push 0
call dword [0x628138]
mov dword [ebp - 0x10], eax
push 1
call dword [0x628138]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x62a430]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x62a42c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0x62a4b8]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
push 0x628680
push 0x6286d0
push 0x88
call dword [0x628134]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x62a428], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x62810c]
push eax
call fcn.00624550
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [0x628148]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x62812c]
push 0x6245e0
mov edx, dword [0x62a4cc]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [0x62813c]
mov dword [0x62a434], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [0x628130]
test eax, eax
je 0x624757
cmp dword [ebp - 0x38], 0x12
jne 0x62474b
mov dword [0x62a444], 0
call fcn.00624760
xor eax, eax
jmp 0x624757
lea edx, [ebp - 0x3c]
push edx
call dword [0x628140]
jmp 0x62471c
mov esp, ebp
pop ebp
ret 4

Function at 0x625b30
Capabilities:
Read .ini file
Read and send data from client to server
Send data
Send data on socket
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x6266cc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x628168
sub eax, eax
test esi, esi
je 0x6267a4
sub eax, 1
test ecx, ecx
je 0x6267a2
test esi, 3
je 0x62670a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x6266ef
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x626789
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x626714
mov ecx, edx
test ecx, ecx
je 0x6267a2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x62678f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x6267ac
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0062682f
jae 0x6267ba
xor ecx, ecx
call fcn.0062682f
jae 0x6267e9
xor eax, eax
call fcn.0062682f
jae 0x6267f9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0062682f
adc al, al
jae 0x6267db
jne 0x626825
stosb byte es:[edi], al
jmp 0x6267bd
call fcn.0062683b
sub ecx, ebx
jne 0x626802
call fcn.00626839
jmp 0x626821
lodsb al, byte [esi]
shr eax, 1
je 0x62684b
adc ecx, ecx
jmp 0x62681e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00626839
cmp eax, 0x7d00
jae 0x62681e
cmp ah, 5
jae 0x62681f
cmp eax, 0x7f
ja 0x626820
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6267bd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x62717c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x62a000]
jne 0x627186
repz ret
jmp fcn.0062742d
Function at 0x408d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408d67
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408d98
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x408d94
cmp esi, eax
jae 0x408d98
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x408d84
cmp esi, eax
jb 0x408d9e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x408fc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x408fd3
push 0x80004005
call fcn.00408bf0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x408fe0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x409020
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x224
mov eax, dword [0x42d018]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x234]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov esi, eax
test esi, esi
jne 0x40908e
test ecx, ecx
je 0x409080
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], ecx
je 0x40909c
test ecx, ecx
je 0x409141
push ecx
jmp 0x40913b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x3c]
push edx
push 0
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
jne 0x40910e
jmp 0x4090d0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00409020
mov edi, eax
test edi, edi
jne 0x40915d
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
je 0x4090d0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409125
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409141
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041f208
add esp, 0x224
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40916c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x409143
Function at 0x4093d0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x6d4
mov eax, dword [0x42d018]
xor eax, esp
mov dword [esp + 0x6d0], eax
push esi
push edi
mov esi, ecx
call dword [0x42d030]
mov edi, dword [0x42e344]
push 0x104
lea eax, [esp + 0x4d4]
push eax
push edi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x409430
call fcn.00408e40
pop edi
pop esi
mov ecx, dword [esp + 0x6d0]
xor ecx, esp
call fcn.0041f208
add esp, 0x6d4
ret
cmp eax, 0x104
jne 0x40945c
lea esi, [esp + 8]
call fcn.004130a0
pop edi
mov eax, 0x8007007a
pop esi
mov ecx, dword [esp + 0x6d0]
xor ecx, esp
call fcn.0041f208
add esp, 0x6d4
ret
test edi, edi
je 0x409475
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp edi, eax
je 0x409475
lea edx, [esp + 0x4d0]
jmp 0x4094cd
lea ecx, [esp + 0x4d0]
push ecx
lea edx, [esp + 0x2ca]
push 0x105
mov edi, 0x22
push edx
mov word [esp + 0x2d0], di
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
push eax
call fcn.00408c10
add esp, 0x10
lea eax, [esp + 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov word [esp + eax*2 + 0x2c4], di
mov word [esp + eax*2 + 0x2c6], 0
lea edx, [esp + 0x2c4]
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
push edx
push 0x426e44
push esi
call eax
mov edi, eax
test edi, edi
jl 0x4095a0
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
lea edx, [esp + 0x4d0]
push edx
push str.Module_Raw
push esi
call eax
mov edi, eax
test edi, edi
jl 0x4095a0
lea ecx, [esp + 0xc]
push ecx
push 0xa5a1bc
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edi, eax
test edi, edi
jl 0x4095a0
mov eax, dword [esp + 0xc]
mov edx, dword [esi]
mov ecx, dword [edx + 0xc]
push eax
push str.MODULEGUID
push esi
call ecx
mov edx, dword [esp + 0xc]
push edx
mov edi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jl 0x4095a0
push 0x2000
push 0x2b4
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x4e0]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x409578
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push str.InprocServer32
push str.MODULETYPE
push esi
call eax
jmp 0x40958a
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push str.LocalServer32
push str.MODULETYPE
push esi
call edx
mov edi, eax
test edi, edi
jl 0x4095a0
mov ecx, dword [0xa5a1b8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push esi
call edx
mov edi, eax
lea esi, [esp + 8]
call fcn.004130a0
mov ecx, dword [esp + 0x6d8]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0041f208
add esp, 0x6d4
ret
Function at 0x40e220
Capabilities:
Print debug messages

Disassembly:
push ecx
mov eax, dword [0xa5a108]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
push ecx
mov ecx, 0xa5a104
call fcn.00414000
mov eax, dword [0xa5a108]
mov dword [eax + 4], eax
mov eax, dword [0xa5a108]
xor ebx, ebx
mov dword [0xa5a10c], ebx
mov dword [eax], eax
mov eax, dword [0xa5a108]
mov dword [eax + 8], eax
mov eax, dword [0xa5a0e0]
cmp eax, ebx
mov esi, eax
je 0x40e286
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push ecx
push edx
lea edx, [esp + 0x14]
push edx
push eax
call fcn.004142e0
mov ebx, esi
call fcn.00417090
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ebx, ebx
mov eax, dword [0xa5a0c8]
cmp eax, ebx
mov dword [0xa5a0e0], ebx
je 0x40e2b0
mov esi, eax
mov eax, dword [eax]
cmp eax, ebx
je 0x40e2a7
push eax
call dword [0xa59184]
add esp, 4
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [0xa5a0cc]
cmp eax, ebx
mov dword [0xa5a0c8], ebx
je 0x40e2da
mov esi, eax
mov eax, dword [eax]
cmp eax, ebx
je 0x40e2d1
push eax
call dword [0xa59184]
add esp, 4
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [0xa5a0cc], ebx
call fcn.00416cf0
mov dword [0xa5a0d8], eax
mov eax, dword [0xa5a0d4]
cmp eax, ebx
je 0x40e306
mov eax, dword [eax + 4]
cmp dword [eax], ebx
je 0x40e306
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
call fcn.00416d50
mov edi, dword [0xa5a0dc]
cmp edi, ebx
mov dword [0xa5a0d4], eax
je 0x40e378
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x40e378
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 2
je 0x40e378
push ebp
mov eax, edi
xor ebp, ebp
call fcn.00413630
test eax, eax
jle 0x40e377
lea esp, [esp]
mov edx, dword [edi + 4]
mov esi, dword [edx + ebp*4]
cmp esi, ebx
je 0x40e369
mov eax, dword [esi]
cmp eax, ebx
je 0x40e35a
push eax
call dword [0xa59184]
add esp, 4
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edi, dword [0xa5a0dc]
add esp, 4
mov eax, edi
add ebp, 1
call fcn.00413630
cmp ebp, eax
jl 0x40e340
pop ebp
call fcn.00416dd0
cmp byte [0xa5a095], bl
pop edi
pop esi
mov dword [0xa5a0dc], eax
pop ebx
je 0x40e3e0
mov ecx, str.Terminate_CoolType...
call fcn.00417e90
call sub.CoolType.dll_Ordinal_3_2
mov ecx, str.CoolType_terminated.
call fcn.00417e90
mov ecx, str.Terminate_Adobe_Graphics_Manager.
call fcn.00417e90
call sub.AGM.dll_Ordinal_4_2
mov ecx, str.Terminate_Adobe_Color_Engine.
call fcn.00417e90
call sub.ACE.dll_Ordinal_4_1
mov ecx, str.Terminate_BIB_Host.
call fcn.00417e90
call fcn.00406650
mov ecx, str.PMI_Tesselator_terminated.
add esp, 4
jmp fcn.00417e90
mov ecx, str.Terminate_BIB_Client.
call fcn.00417e90
call sub.BIB.dll_Ordinal_5
test eax, eax
je 0x40e3f8
call fcn.00405400
mov ecx, str.PMI_Tesselator_terminated.
add esp, 4
jmp fcn.00417e90