joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41881e
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x418871
push esi
push dword [ebp + 8]
call fcn.00418a07
mov edi, eax
test edi, edi
je 0x41886c
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41886c
mov eax, dword [ebp - 8]
jmp 0x418883
mov eax, dword [ebp + 0x10]
jmp 0x418883
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x42441b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x424471
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42444a
call fcn.00412a2f
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x42445f
call fcn.00412a2f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x424471
call fcn.00412a2f
call fcn.0041606e
cmp dword [eax + 0x3c], 0
je 0x424486
push edi
mov ecx, ebx
call fcn.00423b4b
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00424658
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4244af
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4244bb
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x482288
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x4822a2
call fcn.0041606e
mov esi, dword [eax + 0xc]
push 0x57b534
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4822f8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4822f8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4822d7
xor esi, esi
jmp 0x4822ed
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00482301
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x4822fa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4c00db
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00402510
call fcn.004160c2
cmp dword [eax + 0x14], 0
jne 0x4c00f6
mov ecx, esi
pop esi
jmp fcn.004bf957
pop esi
ret

Function at 0x4df1b2
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00550e1b
pop ecx
test eax, eax
jne 0x4df1f4
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00414225
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4df1ba
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x5594f2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005591b2
Function at 0x4051c2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7

Function at 0x407630
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4160d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
cmp eax, 1
jne 0x407731
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x407675
xor eax, eax
jmp 0x4077cc
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x88]
and eax, 0x7fff
cmp ecx, 2
je 0x407690
or eax, 0x8000
mov edx, dword [ebp - 0x90]
mov dword [0x417260], ecx
mov ecx, dword [ebp - 0x94]
mov esi, ecx
shl esi, 8
add esi, edx
push 1
mov dword [0x417268], esi
mov dword [0x41726c], ecx
mov dword [0x417270], edx
mov dword [0x417264], eax
call fcn.0040ab3f
pop ecx
test eax, eax
je 0x40766e
call fcn.0040a17a
test eax, eax
jne 0x4076dc
call fcn.0040aba4
jmp 0x40766e
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x418e5c], eax
call fcn.0040a9a1
mov dword [0x417248], eax
call fcn.0040a2f9
test eax, eax
jge 0x407701
call fcn.00409e08
jmp 0x4076d5
call fcn.0040a8ad
test eax, eax
jl 0x40772a
call fcn.0040a58b
test eax, eax
jl 0x40772a
push 0
call fcn.00409af7
pop ecx
test eax, eax
jne 0x40772a
inc dword [0x417240]
jmp 0x4077c9
call fcn.0040a538
jmp 0x4076fa
xor edi, edi
cmp eax, edi
jne 0x40776c
cmp dword [0x417240], edi
jle 0x40766e
dec dword [0x417240]
cmp dword [0x41729c], edi
jne 0x407756
call fcn.00409c72
cmp dword [ebp + 0x10], edi
jne 0x4077c9
call fcn.0040a538
call fcn.00409e08
call fcn.0040aba4
jmp 0x4077c9
cmp eax, 2
jne 0x4077bd
call fcn.00409dd9
push 0x214
push 1
call fcn.00409222
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x40766e
push esi
push dword [0x416170]
push dword [0x4172ac]
call fcn.00409d53
pop ecx
call eax
test eax, eax
je 0x4077b1
push edi
push esi
call fcn.00409e4a
pop ecx
jmp 0x4077c8
push esi
call fcn.00408ab7
pop ecx
jmp 0x40766e
cmp eax, 3
jne 0x4077c9
push edi
call fcn.0040a107
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00407fb3
leave
ret 0xc
Function at 0x41148a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00409d45
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x417bdc], ebx
jne 0x411563
push ebx
push ebx
push 0x402a28
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x4114ce
xor eax, eax
jmp 0x411627
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402a1c
push edi
call esi
cmp eax, ebx
je 0x4114c7
push eax
call fcn.00409ccd
mov dword [esp], 0x402a0c
push edi
mov dword [0x417bdc], eax
call esi
push eax
call fcn.00409ccd
mov dword [esp], 0x4029f8
push edi
mov dword [0x417be0], eax
call esi
push eax
call fcn.00409ccd
mov dword [0x417be4], eax
lea eax, [ebp - 8]
push eax
call fcn.00409a70
pop ecx
pop ecx
test eax, eax
je 0x411531
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c94b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x411563
push 0x4029dc
push edi
call esi
push eax
call fcn.00409ccd
pop ecx
mov dword [0x417bec], eax
cmp eax, ebx
je 0x411563
push 0x4029c4
push edi
call esi
push eax
call fcn.00409ccd
pop ecx
mov dword [0x417be8], eax
mov eax, dword [0x417be8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4115dc
cmp dword [0x417bec], esi
je 0x4115dc
push eax
call fcn.00409d53
pop ecx
call eax
cmp eax, ebx
je 0x4115a9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x417bec]
call fcn.00409d53
pop ecx
call eax
test eax, eax
je 0x4115a9
test byte [ebp - 0x18], 1
jne 0x4115dc
lea eax, [ebp - 0xc]
push eax
call fcn.00409ab1
pop ecx
test eax, eax
je 0x4115c4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c94b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4115d3
or dword [ebp + 0x10], 0x200000
jmp 0x41160d
or dword [ebp + 0x10], 0x40000
jmp 0x41160d
mov eax, dword [0x417be0]
cmp eax, esi
je 0x41160d
push eax
call fcn.00409d53
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x41160d
mov eax, dword [0x417be4]
cmp eax, esi
je 0x41160d
push dword [ebp - 4]
push eax
call fcn.00409d53
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x417bdc]
call fcn.00409d53
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x432003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x414730
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x434210
call fcn.004149a0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x449b94
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x414558
cmp eax, esi
jne 0x41454b
xor esi, esi
inc esi
mov edi, esi
jmp 0x41455b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41452f
xor esi, esi
inc esi
cmp dword [0x449b98], esi
jne 0x41456d
push 0x1f
call fcn.004dc000
pop ecx
jmp 0x4145a7
cmp dword [0x449b98], ebx
jne 0x4145a1
mov dword [0x449b98], esi
push 0x401034
push 0x401028
call fcn.0041468c
pop ecx
pop ecx
test eax, eax
je 0x4145a7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41467c
mov dword [0x448f6c], esi
cmp dword [0x449b98], esi
jne 0x4145ca
push 0x401024
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x449b98], 2
test edi, edi
jne 0x4145d7
xor eax, eax
mov ecx, 0x449b94
xchg dword [ecx], eax
cmp dword [0x449ba4], 0
je 0x414603
push 0x449ba4
call fcn.00414cb0
pop ecx
test eax, eax
je 0x414603
push ebx
push 2
push ebx
mov esi, dword [0x449ba4]
mov ecx, esi
call dword [0x44a2fc]
call esi
push dword [0x448f78]
push dword [0x448f74]
push dword [0x448f70]
call fcn.0041368b
add esp, 0xc
mov dword [0x448f68], eax
cmp dword [0x448f80], 0
jne 0x414661
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x448f6c], 0
jne 0x414675
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x448f68]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00414da5
jmp 0x414513

Function at 0x414ba4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x434250
call fcn.004149a0
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x414c04
cmp eax, 0xffffffff
je 0x414c04
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x414bfd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x414bfd
cmp edx, 0x10000000
jae 0x414bfd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x414bfa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x414c60
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x414c9e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x414c96
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x414ca0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x414c86
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1a3e49b0
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x766b60a4
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x1022b610
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10246e00]
jne 0x1022b61a
repz ret
jmp fcn.1022d48c

Function at 0x1022ea53
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.1022a579
and dword [ebp - 4], 0
cmp dword [0x1024839c], 0
mov ebx, eax
jne 0x1022eb04
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1022ebb5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1022ebb5
push eax
call fcn.1022a507
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1024839c], eax
call esi
push eax
call fcn.1022a507
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x102483a0], eax
call esi
push eax
call fcn.1022a507
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x102483a4], eax
call esi
push eax
call fcn.1022a507
pop ecx
mov dword [0x102483ac], eax
test eax, eax
je 0x1022eb04
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1022a507
pop ecx
mov dword [0x102483a8], eax
mov eax, dword [0x102483a8]
cmp eax, ebx
je 0x1022eb5c
cmp dword [0x102483ac], ebx
je 0x1022eb5c
push eax
call fcn.1022a582
push dword [0x102483ac]
mov esi, eax
call fcn.1022a582
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1022eb5c
test edi, edi
je 0x1022eb5c
call esi
test eax, eax
je 0x1022eb53
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1022eb53
test byte [ebp - 0xc], 1
jne 0x1022eb5c
or dword [ebp + 0x10], 0x200000
jmp 0x1022eb95
mov eax, dword [0x102483a0]
cmp eax, ebx
je 0x1022eb95
push eax
call fcn.1022a582
pop ecx
test eax, eax
je 0x1022eb95
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1022eb95
mov eax, dword [0x102483a4]
cmp eax, ebx
je 0x1022eb95
push eax
call fcn.1022a582
pop ecx
test eax, eax
je 0x1022eb95
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1024839c]
call fcn.1022a582
pop ecx
test eax, eax
je 0x1022ebb5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1022ebb7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1022f96a
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x1022fb2c
jmp 0x1022fa12
mov dword [0x10246388], 0x667
mov eax, dword [ebp - 0x1c]
add eax, 1
mov ecx, dword [ebp - 0x20]
cmp eax, ecx
mov dword [ebp - 0x24], eax
jb 0x1022faab
jmp 0x1022fb0a
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x1022fb2c
mov dword [0x10246388], 0xe77
mov eax, dword [ebp - 0x28]
add eax, 0x24
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x28]
mov esi, dword [ecx + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x29]
and bh, bl
test bh, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], esi
jne 0x1022f9ca
jmp 0x1022fa7f
mov dword [0x1024638c], 0x25ed
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov dword [0x10246388], 0x14fc
mov edx, dword fs:[0x18]
mov dword [0x10246388], 0xffffeafc
mov eax, dword [edx + 0x30]
mov dword [0x1024638c], 0xffffd3cf
mov eax, dword [eax + 0xc]
add eax, 0x14
mov edx, eax
mov byte [ebp - 0x29], cl
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
xor ecx, ecx
mov eax, dword [eax]
mov edx, dword [ebp - 0x3c]
cmp eax, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ecx
je 0x1022fb2c
jmp 0x1022f9da
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov dx, word [ecx]
mov dword [0x10246388], 0x26b6
shr dx, 1
movzx esi, dx
cmp dx, 0
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], eax
je 0x1022fa62
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
cmp si, 0x1a
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x42], dx
mov word [ebp - 0x44], di
jb 0x1022fadf
mov ax, word [ebp - 0x42]
mov word [ebp - 0x44], ax
mov ax, word [ebp - 0x44]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
sete bh
mov al, bl
xor al, 1
or bh, al
test bh, 1
mov byte [ebp - 0x45], bl
jne 0x1022fb0a
jmp 0x1022f9a5
mov al, byte [ebp - 0x45]
test al, 1
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x40], ecx
jne 0x1022fb1c
jmp 0x1022fa62
mov dword [0x1024638c], 0xffffc994
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1022ff50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x10246394], 0
mov byte [0x10246398], 0
mov dword [0x10246388], 0x1f87
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x10246390], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10246390]
add eax, 1
mov dword [0x10246390], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1022ff95
mov dword [0x10246388], 0xd51
xor eax, eax
mov dword [0x10246390], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1024639c], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x10246388], 0x17de
mov edi, dword [0x10246394]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x1024639c], esi
mov dword [0x1024638c], 0x51e
mov dword [0x10246388], 0xffffe312
mov eax, esi
cdq
idiv ecx
mov dword [0x10246394], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x10246398], cl
mov dword [0x10246388], 0x1980
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov esi, dword [0x10246388]
add esi, 0x1ff7
mov dword [0x1024638c], esi
mov cl, byte [0x10246398]
mov esi, dword [0x10246394]
mov byte [ebx + esi], cl
mov dword [0x10246388], 0x5e6
mov esi, dword [0x1024638c]
add esi, 0xfffffd1a
mov dword [0x1024638c], esi
mov esi, dword [0x10246390]
add esi, 1
mov dword [0x10246390], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1022ffd4
mov dword [0x10246388], 0x1e31
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x102304ff
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x1024638c], 0x26de
mov dword [ebp - 0x10], eax
call fcn.1022fb37
mov ecx, eax
mov edx, ecx
add edx, dword [eax + 0x3c]
mov dword [0x1024638c], 0xe73
mov eax, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x14]
cmp edx, 0x4550
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esi
je 0x10230557
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
mov dword [0x10246388], 0x16bd
mov ecx, dword [ebp - 0x18]
add ecx, dword [ecx + eax + 0x20]
mov edx, dword [ebp - 0x18]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
je 0x102305d4
jmp 0x102305df
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov esi, dword [ebp - 0x2c]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
jmp 0x102305f3
mov eax, dword [ebp - 0x50]
add eax, 1
mov cl, byte [ebp - 0x51]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x52]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x4c], eax
jne 0x102305f3
jmp 0x1023061c
mov eax, dword [ebp - 0x34]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
jmp 0x1023058e
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x18]
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 - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x52], cl
jne 0x102305aa
mov al, byte [ebp - 0x52]
test al, 1
jne 0x1023064f
jmp 0x10230625
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 2
mov edx, dword [ebp - 0x40]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], eax
jb 0x1023058e
jmp 0x102305d4
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x18]
add edi, dword [edx + ecx*4]
mov dword [0x10246388], 0x22a3
mov dword [ebp - 0x34], edi
jmp 0x102305d4