joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0b50
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x6b28cc]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x4d0b98
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d0b7c
mov eax, 1
jmp 0x4d0b93
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x4d0c78
mov eax, 2
mov dword [0x6b28cc], eax
cmp eax, 2
jne 0x4d0bb8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x4d0c8a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4d0bd3
mov ecx, dword [0x6b2398]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x4d0bf2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.004c8800
mov esi, eax
add esp, 4
test esi, esi
jne 0x4d0c09
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d0c6f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x4d0c50
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4d0c6f
push esi
call fcn.004c88d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x4d0c7f
push esi
call fcn.004c88d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004c88d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4d0f90
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4d114e
push 0x3d
push edi
call fcn.004d1650
mov esi, eax
add esp, 8
test esi, esi
je 0x4d114e
cmp edi, esi
je 0x4d114e
mov dl, byte [esi + 1]
mov ecx, dword [0x6b23d4]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x6b23d0]
cmp eax, ecx
jne 0x4d0fe7
push eax
call fcn.004d1220
add esp, 4
mov dword [0x6b23d0], eax
test eax, eax
jne 0x4d1062
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4d100e
mov eax, dword [0x6b23d8]
test eax, eax
je 0x4d100e
call fcn.004cf880
test eax, eax
je 0x4d105d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4d101a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.004c8800
add esp, 4
mov dword [0x6b23d0], eax
test eax, eax
je 0x4d114e
mov dword [eax], 0
mov eax, dword [0x6b23d8]
test eax, eax
jne 0x4d105d
push 4
call fcn.004c8800
add esp, 4
mov dword [0x6b23d8], eax
test eax, eax
je 0x4d114e
mov dword [eax], 0
mov eax, dword [0x6b23d0]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.004d11a0
mov esi, eax
add esp, 8
test esi, esi
jl 0x4d115f
cmp dword [ebx], 0
je 0x4d115f
test ebp, ebp
je 0x4d1157
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.004c88d0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x4d10b9
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x4d10a8
lea eax, [esi*4]
push eax
push ebx
call fcn.004c85e0
add esp, 8
test eax, eax
je 0x4d10d3
mov dword [0x6b23d0], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4d1146
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.004c8800
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4d1146
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.004c88d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x4d10d7
test ebp, ebp
jne 0x4d1146
test esi, esi
jge 0x4d1169
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.004c85e0
add esp, 8
test eax, eax
je 0x4d114e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x6b23d0], eax
jmp 0x4d10d7
Function at 0x4d1790
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
mov esi, dword [ecx]
mov edx, esi
dec esi
test edx, edx
je 0x4d17ca
mov edx, dword [esp + 8]
xor ecx, ecx
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4fd008]
xor ecx, eax
mov eax, ecx
mov ecx, esi
dec esi
test ecx, ecx
jne 0x4d17a8
pop esi
ret

Function at 0x4d3580
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
jmp 0x4d3590
push edx
push ecx
push 0x200
push 0x6b2e68
call fcn.004e18a0
add esp, 0x10
mov byte [0x6b3067], 0
call fcn.004d5500
push 0x6b2e68
push 0x4eb588
call fcn.004d5430
add esp, 8
push 0x4eb254
call fcn.004d5430
add esp, 4
xor ecx, ecx
call fcn.00441890
push 1
call fcn.004d5100
add esp, 4
call fcn.004d3530
mov edx, str.ERROR
mov ecx, 0x6b2e68
push 0x10
call fcn.004d5d20
jmp fcn.004d3560

Function at 0x4d3600
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
call fcn.004d38c0
test eax, eax
jne 0x4d3612
mov eax, str.Unknown_error
lea edx, [esp + 8]
mov ecx, eax
jmp 0x4d3590

Function at 0x4d3620
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
test edx, edx
je 0x4d3641
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4d3641
test al, 1
je 0x4d3641
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

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

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
xor edi, edi
test eax, eax
mov ebx, edx
mov esi, ecx
jle 0x4d36a7
mov ebp, dword [esp + 0x14]
push edi
push ebp
push ebx
push esi
call fcn.004d39c0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4d3689
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4d369b
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x4d3666
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8

Function at 0x4d3d20
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
cmp ebp, 0xa
push edi
jbe 0x4d3d30
mov ebp, 0xa
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
call esi
test ebp, ebp
mov edi, eax
jne 0x4d3d47
mov ebx, 1
mov ebp, ebx
mov edx, ebp
mov ecx, ebx
call fcn.004d3d80
inc ebx
cmp ebx, ebp
ja 0x4d3d75
call esi
sub eax, edi
cmp eax, 0xa
jae 0x4d3d67
call esi
sub eax, edi
cmp eax, 0xa
jb 0x4d3d5e
mov edx, ebp
mov ecx, ebx
call fcn.004d3d80
inc ebx
cmp ebx, ebp
jbe 0x4d3d55
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4d3d80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push edi
mov edi, edx
test edi, edi
je 0x4d3e1f
push esi
push ebx
xor esi, esi
mov bl, byte [esi + 0x6b39f8]
xor eax, eax
mov al, byte [esi + 0x6b3178]
mov edx, ebx
and edx, 0xff
add esi, 4
sub eax, edx
imul eax, ecx
cdq
idiv edi
add al, bl
mov bl, byte [esi + 0x6b39f5]
mov byte [esi + 0x6b35f4], al
xor eax, eax
mov al, byte [esi + 0x6b3175]
mov edx, ebx
and edx, 0xff
sub eax, edx
imul eax, ecx
cdq
idiv edi
add al, bl
mov bl, byte [esi + 0x6b39f6]
mov byte [esi + 0x6b35f5], al
xor eax, eax
mov al, byte [esi + 0x6b3176]
mov edx, ebx
and edx, 0xff
sub eax, edx
imul eax, ecx
cdq
idiv edi
add al, bl
cmp esi, 0x400
mov byte [esi + 0x6b35f6], al
jl 0x4d3d8f
push 0x100
xor edx, edx
mov ecx, 0x6b35f8
call fcn.004d68f0
pop ebx
pop esi
pop edi
ret

Function at 0x4d5100
Capabilities:
Write file on windows

Disassembly:
push ecx
push 0x6b3ef0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6b4198]
test eax, eax
je 0x4d5171
cmp dword [0x4fe07c], 0xffffffff
jne 0x4d5146
call fcn.004d51b0
cmp eax, 0xffffffff
mov dword [0x4fe07c], eax
jne 0x4d5139
mov dword [0x6b4198], 0
pop ecx
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [0x6b4198]
mov edx, dword [0x6b4194]
lea eax, [esp]
push 0
push eax
mov eax, dword [0x4fe07c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x6b4198], 0
mov eax, dword [esp + 8]
test eax, eax
je 0x4d5194
mov eax, dword [0x4fe07c]
cmp eax, 0xffffffff
je 0x4d5194
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4fe07c], 0xffffffff
push 0x6b3ef0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ecx
ret
Function at 0x4d51b0
Capabilities:
Clear file content
Get file size
Get session user name

Disassembly:
mov eax, dword [0x4fe078]
sub esp, 0x15c
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x4d5266
lea eax, [esp + 0x68]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4d51e3
mov byte [esp + 0x68], al
jmp 0x4d5200
lea ecx, [esp + 0x68]
push 0x5c
push ecx
call fcn.004c5e20
add esp, 8
test eax, eax
jne 0x4d51fc
mov byte [esp + 0x68], al
jmp 0x4d5200
mov byte [eax + 1], 0
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x18], 0x20
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4d5220
mov byte [esp + 0x14], al
lea ecx, [esp + 0x34]
call fcn.004d5370
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov ecx, eax
and edx, 0xffff
and ecx, 0xffff
shr eax, 0x10
push ecx
push eax
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x74]
push eax
push ecx
push str._s_s_02u_02u_02u.ERR
push 0x104
push 0x6b3f08
call fcn.004d39c0
add esp, 0x20
mov ecx, dword [0x4fe078]
or ebp, 0xffffffff
xor ebx, ebx
test ecx, ecx
sete bl
cmp ebx, 2
jge 0x4d534f
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push 0x6b3f08
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4d5338
push 0x5c
push 0x6b3f08
call fcn.004c5e20
mov edx, eax
add esp, 8
test edx, edx
jne 0x4d52c1
mov edx, 0x6b3f08
mov eax, dword [0x4fe080]
mov ecx, 0x40
mov dword [esp + 0x68], eax
xor eax, eax
lea edi, [esp + 0x6c]
lea esi, [esp + 0x68]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x68]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x6b3f08
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebx
cmp ebx, 2
rep movsb byte es:[edi], byte [esi]
jl 0x4d527f
jmp 0x4d534f
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10000
jbe 0x4d534f
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword [0x4fe078], 0
pop ebx
add esp, 0x15c
ret
Function at 0x4d5370
Capabilities:
Get file version info

Disassembly:
sub esp, 0x110
xor eax, eax
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0xd
mov edi, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4d5424
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4d5424
push ebx
push 4
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
lea eax, [esp + 0x1c]
push ebx
push esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4d5415
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x4f15bc
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4d5415
mov ecx, dword [esp + 0x14]
cmp ecx, 0x34
jb 0x4d5401
mov ecx, 0x34
mov esi, dword [esp + 0x10]
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x110
ret

Function at 0x4d5500
Capabilities:
Get session user name

Disassembly:
sub esp, 0x88
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp]
lea edx, [esp + 0x48]
push ecx
push edx
mov dword [esp + 8], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4d5531
mov byte [esp + 0x48], al
lea ecx, [esp + 0x14]
call fcn.004d5370
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xe]
mov edx, dword [esp + 0xc]
and eax, 0xffff
push 0x6b4010
push eax
mov eax, dword [esp + 0xc]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
cdq
mov ecx, 0x64
idiv ecx
mov eax, dword [esp + 0x16]
lea ecx, [esp + 0x58]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1e]
and edx, 0xffff
push edx
push eax
mov eax, dword [esp + 0x44]
push ecx
mov edx, eax
and edx, 0xffff
shr eax, 0x10
push edx
push eax
mov eax, dword [esp + 0x4c]
mov ecx, eax
and ecx, 0xffff
shr eax, 0x10
push ecx
push eax
push str._r_n_______________________________________________________r_nPROGRAM_VERSION:__d._d._d._d_r_nCOMPUTER_NAME:__s_r_nTIME:__02u__02u__02u__02u:_02u:_02u_r_nINFO:__s_r_n_r_n
call fcn.004d5430
add esp, 0x34
add esp, 0x88
ret

Function at 0x4d6160
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
xor ax, ax
push esi
mov al, dl
mov byte [esp + 4], dl
cmp ax, word [ecx]
jb 0x4d6175
mov byte [esp + 4], 0
mov edx, dword [esp + 4]
mov esi, dword [esp + 0x10]
and edx, 0xff
lea eax, [ecx + edx*8 + 6]
movzx dx, byte [ecx + edx*8 + 6]
mov word [esi], dx
mov esi, dword [esp + 0x14]
movzx dx, byte [eax + 1]
mov word [esi], dx
mov esi, dword [esp + 0x18]
mov dx, word [ecx + 2]
mov word [esi], dx
mov esi, dword [esp + 0x1c]
mov dx, word [ecx + 4]
mov word [esi], dx
mov edx, dword [esp + 0xc]
movzx si, byte [eax + 3]
mov word [edx + 2], si
movzx si, byte [eax + 2]
mov eax, dword [eax + 4]
test eax, 0x80000000
je 0x4d61d9
and eax, 0x7fffffff
add esi, 0x100
add eax, ecx
mov word [edx], si
mov dword [edx + 4], eax
pop esi
pop ecx
ret 0x14
Function at 0x4de850
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
call fcn.004d7d60
lea esi, [edi + 4]
lea edx, [esp + 0x1c]
mov ecx, esi
call fcn.004d7d00
test eax, eax
jne 0x4de87d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov cx, word [esi]
mov dx, word [edi + 8]
mov ax, word [edi + 6]
mov word [esp + 0x24], cx
mov cx, word [edi + 0xa]
mov word [esp + 0x28], dx
mov word [esp + 0x2a], cx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x24]
mov word [esp + 0x26], ax
call fcn.004d7d00
test eax, eax
jne 0x4de8be
mov eax, 6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp word [edi + 0x22], 6
jne 0x4de90d
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ecx, dword [edi + 0x18]
mov ebx, dword [esp + 0x1c]
sub eax, esi
mov dword [esp + 0x18], ebx
inc eax
and ecx, 0x2000000
je 0x4de8e7
xor edx, edx
jmp 0x4de8f0
xor edx, edx
mov dx, word [0x6b41ec]
add edx, 2
test ecx, ecx
mov dword [esp + 0x14], edx
je 0x4de904
mov cx, word [0x6b41c4]
jmp 0x4de951
mov cx, word [0x6b4238]
jmp 0x4de951
mov eax, dword [esp + 0x2a]
mov esi, dword [esp + 0x26]
mov ecx, dword [edi + 0x18]
mov ebx, dword [esp + 0x1e]
sub eax, esi
mov dword [esp + 0x18], ebx
inc eax
and ecx, 0x2000000
je 0x4de92f
xor edx, edx
jmp 0x4de938
xor edx, edx
mov dx, word [0x6b4208]
add edx, 2
test ecx, ecx
mov cx, word [0x6b41c4]
mov dword [esp + 0x14], edx
jne 0x4de951
mov cx, word [0x6b4200]
mov word [esp + 0x10], cx
mov ecx, edx
movsx edx, si
and ecx, 0xffff
movsx ebx, bx
lea ebp, [edx + ecx]
cmp ebx, ebp
jg 0x4de978
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
movsx eax, ax
sub eax, ecx
add eax, edx
cmp ebx, eax
jl 0x4de990
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, edi
call fcn.004de410
add eax, dword [esp + 0x14]
add esi, eax
mov eax, dword [esp + 0x18]
cmp ax, si
jge 0x4de9b3
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
add si, word [esp + 0x10]
xor ecx, ecx
pop edi
cmp ax, si
pop esi
setge cl
dec ecx
pop ebp
and ecx, 0xfffffffe
pop ebx
add ecx, 5
mov eax, ecx
add esp, 0x20
ret
Function at 0x401674
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
push dword [esi + 0x1420]
call fcn.00401c63
pop ecx
lea edi, [esi + 0x1418]
push ebp
mov ebx, eax
push dword [esi + 0x141c]
push dword [edi]
call dword [0x406020]
push dword [esi + 0x1420]
push ebx
push dword [edi]
call dword [0x40601c]
cmp eax, dword [esi + 0x1420]
jne 0x401705
lea eax, [esi + 0x1210]
push ebp
push eax
call dword [0x406048]
cmp eax, 0xffffffff
mov dword [esi + 0x1424], eax
jne 0x4016e2
lea eax, [esi + 4]
push str.Unable_to_open_setup_file
push eax
call dword [0x406004]
push 0x37
jmp 0x401716
xor eax, eax
xor byte [eax + ebx], 7
inc eax
cmp eax, 0x7d0
jl 0x4016e4
push dword [esi + 0x1420]
push ebx
push dword [esi + 0x1424]
call dword [0x406044]
jmp 0x401717
lea eax, [esi + 4]
push str.Failed_to_read_setup_engine
push eax
call dword [0x406004]
push 0x36
pop ebp
push ebx
call fcn.00401b7a
mov esi, dword [esi + 0x1424]
pop ecx
cmp esi, 0xffffffff
je 0x401730
push esi
call dword [0x40600c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x9bc058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009bc1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9bc07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9bc06a
add dl, dl
jne 0x9bc089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9bc0dc
xor eax, eax
add dl, dl
jne 0x9bc096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9bc17d
add dl, dl
jne 0x9bc0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9bc0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9bc0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9bc0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9bc0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9bc075
mov eax, 1
add dl, dl
jne 0x9bc0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9bc0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9bc0e1
sub eax, ebx
mov ebx, 1
jne 0x9bc128
mov ecx, 1
add dl, dl
jne 0x9bc10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9bc119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9bc105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9bc075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9bc13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9bc14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9bc136
cmp eax, 0x7d00
jae 0x9bc16d
cmp eax, 0x500
jb 0x9bc168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9bc075
cmp eax, 0x7f
ja 0x9bc170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9bc075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9bc19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9bc075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10039380
Capabilities:
Encode data using xor

Disassembly:
jae 0x100393e9
xchg ecx, eax
push edx
mov dl, 0x81
invalid
outsd dx, dword [esi]
int3

Function at 0x1003a1d0
Capabilities:
Encode data using xor

Disassembly:
inc ebx
jo 0x1003a120
in al, dx
outsd dx, dword [esi]
mov edi, 0xe2a7dded
lcall 0x9a1b, 0xfc70a84c
push ebp
int3
cmp ebp, dword [edx + 0x24205738]
int1
cmp byte [edi + 0x20], dl
and al, 0xf1
wait
jne 0x1003a122
xlatb
cmp ch, ah
mov bh, 0x28
outsb dx, byte [esi]
sub edi, ebp
mov dh, 0x73
sub dword [edx], 0xc6beb071
sbb dword fs:[edx - 0x6a34fc3c], eax
xchg ebp, eax
cmpsd dword [esi], dword es:[edi]
xchg esi, eax
lcall 0x8a41, 0x5ef42f8f
adc ch, bh
ficomp word [edx + 0x67e6aec2]
inc edi
cmp eax, 0x1f84d247
adc dl, byte [esi + 0x4e]
lahf
mov gs, word [bx + di]
clc
stosd dword es:[edi], eax
test bl, dl
mov ebx, 0x84dc1333
push esp
mov byte [0xd9d4fe55], al
xor dword [edx + ebx*2], 0xb59385ba
in al, 0x28
ror byte [esi], 1
stosb byte es:[edi], al
cmp bl, byte [esi + 0x2c81a78c]
pop eax
stc
pop es
in al, 0xd4
test al, 0xb3
wait
cmp bh, dl
popal
mov al, byte ds:[0x796436e2]
mov esp, 0xca6cf97c
stosb byte es:[edi], al
cmpsb byte [esi], byte es:[edi]
imul bl
sbb bl, byte [eax + ebx*8]
outsb dx, byte [esi]
lodsb al, byte [esi]
mov dword [esi + 0x588903c1], 0x131cab6c
xchg cl, al
add ecx, dword [ecx + 0x1cab6c58]
adc esi, dword [eax - 0x452e69d5]
das
int 0xdc
pop edx
adc esi, dword [eax - 0x452e69d5]
das
int 0xdc
pop edx
sbb eax, 0xa70583a6
mov word [eax - 0x25], ds
aaa
pop edx
xlatb
sub dword [edx + 0x4a88d8c3], edx
daa
ror byte [edi - 0x7e], 1
outsd dx, dword [esi]
shr byte [edi], cl
sub byte [edi - 0x2e], 0x2f
xor esi, dword [ecx]
mov edx, 0x2fe359ab
das
fsub qword [esi - 0x19ee0bc3]
lahf
xchg ebx, eax
aam 0x41
imul ebp, dword [edi - 0x1965a293], 0x7d
je 0x1003a1a8
shl ah, cl
daa
lodsd eax, dword gs:[esi]
add al, 0x82
movsd dword es:[edi], dword [esi]
mov ebx, 0x48345d04
jmp 0x1003a1c6

Function at 0x1003a3e0
Capabilities:
Encode data using xor

Disassembly:
popfd
dec esi
enter 0xffffffffffff888f, 0xffffffffffffffc3
xor eax, 0x757f354b
or ebp, dword [0xc89f5428]
cmp ah, ah
pushal
push edi
sub dword [edx], ebp
add al, 0x64
inc edi
pushfd
lds ebp, [esi + 0x1d]
invalid

Function at 0x1003a800
Capabilities:
Encode data using xor

Disassembly:
cwde
cmp eax, 0xd4f2a3b3
xchg edx, eax
invalid