joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405410
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Write file on windows

Disassembly:
sub esp, 0xf74
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00403cd0
push 2
call fcn.004042e0
mov ecx, dword [esp + 0xf94]
mov edx, dword [esp + 0xf90]
push ecx
push edx
call fcn.004043b0
mov ebx, eax
add esp, 0x10
cmp ebx, 0xfffffff7
je 0x40563d
mov ebp, dword [esp + 0xf90]
push 2
call fcn.004042e0
mov ecx, 0x14d
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov ax, word [0x42a708]
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x44], 0x1e61
mov word [esp + 0x3a], ax
call fcn.00403cd0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x76]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x534
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x14d
lea esi, [esp + 0x30]
lea edi, [esp + 0x564]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x564]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40562e
test eax, eax
je 0x40562e
push 0
lea edx, [esp + 0x560]
push 0x534
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40562e
test eax, eax
je 0x40562e
mov eax, dword [esp + 0x570]
mov ecx, 0x14d
lea esi, [esp + 0x55c]
lea edi, [esp + 0x28]
cmp eax, 0x7918
mov eax, dword [esp + 0x574]
rep movsd dword es:[edi], dword [esi]
jne 0x40558e
cmp eax, 1
jne 0x40558e
push ebx
call fcn.004052f0
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x14]
push eax
call fcn.00403cd0
push 2
call fcn.004042e0
mov ecx, dword [esp + 0xf94]
mov edx, dword [esp + 0xf90]
push ecx
push edx
call fcn.004043b0
mov ebx, eax
add esp, 0x10
cmp ebx, 0xfffffff7
jne 0x405455
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf74
ret
cmp eax, 0xfffffff7
je 0x40562e
cmp eax, 0xfffffffb
je 0x40562e
mov eax, dword [esp + 0xf94]
push eax
call fcn.00404100
add esp, 4
mov ebp, eax
xor edi, edi
mov esi, 1
push 2
call fcn.004042e0
add esp, 4
lea ecx, [esp + 0xad4]
push 0
push 0x4b0
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
add edi, eax
cmp eax, 0xffffffff
je 0x405627
test eax, eax
je 0x405604
lea edx, [esp + 0x10]
push 0
push edx
push eax
lea eax, [esp + 0xae0]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc esi
cmp esi, 0xf423f
jle 0x4055b9
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004052f0
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf74
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004052f0
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
pop ebp
mov eax, 0xfffffff7
pop ebx
add esp, 0xf74
ret
Function at 0x405650
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0xfcc
push ebx
push ebp
push esi
push edi
push eax
push ecx
call fcn.004043b0
mov ebx, eax
add esp, 8
cmp ebx, 0xfffffff7
jne 0x40567e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfcc
ret
mov dx, word [0x42a708]
mov ecx, 0x14d
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x30], 0x1e62
push eax
mov word [esp + 0x2a], dx
call fcn.00403cd0
mov edi, dword [esp + 0xff0]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x6a]
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebp, dword [sym.imp.WS2_32.dll_send]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0x534
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x14d
lea esi, [esp + 0x24]
lea edi, [esp + 0xa08]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xa08]
push ecx
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x405722
push ebx
call fcn.004052f0
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
pop ebp
mov eax, 0xfffffff7
pop ebx
add esp, 0xfcc
ret
mov edx, dword [esp + 0xfe8]
push edx
call fcn.004040a0
add esp, 4
mov dword [esp + 0x10], eax
xor edi, edi
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x558]
push 0x4b0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405798
push 0
push eax
lea eax, [esp + 0x558]
push eax
push ebx
call ebp
push 5
mov esi, eax
call fcn.004042e0
add esp, 4
add edi, esi
cmp esi, 0xffffffff
je 0x4057bf
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0xf423f
mov dword [esp + 0x14], eax
jle 0x405740
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004052f0
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfcc
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004052f0
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
pop ebp
mov eax, 0xfffffff7
pop ebx
add esp, 0xfcc
ret

Function at 0x405960
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x23c
push esi
push eax
call fcn.00404180
add esp, 4
lea ecx, [esp + 4]
lea edx, [esp + 8]
mov esi, eax
push 0
push ecx
push 0x138
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [esp + 0xc]
push 1
push eax
call fcn.004057f0
mov ecx, dword [esp + 0x14]
mov edx, ecx
mov eax, ecx
and edx, 0xff
push edx
xor edx, edx
mov dl, ch
and edx, 0xff
shr eax, 0x10
push edx
xor edx, edx
mov ecx, eax
mov dl, ah
and ecx, 0xff
and edx, 0xff
push ecx
push edx
lea eax, [esp + 0x15c]
push str._d._d._d._d
push eax
call fcn.0041408f
add esp, 0x24
lea eax, [esp + 0x140]
pop esi
add esp, 0x23c
ret
Function at 0x405ee0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x8c
mov ax, word [0x41f06c]
mov cl, byte [0x41f06e]
push ebx
push esi
lea edx, [esp + 0x10]
push edi
push edx
mov dword [esp + 0x10], 0
mov word [esp + 0x38], ax
mov byte [esp + 0x3a], cl
call fcn.00403cd0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x38]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ocsprogcdusr_adminemail_worker_count.dat
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x38]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403f60
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
test eax, eax
jne 0x405fb1
lea ecx, [esp + 0x34]
push ecx
call fcn.00404100
add esp, 4
lea edx, [esp + 0x10]
mov esi, eax
lea eax, [esp + 0xc]
push 0
push edx
push 4
push eax
push esi
mov dword [esp + 0x20], 1
call ebx
push esi
call edi
lea ecx, [esp + 0x34]
push ecx
call fcn.004040a0
mov esi, eax
push 4
push 0
push esi
call fcn.00404210
add esp, 0x10
test eax, eax
je 0x40602c
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x14]
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0xc]
push 0
push 0
inc edx
push 0
push esi
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0xc], 0x5f5e0ff
jl 0x40600b
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x14]
push 4
push edx
push esi
call ebx
push 4
push 0
push esi
call fcn.00404270
add esp, 0xc
push esi
call edi
push esi
call edi
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push str.F_05i.txt
push ecx
call fcn.0041408f
add esp, 0xc
lea eax, [esp + 0x14]
pop edi
pop esi
pop ebx
add esp, 0x8c
ret
Function at 0x4065b0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0xb4
mov eax, dword [str.InternW]
mov ecx, dword [0x420054]
push edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc0]
xor edi, edi
lea edx, [esp + 4]
push 0x7f00
push edi
mov dword [esp + 0x18], 0x406780
mov dword [esp + 0x1c], 0x406820
mov dword [esp + 0x20], 0x4068c0
mov dword [esp + 0x24], 0x406920
mov dword [esp + 0x28], 0x406980
mov dword [esp + 0x2c], 0x4069e0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x30], 3
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], eax
push ecx
mov dword [esp + 0x48], 6
mov dword [esp + 0x4c], edi
mov dword [esp + 0x30], 0x406730
call dword [sym.imp.USER32.dll_RegisterClassA]
cmp dword [0x42ac60], edi
jl 0x406726
push ebx
push ebp
mov ebp, dword [esp + 0xc4]
push esi
mov esi, 0x42b744
lea ebx, [esp + 0x1c]
mov edx, dword [esp + 0xcc]
push 0
push edx
push edi
push ebp
push 0
push 0
push 0
push 0
push 0x50800000
lea eax, [esp + 0x34]
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edx, dword [ebx]
lea ecx, [esp + 0x5c]
push ecx
push 4
push 0
push edx
push 0
mov dword [esi - 4], eax
push 0
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ecx, [esi + 8]
lea edx, [esp + 0x60]
push ecx
push edi
push str._s_thread.cpp_____S_startup______i___s
push edx
call fcn.0041408f
mov ecx, dword [0x42a708]
lea eax, [esp + 0x70]
push 0x42a728
push eax
push ecx
call fcn.004032b0
add esp, 0x1c
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
call fcn.004042e0
mov eax, dword [0x42ac60]
add esp, 4
inc edi
add ebx, 4
add esi, 0x2c
cmp edi, eax
jle 0x406671
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xb4
ret
Function at 0x40bfe0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
push 0
push 0
push SQLBindCol
push SQLBindCol
push SQLBindCol
push SQLBindCol
push 0xcf0000
push 0x422d6c
push 0x422d6c
push 0
mov dword [0x42df6c], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x42b298], eax
mov dword [0x42afec], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x4133a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x378
lea eax, [esp + 4]
push esi
push edi
push eax
call fcn.00401630
add esp, 4
lea ecx, [esp + 0xc]
push str.cdusrADMINDBCFG.DAT
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0xc]
push edx
call fcn.00403f60
add esp, 4
test eax, eax
push 0x42a728
jne 0x413428
mov eax, dword [0x42a708]
push str.___________________________Important______________________________
push eax
call fcn.004032b0
mov ecx, dword [0x42a708]
push 0x42a728
push str.No_dbcfg.dat__this_is_ok_for_non_sphost__else__Please_set_up_DBCFG.dat_file
push ecx
call fcn.004032b0
mov edx, dword [0x42a708]
push 0x42a728
push str.___________________________________________________________________
push edx
call fcn.004032b0
add esp, 0x24
pop edi
mov eax, 1
pop esi
add esp, 0x378
ret
mov eax, dword [0x42a708]
push str.Opening_the_data_base_handles_on_startup
push eax
call fcn.004032b0
lea ecx, [esp + 0x18]
push ecx
call fcn.004040a0
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x413470
mov edx, dword [0x42a708]
push 0x42a728
push str.Major_error___No_Handle_for_DBCFG.dat_file
push edx
call fcn.004032b0
add esp, 0xc
or eax, esi
pop edi
pop esi
add esp, 0x378
ret
lea eax, [esp + 8]
push 0
push eax
push 0x212
push 0x42b880
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x42b880
push 0x42b880
call fcn.00403db0
mov edi, 0x42b880
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x413502
mov ecx, dword [0x42a708]
push 0x42a728
push str.___________________________________________________________________
push ecx
call fcn.004032b0
mov edx, dword [0x42a708]
push 0x41fc54
push str.ERROR..._no_dsn_entered_but_dbcfg.dat_is_present
push edx
call fcn.004032b0
mov eax, dword [0x42a708]
push 0x42a728
push str.___________________________________________________________________
push eax
call fcn.004032b0
add esp, 0x24
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x378
ret
mov ecx, 0xb6
xor eax, eax
lea edi, [esp + 0xa8]
push 0x42b724
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xac]
push 0x42ba9c
push ecx
push 0x42b92a
push 0x42b8d5
push 0x42b880
call fcn.0040ab60
mov eax, dword [esp + 0xc4]
add esp, 0x18
cmp eax, 1
jne 0x41341a
lea edx, [esp + 0x31c]
lea eax, [esp + 0x21c]
push edx
lea ecx, [esp + 0xb8]
push eax
push ecx
push str.No_DB_Handle___s____s____s_
push 0x42bf20
call fcn.0041408f
mov edx, dword [0x42a708]
push 0x42a728
push 0x42bf20
push edx
call fcn.004032b0
mov eax, dword [0x42a708]
push 0x42a728
push str.Major_error___cannot_obtain__Primary_DB_handle
push eax
call fcn.004032b0
add esp, 0x2c
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x378
ret
Function at 0x4135b0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
jbe 0x4136b2
mov eax, dword [esp + 4]
or ecx, 0xffffffff
push ebx
push ebp
sub ecx, eax
push esi
push edi
lea esi, [eax + 1]
mov dword [esp + 0x14], ecx
xor eax, eax
xor ecx, ecx
mov al, byte [esi + 2]
mov cl, byte [esi + 1]
shl eax, 8
add eax, ecx
xor edx, edx
mov dl, byte [esi]
xor ecx, ecx
mov cl, byte [esi - 1]
xor edi, edi
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [esi + 5]
shl eax, 8
add eax, ecx
xor ecx, ecx
mov cl, byte [esi + 6]
shl ecx, 8
add ecx, edx
xor edx, edx
mov dl, byte [esi + 4]
shl ecx, 8
add ecx, edx
xor edx, edx
mov dl, byte [esi + 3]
shl ecx, 8
add ecx, edx
mov edx, 0x40
mov ebx, ecx
mov ebp, ecx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, edi
and ebp, 3
add ebx, ecx
mov ebp, dword [ebp*4 + 0x41f03c]
add ebp, edi
sub edi, 0x61c88647
xor ebx, ebp
add eax, ebx
mov ebx, eax
mov ebp, eax
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, edi
shr ebp, 0xb
and ebp, 3
add ebx, eax
mov ebp, dword [ebp*4 + 0x41f03c]
add ebp, edi
xor ebx, ebp
add ecx, ebx
dec edx
jne 0x41361c
mov edx, eax
mov byte [esi - 1], al
shr edx, 8
mov byte [esi], dl
mov edx, eax
shr edx, 0x10
shr eax, 0x18
mov byte [esi + 1], dl
mov byte [esi + 2], al
mov eax, ecx
mov edx, ecx
shr eax, 8
mov byte [esi + 3], cl
mov byte [esi + 4], al
mov eax, dword [esp + 0x14]
add esi, 8
shr edx, 0x10
shr ecx, 0x18
mov byte [esi - 3], dl
mov byte [esi - 2], cl
mov ecx, dword [esp + 0x18]
add eax, esi
cmp eax, ecx
jb 0x4135d0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4136c0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
jbe 0x4137c5
mov eax, dword [esp + 4]
or ecx, 0xffffffff
push ebx
push ebp
sub ecx, eax
push esi
push edi
lea esi, [eax + 1]
mov dword [esp + 0x14], ecx
xor ecx, ecx
xor eax, eax
mov cl, byte [esi + 2]
mov al, byte [esi + 1]
shl ecx, 8
add ecx, eax
xor edx, edx
mov dl, byte [esi]
xor eax, eax
mov al, byte [esi - 1]
mov edi, 0x8dde6e40
shl ecx, 8
add ecx, edx
xor edx, edx
mov dl, byte [esi + 5]
shl ecx, 8
add ecx, eax
xor eax, eax
mov al, byte [esi + 6]
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [esi + 4]
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [esi + 3]
shl eax, 8
add eax, edx
mov edx, 0x40
mov ebx, ecx
mov ebp, ecx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, edi
shr ebp, 0xb
and ebp, 3
add ebx, ecx
mov ebp, dword [ebp*4 + 0x41f03c]
add ebp, edi
add edi, 0x61c88647
xor ebx, ebp
sub eax, ebx
mov ebx, eax
mov ebp, eax
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, edi
and ebp, 3
add ebx, eax
mov ebp, dword [ebp*4 + 0x41f03c]
add ebp, edi
xor ebx, ebp
sub ecx, ebx
dec edx
jne 0x41372f
mov edx, ecx
mov byte [esi - 1], cl
shr edx, 8
mov byte [esi], dl
mov edx, ecx
shr edx, 0x10
shr ecx, 0x18
mov byte [esi + 1], dl
mov byte [esi + 2], cl
mov ecx, eax
mov edx, eax
shr ecx, 8
mov byte [esi + 3], al
mov byte [esi + 4], cl
mov ecx, dword [esp + 0x18]
add esi, 8
shr edx, 0x10
shr eax, 0x18
mov byte [esi - 3], dl
mov byte [esi - 2], al
mov eax, dword [esp + 0x14]
add eax, esi
cmp eax, ecx
jb 0x4136e0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401296
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push esi
mov esi, ecx
mov eax, dword [edx]
dec ecx
test esi, esi
je 0x4012d0
push ebx
lea esi, [ecx + 1]
mov ecx, dword [esp + 0xc]
push edi
movzx ebx, byte [ecx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x410080]
xor eax, edi
inc ecx
dec esi
jne 0x4012b1
pop edi
pop ebx
not eax
mov dword [edx], eax
pop esi
ret

Function at 0x401715
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
xor ebx, ebx
cmp dword [0x411950], ebx
mov word [0x4115f0], bx
jne 0x4018cb
mov ecx, dword [0x476100]
cmp byte [0x411944], bl
lea eax, [ecx + ecx + 0x60000]
jne 0x401751
cmp byte [0x411946], bl
je 0x40175e
mov edx, dword [0x47638c]
add ecx, edx
add eax, ecx
lea eax, [eax + ecx*2]
mov ecx, eax
push esi
shr ecx, 0x14
mov edx, ecx
mov esi, 0x3e8
shl edx, 0x14
push edi
sub eax, edx
xor edx, edx
mov edi, esi
div edi
xor edx, edx
div esi
lea eax, [ebp - 0x104]
push edx
push ecx
push str._ld._ld
push eax
call fcn.0040649a
add esp, 0x10
cmp byte [0x411949], bl
jne 0x4017c0
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push str.Requesting__s_Mb_memory
push eax
call fcn.0040649a
lea eax, [ebp - 0x208]
push eax
call fcn.00401243
add esp, 0x10
cmp byte [0x41194c], bl
je 0x4017d3
push str._Initializing_Zip_Cloaking_...
call fcn.00401243
pop ecx
mov eax, dword [0x476100]
push 2
pop edi
lea eax, [eax + eax + 1]
push edi
shr eax, 1
push eax
call fcn.004066f0
cmp byte [0x411944], bl
pop ecx
pop ecx
mov dword [0x411950], eax
jne 0x4017ff
cmp byte [0x411946], bl
je 0x40182c
mov eax, dword [0x476100]
push 6
inc eax
shr eax, 1
push eax
call fcn.004066f0
mov dword [0x411954], eax
mov eax, dword [0x47638c]
inc eax
push 6
shr eax, 1
push eax
call fcn.004066f0
add esp, 0x10
mov dword [0x411958], eax
mov esi, 0x8000
push edi
push esi
call fcn.004066f0
push edi
push esi
mov dword [0x411964], eax
call fcn.004066f0
push edi
push esi
mov dword [0x411968], eax
call fcn.004066f0
push edi
push esi
mov dword [0x41196c], eax
call fcn.004066f0
push edi
push esi
mov dword [0x411970], eax
call fcn.004066f0
push 4
push esi
mov dword [0x411974], eax
call fcn.004066f0
push edi
push esi
mov dword [0x411978], eax
call fcn.004066f0
push edi
push esi
mov dword [0x411834], eax
call fcn.004066f0
add esp, 0x40
mov dword [0x411604], eax
mov eax, dword [0x411950]
pop edi
cmp eax, ebx
pop esi
je 0x4018d0
cmp dword [0x411954], ebx
je 0x4018b0
cmp dword [0x411958], ebx
jne 0x4018b8
cmp byte [0x411944], bl
jne 0x4018d0
mov ecx, dword [0x476100]
add ecx, ecx
push ecx
push ebx
push eax
call fcn.00406340
add esp, 0xc
xor eax, eax
pop ebx
leave
ret
push 0x411980
push 0xb
call fcn.00402716
pop ecx
pop ecx
push ebx
call fcn.004063c5
Function at 0x401ca9
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4104d8]
add eax, 0xfffffff6
cmp dword [esp + 4], eax
jbe 0x401d02
push dword [0x411dac]
add dword [0x4104d8], 0x7d0
call fcn.00406949
add eax, 0x17fca0
push eax
push dword [0x411dac]
call fcn.00406829
add esp, 0xc
mov dword [0x411dac], eax
test eax, eax
jne 0x401d02
push dword [0x4104d8]
push str.No_memory_for_registering__d_more_files
call fcn.004067f8
pop ecx
pop ecx
push 0
call fcn.004063c5
ret

Function at 0x402aa6
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, 0x104
push edi
push 0
push esi
call fcn.00406340
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call fcn.00405ed0
cmp byte [eax + esi - 1], 0x5c
pop ecx
je 0x402ae0
push 0x410960
push esi
call fcn.00406610
pop ecx
pop ecx
pop edi
pop esi
ret
Function at 0x402fad
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
mov esi, 0x104
push edi
xor ebx, ebx
push esi
lea eax, [ebp - 0x314]
push ebx
push eax
call fcn.00406340
push esi
lea eax, [ebp - 0x418]
push ebx
push eax
call fcn.00406340
push 0x208
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00406340
add esp, 0x24
cmp dword [ebp + 8], ebx
je 0x403144
push dword [ebp + 8]
call fcn.00407217
cmp dword [ebp + 0x10], ebx
pop ecx
je 0x403144
test byte [0x4774b4], 0xc
je 0x403144
mov esi, dword [ebp + 0xc]
mov eax, dword [0x411dac]
imul esi, esi, 0x312
mov ecx, dword [eax + esi]
add eax, esi
mov dword [ebp - 8], ecx
push 0x411840
mov eax, dword [eax]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
call fcn.00406600
lea eax, [ebp - 0x210]
push eax
call fcn.00405ed0
add esp, 0xc
cmp byte [ebp + eax - 0x211], 0x5c
je 0x403079
cmp byte [ebp - 0x210], bl
je 0x403079
lea eax, [ebp - 0x210]
push 0x410960
push eax
call fcn.00406610
pop ecx
pop ecx
mov eax, dword [0x411dac]
mov edi, str.TemporaryPathForXZIP_
push edi
lea eax, [esi + eax + 0x10e]
push eax
call fcn.00406cb0
push edi
mov dword [ebp + 8], eax
call fcn.00405ed0
add esp, 0xc
add dword [ebp + 8], eax
je 0x403144
test byte [0x4774b4], 0x30
je 0x4030c2
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call fcn.00406610
pop ecx
pop ecx
jmp 0x40310d
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x314]
push eax
mov eax, dword [0x411dac]
push ebx
push ebx
lea eax, [esi + eax + 0x10e]
push eax
call fcn.00406a7e
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00406610
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00406610
add esp, 0x24
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x210]
push 0x20
push eax
call edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040772a
mov eax, dword [0x411dac]
pop ecx
pop ecx
movsx eax, byte [esi + eax + 8]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
pop edi
pop esi
pop ebx
leave
ret