joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4063b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d730
cmp edx, dword [eax]
je 0x4063d3
add eax, 8
inc ecx
cmp eax, 0x40d7c0
jl 0x4063c4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d730]
jne 0x406501
mov eax, dword [0x40de38]
cmp eax, 1
je 0x4064db
test eax, eax
jne 0x406404
cmp dword [0x40b194], 1
je 0x4064db
cmp edx, 0xfc
je 0x406501
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40643b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407600
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004078f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40647e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004078f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a538
push edi
call fcn.004087a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407600
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407610
lea eax, [ebp - 0xa0]
push 0x40a518
push eax
call fcn.00407610
push dword [esi + 0x40d734]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407610
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408715
add esp, 0x2c
pop edi
jmp 0x406501
lea eax, [ebp + 8]
lea esi, [esi + 0x40d734]
push 0
push eax
push dword [esi]
call fcn.004078f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4024f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040211a
push eax
push esi
push dword [ebp + 8]
call fcn.004020cf
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040211a
push eax
push esi
push dword [ebp + 8]
call fcn.004020cf
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040210a
inc edx
or dword [edi], ebx
hlt
Function at 0x402970
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc eax
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0040211a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004020cf
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep 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
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0040211a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004020cf
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
invalid
invalid
invalid
Function at 0x402f90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [esp - 4], eax
popal
add esp, 0x14
jmp dword [esp - 0x38]
call fcn.0040210a
pop ebp
cmpsd dword [esi], dword es:[edi]
mov ch, 0x27
and byte [ebp - 0x544], 0
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.0040210a
cwde
js 0x402f91
jne 0x402f84
invalid
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004020e8
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
invalid
Function at 0x4043e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x5b2ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6216ec]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
xor esi, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, esi
jne 0x40445f
call fcn.00402970
mov esi, eax
jmp 0x404554
mov eax, dword [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, esi
jne 0x40447b
call fcn.00402970
jmp 0x40454b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0x404494
call fcn.00402970
jmp 0x40454b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
jae 0x4044b2
mov esi, 0x8007000e
jmp 0x40454d
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x4044c7
cmp eax, 0xffffffff
jbe 0x4044d1
push 0x80070216
call fcn.00404db0
cmp eax, 0x400
jbe 0x4044fa
lea ecx, [ebp]
push ecx
call fcn.00403110
jmp 0x404500
lea edx, [ebp + 4]
mov dword [ebp], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp]
cmp eax, esi
jne 0x404515
mov esi, 0x8007000e
jmp 0x40454d
push ebx
push eax
mov eax, dword [ebp - 0x18]
push ebx
push eax
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
jne 0x404530
call fcn.00402970
jmp 0x40454b
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea esi, [ebp - 0x24]
call 0x404250
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x404564
lea eax, [ebp]
call fcn.004030f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00548a41
lea esp, [ebp + 0x408]
pop ebp
ret 0xc
Function at 0x40fe40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40fe57
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40fe86
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40fe82
cmp esi, eax
jae 0x40fe86
dec edi
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x40fe74
cmp esi, eax
jb 0x40fe8c
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4100c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4100f9
mov eax, dword [esp + 0xc]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8

Function at 0x410860
Capabilities:
Query or enumerate registry value

Disassembly:
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41088d
mov eax, dword [esp + 8]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0xd
ret 8

Function at 0x410890
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4108fe
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x4108cf
cmp eax, 2
jne 0x4108ea
mov eax, dword [esp]
test esi, esi
je 0x4108f8
test eax, eax
je 0x4108f3
test al, 1
jne 0x4108ea
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4108f8
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x4109e0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x210
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x20c], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.0054e420
add esp, 0xc
lea edx, [esp]
push edx
lea eax, [esp + 8]
push eax
mov dword [esp + 8], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x410a56
lea ecx, [esp + 4]
push str.SYSTEM
push ecx
call fcn.0054bc3c
add esp, 8
test eax, eax
jne 0x410a56
mov al, 1
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00548a41
add esp, 0x210
ret
mov ecx, dword [esp + 0x20c]
xor ecx, esp
xor al, al
call fcn.00548a41
add esp, 0x210
ret
Function at 0x413410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5aae18
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp dword [esi + 0x30], 0x10
jb 0x41344e
mov eax, dword [esi + 0x1c]
push eax
call fcn.00548a36
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov dword [esp + 0x14], 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x413474
mov eax, dword [esi]
push eax
call fcn.00548a36
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x4134b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5abf58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea esi, [ecx + 4]
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x30], 0x10
jb 0x4134f2
mov eax, dword [esi + 0x1c]
push eax
call fcn.00548a36
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov dword [esp + 0x18], 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x413518
mov eax, dword [esi]
push eax
call fcn.00548a36
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x475780
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5b93b3
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x24]
mov dword [esi + 0xc], ecx
push edi
mov dword [esi], vtable.ggadget::View::Impl::TimerWatchCallback.0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edx
mov dword [esi + 0x20], edi
push eax
lea ecx, [esi + 0x34]
push ecx
xor ebx, ebx
mov dword [eax], 0x9c43
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
call fcn.00490800
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov al, 1
mov byte [esp + 0x1c], al
push 0xc
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], ebp
mov byte [esi + 0x58], al
call fcn.00548a50
add esp, 4
cmp eax, edi
je 0x475835
mov dword [eax], vtable.._AV__MethodSlot0_XVTimerWatchCallback_Impl_View_ggadget__P81234_AEXXZ_ggadget__.0
mov dword [eax + 4], esi
mov dword [eax + 8], 0x475ab0
mov edi, eax
mov eax, dword [esi + 0x18]
add eax, 0x160
push edi
call fcn.0048acd0
mov dword [esi + 0x20], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x1c
Function at 0x491f50
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x5beadb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [0x62b258]
cmp eax, 0xffffffff
je 0x491f8f
mov ecx, dword [0x62b258]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x491fc6
push 0x2c
call fcn.00548a50
add esp, 4
mov dword [esp + 8], eax
mov dword [esp + 0x14], 0
test eax, eax
je 0x491fb1
push eax
call fcn.00491a90
jmp 0x491fb3
xor eax, eax
push eax
mov dword [esp + 0x18], 0xffffffff
mov esi, eax
call fcn.004925d0
add esp, 4
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x18]
call fcn.00492560
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 8

Function at 0x491ff0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x5beadb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [0x62b258]
cmp eax, 0xffffffff
je 0x49202f
mov ecx, dword [0x62b258]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x49205e
push 0x2c
call fcn.00548a50
add esp, 4
mov dword [esp + 8], eax
mov dword [esp + 0x14], 0
test eax, eax
je 0x492051
push eax
call fcn.00491a90
jmp 0x492053
xor eax, eax
push eax
mov esi, eax
call fcn.004925d0
add esp, 4
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x18], eax
je 0x49206c
add eax, 0xfffffffc
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x492080
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x5beadb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [0x62b258]
cmp eax, 0xffffffff
je 0x4920bf
mov ecx, dword [0x62b258]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4920f6
push 0x2c
call fcn.00548a50
add esp, 4
mov dword [esp + 8], eax
mov dword [esp + 0x14], 0
test eax, eax
je 0x4920e1
push eax
call fcn.00491a90
jmp 0x4920e3
xor eax, eax
push eax
mov dword [esp + 0x18], 0xffffffff
mov esi, eax
call fcn.004925d0
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
mov eax, esi
call fcn.0048acd0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x50ddf0
Capabilities:
Check mutex on windows

Disassembly:
push ecx
push str.A946A6A9_917E_4949_B9BC_6BADA8C7FD63
push 0
push 0
mov byte [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push eax
mov dword [esi + 4], eax
call fcn.0050dd60
add esp, 4
test al, al
je 0x50de30
mov eax, dword [esi + 4]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete cl
mov byte [esi], cl
mov eax, esi
pop ecx
ret

Function at 0x513ca0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x62f70c]
push esi
cmp eax, 0xffffffff
je 0x513cbe
mov ecx, dword [0x62f70c]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x513cc2
xor al, al
pop esi
ret
cmp dword [esi + 0x10], 0
jne 0x513d01
push 8
call fcn.00548a50
add esp, 4
test eax, eax
je 0x513cf3
push eax
mov dword [eax], method.ggadget::Slot.virtual_0
mov dword [eax + 4], 0x513c70
call fcn.00492080
add esp, 4
mov dword [esi + 0x10], eax
mov al, 1
pop esi
ret
xor eax, eax
push eax
call fcn.00492080
add esp, 4
mov dword [esi + 0x10], eax
mov al, 1
pop esi
ret
Function at 0x5159d0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x5ade18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push edi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x62c194]
mov edi, ecx
cmp eax, 0xffffffff
je 0x515a82
mov ecx, dword [0x62c194]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
test ebp, ebp
je 0x515a82
xor ebx, ebx
mov edx, dword [ebx + 0x624c04]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.005135b0
add esp, 8
mov dword [esp + 0x38], 0
cmp dword [esp + 0x24], 0x10
mov eax, dword [esp + 0x10]
jae 0x515a4d
lea eax, [esp + 0x10]
mov edx, dword [ebp]
push 0
push eax
mov eax, dword [edx + 0x1c]
mov ecx, ebp
call eax
test al, al
jne 0x515aa2
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x24], 0x10
jb 0x515a7a
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00548a36
add esp, 4
add ebx, 4
cmp ebx, 0xc
jb 0x515a22
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00548a41
add esp, 0x2c
ret
lea edx, [esp + 0x10]
cmp esi, edx
je 0x515afc
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov edi, dword [esi + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [esi], ebx
mov ebx, dword [esp + 0x14]
mov dword [esi + 4], ebx
mov ebx, dword [esp + 0x18]
mov dword [esi + 8], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esi + 0xc], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x10], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x1c], edi
mov dword [esi + 0x14], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x24], 0x10
jb 0x515b18
mov eax, dword [esp + 0x10]
push eax
call fcn.00548a36
add esp, 4
mov al, 1
jmp 0x515a84

Function at 0x515da5
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x62b6dc]
push esi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x515db1
xor eax, eax
jmp 0x515dbe
mov ecx, dword [0x62b6dc]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esi + 8]
mov esi, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
push esi
mov esi, dword [esp + 0x18]
push 0x5d2984
push 0
push 0
add ecx, 0x24
push esi
push ecx
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, eax
call edx
pop esi
ret 0xc

Function at 0x51b650
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esi]
mov edx, ecx
xor edx, eax
shr ecx, 8
and edx, 0xff
mov edx, dword [edi + edx*4]
xor edx, ecx
movzx ecx, dl
add ecx, dword [esi + 4]
mov dword [esi], edx
mov edx, dword [esi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [edi + ecx*4]
mov dword [esi + 8], edx
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