joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fd05
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0044e6a3
mov esi, dword [eax]
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.0044e6a3
push dword [eax]
push esi
push str._r_nRegSetDHCP__s__s__r_n
push 0x4dc0f8
call fcn.00411099
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.0043e679
lea ecx, [ebp - 8]
call fcn.0043e679
mov esi, 0x4c95a0
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push 4
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc]
push eax
push 4
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push str.EnableDHCP
push dword [ebx]
xor edi, edi
inc edi
mov dword [ebp - 0xc], edi
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.IPAddress
push dword [ebx]
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.SubnetMask
push dword [ebx]
call esi
push edi
mov edi, 0x4c1872
push edi
push 7
push 0
push str.DefaultGateway
push dword [ebx]
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44fde0
cmp byte [eax], 0x2d
jne 0x44fdc1
mov dword [ebp + 0xc], edi
cmp byte [eax], 0
je 0x44fde0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0xc]
push 1
push 0
push str.NameServer
push dword [ebx]
call esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
Function at 0x401a8a
Capabilities:
Parse pe header

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

Function at 0x40303c
Capabilities:
Parse pe header

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

Function at 0x40e780
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e7ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e7ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40ec26
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x44cfc0
push str.FlsAlloc
push 0x1f
call fcn.0040f647
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ec5a
push dword [ebp + 8]
mov ecx, esi
call dword [0x452c54]
call esi
jmp 0x40ec60
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40eca4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x44cfe4
push str.FlsGetValue
push 0x21
call fcn.0040f647
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ecdb
push dword [ebp + 8]
mov ecx, esi
call dword [0x452c54]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40ece3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x44cff8
push str.FlsSetValue
push 0x22
call fcn.0040f647
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ed1d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x452c54]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x416873
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x455040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0040fd86
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040fd86
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4168ea
cmp word [ecx], dx
je 0x4168ea
mov eax, dword [0x44e2a4]
push edi
dec eax
push eax
push 0x44e190
call fcn.00416a63
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41695d
cmp word [eax], dx
je 0x41695d
mov eax, dword [edi]
test eax, eax
je 0x41690e
cmp word [eax], dx
je 0x41690e
lea eax, [ebp - 0x10]
push eax
call fcn.00416ac4
jmp 0x416917
lea eax, [ebp - 0x10]
push eax
call fcn.00416db2
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x416987
mov eax, dword [0x44e18c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x44de80
call fcn.00416a63
add esp, 0xc
test al, al
je 0x416987
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x416952
cmp word [eax], di
je 0x416952
lea eax, [ebp - 0x10]
push eax
call fcn.00416ac4
pop ecx
jmp 0x416989
lea eax, [ebp - 0x10]
push eax
call fcn.00416db2
jmp 0x41694f
mov eax, dword [edi]
test eax, eax
je 0x416974
cmp word [eax], dx
je 0x416974
lea eax, [ebp - 0x10]
push eax
call fcn.00416ee6
pop ecx
jmp 0x416987
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x416a52
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00416ff6
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x416a52
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x416a52
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x416a52
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4169df
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0040f011
test ebx, ebx
je 0x416a4d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0040f011
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x416a52
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x416a52
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043c46c
add esp, 0x10
xor eax, eax
inc eax
jmp 0x416a54
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402119
leave
ret
Function at 0x4170fc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040fd86
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41716b
cmp esi, dword [ebp - 4]
je 0x417166
cmp dword [ebp + 0xc], 0
je 0x417166
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x417143
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004171c5
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41716d
xor eax, eax
inc eax
jmp 0x41716d
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41ad73
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x455040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41adbe
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041b065
test al, al
jne 0x41adb8
sub edx, 2
cmp edx, edi
jne 0x41ad9e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41ade0
lea eax, [edi + 2]
cmp edx, eax
je 0x41ade0
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041acbf
add esp, 0x10
jmp 0x41aeda
push esi
lea ecx, [ebp - 0x255]
call fcn.0041b065
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41ae23
push dword [ebp - 0x25c]
jmp 0x41add0
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41ae60
cmp word [ebp - 0x226], 0
je 0x41ae81
cmp word [ebp - 0x226], ax
jne 0x41ae60
cmp word [ebp - 0x224], 0
je 0x41ae81
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041acbf
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41aecd
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41ae3a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41aeb5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41aeda
push 0x41b0a3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043d0d0
add esp, 0x10
jmp 0x41aeaa
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402119
leave
ret
Function at 0x41c672
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41c70f
push ebx
push esi
call fcn.0041c775
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041c576
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41c6bc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c70e
push edi
push eax
call fcn.0041488c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41c6dc
call fcn.00411516
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c70d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041c576
add esp, 0x20
test eax, eax
jne 0x41c6fb
push edi
call fcn.00411516
jmp 0x41c703
push ebx
call fcn.00411516
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41c712
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41c723
pop esi
ret
push ebx
push edi
push esi
call fcn.0041c775
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041488c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41c74b
push ebx
push esi
push edi
call fcn.00439730
add esp, 0xc
push 0
call fcn.00411516
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41c811
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041caa0

Function at 0x41d127
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d1af
Function at 0x440b0e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x456a10]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x440b4e
cmp byte [ebx], 0xa
jne 0x440b4e
or byte [edi + eax + 0x28], 4
jmp 0x440b53
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x440c52
mov dl, byte [eax]
cmp dl, 0x1a
je 0x440c35
inc eax
cmp dl, 0xd
je 0x440b7f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x440ba5
cmp eax, ecx
jae 0x440bb3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x440b67
jmp 0x440c52
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x440c30
cmp dword [ebp - 0x10], 0
je 0x440c30
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x456a10]
test byte [eax + edi + 0x28], 0x48
je 0x440c0a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x440bf5
mov byte [esi], dl
jmp 0x440c06
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x456a10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x440c52
cmp byte [ebp - 1], 0xa
jne 0x440c19
cmp esi, ebx
jne 0x440c19
mov byte [esi], 0xa
jmp 0x440c51
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043f72e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x440c52
mov byte [esi], 0xd
jmp 0x440c51
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x456a10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x440c4f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x440c52
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x440c5b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x456a10]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x440ca1
cmp word [ebx], dx
jne 0x440ca1
or byte [eax + edi + 0x28], 4
jmp 0x440ca6
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x440e09
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x440de9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x440ce7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x440d1d
cmp eax, edx
jae 0x440d2b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x440cc2
jmp 0x440e09
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x440de4
cmp dword [ebp - 0x18], 0
je 0x440de4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x456a10]
test byte [eax + edi + 0x28], 0x48
je 0x440dba
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x440d7e
mov word [esi], cx
jmp 0x440db5
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x456a10]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x456a10]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x456a10]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x440e09
pop eax
cmp word [ebp - 4], ax
jne 0x440dca
cmp esi, ebx
jne 0x440dca
mov word [esi], ax
jmp 0x440e06
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043f72e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x440e09
push 0xd
pop eax
jmp 0x440dc5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x456a10]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x440e03
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x440e09
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x403931
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
and dword [esp + 4], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], edi
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], eax
call fcn.00403011
mov ebp, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
add ebp, 0x23f
mov edi, dword [esi + 8]
push 0x20
mov dword [esp + 0x28], eax
pop esi
mov dword [esp + 0x1c], 2
add dword [esp + 0x1c], 3
mov edx, dword [esp + 0x18]
mov eax, edx
shl eax, 4
add eax, edi
mov dword [esp + 0x20], 0xedeb2e40
cmp dword [0x67d744], 0xfa9
mov dword [esp + 0x10], eax
lea ecx, [edx + ebp]
mov eax, dword [0x67d788]
cmove eax, dword [esp + 0x20]
and dword [esp + 0x20], 0
cmp dword [0x67d744], 0x3eb
mov dword [0x67d788], eax
mov eax, dword [0x67d790]
cmove eax, dword [esp + 0x20]
mov dword [0x67d790], eax
mov eax, dword [esp + 0x18]
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x24]
xor eax, ecx
mov dword [0x67d78c], 0xf4ea3dee
xor eax, dword [esp + 0x10]
sub ebx, eax
mov dword [esp + 0x14], eax
mov eax, ebx
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
mov eax, ebx
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], eax
lea eax, [ebx + ebp]
xor eax, dword [esp + 0x14]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
lea ebp, [ebp + 0x61c88647]
dec esi
jne 0x40397b
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov dword [edi + 4], ebx
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x413e4f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x447028]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407906
mov dword [ebp - 0x14], eax
cmp dword [0x67e910], esi
jne 0x413f42
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x413ecf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x414022
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x414022
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414022
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x67e910], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x67e914], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x67e918], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x67e920], eax
test eax, eax
je 0x413f3f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x67e91c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x413f67
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x413f5a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x413f7c
push 4
pop eax
jmp 0x414024
cmp dword [ebp - 0x14], esi
je 0x413f7c
push dword [0x67e910]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x413f61
mov eax, dword [0x67e91c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x413fda
cmp dword [0x67e920], edi
je 0x413fda
push eax
call ebx
push dword [0x67e920]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x413fda
test eax, eax
je 0x413fda
call ecx
test eax, eax
je 0x413fcf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x413fcf
test byte [ebp - 8], 1
jne 0x413fda
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41400a
mov eax, dword [0x67e914]
cmp eax, edi
je 0x414007
push eax
call ebx
test eax, eax
je 0x414007
call eax
mov esi, eax
test esi, esi
je 0x414007
mov eax, dword [0x67e918]
cmp eax, edi
je 0x414007
push eax
call ebx
test eax, eax
je 0x414007
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x67e910]
call ebx
test eax, eax
je 0x414022
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x414024
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406b40
mov esp, ebp
pop ebp
ret
Function at 0x112e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x112e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x112e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x112e06a
add dl, dl
jne 0x112e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x112e0dc
xor eax, eax
add dl, dl
jne 0x112e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x112e17d
add dl, dl
jne 0x112e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x112e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x112e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x112e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x112e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x112e075
mov eax, 1
add dl, dl
jne 0x112e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x112e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x112e0e1
sub eax, ebx
mov ebx, 1
jne 0x112e128
mov ecx, 1
add dl, dl
jne 0x112e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x112e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x112e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x112e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x112e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x112e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x112e136
cmp eax, 0x7d00
jae 0x112e16d
cmp eax, 0x500
jb 0x112e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x112e075
cmp eax, 0x7f
ja 0x112e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x112e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x112e19e
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 0x112e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10