joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411800
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x411822
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x411829
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x411818
mov eax, 1
add ebx, ebx
jne 0x41183b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x411830
jne 0x41184c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411830
xor ecx, ecx
sub eax, 3
jb 0x411860
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4118d2
mov ebp, eax
add ebx, ebx
jne 0x41186b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x411878
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41189c
inc ecx
add ebx, ebx
jne 0x411888
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41187d
jne 0x411899
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41187d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4118bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4118ad
jmp 0x41181e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4118bc
add edi, ecx
jmp 0x41181e
pop esi
mov edi, esi
mov ecx, 0x27e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4118da
cmp byte [edi], 5
jne 0x4118da
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 0x4118df
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x41194e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12cd0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12cf8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41190c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12d00]
or eax, eax
je 0x411948
mov dword [ebx], eax
add ebx, 4
jmp 0x411929
call dword [esi + 0x12cfc]
mov ebp, dword [esi + 0x12d04]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x411982
sub esp, 0xffffff80
jmp 0x4022e2

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x44c6e4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x72fac0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x44c72f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0044cbef
test al, al
jne 0x44c729
sub edx, 2
cmp edx, edi
jne 0x44c70f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x44c751
lea eax, [edi + 2]
cmp edx, eax
je 0x44c751
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0044c2dd
add esp, 0x10
jmp 0x44c84b
push esi
lea ecx, [ebp - 0x255]
call fcn.0044cbef
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44c794
push dword [ebp - 0x25c]
jmp 0x44c741
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x44c7d1
cmp word [ebp - 0x226], 0
je 0x44c7f2
cmp word [ebp - 0x226], ax
jne 0x44c7d1
cmp word [ebp - 0x224], 0
je 0x44c7f2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0044c2dd
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x44c83e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x44c7ab
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44c826
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x44c84b
push 0x44bbc3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00403e36
add esp, 0x10
jmp 0x44c81b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004025cc
leave
ret
Function at 0x460744
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x7322b0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x460784
cmp byte [ebx], 0xa
jne 0x460784
or byte [eax + edi + 0x28], 4
jmp 0x460789
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x460887
mov al, byte [edx]
cmp al, 0x1a
je 0x460869
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4607b8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4607dd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4607e7
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x46079a
jmp 0x460887
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x460864
cmp dword [ebp - 0xc], 0
je 0x460864
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x7322b0]
test byte [eax + edi + 0x28], 0x48
je 0x46083e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x460829
mov byte [esi], dl
jmp 0x46083a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x7322b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x460887
cmp byte [ebp - 1], 0xa
jne 0x46084d
cmp esi, ebx
jne 0x46084d
mov byte [esi], 0xa
jmp 0x460886
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401613
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x460887
mov byte [esi], 0xd
jmp 0x460886
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x7322b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x460883
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x460887
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4608e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x7322b0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x460926
cmp word [esi], dx
jne 0x460926
or byte [edi + eax + 0x28], 4
jmp 0x46092b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x460a7e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x460a5e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46096d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4609a3
cmp eax, edx
jae 0x4609af
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x460945
jmp 0x460a7e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x460a5a
cmp dword [ebp - 0x14], 0
je 0x460a5a
mov eax, dword [ebx*4 + 0x7322b0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x460a32
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4609fb
mov word [esi], cx
jmp 0x460a2e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x7322b0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x7322b0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x7322b0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x460a7e
pop ebx
cmp word [ebp - 4], bx
jne 0x460a43
cmp esi, dword [ebp + 0xc]
jne 0x460a43
mov word [esi], bx
jmp 0x460a7b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401613
add esp, 0x10
cmp word [ebp - 4], bx
je 0x460a7e
push 0xd
jmp 0x460a77
mov ecx, dword [ebx*4 + 0x7322b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x460a75
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x460a7e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x407416
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 0x4074b3
push ebx
push esi
call fcn.004073df
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.00407328
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x407460
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4074b2
push edi
push eax
call fcn.00408016
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x407480
call fcn.00405f51
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4074b1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407328
add esp, 0x20
test eax, eax
jne 0x40749f
push edi
call fcn.00405f51
jmp 0x4074a7
push ebx
call fcn.00405f51
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 0x408799
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410fb0
push 0x410fa8
push str.FlsAlloc
push 0x1e
call fcn.0040865a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4087cd
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f130]
call esi
jmp 0x4087d3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408817
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410fc0
push 0x410fb8
push str.FlsGetValue
push 0x20
call fcn.0040865a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40884e
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x406c40
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
or esi, 0xffffffff
test eax, eax
je 0x406df5
push ebx
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
je 0x406df4
mov eax, dword [0x40b004]
push ebp
push 0x1000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x406dec
push edi
nop
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x1000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x1c]
cmp edx, 8
mov eax, ebp
mov edi, edx
jb 0x406dae
mov ebp, edx
shr ebp, 3
lea ebx, [ebx]
movzx ebx, byte [eax]
xor ebx, esi
and ebx, 0xff
add eax, 1
mov ecx, esi
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
add eax, 1
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
add eax, 1
sub edi, 8
sub ebp, 1
mov esi, ecx
jne 0x406cd0
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edi, edi
je 0x406dcf
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x4090f0]
add eax, 1
sub edi, 1
jne 0x406db2
cmp edx, 0x1000
je 0x406ca0
mov edx, dword [0x40b004]
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
mov eax, esi
not eax
pop esi
add esp, 8
ret 4

Function at 0x406e00
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0xf7c228
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf7c232
pushal
call 0xf7c238
pop ebp
sub ebp, 0x10
sub ebp, 0xb7c228
jmp 0xf7c24e
mov eax, 0xb7c228
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bd
mov edx, 0xb4de7d21
xor byte [eax], dl
inc eax
dec ecx
jne 0xf7c265
jmp 0xf7c278
stosb byte es:[edi], al
in al, dx
stosb byte es:[edi], al
test al, 0x1d
and dword [ecx], esp
and dword [eax + 0x2121d9e0], esp
and dword [edx], esp
in al, dx
cdq
and al, 0x21
and dword [ecx], esp
wait
or dword [ecx], esp
and dword [ecx], esp
salc
ret
Function at 0x101944be
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101b1a90]
jne 0x101944c8
repz ret
jmp fcn.101953dc

Function at 0x101965db
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.10193874
and dword [ebp - 4], 0
cmp dword [0x101b387c], 0
mov ebx, eax
jne 0x1019668c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1019673d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1019673d
push eax
call fcn.10193802
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101b387c], eax
call esi
push eax
call fcn.10193802
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101b3880], eax
call esi
push eax
call fcn.10193802
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101b3884], eax
call esi
push eax
call fcn.10193802
pop ecx
mov dword [0x101b388c], eax
test eax, eax
je 0x1019668c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10193802
pop ecx
mov dword [0x101b3888], eax
mov eax, dword [0x101b3888]
cmp eax, ebx
je 0x101966e4
cmp dword [0x101b388c], ebx
je 0x101966e4
push eax
call fcn.1019387d
push dword [0x101b388c]
mov esi, eax
call fcn.1019387d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x101966e4
test edi, edi
je 0x101966e4
call esi
test eax, eax
je 0x101966db
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x101966db
test byte [ebp - 0xc], 1
jne 0x101966e4
or dword [ebp + 0x10], 0x200000
jmp 0x1019671d
mov eax, dword [0x101b3880]
cmp eax, ebx
je 0x1019671d
push eax
call fcn.1019387d
pop ecx
test eax, eax
je 0x1019671d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1019671d
mov eax, dword [0x101b3884]
cmp eax, ebx
je 0x1019671d
push eax
call fcn.1019387d
pop ecx
test eax, eax
je 0x1019671d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101b387c]
call fcn.1019387d
pop ecx
test eax, eax
je 0x1019673d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1019673f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10197a9a
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, 0x11f9
xor edi, edi
mov dword [0x101b12e0], 0
mov byte [0x101b12e4], 0
mov dword [0x101b12d4], 0x1887
mov dword [0x101b12dc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
jmp 0x10197afb
mov dword [0x101b12d4], 0x3b1
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x41f
mov ebx, eax
mov dword [0x101b12d8], ecx
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], bl
mov dword [0x101b12d4], 0xaad
mov eax, dword [0x101b12dc]
add eax, 1
mov dword [0x101b12dc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], eax
jl 0x10197afb
jmp 0x10197c24
mov eax, dword [ebp - 0x24]
mov ecx, 0x100
mov dword [0x101b12e8], 0
mov dword [ebp - 0x28], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x101b12d8]
mov ebx, edi
add ebx, 0x1f68
mov dword [0x101b12d4], ebx
mov ebx, dword [0x101b12e0]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x28]
movzx ecx, byte [esi + ecx]
add ecx, ebx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add ecx, edx
mov dword [0x101b12e8], ecx
add edi, 0xfffffb7b
mov dword [0x101b12d8], edi
mov eax, ecx
cdq
mov ecx, dword [ebp - 0x2c]
idiv ecx
mov dword [0x101b12e0], edx
mov dword [0x101b12d4], 0xb5f
mov edi, dword [ebp - 0x28]
mov cl, byte [esi + edi]
mov byte [0x101b12e4], cl
mov dword [0x101b12d8], 0x148d
mov cl, byte [esi + edx]
mov byte [esi + edi], cl
mov edx, dword [0x101b12d4]
add edx, 0xfffffb13
mov dword [0x101b12d8], edx
mov cl, byte [0x101b12e4]
mov edx, dword [0x101b12e0]
mov byte [esi + edx], cl
mov dword [0x101b12d4], 0x106c
mov edx, dword [0x101b12dc]
add edx, 1
mov dword [0x101b12dc], edx
cmp edx, 0x100
mov dword [ebp - 0x24], edx
jl 0x10197b3f
jmp 0x10197ae9
xor eax, eax
mov dword [0x101b12d4], 0xfffff035
mov dword [0x101b12dc], 0
mov dword [ebp - 0x24], eax
jmp 0x10197b3f
Function at 0x10197d2c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 1
lea esi, [ebp - 0x24]
mov dword [0x101b12d4], 0x15fa
mov dword [0x101b12d8], 0xfffffb3e
mov byte [ebp - 0x24], 0x56
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1019a1dc]
mov dh, byte [eax + 0x1019a1ad]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x34], ecx
jne 0x10197d65
mov dword [0x101b12d8], 0x10bc
mov dword [0x101b12d4], 0x1c28
call fcn.10198382
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.101975ea
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
je 0x10197e76
mov dword [0x101b12d8], 0x6ae
mov eax, dword [ebp - 0x38]
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 [0x101b12d4], 0x1d1e
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.10198780
xor eax, eax
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 + 0x38], ecx
mov dword [0x101b12d8], 0x1af1
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x54], ecx
mov dword [0x101b12d4], 0x1860
cmp ecx, 0
mov dword [ebp - 0x3c], eax
je 0x10197e76
mov dword [0x101b12d8], 0xb20
mov eax, dword [ebp - 0x40]
add eax, 0x1007
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add esp, 0x4c
pop esi
pop ebp
ret
Function at 0x101984bb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [0x101b12d8], 0x968
mov dword [ebp - 0x10], eax
call fcn.101989c7
xor ecx, ecx
mov edx, eax
mov dword [0x101b12d8], 0x15f9
mov esi, dword [eax + 0x3c]
mov dword [0x101b12d4], 0xfffff591
mov dword [0x101b12d8], 0x58
mov esi, dword [eax + esi + 0x78]
mov dword [0x101b12d8], 0xfffffbf7
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x101b12d4], 0x38ca
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
jne 0x10198570
mov eax, dword [ebp - 0x24]
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax]
mov dword [0x101b12d4], 0x2457
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x101b12d8], 0x163f
mov dword [ebp - 0x24], edi
jmp 0x10198536
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x38]
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 0x101985ee
mov al, byte [ebp - 0x41]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x40]
add edx, 1
mov ah, byte [ebp - 0x42]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x3c], edx
jne 0x1019859c
mov al, byte [ebp - 0x42]
test al, 1
jne 0x10198541
jmp 0x101985fb
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov edx, dword [ebp - 0x28]
add edx, 2
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], ecx
jb 0x10198582
jmp 0x10198536