joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40e490]
test esi, esi
jle 0x4025d0
mov eax, dword [0x40e494]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4024e4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402567
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4024d0
mov dword [esp], ebx
call fcn.00402ea0
mov edi, eax
test eax, eax
je 0x4025f7
mov eax, dword [0x40e494]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402fe0
mov edx, dword [0x40e494]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4025d7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402560
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x402570
add dword [0x40e490], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40e494]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402560
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00402450
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4024ee
mov eax, dword [0x40e494]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00402450
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00402450
lea esi, [esi]
nop

Function at 0x402b10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40e4ac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40e4a4]
sub esp, 4
test ebx, ebx
je 0x402b65
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x402b5e
test esi, esi
je 0x402b5e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402b40
mov dword [esp], 0x40e4ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402ea0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402ec5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402ed0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402ec5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402f18
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x402f0e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x402f1a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402f00
xor eax, eax
pop ebx
pop esi
ret
Function at 0x10ad0cc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10ad0d6
pushal
call 0x10ad0dc
pop ebp
sub ebp, 0x10
sub ebp, 0xcad0cc
jmp 0x10ad0f2
mov eax, 0xcad0cc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d0
mov edx, 0xe66a8e12
xor byte [eax], dl
inc eax
dec ecx
jne 0x10ad109
jmp 0x10ad11c
cdq
fistp word [ecx + 0x12122e9b]
adc dl, byte [ebx + 0x1212ead3]
adc dl, byte [ecx]
fild qword [edx + 0x1212121a]
test al, 0x3a
adc dl, byte [edx]
adc ah, ch
invalid
Function at 0x40f9d9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub eax, dword [ecx + esi + 0x28]
clc
nop
nop
cld
jae 0x40f8f4
test dword [eax], eax
dec esi
add byte [eax], al
or byte [ebx - 0xd07efa6], cl
nop
cmp edi, 0xf7aa0afc
push ebp
mov ebp, esp
jmp 0x40cb04
push esp
clc
nop
nop
cld
jae 0x40eebe
fadd qword [eax]
add dl, bl
fld qword [eax]
add byte [edi - 0x27], dh
mov eax, dword [esp]
clc
nop
nop
cld
jae 0x40fcfa
add ch, bl
test edx, ebx
mov byte [0x4d8baa00], al
or bl, ch
mov eax, dword [0xfcd700ff]
add ebx, dword [esi*4 - 0x19c17900]
add byte [esi], bh
dec ebp
add byte [eax], dl
mov dword [esp], eax
clc
nop
nop
cld
jae 0x40fd4e
push ecx
add byte [eax], al
add byte es:[eax + 0x2d], al
xor edi, 0x9de0b6a7
clc
nop
nop
cld
jae 0x40cd29
inc eax
sub eax, 0x840faf00
mov ebx, 0xf8ffffd4
nop
nop
cld
jae 0x40d4b1
out 0x87, eax
nop
daa
jmp 0x40f968
insd dword es:[edi], dx
invalid
add eax, edi
jmp 0x40f9bf
mov ecx, dword [esi + 0x3c]
clc
nop
nop
cld
jae 0x40ccff
add bh, bh
add byte ds:[edx + 0x42c6d492], ah
add byte [ebx - 0x1374aa17], cl
add byte [eax], al
or byte [eax], al
fld qword [eax]
add ah, bh
sbb eax, dword [eax]
arpl word [eax], ax
cmp byte [eax], al
add byte [esi], cl
or byte [ebx + ecx*4 + 0xd], ah
xor byte [eax], al
add byte [eax], al
sub eax, dword [ebp + 0x24]
clc
nop
nop
cld
jae 0x40f98e
add bh, bh
add byte [edi + 0x689bff4d], al
ja 0x40fd7b
call [ebx + 0x6e697768]
outsb dx, byte [esi]
je 0x40fd0d
nop
nop
cld
jae 0x40db8f
fidivr dword [edx]
mov ss, ecx
dec esp
ret
cmp word [esi], 0x6f72
push ebp
mov ebp, esp
nop
leave
jmp 0x40f44b
Function at 0x404060
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x408
mov eax, dword [0x41f004]
xor eax, esp
mov dword [esp + 0x404], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [esp + 0xc]
push 0xffffffffffffffff
push 0x400
push eax
call fcn.00401000
push dword [eax + 4]
push dword [eax]
call fcn.00407ae7
add esp, 0x20
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.004040bd
mov esp, ebp
pop ebp
ret

Function at 0x406744
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.004064c1
sub eax, 0x8d891c6d
inc ebp
test al, 0x50
call fcn.004064d1
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00406486
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4067af
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004064c1
mov esp, 0x8d1d51b3
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x40d36c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040d00e
Function at 0x100016a0
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov dword [ebp - 0x10], 0x1000
mov dword [esp], 0x1000
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x10001761
mov esi, eax
mov edi, dword [sym.imp.iphlpapi.dll_GetAdaptersAddresses]
mov dword [esp + 8], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], 0
call edi
sub esp, 0x14
cmp eax, 0x6f
jne 0x10001744
lea esi, [esi]
mov eax, dword [ebp - 0x10]
mov dword [esp], esi
mov ebx, esi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov esi, eax
test eax, eax
je 0x10001752
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], 0
call edi
sub esp, 0x14
cmp eax, 0x6f
je 0x10001700
test eax, eax
jne 0x10001758
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, ebx
lea esi, [esi]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
xor esi, esi
jmp 0x10001748

Function at 0x100017f0
Capabilities:
Get disk size

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
xor eax, eax
push ebx
mov ebx, edx
sub esp, 0x6c
mov word [ebp - 0x3a], ax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x46], 0x5c005c
mov dword [ebp - 0x42], 0x5c002e
mov dword [ebp - 0x3e], 0x3a0041
mov dword [ebp - 0x50], 0x20000000
mov dword [ebp - 0x4c], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExW]
movzx eax, word [esi]
sub esp, 0x10
mov word [ebp - 0x3e], ax
lea eax, [ebp - 0x46]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x100018f3
mov esi, eax
mov dword [esp + 0x1c], 0
lea eax, [ebp - 0x54]
mov dword [esp + 0x14], 0x28
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x38]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x700a0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_DeviceIoControl]
sub esp, 0x20
test eax, eax
jne 0x10001908
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x100018e7
Function at 0x10001920
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x20e]
sub esp, 0x22c
mov dword [esp + 0x1c], 0x105
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetVolumeInformationW]
sub esp, 0x20
test eax, eax
jne 0x10001990
mov dword [esp], str.NTFS
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x100019a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov edx, eax
mov ecx, 0x82
xor eax, eax
mov ebp, esp
push edi
lea edi, [ebp - 0x20e]
sub esp, 0x22c
rep stosd dword es:[edi], eax
xor eax, eax
mov word [edi], ax
lea edi, [ebp - 0x20e]
mov dword [esp + 4], edi
mov dword [esp], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x105
call dword [sym.imp.kernel32.dll_GetVolumeInformationW]
sub esp, 0x20
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov edi, dword [ebp - 4]
leave
ret

Function at 0x10001e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
lea edx, [ebp - 0x18]
sub esp, 0x30
mov dword [ebp - 0x18], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x10001ec0
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], 0
lea edi, [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edi
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x10001ec0
cmp dword [ebp - 0x10], 1
je 0x10001ee0
xor esi, esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10001ed5
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
lea edx, [ecx + 2]
mov dword [ebp - 0x20], eax
mov dword [esp], edx
mov dword [ebp - 0x24], edx
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x10001ec0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [ebp - 0x24], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov ecx, dword [ebp - 0x24]
sub esp, 0x18
test eax, eax
je 0x10001ec2
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x10001ec0
Function at 0x1000ebd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x20
mov dword [ebp - 0x10], eax
movzx ecx, word [edx]
test esi, esi
je 0x1000ed60
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000ecc0
test cx, cx
je 0x1000ed50
mov ebx, edx
nop
add ebx, 2
cmp word [ebx], 0
jne 0x1000ec00
sub ebx, edx
sar ebx, 1
cmp word [esi], 0
je 0x1000ec2f
mov eax, esi
lea esi, cs:[esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1000ec20
sub eax, esi
sar eax, 1
add ebx, eax
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x1000ec50
lea esi, cs:[esi]
add eax, 2
cmp word [eax], 0
jne 0x1000ec40
sub eax, dword [ebp + 8]
sar eax, 1
add ebx, eax
add ebx, 0x4a
mov dword [ebp - 0x14], edx
lea eax, [ebx + ebx]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x14]
test eax, eax
mov edi, eax
je 0x1000edca
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.SELECT__FROM___QUALIFIERS_WHERE_Class_s_AND_Member_s_AND_Name_s
mov dword [esp + 4], ebx
mov dword [esp + 0x14], eax
mov dword [esp], edi
call fcn.1000eb80
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.100114f0
mov dword [esp], edi
mov ebx, eax
call dword [sym.imp.ucrtbase.dll_free]
add esp, 0x20
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test esi, esi
je 0x1000ed60
test cx, cx
je 0x1000edb7
mov eax, edx
lea esi, cs:[esi]
lea esi, cs:[esi]
add eax, 2
cmp word [eax], 0
jne 0x1000ece0
sub eax, edx
sar eax, 1
cmp word [esi], 0
je 0x1000ed0f
mov ecx, esi
lea esi, cs:[esi]
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x1000ed00
sub ecx, esi
sar ecx, 1
add eax, ecx
lea ebx, [eax + 0x3c]
mov dword [ebp - 0x14], edx
lea eax, [ebx + ebx]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x1000edca
mov edx, dword [ebp - 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 8], str.SELECT__FROM___QUALIFIERS_WHERE_Class_s_AND_Member_s
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 0xc], edx
call fcn.1000eb80
jmp 0x1000ec92
xor ebx, ebx
jmp 0x1000ec0d
mov eax, edx
test cx, cx
je 0x1000edbe
lea esi, cs:[esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x1000ed70
sub eax, edx
mov ecx, eax
add eax, 0x58
sar ecx, 1
lea ebx, [ecx + 0x2c]
mov dword [ebp - 0x14], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x1000edca
mov edx, dword [ebp - 0x14]
mov dword [esp + 8], str.SELECT__FROM___QUALIFIERS_WHERE_Class_s
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 0xc], edx
call fcn.1000eb80
jmp 0x1000ec92
xor eax, eax
jmp 0x1000eced
mov eax, 0x58
mov ebx, 0x2c
jmp 0x1000ed85
mov ebx, 0x8007000e
jmp 0x1000ecb3
Function at 0x1000fbf0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x30]
push ebx
lea esi, [ebp - 0x2c]
sub esp, 0x2c
mov dword [ebp - 0x30], 0x10
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetComputerNameW]
sub esp, 8
test eax, eax
je 0x1000fc60
movzx eax, word [ebp - 0x2c]
test ax, ax
je 0x1000fc44
mov ebx, dword [sym.imp.ucrtbase.dll_towupper]
mov edi, esi
lea esi, cs:[esi]
mov dword [esp], eax
add edi, 2
call ebx
mov word [edi - 2], ax
movzx eax, word [edi]
test ax, ax
jne 0x1000fc30
mov dword [esp], esi
call dword [sym.imp.oleaut32.dll_SysAllocString]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10017d40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp + 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], str.SELECT__FROM__s_WHERE__s
mov dword [esp], 4
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll___stdio_common_vswprintf]
leave
ret
Function at 0x1001a9d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov edi, dword [ebp + 8]
mov edx, dword [edi + 8]
mov esi, dword [edi + 4]
test edx, edx
mov dword [ebp - 0x10], edx
je 0x1001aa30
add esi, dword [edi + 0xc]
add esi, 0x1a
lea eax, [esi + esi]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x1001aa22
mov edx, dword [ebp - 0x10]
mov dword [esp + 0x10], edx
mov eax, dword [edi]
mov dword [esp + 8], str.SELECT__FROM__s_WHERE__s
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call fcn.10017d40
add esp, 0x18
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esi + esi + 0x1e]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x1001aa22
xor eax, eax
jmp 0x1001aa60
movzx edx, word [eax + str.SELECT__FROM]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x1001aa60
cmp word [ebx], 0
mov edx, ebx
mov esi, dword [edi]
je 0x1001aa89
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x1001aa80
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [esi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1001aa90
add esp, 0x18
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x10020a50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x100310e0]
test eax, eax
je 0x10020b08
mov dword [esp], ebx
call eax
sub esp, 4
test eax, eax
mov dword [ebx + 8], eax
jns 0x10020a90
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x10020a7c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x10020b3d
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
mov dword [0x100310e0], eax
test eax, eax
jne 0x10020a6d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x10020a7e
Function at 0x10002ff0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1003400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
test ecx, ecx
jne 0x10003067
mov eax, dword [ebx + 0x40]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x98]
mov ecx, esi
call dword [0x10029138]
call esi
test al, 2
je 0x100030f8
push edi
lea eax, [ebp - 0x204]
push str.D3DEXT_ERROR:__s:_pBufferForArgs_cannot_be_NULL._n
push eax
call fcn.10003e60
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100148f0
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ecx]
lea edx, [ebp - 0x21c]
push edx
xorps xmm0, xmm0
push ecx
mov esi, dword [eax + 0x28]
mov ecx, esi
movups xmmword [ebp - 0x21c], xmm0
movq qword [ebp - 0x20c], xmm0
call dword [0x10029138]
call esi
mov eax, dword [ebp + 8]
mul dword [ebp + 0x14]
add eax, dword [ebp + 0x10]
adc edx, 0
test edx, edx
jb 0x1000310d
ja 0x100030aa
cmp eax, dword [ebp - 0x21c]
jbe 0x1000310d
mov eax, dword [ebx + 0x40]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x98]
mov ecx, esi
call dword [0x10029138]
call esi
test al, 2
je 0x100030f8
lfence
push dword [ebp - 0x21c]
lea eax, [ebp - 0x204]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 8]
push edi
push str.D3DEXT_ERROR:__s:_DrawCount___u___ByteStrideForArgs___u___AlignedByteOffsetForArgs___u__must_be_smaller_or_equal_to__u__buffer_size_in_bytes_._n
push eax
call fcn.10003e60
add esp, 0x1c
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100148f0
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100148f0
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1002051e
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 0x100205bb
push ebx
push esi
call fcn.100204e7
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.1002047b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10020568
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100205ba
push edi
push eax
call fcn.1001d081
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10020588
call fcn.1001d047
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100205b9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002047b
add esp, 0x20
test eax, eax
jne 0x100205a7
push edi
call fcn.1001d047
jmp 0x100205af
push ebx
call fcn.1001d047
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 0x10027580
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100275ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100275ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401410
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 4]
test eax, eax
mov dword [ebp - 4], 0
cmovne ecx, eax
push ecx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.00410a0e
add esp, 0x18
mov esp, ebp
pop ebp
ret