joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b674
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47ba4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0
push 0x23
lea eax, [ebp - 0x115]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
test eax, eax
je 0x47ba09
lea eax, [ebp - 0x11c]
lea edx, [ebp - 0x115]
mov ecx, 0x105
call fcn.00404b14
lea eax, [ebp - 0x11c]
mov edx, 0x47ba64
call fcn.00404b70
mov eax, dword [ebp - 0x11c]
call fcn.00408d74
test al, al
je 0x47ba1f
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x115]
mov ecx, 0x105
call fcn.00404b14
lea eax, [ebp - 0x120]
mov edx, 0x47ba74
call fcn.00404b70
mov eax, dword [ebp - 0x120]
call fcn.00408d74
test al, al
jne 0x47b7ab
lea eax, [ebp - 0x124]
lea edx, [ebp - 0x115]
mov ecx, 0x105
call fcn.00404b14
lea eax, [ebp - 0x124]
mov edx, 0x47ba74
call fcn.00404b70
mov eax, dword [ebp - 0x124]
call fcn.00408d98
test al, al
jne 0x47b7ab
lea eax, [ebp - 0x128]
mov ecx, dword [0x4827a4]
mov edx, 0x47ba9c
call fcn.00404bbc
mov ecx, dword [ebp - 0x128]
mov dl, 1
mov eax, dword [0x407760]
call fcn.0040c198
call fcn.004042ec
xor eax, eax
push ebp
push 0x47b803
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
lea eax, [ebp - 0x12c]
lea edx, [ebp - 0x115]
mov ecx, 0x105
call fcn.00404b14
lea eax, [ebp - 0x12c]
mov edx, 0x47bad4
call fcn.00404b70
mov ecx, dword [ebp - 0x12c]
mov dl, 1
mov eax, dword [0x412ab0]
call fcn.00416b60
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47b83a
xor eax, eax
push ebp
push 0x47b8ad
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x47b877
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x482ab8]
mov ecx, 0xbd8
mov eax, dword [ebp - 0xc]
call fcn.00416910
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47b897
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b8b4
mov eax, dword [ebp - 0xc]
call fcn.00403a78
ret
mov ecx, 0x47bc54
mov dl, 1
mov eax, dword [0x407760]
call fcn.0040c198
call fcn.004042ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ba52
lea eax, [ebp - 0x134]
mov edx, 7
call fcn.004048c8
lea eax, [ebp - 4]
mov edx, dword [0x47b654]
call fcn.00405ab8
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x1001bf30
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001bf6f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001bf6f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001bf6f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001bf6f
cmp dword [ecx + 0x74], 0xe
jbe 0x1001bf6f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001ec2d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001ecca
push ebx
push esi
call fcn.1001ebf6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001eb8a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001ec77
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001ecc9
push edi
push eax
call fcn.1001cc6d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001ec97
call fcn.1001d6d2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001ecc8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001eb8a
add esp, 0x20
test eax, eax
jne 0x1001ecb6
push edi
call fcn.1001d6d2
jmp 0x1001ecbe
push ebx
call fcn.1001d6d2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001ef37
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026d10
push 0x10026d08
push str.FlsAlloc
push 0x1f
call fcn.1001ee53
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001ef6b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002514c]
call esi
jmp 0x1001ef71
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001efb5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026d20
push 0x10026d18
push str.FlsGetValue
push 0x21
call fcn.1001ee53
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001efec
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002514c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001eff4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026d28
push 0x10026d20
push str.FlsSetValue
push 0x22
call fcn.1001ee53
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001f02e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002514c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100245d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100245fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100245fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001000
Capabilities:
Bypass uac via icmluautil
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x10013004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push str.ShellExecMethod
mov dword [ebp - 0x238], ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 2
push 0
mov ebx, 0xc0000022
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x23c], eax
mov ecx, 0x24
mov dword [ebp - 0x234], 0
lea eax, [ebp - 0x230]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10001050
movups xmm0, xmmword [str.Elevation:Administrator_new:]
mov ax, word [0x10011d20]
push esi
movups xmmword [ebp - 0x20c], xmm0
push edi
movups xmm0, xmmword [0x10011cf8]
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x230], 0x24
mov dword [ebp - 0x21c], 4
add edi, 0xfffffffe
movups xmmword [ebp - 0x1fc], xmm0
mov word [ebp - 0x1d4], ax
movups xmm0, xmmword [0x10011d08]
movups xmmword [ebp - 0x1ec], xmm0
movq xmm0, qword [0x10011d18]
movq qword [ebp - 0x1dc], xmm0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100010c1
mov ecx, 0x13
lea eax, [ebp - 0x234]
mov esi, str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
rep movsd dword es:[edi], dword [esi]
push eax
push 0x10011eb8
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x20c]
movsw word es:[edi], word [esi]
push eax
call dword [sym.imp.ole32.dll_CoGetObject]
mov esi, dword [ebp - 0x234]
test eax, eax
jne 0x10001126
test esi, esi
je 0x10001132
mov eax, dword [esi]
push 5
push 0
push 0
mov eax, dword [eax + 0x24]
push 0
push dword [ebp - 0x238]
push esi
call eax
xor ecx, ecx
test eax, eax
cmovns ebx, ecx
test esi, esi
je 0x10001132
mov ecx, dword [esi]
push esi
mov ecx, dword [ecx + 8]
call ecx
cmp dword [ebp - 0x23c], 0
pop edi
pop esi
jne 0x10001143
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1000148d
mov esp, ebp
pop ebp
ret
Function at 0x10001410
Capabilities:
Bypass uac via icmluautil
Print debug messages

Disassembly:
push str.CALLBACK_BypassUAC
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, str.c:windows_system32cmd.exe
jmp fcn.10001000
Function at 0xaca0e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x51a000]
mov dword [edi + 0x634b80], 0xc28126f0
push edi
or ebp, 0xffffffff
jmp 0xaca10a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xaca111
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaca100
mov eax, 1
add ebx, ebx
jne 0xaca123
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xaca134
jne 0xaca153
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaca153
dec eax
add ebx, ebx
jne 0xaca140
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xaca118
add ebx, ebx
jne 0xaca14f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xaca1a5
xor ecx, ecx
sub eax, 3
jb 0xaca16b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xaca1da
sar eax, 1
mov ebp, eax
jmp 0xaca176
add ebx, ebx
jne 0xaca176
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaca144
inc ecx
add ebx, ebx
jne 0xaca184
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaca144
add ebx, ebx
jne 0xaca191
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xaca186
jne 0xaca1a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xaca186
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xaca1c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xaca1b6
jmp 0xaca106
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xaca1c4
add edi, ecx
jmp 0xaca106
pop esi
mov edi, esi
mov ecx, 0x19d1b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xaca1e2
cmp byte [edi], 0x6f
jne 0xaca1e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xaca1e7
lea edi, [esi + 0x6aa000]
mov eax, dword [edi]
or eax, eax
je 0xaca25f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x700a88]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x700b98]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xaca214
mov ecx, edi
jns 0xaca243
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x700ba0]
or eax, eax
je 0xaca259
mov dword [ebx], eax
add ebx, 4
jmp 0xaca231
call dword [esi + 0x700b9c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xaca290
cmp al, 0xef
ja 0xaca283
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xaca265
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xaca272
mov ebp, dword [esi + 0x700ba4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x267]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xaca2c4
sub esp, 0xffffff80
jmp 0x6198af
Function at 0x4445da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00444450
Function at 0x4068b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068dc
xor eax, eax
test eax, eax
je 0x4068ef
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068ef
xor ecx, ecx
jmp 0x4068f2
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a15
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a5dec], 0
push esi
jne 0x406a4c
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a26
mov dword [ecx*4 + 0x7a5de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a21
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a7d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a5de8]
xor eax, esi
inc ecx
dec edx
jne 0x406a5f
pop edi
not eax
pop esi
ret 0xc

Function at 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x6d157d0d
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x39730db0
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x1001a760
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001a79f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001a79f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a79f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001a79f
cmp dword [ecx + 0x74], 0xe
jbe 0x1001a79f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001d45d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001d4fa
push ebx
push esi
call fcn.1001d426
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001d3ba
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001d4a7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d4f9
push edi
push eax
call fcn.1001b49d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001d4c7
call fcn.1001bf02
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d4f8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d3ba
add esp, 0x20
test eax, eax
jne 0x1001d4e6
push edi
call fcn.1001bf02
jmp 0x1001d4ee
push ebx
call fcn.1001bf02
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001d767
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d10
push 0x10025d08
push str.FlsAlloc
push 0x1f
call fcn.1001d683
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d79b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
jmp 0x1001d7a1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001d7e5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d20
push 0x10025d18
push str.FlsGetValue
push 0x21
call fcn.1001d683
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d81c
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001d824
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d28
push 0x10025d20
push str.FlsSetValue
push 0x22
call fcn.1001d683
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d85e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10022e10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10022e3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10022e3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x419f070
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x28], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x419f13b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov ecx, 0x419f154
mov eax, dword [0x419a734]
call fcn.0419aa14
test al, al
jne 0x419f0c2
mov bl, 1
jmp 0x419f115
cmp ebx, 0x64
jne 0x419f0cb
xor ebx, ebx
jmp 0x419f115
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Sysutils_QuotedStr_qqrx17System_AnsiString
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea eax, [ebp - 0x24]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov ecx, 0x419f170
mov eax, dword [0x419a734]
call fcn.0419afa0
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
test eax, eax
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419f142
lea eax, [ebp - 0x28]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret

Function at 0x41a6964
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x41a6a1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x41a6a34
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
test edi, edi
je 0x41a69b7
push dword [ebx]
push 0x41a6e1c
lea edx, [ebp - 4]
mov eax, edi
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 4]
push 0x41a6e3c
mov eax, ebx
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
test esi, esi
je 0x41a69e0
push dword [ebx]
push 0x41a6e48
lea edx, [ebp - 8]
mov eax, esi
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 8]
push 0x41a6e3c
mov eax, ebx
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
push dword [ebx]
push 0x41a6e60
push 0x41a6ed8
push 0x41a6f60
push 0x41a7008
mov eax, ebx
mov edx, 5
call sub.rtl60.bpl__System__LStrCatN_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a6a24
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret