joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4109bf
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebx
push esi
push edi
mov ebx, 0xbb80
push ebx
call fcn.00412d69
mov esi, eax
mov dword [esp], 0x2ee0
call fcn.00412d69
mov edi, eax
mov dword [esp], 0x1770
push edi
push 0x2714
call fcn.00403814
push edi
push str.native_lib_dir_is__S
call fcn.0040ea46
push edi
call fcn.0040713c
push 0x4109a2
push edi
push esi
call fcn.00405cdc
push esi
call fcn.00413700
add esp, 0x28
test eax, eax
je 0x410a34
push esi
call fcn.00413700
cmp byte [eax + esi - 1], 0x3b
pop ecx
je 0x410a34
push 0x430d8c
push esi
call fcn.00413b90
pop ecx
pop ecx
push esi
call fcn.00413700
pop ecx
sub ebx, eax
push ebx
push esi
call fcn.00413700
pop ecx
add eax, esi
push eax
mov ebx, 0x432cd4
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x410a6f
push esi
push str.Setting_PATH__native_libs___S
call fcn.0040ea46
pop ecx
pop ecx
jmp 0x410a84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Setting_PATH__native_libs___S_failed_with_error__d
call fcn.0040ea46
add esp, 0xc
push esi
call fcn.00413700
add eax, 6
push eax
call fcn.00412d69
push esi
mov ebx, eax
push str.PATH_s
push ebx
call fcn.00414711
push ebx
call fcn.004182fe
push ebx
call fcn.00413a45
push esi
call fcn.00413a45
push edi
call fcn.00413a45
add esp, 0x24
pop edi
pop esi
pop ebx
ret

Function at 0x410ac0
Capabilities:
Set environment variable

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push edi
xor edi, edi
push edi
mov ebp, str._JAVA_OPTIONS
push ebp
call esi
push edi
mov ebx, str.JDK_JAVA_OPTIONS
push ebx
call esi
push edi
mov edi, str.JAVA_TOOL_OPTIONS
push edi
call esi
mov esi, 0x4322c3
push esi
push ebp
call fcn.00418343
push esi
push ebx
call fcn.00418343
push esi
push edi
call fcn.00418343
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41133c
Capabilities:
Get common file path
Query environment variable
Set environment variable

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x43bc80]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 8
mov eax, 0x42f0c6
call fcn.00414362
push 0x271a
call fcn.004038cb
pop ecx
test eax, eax
je 0x4114c4
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
push 0
mov ebx, str.PATH
push ebx
call esi
mov edi, eax
test edi, edi
jle 0x4114c4
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412d69
pop ecx
push edi
push eax
push ebx
mov dword [ebp - 0x10], eax
call esi
test eax, eax
jbe 0x4114bb
push 0x104
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x4114bb
lea eax, [ebp + 0x1c]
push eax
call fcn.00413f2b
pop ecx
test eax, eax
jbe 0x4114bb
lea eax, [ebp + 0x1c]
push eax
call fcn.00413f2b
pop ecx
push 0
lea ecx, [ebp]
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x18], 7
call fcn.00410d80
push dword [ebp - 0x10]
and dword [ebp - 4], 0
push edi
push dword [ebp - 0x14]
push str.reducing_PATH__d__d__s
call fcn.0040ea46
mov esi, 0x43151c
push esi
push dword [ebp - 0x10]
call fcn.0041562d
add esp, 0x18
jmp 0x411463
push edi
call fcn.00413f2b
pop ecx
test eax, eax
je 0x411469
push dword [ebp - 0x14]
lea eax, [ebp + 0x1c]
push eax
push edi
call fcn.00418e80
add esp, 0xc
test eax, eax
jne 0x411459
cmp dword [ebp + 0x14], eax
jbe 0x411450
push esi
lea ecx, [ebp]
call fcn.0041131f
push edi
lea ecx, [ebp]
call fcn.0041131f
push esi
push 0
call fcn.0041562d
pop ecx
pop ecx
mov edi, eax
test edi, edi
jne 0x411423
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x411475
lea eax, [ebp + 4]
push eax
push dword [ebp + 0x14]
push str.reduced_PATH__d_to__s
call fcn.0040ea46
add esp, 0xc
cmp dword [ebp + 0x14], 0
jbe 0x4114af
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x411498
lea eax, [ebp + 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x4114af
push str.ERROR_setting_path
call fcn.0040ea46
pop ecx
push 0
push 1
lea ecx, [ebp]
call fcn.00410dda
push dword [ebp - 0x10]
call fcn.00413a45
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.00413c78
add ebp, 0x228
leave
ret
Function at 0x411c9c
Capabilities:
Check if file exists
Create process on windows
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x462c]
mov eax, 0x46ac
call fcn.00413c90
mov eax, dword [0x43bc80]
xor eax, ebp
mov dword [ebp + 0x4628], eax
mov eax, dword [ebp + 0x4634]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x4638]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00413b80
push str..pack
call fcn.00413700
lea esi, [ebp - 0x28]
sub esi, eax
lea eax, [ebp - 0x28]
push eax
call fcn.00413700
xor ebx, ebx
push edi
mov byte [eax + esi], bl
call fcn.00404a1d
add esp, 0x14
test al, al
jne 0x411d10
push str.pack_path_doesnt_exists
call fcn.0040ea46
jmp 0x411e0b
push dword [ebp - 0x2c]
lea eax, [ebp + 0x2eb8]
push str._s_binunpack200.exe
push eax
call fcn.00414711
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp + 0x1748]
push str._r___s____s_
push eax
call fcn.00414711
lea eax, [ebp + 0x2eb8]
push eax
mov esi, 0x430c38
push esi
call fcn.0040ea46
lea eax, [ebp + 0x1748]
push eax
push esi
call fcn.0040ea46
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.004154b0
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.004154b0
add esp, 0x44
xor ecx, ecx
mov word [ebp - 0x50], cx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push ebx
push ebx
xor eax, eax
push 0x20
inc eax
push eax
push ebx
mov dword [ebp - 0x54], eax
push ebx
lea eax, [ebp + 0x1748]
push eax
lea eax, [ebp + 0x2eb8]
push eax
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x411dc4
push str.could_not_create_unpack_process
call fcn.0040ea46
push ebx
push 0x3fd
call fcn.0040401d
add esp, 0xc
push str.waiting_for_unpack200_to_finish
call fcn.0040ea46
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.unpack_done
call fcn.0040ea46
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x411e0c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x411e0c
call esi
push eax
push str.could_not_delete_packed_file__error__d_
call fcn.0040ea46
pop ecx
pop ecx
mov ecx, dword [ebp + 0x4628]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413c78
add ebp, 0x462c
leave
ret
Function at 0x411e24
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2fa8]
mov eax, 0x3028
call fcn.00413c90
mov eax, dword [0x43bc80]
xor eax, ebp
mov dword [ebp + 0x2fa4], eax
mov eax, dword [ebp + 0x2fb0]
push ebx
push edi
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x1834]
push str._s_s.jar.pack
push eax
call fcn.00414711
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1834]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x411f4e
lea eax, [ebp - 0x50]
push eax
push eax
call fcn.00413700
pop ecx
sub eax, 5
push eax
push edi
push esi
lea eax, [ebp + 0x1834]
push str._s_s_.s
push eax
call fcn.00414711
lea eax, [ebp + 0x1834]
push eax
push str.checking__S
call fcn.0040ea46
lea eax, [ebp + 0x1834]
push eax
call fcn.00404a1d
add esp, 0x24
test al, al
jne 0x411f34
mov eax, dword [ebp - 0x80]
cmp byte [eax], 0
jne 0x411eea
push str.Unpacking_JRE
call fcn.0040ea46
mov dword [esp], str.Preparing_JRE_..._n
call fcn.00410696
mov eax, dword [ebp - 0x80]
pop ecx
mov byte [eax], 1
lea eax, [ebp - 0x50]
push eax
push eax
call fcn.00413700
pop ecx
sub eax, 5
push eax
push edi
lea eax, [ebp + 0x1834]
push str._s_.s
push eax
call fcn.00414711
lea eax, [ebp + 0x1834]
push eax
push esi
lea eax, [ebp + 0xc4]
push str._s_s.pack
push eax
call fcn.00414711
lea eax, [ebp + 0xc4]
push eax
push esi
call fcn.00411c9c
add esp, 0x2c
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x411e7f
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x2fa4]
xor ecx, ebp
pop ebx
call fcn.00413c78
add ebp, 0x2fa8
leave
ret

Function at 0x412ce9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
xor edi, edi
push edi
push dword [ebp + 0x10]
push esi
call dword [eax + 0x2a4]
push edi
push dword [ebp + 0x14]
mov ebx, eax
mov eax, dword [esi]
push esi
call dword [eax + 0x2a4]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 8]
push ecx
push edi
push 0x18
push eax
push ebx
push 0x80000001
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x2a8]
push dword [ebp - 8]
mov eax, dword [esi]
push dword [ebp + 0x14]
push esi
call dword [eax + 0x2a8]
cmp dword [ebp - 0xc], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
je 0x412d65
mov eax, dword [ebp + 0x18]
leave
ret 0x14

Function at 0x413c78
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43bc80]
jne 0x413c82
repz ret
jmp fcn.0041af7d
Function at 0x422a71
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041b0fd
and dword [ebp - 4], 0
cmp dword [0x44ae24], 0
mov ebx, eax
jne 0x422b22
push 0x4369b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x422bd3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4369ac
push edi
call esi
test eax, eax
je 0x422bd3
push eax
call fcn.0041b08b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44ae24], eax
call esi
push eax
call fcn.0041b08b
mov dword [esp], 0x436988
push edi
mov dword [0x44ae28], eax
call esi
push eax
call fcn.0041b08b
mov dword [esp], str.GetUserObjectInformationW
push edi
mov dword [0x44ae2c], eax
call esi
push eax
call fcn.0041b08b
pop ecx
mov dword [0x44ae34], eax
test eax, eax
je 0x422b22
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041b08b
pop ecx
mov dword [0x44ae30], eax
mov eax, dword [0x44ae30]
cmp eax, ebx
je 0x422b7a
cmp dword [0x44ae34], ebx
je 0x422b7a
push eax
call fcn.0041b106
push dword [0x44ae34]
mov esi, eax
call fcn.0041b106
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422b7a
test edi, edi
je 0x422b7a
call esi
test eax, eax
je 0x422b71
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422b71
test byte [ebp - 0xc], 1
jne 0x422b7a
or dword [ebp + 0x10], 0x200000
jmp 0x422bb3
mov eax, dword [0x44ae28]
cmp eax, ebx
je 0x422bb3
push eax
call fcn.0041b106
pop ecx
test eax, eax
je 0x422bb3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422bb3
mov eax, dword [0x44ae2c]
cmp eax, ebx
je 0x422bb3
push eax
call fcn.0041b106
pop ecx
test eax, eax
je 0x422bb3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44ae24]
call fcn.0041b106
pop ecx
test eax, eax
je 0x422bd3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422bd5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4297b9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041b0fd
and dword [ebp - 4], 0
cmp dword [0x44b074], 0
mov ebx, eax
jne 0x42986a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42991b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x437b80
push edi
call esi
test eax, eax
je 0x42991b
push eax
call fcn.0041b08b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44b074], eax
call esi
push eax
call fcn.0041b08b
mov dword [esp], 0x436988
push edi
mov dword [0x44b078], eax
call esi
push eax
call fcn.0041b08b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44b07c], eax
call esi
push eax
call fcn.0041b08b
pop ecx
mov dword [0x44b084], eax
test eax, eax
je 0x42986a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041b08b
pop ecx
mov dword [0x44b080], eax
mov eax, dword [0x44b080]
cmp eax, ebx
je 0x4298c2
cmp dword [0x44b084], ebx
je 0x4298c2
push eax
call fcn.0041b106
push dword [0x44b084]
mov esi, eax
call fcn.0041b106
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4298c2
test edi, edi
je 0x4298c2
call esi
test eax, eax
je 0x4298b9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4298b9
test byte [ebp - 0xc], 1
jne 0x4298c2
or dword [ebp + 0x10], 0x200000
jmp 0x4298fb
mov eax, dword [0x44b078]
cmp eax, ebx
je 0x4298fb
push eax
call fcn.0041b106
pop ecx
test eax, eax
je 0x4298fb
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4298fb
mov eax, dword [0x44b07c]
cmp eax, ebx
je 0x4298fb
push eax
call fcn.0041b106
pop ecx
test eax, eax
je 0x4298fb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44b074]
call fcn.0041b106
pop ecx
test eax, eax
je 0x42991b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42991d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100076a7
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [0x101d40ac], 0x37a
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.100088a5
lea ecx, [0x100077cf]
mov edx, dword [0x101d40ac]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x50], esi
add edx, 0xffffdcc0
mov dword [0x101d40ac], edx
mov dword [esp + 0x5c], 0x12fa00
mov edx, dword [0x101d4098]
mov dword [esp + 0x84], edx
mov edx, dword [0x101d409c]
mov dword [esp + 0x30], edx
mov edx, dword [0x101d40a0]
mov dword [esp + 0x3c], edx
mov edx, dword [0x101d40a4]
mov dword [esp + 0x6c], edx
mov edx, dword [0x101d40a8]
mov dword [esp + 0x4c], edx
mov dword [0x101d40b0], 0x1a2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x10007755
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x10007743
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
jne 0x10007743
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x78], ecx
mov dword [0x101d40ac], 0xd16
mov edx, dword [esp + 0xc]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x80], esi
mov esi, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.10008734
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x101d40ac], 0x4fd
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x10007e0e
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, dword [0x101d40b0]
add edi, 0x1064
mov dword [0x101d40ac], edi
mov dword [0x101d40b8], 0
mov byte [0x101d40bc], 0
mov dword [0x101d40b0], 0x1215
mov dword [0x101d40b4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10007f1e
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, 0xffffdcb5
mov esi, 0x100
mov edi, dword [0x101d40b8]
mov ebx, dword [ebp - 0x18]
movzx ebx, byte [ebx + eax]
add ebx, edi
mov dword [ebp - 0x28], eax
xor edi, edi
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add ebx, edx
mov eax, ebx
cdq
idiv esi
mov dword [0x101d40b8], edx
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x28]
mov bl, byte [esi + ebx]
mov byte [0x101d40bc], bl
mov dword [0x101d40b0], ecx
mov bl, byte [esi + edx]
mov ecx, dword [ebp - 0x28]
mov byte [esi + ecx], bl
mov edx, dword [0x101d40ac]
add edx, 0x2328
mov dword [0x101d40ac], edx
mov bl, byte [0x101d40bc]
mov edx, dword [0x101d40b8]
mov byte [esi + edx], bl
mov dword [0x101d40b0], 0x2f0
mov edx, dword [0x101d40b4]
add edx, 1
mov dword [0x101d40b4], edx
cmp edx, 0x100
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
jl 0x10007e6a
jmp 0x10007f76
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101d40b4]
add eax, 1
mov dword [0x101d40b4], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10007f1e
mov dword [0x101d40ac], 0x1408
mov dword [0x101d40b4], 0
mov eax, dword [0x101d40b0]
mov dword [ebp - 0x30], eax
xor eax, eax
mov ecx, dword [ebp - 0x30]
add ecx, 0xffffd9c5
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jmp 0x10007e6a
mov dword [0x101d40b0], 0x2133
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10007f95
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x2c87
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, 0x1d5a
mov dword [0x101d40b4], 0
mov dword [0x101d40b8], 0
mov dword [0x101d40c0], 0
mov dword [0x101d40ac], 0x1d5a
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
mov eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
jne 0x1000801d
mov eax, dword [ebp - 0x30]
mov dword [0x101d40ac], eax
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov edi, 0x100
add edx, 0xfffff6df
add eax, 1
mov ebx, ecx
add ebx, 1
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x101d40b4], edx
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x2c]
movzx ecx, byte [ecx + edx]
add ecx, esi
mov eax, ecx
mov dword [ebp - 0x40], edx
cdq
idiv edi
mov dword [0x101d40b8], edx
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x40]
mov cl, byte [ecx + esi]
mov byte [0x101d40bc], cl
mov edi, dword [ebp - 0x38]
mov dword [0x101d40ac], edi
mov edi, dword [ebp - 0x2c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x101d40b0], 0x63b
mov cl, byte [0x101d40bc]
mov edx, dword [0x101d40b8]
mov byte [edi + edx], cl
mov dword [0x101d40ac], 0xbac
mov edx, dword [0x101d40b4]
movzx edx, byte [edi + edx]
mov ecx, dword [0x101d40b8]
movzx ecx, byte [edi + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x101d40c0], ecx
mov dword [0x101d40ac], 0x1236
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x3c]
mov dl, byte [edx + esi]
xor dl, byte [edi + ecx]
mov ecx, dword [ebp - 0x28]
mov byte [ecx + esi], dl
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
mov dword [ebp - 0x44], ebx
je 0x10008118
mov eax, dword [0x101d40b4]
mov ecx, dword [0x101d40b8]
mov edx, dword [0x101d40ac]
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x34], eax
jmp 0x1000801d
mov eax, dword [0x101d40ac]
add eax, 0xf2d
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], eax
jmp 0x1000800d
Function at 0x10008264
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.10008130
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x100082a0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x101d40ac], 0xfffff751
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x24]
mov dword [0x101d40b0], 0xffffe77b
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x100083c8
jmp 0x10008344
mov eax, dword [ebp - 0x38]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x42], cl
je 0x100083bc
jmp 0x10008390
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 2
mov edx, dword [ebp - 0x4c]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x34], eax
jb 0x10008371
jmp 0x100083c8
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
jmp 0x10008371
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x34], edi
jmp 0x100083c8
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edx
jmp 0x100082ec
mov eax, dword [ebp - 0x40]
add eax, 1
mov cl, byte [ebp - 0x41]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x42]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x38], eax
jne 0x100082ec
mov al, byte [ebp - 0x42]
test al, 1
jne 0x10008356
jmp 0x1000831b
mov eax, dword [ebp - 0x34]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10008734
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [0x101d40b0]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
xor eax, eax
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffff0b4
mov dword [0x101d40b0], ecx
mov dword [0x101d40ac], 0x13ed
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x10198964]
mov dh, byte [eax + 0x10198935]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x34], ecx
jne 0x1000876e
lea eax, [ebp - 0x24]
mov dword [0x101d40b0], 0x18e3
mov dword [ebp - 0x38], eax
call fcn.100084ef
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.100085dd
cmp eax, 0
mov dword [ebp - 0x3c], eax
je 0x10008882
mov eax, dword [ebp - 0x3c]
mov ecx, dword [0x101d40ac]
add ecx, 0xffffe855
mov dword [0x101d40ac], ecx
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.10007b4f
xor eax, eax
mov dword [0x101d40b0], 0x26a5
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x44], ecx
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x34], ecx
mov esi, dword [0x101d40b0]
add esi, 0x236
mov dword [0x101d40ac], esi
add ecx, 0x100e
mov esi, dword [ebp - 0x40]
cmp esi, 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
je 0x10008879
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x54
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x54
pop esi
pop ebp
ret