joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499b02
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x526940]
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 0x499b4d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00499fc4
test al, al
jne 0x499b47
sub edx, 2
cmp edx, edi
jne 0x499b2d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x499b6f
lea eax, [edi + 2]
cmp edx, eax
je 0x499b6f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004996fb
add esp, 0x10
jmp 0x499c69
push esi
lea ecx, [ebp - 0x255]
call fcn.00499fc4
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 0x499bb2
push dword [ebp - 0x25c]
jmp 0x499b5f
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 0x499bef
cmp word [ebp - 0x226], 0
je 0x499c10
cmp word [ebp - 0x226], ax
jne 0x499bef
cmp word [ebp - 0x224], 0
je 0x499c10
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004996fb
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x499c5c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x499bc9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499c44
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x499c69
push 0x4990e3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004054a2
add esp, 0x10
jmp 0x499c39
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.0040303a
leave
ret
Function at 0x4a6a50
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 + 0x52a160]
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 0x4a6a90
cmp byte [ebx], 0xa
jne 0x4a6a90
or byte [eax + edi + 0x28], 4
jmp 0x4a6a95
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a6b93
mov al, byte [edx]
cmp al, 0x1a
je 0x4a6b75
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a6ac4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a6ae9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a6af3
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 0x4a6aa6
jmp 0x4a6b93
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 0x4a6b70
cmp dword [ebp - 0xc], 0
je 0x4a6b70
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x52a160]
test byte [eax + edi + 0x28], 0x48
je 0x4a6b4a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a6b35
mov byte [esi], dl
jmp 0x4a6b46
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x52a160]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a6b93
cmp byte [ebp - 1], 0xa
jne 0x4a6b59
cmp esi, ebx
jne 0x4a6b59
mov byte [esi], 0xa
jmp 0x4a6b92
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401938
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a6b93
mov byte [esi], 0xd
jmp 0x4a6b92
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x52a160]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a6b8f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6b93
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a6bef
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 + 0x52a160]
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 0x4a6c32
cmp word [esi], dx
jne 0x4a6c32
or byte [edi + eax + 0x28], 4
jmp 0x4a6c37
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 0x4a6d8a
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 0x4a6d6a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a6c79
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a6caf
cmp eax, edx
jae 0x4a6cbb
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 0x4a6c51
jmp 0x4a6d8a
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 0x4a6d66
cmp dword [ebp - 0x14], 0
je 0x4a6d66
mov eax, dword [ebx*4 + 0x52a160]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a6d3e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a6d07
mov word [esi], cx
jmp 0x4a6d3a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x52a160]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x52a160]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x52a160]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a6d8a
pop ebx
cmp word [ebp - 4], bx
jne 0x4a6d4f
cmp esi, dword [ebp + 0xc]
jne 0x4a6d4f
mov word [esi], bx
jmp 0x4a6d87
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401938
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a6d8a
push 0xd
jmp 0x4a6d83
mov ecx, dword [ebx*4 + 0x52a160]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a6d81
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6d8a
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 0x100053e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
xor esi, esi
lea eax, [edx + eax*2]
mov dword [ebp - 0x10], eax
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea edi, [esi + eax]
jne 0x10005430
cmp edi, esi
jb 0x1000549b
cmp edi, dword [ebp + 0x10]
ja 0x100054ae
add esi, dword [ebp + 0xc]
nop word [eax + eax]
test eax, eax
je 0x10005432
dec eax
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x10005420
jmp 0x1000548f
ja 0x10005439
cmp edx, dword [ebp - 0x10]
mov esi, edi
jne 0x100053f5
mov edi, dword [ebp + 0x18]
movzx ecx, cx
mov al, 1
add edi, ebx
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebx]
lea esi, [ebx + 1]
test dl, dl
js 0x10005470
mov ebx, esi
sub ecx, edx
jns 0x10005487
jmp 0x10005491
cmp esi, edi
je 0x100054c2
movzx esi, byte [ebx + 1]
and edx, 0x7f
add ebx, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x10005491
xor al, 1
cmp ebx, edi
jne 0x10005450
jmp 0x10005491
xor eax, eax
and al, 1
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x104ecd14
call fcn.10004010
add esp, 4
ud2
mov edx, dword [ebp + 0x10]
mov ecx, edi
push 0x104ecd14
call fcn.10003920
add esp, 4
ud2
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov edx, 0x2b
push 0x104ecd04
call fcn.10003c40
add esp, 4
ud2
Function at 0x1000f6a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x1000f6b7
test eax, eax
jne 0x1000f818
mov edi, dword [0x104f8084]
test edi, edi
je 0x1000f818
mov dword [ebp - 0x10], 0
jmp 0x1000f6d7
mov edi, dword [edi + 8]
test edi, edi
je 0x1000f706
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1000f857
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x1000f6d0
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x1000f6d0
test byte [ebp - 0x10], 1
je 0x1000f818
mov edi, dword [0x104f8084]
test edi, edi
je 0x1000f818
mov dword [ebp - 0x10], 0
jmp 0x1000f737
mov edi, dword [edi + 8]
test edi, edi
je 0x1000f766
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1000f857
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x1000f730
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x1000f730
test byte [ebp - 0x10], 1
je 0x1000f818
mov edi, dword [0x104f8084]
test edi, edi
je 0x1000f818
mov dword [ebp - 0x10], 0
jmp 0x1000f797
mov edi, dword [edi + 8]
test edi, edi
je 0x1000f7c6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1000f857
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x1000f790
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x1000f790
test byte [ebp - 0x10], 1
je 0x1000f818
mov edi, dword [0x104f8084]
test edi, edi
je 0x1000f818
mov dword [ebp - 0x10], 0
jmp 0x1000f7e7
mov edi, dword [edi + 8]
test edi, edi
je 0x1000f812
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1000f857
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x1000f7e0
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x1000f7e0
test byte [ebp - 0x10], 1
jne 0x1000f822
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x104f8084]
jmp 0x1000f82d
mov edi, dword [edi + 8]
test edi, edi
je 0x1000f818
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1000f857
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x1000f82a
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x1000f82a
mov edx, 0x2b
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
push 0x104ef804
call fcn.10003c40
add esp, 4
ud2
Function at 0x1000fb90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x10043018]
test eax, eax
je 0x1000fbba
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x1000fbcf
cmp dword [eax + 4], 0
mov edi, eax
je 0x1000fbcf
add edi, 8
jmp 0x1000fc8e
mov ecx, 0x10043018
call fcn.1000fd40
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x1000fbaa
mov eax, dword [0x10043018]
test eax, eax
je 0x1000fc73
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x1000fc8c
mov esi, eax
test eax, eax
jne 0x1000fc42
movzx eax, byte [0x104f8048]
mov eax, dword [0x104f8080]
test eax, eax
jne 0x1000fc14
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x1000fca0
mov dword [0x104f8080], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1000fca0
mov dword [eax], 0x10043018
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x10043018]
test eax, eax
je 0x1000fc94
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov ecx, dword [esi + 0xc]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
je 0x1000fc8e
test ecx, ecx
je 0x1000fc8e
lock dec dword [ecx]
jne 0x1000fc8e
call fcn.1000fcd0
jmp 0x1000fc8e
mov ecx, 0x10043018
call fcn.1000fd40
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x1000fbec
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov ecx, 0x10043018
call fcn.1000fd40
jmp 0x1000fc3b
mov ecx, 4
mov edx, 0x10
call fcn.10002cd0
ud2
Function at 0x1000fd40
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x1000fda9
lea ebx, [esi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push ebx
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x1000fddf
cmp dword [ebp - 0x14], 0
je 0x1000fdc6
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1000fdf3
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x104f8084]
nop dword [eax + eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0x104f8084], esi
jne 0x1000fd90
push 0
push 0
push ebx
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x1000fdd5
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x1000fe2f
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x1000fdca
mov edi, dword [ebp - 0x10]
jmp 0x1000fdd5
mov edi, dword [esi]
jmp 0x1000fdd4
mov edi, eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
call fcn.1000fe60
ud2
push 0
push 4
push ebx
call sub.KERNEL32.dll_InitOnceComplete
lea ecx, [ebp - 0x2c]
mov edx, 0x104ef7d0
mov dword [ebp - 0x2c], 0x104ef798
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov dword [ebp - 0x20], 0
call fcn.10003240
ud2
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x104ef798
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.1000fec0
ud2
Function at 0x10011320
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x10043008]
test eax, eax
je 0x10011345
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x1001135a
cmp dword [eax + 4], 0
je 0x1001135a
add eax, 8
pop esi
pop ebp
ret
mov ecx, 0x10043008
call fcn.1000fd40
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x10011339
mov eax, dword [0x10043008]
test eax, eax
je 0x100113d9
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x100113ee
mov esi, eax
test eax, eax
jne 0x100113c1
movzx eax, byte [0x104f8048]
mov eax, dword [0x104f8080]
test eax, eax
jne 0x10011393
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x100113ff
mov dword [0x104f8080], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x100113ff
mov dword [eax], 0x10043008
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x10043008]
test eax, eax
je 0x100113f3
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov dword [esi + 4], 1
mov dword [esi + 8], 0
lea eax, [esi + 8]
mov byte [esi + 0xc], 0
pop esi
pop ebp
ret
mov ecx, 0x10043008
call fcn.1000fd40
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x1001136f
xor eax, eax
pop esi
pop ebp
ret
mov ecx, 0x10043008
call fcn.1000fd40
jmp 0x100113ba
mov ecx, 4
mov edx, 0x10
call fcn.10002cd0
ud2
Function at 0x10013d40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
movzx ebx, byte [edx + 0x1c]
mov dword [ebp - 0x20], ecx
xor eax, eax
mov ecx, 0
mov edi, edx
call 0x10013d5e
pop esi
cmp bl, 1
setne dl
sbb ecx, ecx
or cl, dl
cmp cl, 0xff
movzx edx, cl
je 0x10013d75
test edx, edx
jne 0x10013d9e
mov byte [ebp - 0x14], bl
movzx ebx, byte [edi + 0x1e]
cmp cl, 0xff
mov dword [ebp - 0x18], ebx
je 0x10013d88
test edx, edx
jne 0x10013d92
mov ecx, edi
call fcn.10013c50
movzx eax, al
movzx ebx, byte [ebp - 0x14]
xor ecx, ecx
test bl, bl
jne 0x10013dff
jmp 0x10013dab
mov dword [ebp - 0x18], 0
xor ecx, ecx
test bl, bl
jne 0x10013dff
xor ecx, ecx
cmp byte [edi + 8], 6
lea edx, [edi + 8]
cmove edx, ecx
je 0x10013dff
movzx ebx, byte [edx]
mov ecx, 6
add esi, dword [ebx*4 + 0x10013f14]
jmp esi
add eax, ecx
movzx ecx, byte [ebp - 0x18]
mov edx, dword [edi + 4]
mov dword [ebp - 0x1c], ecx
add ecx, eax
cmp edx, ecx
jb 0x10013f02
mov esi, edi
mov edi, dword [edi]
cmp edx, ecx
mov ebx, edi
lea ebx, [edi + ecx]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
jne 0x10013e36
movzx eax, byte [esi + 8]
mov byte [ebp - 0xd], al
mov ebx, dword [ebp - 0x14]
xor eax, eax
jmp 0x10013ea2
movzx ebx, byte [esi + 8]
cmp bl, 3
mov byte [ebp - 0xd], bl
jae 0x10013e5f
add eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
sub eax, edx
lea esi, [edx + esi - 1]
nop
cmp byte [esi], 0x5c
je 0x10013ef1
dec esi
inc eax
jne 0x10013e50
jmp 0x10013e2f
add eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
sub eax, edx
lea edi, [edx + esi - 1]
nop
movzx esi, byte [edi]
cmp esi, 0x2f
je 0x10013e8b
cmp esi, 0x5c
je 0x10013e8b
dec edi
inc eax
jne 0x10013e70
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
xor eax, eax
jmp 0x10013ea2
mov edx, dword [ebp - 0x1c]
not eax
lea ecx, [ecx + eax + 1]
cmp edx, ecx
jb 0x10013efb
mov ebx, dword [ebp - 0x18]
mov eax, 1
add ebx, ecx
sub edx, ecx
je 0x10013ec6
mov cl, 9
cmp edx, 2
je 0x10013eca
cmp edx, 1
jne 0x10013ed9
cmp byte [ebx], 0x2e
jne 0x10013ed9
xor ecx, ecx
cmp byte [ebp - 0xd], 3
setae cl
lea ecx, [ecx + ecx*2 + 7]
jmp 0x10013ed9
mov cl, 0xa
jmp 0x10013ed9
cmp byte [ebx], 0x2e
jne 0x10013ed9
cmp byte [ebx + 1], 0x2e
sete cl
xor cl, 9
mov esi, dword [ebp - 0x20]
add eax, edx
mov dword [esi], eax
mov byte [esi + 4], cl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
not eax
lea ecx, [ecx + eax + 1]
cmp edx, ecx
jae 0x10013e98
push 0x104eed38
jmp 0x10013f07
push 0x104eed28
call fcn.100038c0
add esp, 4
ud2
Function at 0x10015600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x490
call fcn.10015614
Function at 0x100280f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x10028214
mov dword [esp], ecx
mov edi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
movzx ecx, byte [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ch, dl
and ch, 0x3f
cmp ch, 0xd
je 0x10028235
and edx, 0x3f
cmp edx, 0xe
je 0x10028244
cmp edx, 0xf
jne 0x10028223
mov eax, dword [edi + 0x68]
test eax, eax
je 0x10028223
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x100282a6
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x28], edx
mov dword [esp + 0xc], edx
xor edi, edi
mov dword [esp + 0x24], eax
mov dword [esp + 8], ecx
mov ecx, edx
mov edx, dword [esp + 8]
jmp 0x10028178
mov dword [esp + 0xc], ecx
sub ecx, edi
jbe 0x100281b7
mov esi, dword [ebp + 0xc]
shr ecx, 1
xor ebx, ebx
add ecx, edi
imul eax, ecx, 0x110
cmp dword [edx + eax + 0x108], esi
mov eax, 0xff
setne bl
cmovb ebx, eax
cmp bl, 1
je 0x10028170
movzx eax, bl
cmp eax, 0xff
jne 0x100282a6
inc ecx
mov edi, ecx
mov ecx, dword [esp + 0xc]
sub ecx, edi
ja 0x10028178
test edi, edi
je 0x100282a6
mov edx, dword [esp + 0x28]
dec edi
cmp edi, edx
jae 0x1002831b
mov edx, dword [esp + 8]
imul ecx, edi, 0x110
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x18]
cmp dword [edx + ecx + 0xa8], 0
jne 0x100281f9
add edx, ecx
mov ecx, dword [edx + 0xac]
cmp ecx, eax
jbe 0x100282c8
mov edx, dword [esp]
movzx eax, byte [esp + 0x12]
movzx esi, word [esp + 0x10]
mov byte [esp + 6], al
mov word [esp + 4], si
jmp 0x100282a9
mov dword [ecx + 4], 0
mov byte [ecx], 0x4b
jmp 0x100282c0
mov eax, dword [esp]
mov dword [eax + 4], 0
mov byte [eax], 0x4b
jmp 0x100282c0
movzx edx, cl
mov ecx, dword [esp]
push esi
push edi
push ebx
push eax
push dword [ebp + 0x14]
jmp 0x10028272
mov edx, ebx
movzx ebx, cl
lea ecx, [esp + 0x10]
push ebx
push eax
call fcn.10028810
add esp, 8
movzx eax, byte [esp + 0x10]
cmp al, 0x4b
jne 0x1002827c
mov ecx, dword [esp]
mov edx, ebx
push esi
push edi
push dword [ebp + 0x18]
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.10028330
add esp, 0x14
jmp 0x100282c0
movzx ecx, byte [esp + 0x13]
mov edx, dword [esp]
movzx edi, word [esp + 0x11]
mov esi, dword [esp + 0x14]
movsd xmm0, qword [esp + 0x18]
mov byte [edx + 3], cl
mov word [edx + 1], di
mov byte [edx], al
mov dword [edx + 4], esi
movsd qword [edx + 8], xmm0
jmp 0x100282c0
mov edx, dword [esp]
movzx eax, byte [esp + 6]
movzx esi, word [esp + 4]
mov byte [edx + 3], al
mov word [edx + 1], si
mov byte [edx], 0x37
mov dword [edx + 4], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
sub eax, ecx
xor ecx, ecx
cmp byte [edx + 0xc9], 8
mov dword [esp + 8], edx
mov edi, eax
sete cl
shl ecx, 3
add ecx, dword [edx + 0xcc]
mov edx, dword [edx + 0xc4]
sub ecx, edx
add ecx, 4
sub edi, ecx
jb 0x10028314
cmp edi, edx
jae 0x10028314
mov edi, dword [esp + 0x24]
mov ecx, dword [esp]
mov edx, 1
add edi, 8
push esi
push edi
push ebx
push eax
push dword [esp + 0x18]
jmp 0x10028272
mov ecx, eax
jmp 0x100281f9
mov ecx, edi
push 0x104eea4c
call fcn.10003270
add esp, 4
ud2