joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46633a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0xd0], 0
je 0x46637c
test al, al
je 0x46637c
lea eax, [esi + 0xd4]
push eax
call fcn.00431f2e
push esi
push 0
push 0x466328
call fcn.004153c4
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], eax
sete al
pop esi
pop ecx
pop ebp
ret 8
push eax
push esi
call fcn.004661fd
pop esi
pop ecx
pop ebp
ret 8

Function at 0x46817a
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov al, byte [0x4974e7]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x8000
push edi
mov byte [ebp - 4], al
call fcn.004142e9
add esp, 4
push eax
call fcn.004141fe
add esp, 8
mov esi, eax
push ebx
mov dword [ebp - 8], esi
call fcn.00443aa7
test al, al
je 0x4681d7
push edi
push ebx
call fcn.00442e6f
push eax
push 1
push ebx
call fcn.004679dc
push eax
call fcn.00414466
add esp, 0x10
mov ebx, eax
jmp 0x468222
push esi
jmp 0x468235
lea esi, [ebp - 0x1c]
call fcn.0040d610
push ebx
call fcn.00452e60
push esi
push eax
call fcn.004581ef
mov edx, dword [ebp - 0x1c]
push edx
push 0x486e88
push edi
call fcn.004144e0
add esp, 0xc
cmp byte [ebp - 4], 0
mov dword [ebp - 0xc], eax
je 0x468214
push ebx
call fcn.00452e81
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
lea esi, [ebp - 0x1c]
call fcn.00401350
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push edi
call fcn.00414776
add esp, 4
cmp esi, 0xffffffff
jne 0x4681d4
push 0x4000
push edi
call fcn.004142e9
add esp, 4
push eax
call fcn.004141fe
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46868d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor edi, edi
mov byte [ebp + 0xb], 1
cmp dword [ebx + 4], esi
je 0x4687a8
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov byte [eax], 0
mov eax, dword [ebp + 0x10]
mov byte [ecx], 0
mov ecx, dword [ebp + 0xc]
mov byte [edx], 0
mov byte [eax], 0
mov dword [ecx], esi
lea ebx, [ebx]
push esi
push ebx
call fcn.004362b4
movzx eax, word [eax]
cmp eax, 0x2b
je 0x4686f0
cmp eax, 0x5e
je 0x4686eb
cmp eax, 0x21
je 0x4686eb
cmp eax, 0x23
jne 0x468723
cmp eax, 0x2b
jne 0x4686f9
mov edx, dword [ebp + 0x10]
mov byte [edx], 1
inc esi
jmp 0x4686cd
cmp eax, 0x5e
jne 0x468707
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
inc esi
jmp 0x4686cd
cmp eax, 0x21
jne 0x468715
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 1
inc esi
jmp 0x4686cd
cmp eax, 0x23
jne 0x468720
mov edx, dword [ebp + 0x1c]
mov byte [edx], 1
inc esi
jmp 0x4686cd
push esi
inc esi
push ebx
mov dword [ebp + 0x1c], esi
call fcn.004362b4
movzx eax, word [eax]
cmp eax, 0x7b
jne 0x468811
mov eax, pe_nt_image_headers32
lea ecx, [ebp - 0x10]
call fcn.004013c0
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0x7d
call fcn.0045f9d3
test al, al
je 0x4687ed
mov edx, dword [ebp - 0x10]
mov eax, dword [edi*4 + 0x492968]
push edx
push eax
call fcn.0041164b
add esp, 8
test eax, eax
je 0x46877d
inc edi
cmp edi, 0x62
jl 0x46875f
cmp edi, 0x62
jne 0x4687e4
xor edi, edi
lea esi, [ebp - 0x10]
call fcn.00402150
movzx ecx, word [eax]
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov edx, dword [ebp + 0xc]
cwde
mov dword [edx], eax
cmp eax, 0xffffffff
jne 0x4687b3
mov ecx, esi
call fcn.00402260
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test eax, 0x200
je 0x4687c0
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
test eax, 0x400
je 0x4687cd
mov edx, dword [ebp + 0x18]
mov byte [edx], 1
test eax, 0x100
je 0x468807
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
mov byte [eax], 1
call fcn.00402260
jmp 0x46884a
cmp byte [edi + 0x492af0], 0
je 0x4687fb
lea ecx, [ebp - 0x10]
mov byte [ebp + 0xb], 0
call fcn.00402260
jmp 0x46884a
movzx ecx, byte [edi + str._f_b_b..__reepqrstuvwxyz________t___]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
lea ecx, [ebp - 0x10]
call fcn.00402260
jmp 0x46884a
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov ecx, dword [ebp + 0xc]
cwde
mov dword [ecx], eax
cmp eax, 0xffffffff
je 0x4687a8
test eax, 0x200
je 0x468830
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
test eax, 0x400
je 0x46883d
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 1
test eax, 0x100
je 0x46884a
mov edx, dword [ebp + 0x10]
mov byte [edx], 1
mov eax, dword [ebp + 0xc]
and dword [eax], 0xff
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40386b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x40c090]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x4012cc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x40389c
xor al, al
jmp 0x4038cb
movzx eax, word [ebp - 0x84]
lea edx, [ebp - 0x84]
test eax, eax
je 0x4038c9
mov ecx, dword [0x40c8b8]
and eax, 0x1f
lea edx, [edx + 2]
bts ecx, eax
movzx eax, word [edx]
test eax, eax
jne 0x4038b3
mov dword [0x40c8b8], ecx
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409510
mov esp, ebp
pop ebp
ret
Function at 0x4058ab
Capabilities:
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x40c090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x86c], edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov edi, eax
cmp dword [0x40c0c4], 0xffffffff
jne 0x40597e
lea eax, [ebp - 0x868]
mov dword [0x40c0c4], ebx
push eax
push ecx
push ecx
mov edx, 0x4014d8
mov dword [ebp - 0x868], ebx
call fcn.00402dfb
add esp, 0xc
test eax, eax
jne 0x40597e
lea eax, [ebp - 0x858]
mov dword [ebp - 0x860], 0x28
mov dword [ebp - 0x864], eax
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x858]
mov dword [ebp - 0x870], 0x50
push eax
push ebx
push ebx
push 0x401534
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40595d
mov eax, dword [ebp - 0x864]
mov eax, dword [eax]
and eax, 3
mov dword [0x40c0c4], eax
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x860], 0x28
jle 0x40597e
push dword [ebp - 0x864]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x40c914], ebx
je 0x405a24
cmp dword [ebp - 0x86c], ebx
je 0x405a24
mov eax, 0x20006
mov dword [ebp - 0x868], ebx
cmp byte [0x40cd9a], bl
jne 0x4059b6
cmp byte [0x40cab5], bl
je 0x4059b6
mov eax, 0x20106
push ebx
lea ecx, [ebp - 0x868]
push ecx
push ebx
push eax
push ebx
push ebx
push ebx
push 0x401540
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405a24
push 4
lea eax, [ebp - 0x86c]
push eax
push 4
push ebx
push 0x4015b0
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push ebx
push 0x4015c4
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dword [0x40c0c4], 3
je 0x405a93
push 0x802
lea eax, [ebp - 0x808]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x808]
push esi
cmp dword [ebp - 0x86c], ebx
je 0x405a6f
push dword [ebp - 0x86c]
push 0x4015e8
push 0x401
push eax
call fcn.00402cd7
add esp, 0x14
jmp 0x405a82
push 0x40160c
push 0x401
push eax
call fcn.00402cd7
add esp, 0x10
test eax, eax
js 0x405a93
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409510
mov esp, ebp
pop ebp
ret
Function at 0x409b74
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40a2e8
call fcn.0040a018
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x409bd4
cmp eax, 0xffffffff
je 0x409bd4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x409bcd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x409bcd
cmp edx, 0x10000000
jae 0x409bcd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x409bca
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0040a05d
ret 4

Function at 0x409c20
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x409c5e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x409c56
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x409c60
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x409c46
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x409d30
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x409d46
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x409d61
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x2d816a23
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x2d8e1ef1
call fcn.2d805e23
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
push str.SoftwareMicrosoftInternet_Explorer
xor ebx, ebx
push 0x80000002
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x2d816a56
xor al, al
jmp 0x2d816b1e
push ebx
mov byte [ebp - 0x2c], bl
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], ebx
bound edi, qword [ebx - 0x38fffff6]
inc ebp
in al, dx
pop es
add byte [eax], al
add byte [esi - 0x77], ah
inc ebp
fsubr st(0)
push ecx
mov ebx, 0x458b000a
call 0x6149b80e
dec dword [ecx - 0x76b837bb]
pop ebp
cld
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
push ebx
push str.Version
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
test eax, eax
jne 0x2d816acf
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x2d816acf
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.2d801b44
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x2d816b1c
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], edi
cmp eax, 0x1000
jb 0x2d816b13
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.2d8c25cb
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
call fcn.2d8c25cb
pop ecx
pop ecx
mov al, bl
call fcn.2d8076ce
ret
Function at 0x2d834fff
Capabilities:
Get disk information

Disassembly:
push 0x3c
mov eax, 0x2d8e471e
call fcn.2d805e23
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
call fcn.2d8c25cb
pop ecx
test al, al
je 0x2d835159
lea eax, [ebp - 0x44]
push eax
push ebx
push esi
call fcn.2d834ce5
add esp, 0xc
test eax, eax
jne 0x2d835161
push dword [ebp - 0x44]
push 1
call fcn.2d8c25cb
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x2d835161
lea eax, [ebp - 0x44]
push eax
push edi
push esi
call fcn.2d834ce5
add esp, 0xc
test eax, eax
jne 0x2d835161
mov byte [edi + 3], bl
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], bl
call fcn.2d82bc14
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.2d8359fe
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], bl
pop ecx
pop ecx
cmp eax, 0x10
jb 0x2d8350df
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 2
cmp eax, 0x1000
jb 0x2d8350d3
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.2d8c25cb
mov eax, dword [ebp - 0x44]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.2d8c25cb
pop ecx
pop ecx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
cmp eax, 2
je 0x2d8350fb
cmp eax, 5
jne 0x2d8350fd
mov bl, 1
mov eax, dword [0x2d966aec]
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x2d8f7384]
call esi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, 8
jb 0x2d835159
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 3
cmp eax, 0x1000
jb 0x2d835150
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.2d8c25cb
mov eax, dword [ebp - 0x48]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x44]
push eax
push ecx
call fcn.2d8c25cb
pop ecx
pop ecx
mov al, bl
call fcn.2d8076ce
ret
xor al, al
jmp 0x2d83515b
Function at 0x2d8c25cb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x2d8c25da
pop dword [ebp - 0x48]
mov eax, 0x477a52c3
add eax, 0xe611d317
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xd0e7fddc
add dword [ebp - 0x58], 0x7d6a476f
mov dword [ebp - 0x54], 0x87a0cd2d
add dword [ebp - 0x54], 0xaa927f18
mov dword [ebp - 0x50], 0x438605b4
add dword [ebp - 0x50], 0x8c63e7a
mov dword [ebp - 0x4c], 0x736d053
add dword [ebp - 0x4c], 0xf8c92fad
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xf368f4b5
sub dword [ebp - 0x58], 0x7ef68b5f
mov dword [ebp - 0x54], 0xc735af61
add dword [ebp - 0x54], 0x7a36b214
mov dword [ebp - 0x50], 0x629ed9cc
add dword [ebp - 0x50], 0xd092a0
mov dword [ebp - 0x4c], 0x9e1582e8
add dword [ebp - 0x4c], 0x61ea7d18
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x4cf6e4fe
add eax, 0xe0988b92
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x6cc5c
push 0
call eax
mov ecx, 0x4ee9
mov ebx, eax
mov esi, 0xe1916cc3
sub esi, 0xb3f6ccc3
add esi, dword [ebp - 0x48]
mov edi, 0x9fe64666
add edi, 0x7d088d04
sub dword [ebp - 0x20], 0x7d08521
mov edx, dword [esi]
sub dword [ebp - 0xc], edi
xor edx, edi
xor dword [ebp - 0x24], esi
mov dword [ebx], edx
sub dword [ebp - 0x24], 0x9b2c0860
add ebx, 0x7375bb42
add ebx, 0x8c8a44c2
add esi, 4
loop 0x2d8c26f1
add eax, 0x4331031c
sub eax, 0x432fd4a5
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x2d800000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x4078a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x4078b7
pop dword [ebp - 0x24]
mov eax, 0x6fdc1ada
add eax, 0x90645ddd
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x424fc
push 0
mov eax, 0xbd8ecef8
add eax, 0x42b38320
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x59ff
mov edx, eax
mov ebx, 0xca892632
add ebx, 0x35ba2dce
add ebx, dword [ebp - 0x24]
mov edi, 0x424f01e9
sub dword [ebp - 0x14], esi
mov esi, dword [ebx]
add dword [ebp - 0x14], 0x838e8dd3
xor esi, edi
sub dword [ebp - 4], edx
mov dword [edx], esi
sub dword [ebp - 4], 0xb9fe4e83
add edx, 0xc3a95c8c
add edx, 0x3c56a378
add ebx, 4
loop 0x40790a
add eax, 0x15acf
mov ebx, eax
add eax, 0x425a7b74
add eax, 0xbda58491
mov ecx, 0x309a6fbb
sub ecx, 0x305a6fbb
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x4f1680
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x94000]
mov dword [edi + 0xcf740], 0x31380ae9
push edi
jmp 0x4f16aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f16b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f16a0
mov eax, 1
add ebx, ebx
jne 0x4f16c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f16d4
jne 0x4f16f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f16f3
dec eax
add ebx, ebx
jne 0x4f16e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f16b8
add ebx, ebx
jne 0x4f16ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f1745
xor ecx, ecx
sub eax, 3
jb 0x4f170b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f177a
sar eax, 1
mov ebp, eax
jmp 0x4f1716
add ebx, ebx
jne 0x4f1716
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f16e4
inc ecx
add ebx, ebx
jne 0x4f1724
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f16e4
add ebx, ebx
jne 0x4f1731
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f1726
jne 0x4f1742
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f1726
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f1764
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f1756
jmp 0x4f16a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f1764
add edi, ecx
jmp 0x4f16a6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f1782
cmp byte [edi], 0x11
jne 0x4f1782
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4f1787
lea edi, [esi + 0xea000]
mov eax, dword [edi]
or eax, eax
je 0x4f17ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfd758]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xfd8d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f17b4
mov ecx, edi
jns 0x4f17e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xfd8d8]
or eax, eax
je 0x4f17f9
mov dword [ebx], eax
add ebx, 4
jmp 0x4f17d1
call dword [esi + 0xfd8e8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4f1830
cmp al, 0xef
ja 0x4f1823
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4f1805
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4f1812
mov ebp, dword [esi + 0xfd8dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4f1864
sub esp, 0xffffff80
jmp 0x420577
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40673a
pop dword [ebp - 0x30]
mov eax, 0xf657c62c
sub eax, 0xf6175ef2
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xd4d05cdd
sub dword [ebp - 0x40], 0x867e1792
mov dword [ebp - 0x3c], 0xbf8b9ed
add dword [ebp - 0x3c], 0x263a9258
mov dword [ebp - 0x38], 0x4e9a376
add dword [ebp - 0x38], 0x4762a0b8
mov dword [ebp - 0x34], 0xbd3d5702
sub dword [ebp - 0x34], 0xbd3d5702
lea eax, [ebp - 0x40]
push eax
mov eax, 0x822aadd
add eax, 0xf81dd627
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x43b20f09
add dword [ebp - 0x40], 0x30c05a4d
mov dword [ebp - 0x3c], 0x4c314769
add dword [ebp - 0x3c], 0xf53b1a0c
mov dword [ebp - 0x38], 0x4afc118
sub dword [ebp - 0x38], 0xa14054ac
mov dword [ebp - 0x34], 0x1b7d95d5
add dword [ebp - 0x34], 0xe4826a2b
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x33651
push 0
call eax
mov ecx, 0x3784
xor ebx, ebx
add ebx, eax
mov esi, 0xc142644e
add esi, 0x3f047fb2
add esi, dword [ebp - 0x30]
mov edx, 0xe7250206
mov edi, dword [esi]
xor dword [ebp - 4], 0x3e21d267
sub edi, edx
sub dword [ebp - 0x1c], 0x9f5e7602
mov dword [ebx], edi
xor dword [ebp - 0x10], eax
add ebx, 0x4764e8a1
sub ebx, 0x4764e89d
add esi, 0x49016743
sub esi, 0x4901673f
loop 0x40684d
add eax, 0xd0e3
mov ebx, eax
add eax, 0xa84547d3
add eax, 0x57bab832
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0xc90000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xc9000a
jmp 0xc9200f
jmp fcn.009a6058
Function at 0x2e001137
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x2e001146
pop dword [ebp - 0x3c]
mov eax, 0x5afad6c7
sub eax, 0x2cfac581
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xa0e6eaa2
add dword [ebp - 0x4c], 0xad6b5aa9
mov dword [ebp - 0x48], 0x6d44d84
sub dword [ebp - 0x48], 0xd4a1013f
mov dword [ebp - 0x44], 0x76c6360f
sub dword [ebp - 0x44], 0x2a79f1e1
mov dword [ebp - 0x40], 0x139d4bdd
sub dword [ebp - 0x40], 0x139d4bdd
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xba9351fe
sub eax, 0x8c903136
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x4fd814ba
add dword [ebp - 0x4c], 0x249a549c
mov dword [ebp - 0x48], 0x5b7c23c9
add dword [ebp - 0x48], 0xe5f03dac
mov dword [ebp - 0x44], 0x34f743b8
add dword [ebp - 0x44], 0x2e7828b4
mov dword [ebp - 0x40], 0xcf8050a7
add dword [ebp - 0x40], 0x307faf59
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x4547b
push 0
call eax
mov ecx, 0x5936
xor edi, edi
add edi, eax
mov ebx, 0x92be15ce
add ebx, 0x9b475832
add ebx, dword [ebp - 0x3c]
mov esi, 0x74ea8231
sub dword [ebp - 8], ecx
mov edx, dword [ebx]
sub dword [ebp - 0x30], 0xa27d9358
sub edx, esi
add dword [ebp - 0x10], 0x8b68ba8
mov dword [edi], edx
xor dword [ebp - 0x30], ecx
add edi, 0xa47364a5
add edi, 0x5b8c9b5f
add ebx, 0x598d6069
add ebx, 0xa6729f9b
loop 0x2e001259
add eax, 0x157ab
xor ebx, ebx
add ebx, eax
add eax, 0xa270f90e
add eax, 0x5d8f06f7
mov ecx, 0x2e000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x2e013ece
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x2e03021f
call fcn.2e00153c
mov edi, ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call fcn.2e014c10
test ax, ax
je 0x2e013f76
lea eax, [ebp - 0x10]
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e013f76
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e013f6d
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.2e001137
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push esi
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e013f60
push esi
mov ecx, edi
call fcn.2e010c49
push 1
push esi
mov byte [ebp - 4], bl
call fcn.2e001137
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.2e001586
ret