joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4058c0
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push 0x125ccb0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x3000
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push edi
mov dword [0x128e3f8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp + 8]
mov dword [edx], esi
push edi
cmp dword [ebp - 4], esi
jne 0x405930
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x128e3f8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
call fcn.004058c0
mov esi, dword [ebp - 4]
add esp, 4
xor eax, eax
test esi, esi
jle 0x405971
mov ecx, dword [0x128e3f8]
mov dl, byte [ecx + eax]
sub dl, 0x7a
xor dl, 0x19
mov byte [ecx + eax], dl
inc eax
cmp eax, esi
jl 0x405960
lea ecx, [ebp - 4]
call fcn.00404a80
mov dword [0x128e400], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405a40
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1286440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea ecx, [ebp - 0x4c]
call fcn.00405990
mov ebx, 0xa
lea eax, [ebp - 0x4c]
call fcn.00406f10
push eax
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [ebp - 0x4c]
call fcn.00407140
push ebx
push 0x25a000
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x14], 0x6e676953
mov dword [ebp - 0x10], 0x68436c61
mov dword [ebp - 0xc], 0x656d6f72
mov dword [ebp - 8], 0x666c45
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.004072e0
mov eax, dword [ebp - 0x30]
mov esi, 0x10
cmp dword [ebp - 0x1c], esi
jae 0x405abe
lea eax, [ebp - 0x30]
push 0x25a000
push 0x1002cb0
push eax
call fcn.0054ac50
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x20], 0x25a000
cmp dword [ebp - 0x1c], esi
jae 0x405ae3
lea eax, [ebp - 0x30]
mov byte [eax + 0x25a000], bl
mov ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x405af4
lea ecx, [ebp - 0x30]
mov dword [0x128e3f8], ecx
xor eax, eax
lea esp, [esp]
mov dl, byte [eax + ecx]
sub dl, 0x7a
xor dl, 0x19
mov byte [eax + ecx], dl
inc eax
cmp eax, 0x25a000
jl 0x405b00
call fcn.00405430
mov edi, eax
cmp edi, ebx
jne 0x405b64
cmp dword [ebp - 0x1c], esi
jb 0x405b30
mov eax, dword [ebp - 0x30]
push eax
call fcn.0040a16c
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0x38], esi
jb 0x405b4e
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0040a16c
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00546c71
mov esp, ebp
pop ebp
ret 0x10
lea edx, [ebp - 0x14]
push edx
mov eax, edi
call fcn.00405670
add esp, 4
cmp eax, ebx
jne 0x405bc2
call fcn.00405740
cmp dword [ebp - 0x1c], esi
jb 0x405b8c
mov eax, dword [ebp - 0x30]
push eax
call fcn.0040a16c
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0x38], esi
jb 0x405baa
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0040a16c
add esp, 4
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00546c71
mov esp, ebp
pop ebp
ret 0x10
call eax
call fcn.00405740
cmp dword [ebp - 0x1c], esi
jb 0x405bda
mov edx, dword [ebp - 0x30]
push edx
call fcn.0040a16c
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0x38], esi
jb 0x405bf8
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0040a16c
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00546c71
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40e65d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40e6a5
call fcn.00443e84
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40e6a5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40e6e8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40e6d1
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40e6d1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x40e6e5
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x411c56
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5600dd
call fcn.005482d3
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x411c7b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x411ccd
call fcn.00413adf
push eax
lea ecx, [ebp - 0x10]
call fcn.00401990
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00548c1b
push eax
call fcn.00401730
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401a40
mov eax, esi
call fcn.005483ab
ret 8

Function at 0x412ee1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00443e84
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x412f1a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00412b1e
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x412f78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x412f9c
cmp dword [edi + 0x74], 0
jne 0x412f9c
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00443e84
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00412f39
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41dbac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41dbf3
call fcn.00443e84
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41dbf3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41dc0f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041d6ac
mov esi, eax
test edi, edi
je 0x41dc0d
test ebx, ebx
je 0x41dc0d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x439af5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x439b0f
call fcn.00443e84
mov esi, dword [eax + 0xc]
push dword [0x128a6a4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x439b2d
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x439b25
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x439b5a
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x439b27
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00439a23
mov esi, eax
jmp 0x439b4c
Function at 0x4bf4e3
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4bf521
push 0x586e94
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4bf52f
push 0x586ec8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4bf52f
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4bf531
cmp dword [esi + 4], 0
je 0x4bf52f
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileW]
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x4c1b19
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x5689c8
call fcn.005482d3
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00409f00
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4c1b7b
call fcn.00443747
cmp eax, 1
jne 0x4c1b7b
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x573f64
push eax
call fcn.004110f2
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040b972
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401a40
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401a40
mov eax, esi
call fcn.005483ab
ret 0x10

Function at 0x4c1ba4
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x5689c8
call fcn.005482d3
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00409f00
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4c1c06
call fcn.00443747
cmp eax, 1
jne 0x4c1c06
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x573f64
push eax
call fcn.004110f2
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040b972
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401a40
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401a40
mov eax, esi
call fcn.005483ab
ret 0x14
Function at 0x50a9cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x50a9e4
mov edi, dword [esi + 0xc]
jmp 0x50aa24
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x50a9fd
call fcn.00414248
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x50aa12
call fcn.00414248
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x50aa24
call fcn.00414248
call fcn.00443e84
cmp dword [eax + 0x3c], 0
je 0x50aa39
push edi
mov ecx, ebx
call fcn.005097fe
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0050a8e6
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x50aa57
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x50aa63
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5256c7
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0052536b
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x525711
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00415c37
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040d90c
jmp 0x52571c
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004a2dd6
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x525722
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0041153c
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x52575f
call fcn.0052536b
mov dword [esi + 0xc], 1
jmp 0x525764
call fcn.0052536b
cmp dword [esi], 0
je 0x5257ad
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x525785
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00415c37
jmp 0x525797
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401ba0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040d90c
jmp 0x5257d1
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x5257d1
push dword [esi]
push dword [ebp + 8]
call fcn.004a2dd6
pop esi
pop ebp
ret 0xc
Function at 0x52b4f3
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00543414
call fcn.004438b5
cmp dword [eax + 0x14], 0
jne 0x52b510
mov ecx, esi
pop esi
jmp fcn.0052aff8
pop esi
ret

Function at 0x52e5f3
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00420767
call fcn.004438b5
cmp dword [eax + 0x14], 0
jne 0x52e610
mov ecx, esi
pop esi
jmp fcn.0052dfc6
pop esi
ret

Function at 0x546c71
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1286440]
jne 0x546c7b
repz ret
jmp fcn.0054df03

Function at 0x5583f8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1286440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0054d92b
and dword [ebp - 0x14], 0
cmp dword [0x128e32c], 0
mov dword [ebp - 0x18], eax
jne 0x5584ab
push 0x57a12c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x558553
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5a2ac8
push ebx
call edi
test eax, eax
je 0x558553
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5a2ab8
push ebx
mov dword [0x128e32c], eax
call edi
push eax
call esi
push 0x5a2aa4
push ebx
mov dword [0x128e330], eax
call edi
push eax
call esi
push 0x5a2a88
push ebx
mov dword [0x128e334], eax
call edi
push eax
call esi
mov dword [0x128e33c], eax
test eax, eax
je 0x5584ab
push 0x5a2a70
push ebx
call edi
push eax
call esi
mov dword [0x128e338], eax
mov eax, dword [0x128e338]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x558504
cmp dword [0x128e33c], ecx
je 0x558504
push eax
call esi
push dword [0x128e33c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x558504
test ebx, ebx
je 0x558504
call edi
test eax, eax
je 0x5584fb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5584fb
test byte [ebp - 8], 1
jne 0x558504
or dword [ebp + 0x10], 0x200000
jmp 0x558537
mov eax, dword [0x128e330]
cmp eax, dword [ebp - 0x18]
je 0x558537
push eax
call esi
test eax, eax
je 0x558537
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x558537
mov eax, dword [0x128e334]
cmp eax, dword [ebp - 0x18]
je 0x558537
push eax
call esi
test eax, eax
je 0x558537
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x128e32c]
call esi
test eax, eax
je 0x558553
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x558555
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00546c71
leave
ret
Function at 0x100c31c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x100dd1d0], 0
mov byte [0x100dd1d4], 0
mov edi, dword [0x100dd1c8]
add edi, 0xffffe149
mov dword [0x100dd1c4], edi
mov dword [0x100dd1cc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x100c3230
mov eax, dword [ebp - 0x20]
xor ecx, ecx
add eax, 0xffffd525
mov dword [0x100dd1c8], eax
mov dword [0x100dd1cc], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x100c3272
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x100dd1c8]
mov esi, eax
add esi, 0xffffe149
mov dword [0x100dd1c4], esi
mov esi, dword [0x100dd1cc]
add esi, 1
mov dword [0x100dd1cc], esi
cmp esi, 0x100
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
jl 0x100c3230
jmp 0x100c320f
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
add eax, 0xffffe224
mov dword [ebp - 0x2c], eax
mov eax, ecx
xor esi, esi
mov dword [ebp - 0x30], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x100dd1d8], 0
mov dword [0x100dd1c4], 0x2253
mov edi, dword [0x100dd1d0]
mov ebx, dword [ebp - 0x18]
movzx esi, byte [ebx + ecx]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x100dd1d8], esi
mov eax, esi
cdq
mov esi, dword [ebp - 0x30]
idiv esi
mov dword [0x100dd1d0], edx
mov dword [0x100dd1c4], 0x1af3
mov bl, byte [ebx + ecx]
mov byte [0x100dd1d4], bl
mov esi, dword [ebp - 0x2c]
mov dword [0x100dd1c8], esi
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x100dd1d4]
mov ecx, dword [0x100dd1d0]
mov byte [esi + ecx], bl
mov ecx, dword [0x100dd1c8]
mov edx, ecx
add edx, 0xffffe149
mov dword [0x100dd1c4], edx
mov esi, dword [0x100dd1cc]
add esi, 1
mov dword [0x100dd1cc], esi
cmp esi, 0x100
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], edx
jl 0x100c3272
mov eax, dword [ebp - 0x34]
mov dword [0x100dd1c4], eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100c3d20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x30
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
jmp 0x100c3dc4
mov eax, 0x106d
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp word [edx + esi*2 - 0x14], 0x64
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
je 0x100c3e3b
jmp 0x100c3e9d
mov eax, 0x106d
xor ecx, ecx
mov dword [0x100dd1c4], 0x11f2
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp word [edx + esi*2 - 0x18], 0x6f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
je 0x100c3e19
jmp 0x100c3e9d
mov eax, dword [0x100dd1c8]
mov dword [ebp - 0x28], eax
mov eax, 1
mov ecx, dword [ebp - 0x28]
add ecx, 0xef6
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
jmp 0x100c3e9d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edx
je 0x100c3df1
mov eax, dword [ebp - 0x2c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x30], eax
jl 0x100c3dc4
mov eax, dword [ebp - 0x30]
mov ecx, 0x106d
xor edx, edx
mov esi, dword [ebp - 0x14]
cmp word [esi + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
je 0x100c3d78
jmp 0x100c3e9d
mov eax, 0x106d
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp word [edx + esi*2 - 0x16], 0x61
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
je 0x100c3d53
jmp 0x100c3e9d
mov eax, 0x106d
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp word [edx + esi*2 - 0x12], 0x64
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jne 0x100c3e9d
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff8
mov dword [ebp - 0x34], eax
mov eax, 0x106d
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x34]
cmp word [edx + esi*2], 0x6c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jne 0x100c3e9d
mov eax, 0x106d
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
je 0x100c3da3
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [0x100dd1c8], ecx
add esp, 0x30
pop esi
pop ebp
ret