joyce8/EMBER2024-capa huggingface dataset:
Function at 0x508dd0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5ae071
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0xc], ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00409870
mov dword [esp + 0x38], 1
lea eax, [esp + 0x10]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.00407740
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov dword [esi + 0x1c], edx
mov byte [esp + 0x38], bl
cmp dword [esp + 0x24], 0x10
mov dword [esp + 8], 1
jb 0x508e73
mov eax, dword [esp + 0x10]
push eax
call fcn.00548a36
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00548a41
add esp, 0x34
ret

Function at 0x508ea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ae021
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push edi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov edi, dword [ecx]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00409870
mov dword [esp + 0x3c], 1
lea edx, [esp + 0x14]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push edx
mov ecx, esi
mov byte [esi], bl
call fcn.00407740
mov dword [esi + 0x1c], edi
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0xc], 1
jb 0x508f40
mov eax, dword [esp + 0x14]
push eax
call fcn.00548a36
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00548a41
add esp, 0x34
ret
Function at 0x509600
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5adfd8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00409870
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x44], ebx
lea ebx, [esp + 0x10]
mov ecx, esi
call fcn.00509af0
push eax
lea edx, [esp + 0xc]
push edx
push esi
call fcn.0045c890
mov dword [esp + 0x44], 0xffffffff
cmp dword [esp + 0x24], 0x10
jb 0x509696
mov eax, dword [esp + 0x10]
push eax
call fcn.00548a36
add esp, 4
mov al, byte [esp + 0xc]
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00548a41
add esp, 0x40
ret

Function at 0x50b300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b4799
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov byte [esi], al
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x54]
push esi
mov dword [esp + 0x30], 1
call fcn.0050b3a0
add esp, 0x28
mov eax, esi
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 0x50e5a0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5c21e0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push esi
push edi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov al, byte [esp + 0x6c]
xor ebx, ebx
mov byte [esp + 0x14], al
mov byte [esp + 0x18], dl
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x60], ebx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov eax, ecx
mov byte [esp + 0x60], 1
lea esi, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x50e610
sub eax, esi
sar eax, 1
push eax
lea edi, [esp + 0x3c]
call fcn.004748c0
add esp, 4
push ebx
lea edi, [esp + 0x20]
mov ecx, 0x5d8868
call fcn.004748c0
mov ecx, dword [esp + 0x20]
mov edi, 0x10
add esp, 4
cmp dword [esp + 0x30], edi
jae 0x50e651
lea ecx, [esp + 0x1c]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x50e65f
lea eax, [esp + 0x38]
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push edx
push ebx
push ecx
push eax
mov eax, dword [esp + 0x7c]
push eax
call fcn.0050e4e0
mov byte [esp + 0x60], bl
mov esi, eax
cmp dword [esp + 0x30], edi
jb 0x50e68f
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00548a36
add esp, 4
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x4c], edi
jb 0x50e6ba
mov edx, dword [esp + 0x38]
push edx
call fcn.00548a36
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00548a41
add esp, 0x54
ret 8
Function at 0x512ea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bd61a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, ecx
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0xc], 0
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, edx
mov dword [esp + 0x10], esi
call eax
mov dword [esp + 0x1c], 1
mov byte [esp + 0x14], al
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 0x512f3e
push esi
lea ecx, [esp + 0xf]
call fcn.00485ae0
test eax, eax
je 0x512f3e
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 0x514020
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x5bf689
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x62f70c]
xor ebp, ebp
cmp eax, 0xffffffff
je 0x514085
mov ecx, dword [0x62f70c]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
cmp ebx, ebp
je 0x514085
mov eax, dword [ebx]
cmp eax, ebp
je 0x5140d6
inc eax
mov dword [ebx], eax
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0x14
call fcn.00548a50
add esp, 4
cmp eax, ebp
je 0x5140a6
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
mov byte [eax + 0xc], 1
mov dword [eax + 0x10], ebp
mov esi, eax
jmp 0x5140a8
xor esi, esi
push esi
mov ebx, esi
call fcn.00514340
add esp, 4
test al, al
jne 0x5140d6
push esi
call fcn.00548a36
add esp, 4
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 8
mov dword [ebx], 1
call fcn.00548a50
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], ebp
cmp edi, ebp
je 0x51412a
mov byte [esp + 0x38], 1
push 0x34
mov dword [edi], vtable.ggadget::win32::MainLoop.0
call fcn.00548a50
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x38], 2
cmp eax, ebp
je 0x514123
push edi
mov esi, eax
call fcn.0052d6f0
mov dword [edi + 4], eax
jmp 0x51412c
xor eax, eax
mov dword [edi + 4], eax
jmp 0x51412c
xor edi, edi
or esi, 0xffffffff
mov dword [esp + 0x38], esi
call fcn.00492780
call fcn.00513ca0
test al, al
je 0x5140c0
call fcn.00513df0
test al, al
je 0x5140c0
push 0xc
call fcn.00548a50
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], 3
cmp eax, ebp
je 0x514174
push eax
call fcn.00531370
jmp 0x514176
xor eax, eax
mov dword [esp + 0x38], esi
cmp eax, ebp
je 0x5140c0
mov edi, eax
call fcn.00497770
mov eax, dword [0x63da68]
cmp eax, ebp
je 0x5141a8
push 0x5d8b48
call eax
add esp, 4
cmp eax, ebp
jne 0x5141bd
cmp dword [0x63da68], ebp
jne 0x5141c7
mov edx, 0x513bc0
test edx, edx
je 0x5141c7
mov dword [0x63da68], 0x513bc0
jmp 0x5141c7
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
push ebp
lea ecx, [esp + 0x24]
push ecx
add ebx, 4
push ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x514bc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bf5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
push edi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov edi, ecx
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
mov dword [esp + 0x38], 0
mov ecx, dword [esi + 0x74]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x10]
push eax
push edi
call edx
test al, al
jne 0x514c49
test ebp, ebp
je 0x514c85
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x10]
push edx
push ebp
call eax
test al, al
je 0x514c85
mov edi, ebp
test edi, edi
je 0x514c85
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x10]
push edi
lea edx, [esp + 0x14]
call fcn.0052b2e0
test al, al
je 0x514c85
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x24], 0x10
jb 0x514c81
mov edx, dword [esp + 0x10]
push edx
call fcn.00548a36
add esp, 4
mov al, 1
jmp 0x514ca3
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x24], 0x10
jb 0x514ca1
mov eax, dword [esp + 0x10]
push eax
call fcn.00548a36
add esp, 4
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00548a41
add esp, 0x30
ret 8
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 [str.W__a]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push edi
mov eax, dword [str.W__a]
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 0x515da0
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 0x519810
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5b454a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [edi], eax
mov byte [edi + 4], 0
xor ebp, ebp
push 0x18
mov dword [edi + 0x10], ebp
call fcn.00548a50
add esp, 4
cmp eax, ebp
je 0x519955
mov dword [edi + 0xc], eax
mov dword [eax], eax
mov eax, dword [edi + 0xc]
mov dword [eax + 4], eax
mov eax, dword [edi + 0xc]
mov dword [eax + 8], eax
mov ecx, dword [edi + 0xc]
mov ebx, 1
mov byte [ecx + 0x14], bl
mov edx, dword [edi + 0xc]
mov byte [edx + 0x15], bl
mov dword [esp + 0x28], ebx
push 0x14
mov dword [edi + 0x20], ebp
call fcn.00548a50
add esp, 4
cmp eax, ebp
je 0x51993b
mov dword [edi + 0x1c], eax
mov dword [eax], eax
mov eax, dword [edi + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x1c]
mov dword [eax + 8], eax
mov eax, dword [edi + 0x1c]
mov byte [eax + 0x10], bl
mov ecx, dword [edi + 0x1c]
mov byte [ecx + 0x11], bl
mov byte [esp + 0x28], 3
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
test byte [edx + 0x4c], bl
jne 0x5198d0
mov ecx, edx
or byte [ecx + 0x4c], bl
mov esi, dword [eax + 0x10]
call fcn.0047ffb0
mov eax, dword [edi]
mov ecx, dword [eax + 0x1c]
mov bl, 2
test byte [ecx + 0x4c], bl
jne 0x5198e7
or byte [ecx + 0x4c], bl
mov esi, dword [eax + 0x10]
call fcn.0047ffb0
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
test byte [edx + 0x19c], bl
jne 0x519904
mov ecx, edx
or byte [ecx + 0x19c], bl
mov esi, dword [eax + 0x10]
call fcn.0047ffb0
mov esi, dword [edi]
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x48], ebp
je 0x519923
mov ecx, eax
mov dword [ecx + 0x48], ebp
mov eax, dword [esi + 0x1c]
call fcn.004a37c0
mov esi, dword [esi + 0x10]
call fcn.0047ffb0
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], vtable.stdext::bad_alloc.0
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.00404df0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], vtable.stdext::bad_alloc.0
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebp
call fcn.00404df0
int3

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 [str.W__a]
xor eax, esp
mov dword [esp + 0x40], eax
push ebp
push esi
mov eax, dword [str.W__a]
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 [str.W__a]
xor eax, esp
mov dword [esp + 0x24], eax
push ebp
push esi
push edi
mov eax, dword [str.W__a]
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 [str.W__a]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push edi
mov eax, dword [str.W__a]
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