joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51d420
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
cmp dword [esi + 0x4090], 0
je 0x51d4cf
cmp dword [esi + 0x6c], 0
jbe 0x51d4cf
push ebx
push ebp
mov ebp, 0xffffff78
push edi
lea edi, [esi + 0x88]
sub ebp, esi
jmp 0x51d450
movzx ecx, byte [edi]
mov eax, dword [esi + 0x4094]
mov ebx, dword [esi + 0x40a0]
xor ecx, eax
mov edx, dword [esi + 0x409c]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebx + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x4098]
mov dword [esi + 0x4094], ecx
mov ecx, dword [esi + 0x409c]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x4098], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
and edx, 0xfffd
shr ecx, 8
xor ecx, dword [ebx + eax*4]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x409c], ecx
shr eax, 8
xor byte [edi], al
inc edi
lea ecx, [edi + ebp]
cmp ecx, dword [esi + 0x6c]
jb 0x51d450
pop edi
pop ebp
pop ebx
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x20]
push edx
mov edx, dword [esi + 0x1c]
lea eax, [esi + 0x88]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, dword [esi + 0x6c]
mov dword [esi + 0x6c], 0
je 0x51d4fa
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x51dd80
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x51dd87
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.0051dd90
Function at 0x520500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
mov dword [esp + 0xc], edi
cmp eax, edx
jb 0x52058d
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.0054c600
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x52055f
sub eax, ebp
jmp 0x520561
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x520550
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
nop
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x52057f
sub eax, ebp
jmp 0x520581
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x520570
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x520645
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [esp + 0xc]
mov ebx, eax
mov dword [esp + 0x10], edx
cmp ebx, ecx
jbe 0x5205b5
mov ebx, ecx
test ebx, ebx
je 0x520609
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x5205d7
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.00520fc0
jmp 0x5205f0
cmp eax, 2
jne 0x5205f7
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x5205e9
xor eax, eax
jmp 0x5205f4
mov edx, ebx
call fcn.0051dd90
mov edx, dword [esp + 0x10]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.0054c600
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x520631
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x520645
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x520510
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x523710
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b6339
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x40], eax
push ebp
push esi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x60]
lea esi, [esp + 0x30]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
call fcn.00523530
push 0x5dc438
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x64], 1
call fcn.0040c430
push ebp
push eax
push edi
mov byte [esp + 0x70], 2
call fcn.0040c4e0
add esp, 0x18
mov esi, 0x10
mov byte [esp + 0x58], 1
mov dword [esp + 0xc], 1
cmp dword [esp + 0x28], esi
jb 0x5237a6
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00548a36
add esp, 4
mov byte [esp + 0x58], 0
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
cmp dword [esp + 0x44], esi
jb 0x5237d3
mov edx, dword [esp + 0x30]
push edx
call fcn.00548a36
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00548a41
add esp, 0x50
ret

Function at 0x523800
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5b4490
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x24], eax
push ebp
push esi
push edi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x10], edi
cmp ebx, edi
je 0x523920
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], edi
jb 0x52384c
mov eax, dword [ebx]
jmp 0x52384e
mov eax, ebx
mov byte [eax], 0
lea eax, [esp + 0x18]
push eax
call fcn.00410bc0
mov ebp, 8
add esp, 4
cmp dword [eax + 0x14], ebp
jb 0x52386a
mov eax, dword [eax]
push 0x5e9020
push eax
call fcn.005a3b9a
xor esi, esi
add esp, 8
mov dword [esp + 0x10], esi
cmp eax, 0xffffffff
je 0x523889
mov esi, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x40], edi
cmp dword [esp + 0x2c], ebp
jb 0x5238a0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00548a36
add esp, 4
xor edx, edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], dx
cmp esi, edi
je 0x523920
push 2
push edi
push esi
call fcn.0054a67f
add esp, 0xc
push esi
call fcn.005542b6
mov ebp, eax
add esp, 4
cmp ebp, 0x1400000
jae 0x523917
push edi
push edi
push esi
call fcn.0054a67f
add esp, 0xc
push ebp
call fcn.00547a7c
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
push esi
push ebp
push 1
push edi
mov byte [esp + 0x50], 2
call fcn.005a458f
add esp, 0x10
cmp ebp, eax
je 0x523924
push edi
mov dword [esp + 0x44], 0
call fcn.00549081
add esp, 4
push esi
call fcn.0054a768
add esp, 4
xor al, al
jmp 0x523946
push eax
push edi
mov ecx, ebx
call fcn.004078a0
push edi
mov byte [esp + 0x44], 0
call fcn.00549081
add esp, 4
push esi
call fcn.0054a768
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00548a41
add esp, 0x34
ret
Function at 0x523990
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x5afb18
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push edi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
cmp dword [eax + 0x14], 0x10
jb 0x5239ce
mov edx, dword [eax]
jmp 0x5239d0
mov edx, eax
xor ebx, ebx
mov eax, edx
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5239e7
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.00408800
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], ebx
call fcn.00410bc0
mov edi, 8
add esp, 4
cmp dword [eax + 0x14], edi
jb 0x523a1c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
cmp dword [esp + 0x3c], edi
jb 0x523a38
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00548a36
add esp, 4
xor edx, edx
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x20], 0x10
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], dx
jb 0x523a67
mov eax, dword [esp + 0xc]
push eax
call fcn.00548a36
add esp, 4
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov byte [esi + 0x24], bl
cmp eax, ebx
je 0x523b5f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ListComponents
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x523aad
push str.CreateInstance
push eax
call edi
jmp 0x523aaf
xor eax, eax
mov dword [esi + 8], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x523ac2
push str.DestroyInstance
push eax
call edi
jmp 0x523ac4
xor eax, eax
mov dword [esi + 0xc], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x523ad7
push str.GetInfo
push eax
call edi
jmp 0x523ad9
xor eax, eax
mov dword [esi + 0x10], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x523aec
push str.HandleMessage
push eax
call edi
jmp 0x523aee
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x523b01
push str.FreeBuffer
push eax
call edi
jmp 0x523b03
xor eax, eax
mov dword [esi + 0x18], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x523b16
push str.Registered
push eax
call edi
jmp 0x523b18
xor eax, eax
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x523b2b
push str.Deregistered
push eax
call edi
jmp 0x523b2d
xor eax, eax
mov dword [esi + 0x20], eax
cmp dword [esi + 4], ebx
je 0x523b5c
cmp dword [esi + 8], ebx
je 0x523b5c
cmp dword [esi + 0xc], ebx
je 0x523b5c
cmp dword [esi + 0x10], ebx
je 0x523b5c
cmp dword [esi + 0x14], ebx
je 0x523b5c
cmp dword [esi + 0x18], ebx
je 0x523b5c
cmp dword [esi + 0x1c], ebx
je 0x523b5c
cmp eax, ebx
je 0x523b5c
mov ebx, 1
mov byte [esi + 0x24], bl
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00548a41
add esp, 0x48
ret 4
Function at 0x524120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b8188
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x40]
xor eax, eax
mov esi, ecx
mov dword [esp + 0xc], eax
cmp byte [esi + 0x48], al
jne 0x524171
cmp ebx, eax
je 0x5241dc
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
jmp 0x5241dc
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
call fcn.004e9d20
test ebx, ebx
je 0x52419c
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
cmp dword [esp + 0x24], 0x10
mov ecx, dword [esp + 0x10]
jae 0x5241ab
lea ecx, [esp + 0x10]
cmp byte [esi + 0x44], 0
mov eax, dword [esi + 0x1c]
je 0x5241c0
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
mov eax, dword [esi + 0x34]
call eax
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x24], 0x10
jb 0x5241dc
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00548a36
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00548a41
add esp, 0x30
ret 4
Function at 0x5246d0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5afa68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x44], 0
je 0x524834
cmp byte [edi + 0x49], 0
je 0x524834
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x52481f
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x18], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 8
cmp ecx, 0x10
jae 0x524753
lea eax, [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
lea ebx, [edi + 0x4c]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x2c]
mov edx, eax
cmp ebp, 0x10
jae 0x524777
lea edx, [esp + 0x18]
mov eax, edx
add edx, dword [esp + 0x28]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebp, [esp + 0x14]
push ebp
push edx
push eax
mov eax, dword [esi + 0x18]
push ebx
call eax
sub eax, 0
je 0x5247ab
dec eax
je 0x5247af
sub eax, 2
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x18]
jne 0x52481a
jmp 0x52482f
mov byte [edi + 0x49], 0
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov ecx, eax
cmp ebp, 0x10
jae 0x5247c2
lea ecx, [esp + 0x18]
mov esi, dword [esp + 0x14]
sub esi, ecx
je 0x5247ef
cmp ebp, 0x10
jae 0x5247d3
lea eax, [esp + 0x18]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.005a39cb
add esp, 0x10
cmp esi, eax
jne 0x52480e
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
cmp byte [edi + 0x49], 0
je 0x524823
test esi, esi
jne 0x52476a
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.004097c0
jmp 0x524762
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004c0ca0
xor al, al
jmp 0x524836
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004c0ca0
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00548a41
add esp, 0x30
ret
Function at 0x529a90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5b18f4
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push edi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov al, byte [esp + 0x74]
mov ebp, dword [esp + 0x70]
push fcn.004846c0
push 0x484640
push 3
mov edi, ecx
push 0x10
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x2a], al
call fcn.005a3330
xor ebx, ebx
mov dword [esp + 0x68], ebx
lea edx, [esp + 0x1c]
mov dword [esp + 0x24], 4
mov dword [esp + 0x18], edx
mov byte [esp + 0x68], 1
cmp edi, ebx
je 0x529b13
mov ebx, edi
mov edi, edx
call fcn.0047dfd0
xor ebx, ebx
jmp 0x529b17
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 2
call fcn.004847a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], bl
call fcn.004846c0
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], ebx
call fcn.004847a0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 3
call fcn.004847a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], bl
call fcn.004846c0
movzx eax, byte [esp + 0x16]
mov dword [esp + 0x24], 1
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x68], 4
call fcn.004847a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], bl
call fcn.004846c0
mov edx, dword [esi]
mov edx, dword [edx + 4]
lea eax, [esp + 0x2c]
push eax
push 3
push ebx
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call edx
movzx eax, byte [eax]
mov byte [esp + 0x16], al
mov byte [esp + 0x68], 5
cmp dword [esp + 0x24], 7
jne 0x529be7
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1b]
mov byte [esp + 0x1b], bl
call fcn.00485ae0
cmp eax, ebx
je 0x529be7
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push ebx
call eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], bl
call fcn.004846c0
push fcn.004846c0
push 3
push 0x10
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x78], 0xffffffff
call fcn.005494cc
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00548a41
add esp, 0x5c
ret 8
Function at 0x52c030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bd61a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, ecx
mov esi, dword [esp + 0x38]
mov dword [esp + 0xc], 0
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], esi
call eax
mov dword [esp + 0x1c], 7
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 1
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov ecx, esi
call fcn.004847a0
mov byte [esp + 0x30], 2
cmp dword [esi + 8], 7
jne 0x52c0c8
push esi
lea ecx, [esp + 0xf]
call fcn.00485ae0
test eax, eax
je 0x52c0c8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 1
mov byte [esp + 0x30], 0
call fcn.004846c0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00548a41
add esp, 0x2c
ret 0x10

Function at 0x52c320
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x63da6c]
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov ebx, eax
test eax, eax
jne 0x52c363
push str.No_XMLHttpRequestFactory.
lea esi, [esp + 0xc]
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], str.p:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclientimegoopy_third_partygoogle_gadgets_for_linuxggadgetgadget_base.cc
mov dword [esp + 0x14], 0x66
call fcn.00491eb0
add esp, 4
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
call edx
test eax, eax
je 0x52c3cd
mov eax, dword [eax]
mov ecx, dword [eax]
test cl, 0x28
je 0x52c3cd
test byte [eax + 4], 0x28
je 0x52c3cd
mov eax, dword [0x62b6dc]
push edi
cmp eax, 0xffffffff
jne 0x52c38c
xor edi, edi
jmp 0x52c39b
mov ecx, dword [0x62b6dc]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [esi + 4]
cmp dword [esi + 8], 0
jne 0x52c3b8
mov ecx, dword [0x63da6c]
test ecx, ecx
je 0x52c3b8
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esi + 8], eax
mov esi, dword [esi + 8]
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
push edi
push esi
mov ecx, ebx
call eax
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push str.No_permission_to_access_network.
lea esi, [esp + 0x18]
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], str.p:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclientimegoopy_third_partygoogle_gadgets_for_linuxggadgetgadget_base.cc
mov dword [esp + 0x20], 0x70
call fcn.00491eb0
add esp, 4
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x52c400
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov bl, byte [eax + 0x20]
mov cl, byte [esp + 0xc]
mov byte [eax + 0x20], cl
test bl, bl
je 0x52c446
test cl, cl
jne 0x52c446
mov eax, dword [0x62b26c]
cmp eax, 0xffffffff
jne 0x52c427
xor eax, eax
jmp 0x52c434
mov ecx, dword [0x62b26c]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
mov esi, dword [esi + 4]
mov ecx, eax
mov eax, dword [edx + 0x2c]
call eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
pop esi
mov al, bl
pop ebx
ret 4

Function at 0x52c450
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x62b26c]
push esi
push edi
mov edi, ecx
cmp eax, 0xffffffff
jne 0x52c462
xor eax, eax
jmp 0x52c46f
mov ecx, dword [0x62b26c]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
mov esi, dword [edi + 4]
mov ecx, eax
mov eax, dword [edx + 0x2c]
call eax
sub eax, dword [esi + 0x18]
mov ecx, dword [edi + 4]
sbb edx, dword [esi + 0x1c]
cmp byte [ecx + 0x20], 0
pop edi
pop esi
jne 0x52c49a
test edx, edx
jne 0x52c497
cmp eax, 0x2710
jbe 0x52c49a
xor eax, eax
ret
mov eax, 1
ret
Function at 0x52d670
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
mov eax, dword [0x630bc4]
cmp eax, 0xffffffff
je 0x52d697
mov ecx, dword [0x630bc4]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x52d6c8
push 0x10
call fcn.00548a50
add esp, 4
test eax, eax
je 0x52d6bb
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x52d6bd
xor eax, eax
push eax
mov esi, eax
call fcn.0052e620
add esp, 4
cmp ebx, dword [esi]
jae 0x52d6d4
add dword [esi + 8], 0
adc dword [esi + 0xc], 1
mov eax, ebx
xor edx, edx
add eax, dword [esi + 8]
mov dword [esi], ebx
adc edx, dword [esi + 0xc]
pop esi
pop ebx
ret
Function at 0x535630
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
lea esi, [esp + 8]
call fcn.00535730
mov eax, dword [esp + 8]
mov esi, 8
cmp dword [esp + 0x1c], esi
jae 0x53565c
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [esp + 0x1c], esi
jb 0x53567b
mov eax, dword [esp + 8]
push eax
call fcn.00548a36
add esp, 4
mov ecx, dword [esp + 0x24]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00548a41
add esp, 0x20
ret

Function at 0x535c40
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov dword [esp + 4], 0
mov eax, dword [esi + 4]
sub eax, 0
push edi
je 0x535c6f
dec eax
je 0x535c68
dec eax
je 0x535c61
xor al, al
pop edi
add esp, 8
ret
mov eax, 1
jmp 0x535c74
mov eax, 2
jmp 0x535c74
mov eax, 4
push 0
push 0
push 0
push eax
mov eax, dword [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
je 0x535c5a
mov edx, dword [esi + 0x4c]
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 8], 0
mov edi, eax
ja 0x535c5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
jne 0x535cbb
test eax, eax
jne 0x535c5a
mov dword [esi + 0xc], edi
mov al, 1
pop edi
add esp, 8
ret

Function at 0x538b20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5ba513
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push eax
push ecx
push edi
call fcn.0053dfb0
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [edi], vtable.ggadget::internal::DOMAttr.0
mov dword [edi + 4], vtable.ggadget::internal::DOMAttr.1.0
mov dword [edi + 8], vtable.ggadget::internal::DOMAttr.2.0
mov dword [edi + 0x10], vtable.ggadget::internal::DOMAttr.3.0
mov dword [edi + 0x18], eax
mov dword [edi + 0x30], 0xf
mov dword [edi + 0x2c], eax
mov byte [edi + 0x1c], al
mov byte [esp + 0x14], 1
cmp dword [edi + 0x18], esi
je 0x538ba3
mov edx, dword [edi]
mov eax, dword [edx + 0x48]
push esi
mov ecx, edi
mov dword [edi + 0x18], esi
call eax
mov esi, eax
call fcn.005377a0
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8