joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015b68
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10023db8
push 0x10023db0
push str.FlsAlloc
push 0x1f
call fcn.10015a27
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015b9c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10022178]
call esi
jmp 0x10015ba2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10015be6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10023dc8
push 0x10023dc0
push str.FlsGetValue
push 0x21
call fcn.10015a27
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015c1d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10022178]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10015c25
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10023dd0
push 0x10023dc8
push str.FlsSetValue
push 0x22
call fcn.10015a27
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015c5f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10022178]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10018b52
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 0x10018bef
push ebx
push esi
call fcn.10018b1b
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.10018aaf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10018b9c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10018bee
push edi
push eax
call fcn.10014516
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10018bbc
call fcn.1001335c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10018bed
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10018aaf
add esp, 0x20
test eax, eax
jne 0x10018bdb
push edi
call fcn.1001335c
jmp 0x10018be3
push ebx
call fcn.1001335c
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 0x10018bf2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10018c03
pop esi
ret
push ebx
push edi
push esi
call fcn.10018b1b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10014516
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10018c2b
push ebx
push esi
push edi
call fcn.1000bba0
add esp, 0xc
push 0
call fcn.1001335c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10019385
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10018ea0
Function at 0x1001e491
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1001e40d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001e600
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001e600
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001e5b5
jg 0x1001e4ed
test eax, eax
je 0x1001e5ab
push 1
push 0x1000
call fcn.10015897
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001e510
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001e5a2
push 0x8000
push ebx
call fcn.1001e33e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001e539
jg 0x1001e534
cmp ecx, 0x1000
jb 0x1001e539
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100168de
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001e57e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1001e534
jl 0x1001e565
test ecx, ecx
jne 0x1001e526
push dword [ebp - 0xc]
push ebx
call fcn.1001e33e
push esi
call fcn.1001335c
add esp, 0xc
xor ebx, ebx
jmp 0x1001e60e
cmp byte [edi + 0x24], 0
je 0x1001e595
cmp dword [edi + 0x20], 5
jne 0x1001e595
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001e5a0
mov ebx, dword [edi + 0x18]
jmp 0x1001e5a2
xor ebx, ebx
push esi
call fcn.1001335c
pop ecx
jmp 0x1001e60e
test ecx, ecx
jg 0x1001e577
jl 0x1001e5b5
test eax, eax
jae 0x1001e577
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10011ab5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001e5d5
cmp byte [edi + 0x1c], 0
je 0x1001e577
jmp 0x1001e606
push ebx
call fcn.10019c4f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001e577
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001e60e
cmp byte [edi + 0x1c], 0
je 0x1001e60b
mov ebx, dword [edi + 0x18]
jmp 0x1001e60e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10011ab5
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10021440
Capabilities:
Parse pe header

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

Disassembly:
mov edx, esp
jmp 0x5a93d8
sysenter
ret

Function at 0x5a923b
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0x48f9e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7c000]
push edi
jmp 0x48f9fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48fa01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48f9f0
mov eax, 1
add ebx, ebx
jne 0x48fa13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48fa24
jne 0x48fa43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa43
dec eax
add ebx, ebx
jne 0x48fa30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48fa08
add ebx, ebx
jne 0x48fa3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48fa95
xor ecx, ecx
sub eax, 3
jb 0x48fa5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48faca
sar eax, 1
mov ebp, eax
jmp 0x48fa66
add ebx, ebx
jne 0x48fa66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
inc ecx
add ebx, ebx
jne 0x48fa74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
add ebx, ebx
jne 0x48fa81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48fa76
jne 0x48fa92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48fa76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48fab4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48faa6
jmp 0x48f9f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48fab4
add edi, ecx
jmp 0x48f9f6
pop esi
mov edi, esi
mov ecx, 0x1a9e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48fad2
cmp byte [edi], 6
jne 0x48fad2
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 0x48fad7
lea edi, [esi + 0x8d000]
mov eax, dword [edi]
or eax, eax
je 0x48fb4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8f000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8f104]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48fb04
mov ecx, edi
jns 0x48fb33
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 + 0x8f108]
or eax, eax
je 0x48fb49
mov dword [ebx], eax
add ebx, 4
jmp 0x48fb21
call dword [esi + 0x8f118]
mov ebp, dword [esi + 0x8f10c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x48fb83
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4312b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
cmp dword [edi + 0x80], 0
jne 0x431472
mov edx, ecx
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4312e0
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [edi + 0x10]
call fcn.004017c0
mov eax, dword [edi + 8]
test eax, eax
jne 0x431316
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 8], eax
test eax, eax
je 0x431472
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [edi + 0x7c]
test ecx, ecx
je 0x431331
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x7c], 0
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0043fa60
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4313c2
cmp dword [ebp - 0x11c], 5
jne 0x431385
mov eax, dword [ebp - 0x118]
cmp eax, 1
jne 0x43137c
cmp word [ebp - 0xc], ax
jmp 0x431385
test eax, eax
jne 0x4313c2
cmp word [ebp - 0xc], 3
jae 0x4313c2
push 0x2c
call fcn.0043dbc3
add esp, 4
mov dword [ebp - 0x128], eax
xor ecx, ecx
mov dword [eax], vtable.QQDectector::CWininetFile.0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 7
mov word [eax + 0xc], cx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [edi + 0x7c], eax
jmp 0x43141b
push 0x58
call fcn.0043dbc3
mov esi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x128], esi
mov dword [esi], vtable.QQDectector::CWinHttpFile.0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 7
mov word [esi + 0xc], ax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
lea eax, [esi + 0x40]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [edi + 0x7c], esi
lea eax, [ebp - 0x124]
mov dword [edi + 0x80], 1
push eax
push 0
push edi
push 0x431900
push 0
push 0
mov dword [ebp - 0x124], 0
call fcn.00448d77
mov ecx, eax
add esp, 0x18
mov dword [edi + 0xc], ecx
test ecx, ecx
jne 0x431459
mov dword [edi + 0x80], eax
xor eax, eax
test ecx, ecx
pop edi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret 4
Function at 0x100012f0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x10001310
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x10001326
push 0x80004005
call fcn.10001030
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x10001350
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x10001368
push 0x80004005
call fcn.10001030
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x10001375
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x10001ef0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1001c7a0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x10001f5e
test ecx, ecx
je 0x10001f50
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x10001f6c
test ecx, ecx
je 0x10002011
push ecx
jmp 0x1000200b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x10001fde
jmp 0x10001fa0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.10001ef0
mov edi, eax
test edi, edi
jne 0x1000202d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x10001fa0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10001ff5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10002011
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1000b8b6
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1000203c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x10002013
Function at 0x100049e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x10013380
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1001c7a0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x418]
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
call dword [0x1001c780]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x10004a6d
call fcn.100011e0
mov esi, eax
jmp 0x10004b55
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10004a89
call fcn.100011e0
jmp 0x10004b4c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x10004aa2
call fcn.100011e0
jmp 0x10004b4c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x14], esi
jae 0x10004ad8
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x10004ac6
lea ecx, [ebp]
call fcn.10001e00
lea ecx, [ebp - 0x1c]
call fcn.10001d90
mov eax, 0x8007000e
jmp 0x10004b72
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.100028e0
mov dword [ebp - 4], 1
jmp 0x10004b01
mov ebx, dword [ebp]
test ebx, ebx
jne 0x10004b0f
mov esi, 0x8007000e
jmp 0x10004b4e
call dword [0x1001c780]
mov ecx, dword [ebp - 0x20]
push esi
push ebx
push esi
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x10004b30
call fcn.100011e0
jmp 0x10004b4c
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10004380
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x10004b70
lea ecx, [ebp]
call fcn.10001e00
jmp 0x10004b70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.1000b8b6
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10007320
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x15c
mov eax, dword [ecx + 0x124]
mov edx, dword [ecx + 0x120]
push ebx
mov ebx, dword [ecx + 0x128]
push ebp
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0x12c]
push esi
mov dword [esp + 0x24], ecx
lea esi, [ecx + 8]
push edi
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x130]
mov ecx, 0x10
lea edi, [esp + 0x2c]
xor ebp, ebp
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x2c]
mov esi, eax
shr esi, 0x10
rol si, 8
rol ax, 8
movzx eax, ax
movzx esi, si
shl eax, 0x10
or esi, eax
mov dword [esp + ecx*4 + 0x2c], esi
add ecx, 1
cmp ecx, 0x10
jb 0x10007372
lea eax, [esp + 0x4c]
mov dword [esp + 0x24], 0x10
mov ecx, dword [eax - 0x20]
xor ecx, dword [eax + 0x14]
mov edi, dword [eax - 0x1c]
xor edi, dword [eax + 0x18]
mov esi, dword [eax - 0x18]
xor edi, dword [eax + 4]
xor ecx, esi
mov esi, dword [eax - 0x14]
xor ecx, dword [eax]
xor edi, esi
mov esi, dword [eax + 0x1c]
xor esi, dword [eax - 0x10]
rol ecx, 1
xor esi, dword [eax + 8]
rol edi, 1
xor esi, dword [eax - 0x18]
mov dword [eax + 0x20], ecx
rol esi, 1
mov dword [eax + 0x28], esi
mov esi, dword [eax - 0xc]
xor esi, dword [eax + 0xc]
mov dword [eax + 0x24], edi
xor esi, ecx
xor esi, dword [eax - 0x14]
add eax, 0x10
rol esi, 1
sub dword [esp + 0x24], 1
mov dword [eax + 0x1c], esi
jne 0x100073a6
xor eax, eax
cmp eax, 0x14
jae 0x1000740f
mov ecx, dword [esp + 0x14]
mov ebp, ecx
not ebp
and ebp, dword [esp + 0x1c]
and ebx, ecx
or ebp, ebx
jmp 0x1000743a
cmp eax, 0x28
jb 0x10007430
cmp eax, 0x3c
jae 0x1000742b
mov ecx, dword [esp + 0x14]
mov ebp, ebx
or ebp, ecx
and ebp, dword [esp + 0x1c]
and ebx, ecx
or ebp, ebx
jmp 0x1000743a
cmp eax, 0x50
jae 0x1000743a
mov ebp, dword [esp + 0x1c]
xor ebp, ebx
xor ebp, dword [esp + 0x14]
rol edx, 5
add edx, dword [eax*4 + 0x10016718]
mov ecx, 4
add edx, dword [esp + eax*4 + 0x2c]
add edx, dword [esp + 0x20]
add edx, ebp
sub ecx, 1
mov esi, dword [esp + ecx*4 + 0x10]
mov dword [esp + ecx*4 + 0x14], esi
jne 0x10007453
mov ebx, dword [esp + 0x18]
ror ebx, 2
add eax, 1
cmp eax, 0x50
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edx
jb 0x100073f8
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
add dword [eax + 0x120], edx
add dword [eax + 0x124], ecx
mov edx, dword [esp + 0x1c]
add dword [eax + 0x128], ebx
mov ecx, dword [esp + 0x20]
add dword [eax + 0x12c], edx
add dword [eax + 0x130], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x15c
ret

Function at 0x10007600
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebx + 0x114], 0x40
lea edi, [ebx + 0x120]
mov ecx, 8
mov esi, 0x10016858
rep movsd dword es:[edi], dword [esi]
push 0x40
xor esi, esi
lea eax, [ebx + 8]
push esi
push eax
call fcn.1000c4f0
add esp, 0xc
pop edi
mov dword [ebx + 0x110], esi
mov dword [ebx + 0x108], esi
mov dword [ebx + 0x10c], esi
pop esi
mov byte [ebx + 0x118], 0x80
pop ebx
ret
Function at 0x10007940
Capabilities:
Hash data using sha512

Disassembly:
push ebp
push esi
mov ebp, ecx
push edi
mov dword [ebp + 0x114], 0x80
lea edi, [ebp + 0x120]
mov ecx, 0x10
mov esi, 0x10016998
rep movsd dword es:[edi], dword [esi]
push 0x80
xor esi, esi
lea eax, [ebp + 8]
push esi
push eax
call fcn.1000c4f0
add esp, 0xc
pop edi
mov dword [ebp + 0x110], esi
mov dword [ebp + 0x108], esi
mov dword [ebp + 0x10c], esi
pop esi
mov byte [ebp + 0x118], 0x80
pop ebp
ret

Function at 0x100079a0
Capabilities:
Hash data using sha384

Disassembly:
push ebp
push esi
mov ebp, ecx
push edi
mov dword [ebp + 0x114], 0x80
lea edi, [ebp + 0x120]
mov ecx, 0x10
mov esi, 0x10016c58
rep movsd dword es:[edi], dword [esi]
push 0x80
xor esi, esi
lea eax, [ebp + 8]
push esi
push eax
call fcn.1000c4f0
add esp, 0xc
pop edi
mov dword [ebp + 0x110], esi
mov dword [ebp + 0x108], esi
mov dword [ebp + 0x10c], esi
pop esi
mov byte [ebp + 0x118], 0x80
pop ebp
ret
Function at 0x10008dc0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
xor esi, esi
call edx
test eax, eax
jle 0x10008e02
push ebx
mov ebx, dword [esp + 0x10]
jmp 0x10008de0
mov al, byte [edi + esi + 0x404]
xor al, byte [esi + ebx]
mov ecx, edi
mov byte [edi + esi + 0x804], al
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
add esi, 1
call eax
cmp esi, eax
jl 0x10008de0
pop ebx
lea eax, [edi + 0x804]
pop edi
pop esi
ret 4

Function at 0x10008ef0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
cmp dword [ebx + 0x140c], 0
je 0x10008ff0
push ebp
push esi
mov esi, dword [ebx + 0x1404]
push edi
mov edi, dword [ebx + 0x1408]
lea eax, [edi + 7]
cdq
and edx, 7
add edx, eax
lea ecx, [esi*8]
sub ecx, edi
mov eax, 0xff
sar eax, cl
lea ebp, [ebx + 0x1414]
sar edx, 3
mov ecx, 0x20
mov dword [esp + 0x14], eax
xor eax, eax
test esi, esi
mov edi, ebp
mov dword [ebx + 0x140c], 0
rep stosd dword es:[edi], eax
jle 0x10008f62
mov cl, byte [ebx + eax + 0x1004]
mov byte [eax + ebp], cl
add eax, 1
cmp eax, esi
jl 0x10008f51
cmp esi, 0x80
jge 0x10008fa7
mov ecx, 1
sub ecx, esi
mov edi, 0x80
lea eax, [esi + ebp - 1]
mov dword [esp + 0x10], ecx
sub edi, esi
jmp 0x10008f86
mov ecx, dword [esp + 0x10]
movzx ecx, byte [ecx + eax]
movzx ebx, byte [eax]
add ecx, ebx
and ecx, 0xff
movzx ecx, byte [ecx + 0x1001b960]
mov byte [eax + 1], cl
add eax, 1
sub edi, 1
jne 0x10008f82
mov eax, ebp
sub eax, edx
movzx ecx, byte [eax + 0x80]
and ecx, dword [esp + 0x14]
add eax, 0x80
mov cl, byte [ecx + 0x1001b960]
mov byte [eax], cl
mov ecx, 0x7f
sub ecx, edx
js 0x10008fed
lea eax, [ecx + ebp + 1]
movzx esi, byte [edx + eax - 1]
movzx edi, byte [eax]
xor esi, edi
mov bl, byte [esi + 0x1001b960]
mov byte [eax - 1], bl
sub ecx, 1
sub eax, 1
test ecx, ecx
jge 0x10008fd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x10009320
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
xor edx, edx
cmp dword [ecx + 0x140c], edx
je 0x100093c0
push ebx
push ebp
push esi
push edi
mov dword [ecx + 0x140c], edx
mov byte [ecx + 0x1514], dl
mov byte [ecx + 0x1515], dl
xor eax, eax
lea edi, [ecx + 0x1414]
lea ecx, [ecx]
mov byte [edi + eax], al
add eax, 1
cmp eax, 0x100
jl 0x10009350
xor esi, esi
mov dword [esp + 0x10], 0x100
jmp 0x10009370
mov bl, byte [edi]
movzx edx, dl
movzx eax, byte [edx + ecx + 0x1004]
movzx ebp, bl
add eax, esi
add eax, ebp
and eax, 0x800000ff
jns 0x10009392
dec eax
or eax, 0xffffff00
inc eax
movzx esi, al
mov al, byte [esi + ecx + 0x1414]
mov byte [edi], al
lea eax, [edx + 1]
mov byte [esi + ecx + 0x1414], bl
movzx ebx, byte [ecx + 0x1404]
cdq
idiv ebx
add edi, 1
sub dword [esp + 0x10], 1
jne 0x10009370
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret