joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010a780
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1027edec], 0
mov byte [0x1027edf0], 0
mov dword [0x1027ede8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1010a7cd
mov eax, dword [0x1027ede0]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x1010a814
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1027ede0], 0x1fdd
mov eax, dword [0x1027ede8]
add eax, 1
mov dword [0x1027ede8], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1010a7cd
mov eax, 0x1fdd
xor ecx, ecx
mov dword [0x1027ede8], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
add ecx, 0xfffff6b9
mov dword [ebp - 0x2c], eax
xor esi, esi
mov dword [ebp - 0x30], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x1027edf4], 0
mov edi, dword [0x1027edec]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x1027edf4], esi
mov dword [0x1027ede4], 0x1dfc
mov eax, esi
cdq
mov esi, dword [ebp - 0x30]
idiv esi
mov dword [0x1027edec], edx
mov dword [0x1027ede0], ecx
mov ecx, dword [ebp - 0x2c]
mov cl, byte [ebx + ecx]
mov byte [0x1027edf0], cl
mov dword [0x1027ede4], 0xe30
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x2c]
mov byte [ebx + edx], cl
mov ecx, dword [0x1027ede4]
add ecx, 0xfffffd81
mov dword [0x1027ede0], ecx
mov cl, byte [0x1027edf0]
mov edx, dword [0x1027edec]
mov byte [ebx + edx], cl
mov edx, dword [0x1027ede8]
add edx, 1
mov dword [0x1027ede8], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1010a7bd
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1010b9c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x1027ede0], 0x512
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1010ba28
xor eax, eax
mov dword [0x1027ede4], 0x1864
mov dword [ebp - 0x14], eax
jmp 0x1010bad7
mov eax, dword [ebp - 0x18]
mov dword [0x1027ede4], 0x11c4
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
je 0x1010ba57
jmp 0x1010b9f6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edx
je 0x1010ba0a
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
jl 0x1010ba28
jmp 0x1010ba0a
mov dword [0x1027ede4], 0x2624
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1010b9f6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1010b9f6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1010b9f6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1010b9f6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1010b9f6
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x14], eax
jne 0x1010b9f6
mov eax, dword [ebp - 0x14]
add esp, 0x20
pop ebp
ret
Function at 0x1010bec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x1027ede8], 0
mov dword [0x1027edec], 0
mov dword [0x1027edf8], 0
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x1010c01d
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x1010bf1b
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, eax
add edi, 1
mov dword [0x1027ede0], 0x1e8a
add edx, 1
mov dword [ebp - 0x2c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x1027ede8], edx
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1027edec], edx
mov dword [0x1027ede0], 0x40c5
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x1027edf0], cl
mov dword [0x1027ede4], 0x471
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x1027edf0]
mov edx, dword [0x1027edec]
mov byte [ebx + edx], cl
mov edx, dword [0x1027ede8]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x1027edec]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x1027edf8], ecx
mov dword [0x1027ede0], 0x1cd9
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov dword [0x1027ede4], 0xbad
mov dword [0x1027ede0], 0x1439
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x34], edi
je 0x1010c01b
mov eax, dword [0x1027ede8]
mov ecx, dword [0x1027edec]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edx
jmp 0x1010bf1b
jmp 0x1010c01d
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1010c030
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x1027ede0], 0x20bf
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.1010a910
lea ecx, [0x1010a680]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x54], edx
mov dword [esp + 0x88], 0x141c00
mov edx, dword [0x1027edcc]
mov dword [esp + 0x40], edx
mov edx, dword [0x1027edd0]
mov dword [esp + 0x84], edx
mov edx, dword [0x1027edd4]
mov dword [esp + 0x60], edx
mov edx, dword [0x1027edd8]
mov dword [esp + 0x3c], edx
mov edx, dword [0x1027eddc]
mov dword [esp + 0x58], edx
mov dword [0x1027ede0], 0x212d
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x1010c144
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x1010c144
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1010b2d0
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x1027ede0], 0x1ed4
mov dword [esp + 0x14], eax
jmp 0x1010c13c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x6c], eax
mov dword [0x1027ede4], 0x1fcc
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x90], eax
call fcn.1010b9c0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x14], ecx
je 0x1010c0d3
mov eax, dword [esp + 0x14]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
jne 0x1010c0bf
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
je 0x1010c109
jmp 0x1010c0bf
Function at 0x100018e0
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 0x10001950
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 0x10001960
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 0x10001d10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
lea eax, [ebp - 0x18]
sub esp, 0x30
mov dword [ebp - 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersion
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x10001e28
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], 0
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
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
call esi
mov edx, dword [ebp - 0x18]
sub esp, 0x18
test eax, eax
jne 0x10001d99
cmp dword [ebp - 0x10], 1
je 0x10001dc0
mov dword [ebp - 0x1c], 0
test edx, edx
je 0x10001db0
mov dword [esp], edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], edx
add eax, 2
mov dword [ebp - 0x20], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x24]
test eax, eax
mov ecx, eax
mov dword [ebp - 0x1c], eax
je 0x10001e28
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [ebp - 0x20], ecx
mov dword [esp], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
call esi
mov edx, dword [ebp - 0x18]
sub esp, 0x18
test eax, eax
mov ecx, dword [ebp - 0x20]
je 0x10001da0
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
lea esi, [esi]
mov edx, dword [ebp - 0x18]
jmp 0x10001d99
Function at 0x10003640
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x40]
push ebx
lea esi, [ebp - 0x3c]
sub esp, 0x5c
mov dword [ebp - 0x4c], eax
mov ebx, dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x3c], 0xffff
mov dword [edx], 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], esi
mov dword [esp], 0x6b
call ebx
sub esp, 0x18
cmp eax, 0xc0000004
jne 0x10003778
mov ecx, dword [ebp - 0x40]
mov dword [esp], ecx
mov dword [ebp - 0x48], ecx
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x48]
test eax, eax
mov dword [ebp - 0x44], eax
je 0x100037b6
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
mov eax, dword [ebp - 0x44]
mov dword [esp + 8], 4
mov dword [esp + 4], esi
mov dword [esp], 0x6b
mov dword [esp + 0xc], eax
call ebx
sub esp, 0x18
mov edi, eax
test eax, eax
jne 0x10003768
mov edx, dword [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x48], 0
xor esi, esi
test edx, edx
jne 0x10003716
jmp 0x100037f0
add esi, 1
test byte [ecx + 8], 1
mov ebx, 1
cmovne edi, ebx
add eax, dword [ecx + 4]
cmp eax, edx
jae 0x10003735
mov ebx, dword [ebp - 0x44]
lea ecx, [ebx + eax]
mov ebx, dword [ecx]
test ebx, ebx
je 0x10003700
cmp ebx, 3
sete bl
add eax, dword [ecx + 4]
movzx ebx, bl
add dword [ebp - 0x48], ebx
cmp eax, edx
jb 0x10003716
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x1000374a
mov dword [eax], esi
mov eax, dword [ebp - 0x50]
test edi, edi
mov edx, dword [ebp - 0x48]
mov dword [eax], edx
lea eax, [esi + esi]
cmovne esi, eax
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
lea esi, [esi]
lea eax, [ebp - 0x38]
mov dword [esp + 0xc], 0
mov esi, 1
mov dword [esp + 8], 0x2c
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
sub esp, 0x10
test eax, eax
jne 0x1000375a
movzx esi, byte [ebp - 0x10]
lea esp, [ebp - 0xc]
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
xor eax, eax
xor edx, edx
mov dword [esp + 8], 0x2c
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
sub esp, 0x10
test eax, eax
je 0x100037a8
mov esi, 1
jmp 0x1000375a
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x10003819
mov dword [eax], 0
mov eax, dword [ebp - 0x50]
xor esi, esi
mov dword [eax], 0
jmp 0x1000375a
mov eax, dword [ebp - 0x50]
xor esi, esi
mov dword [eax], 0
jmp 0x1000375a
Function at 0x1000ede0
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 0x1000ef50
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000eec0
test cx, cx
je 0x1000ef40
mov ebx, edx
nop
add ebx, 2
cmp word [ebx], 0
jne 0x1000ee10
sub ebx, edx
sar ebx, 1
cmp word [esi], 0
je 0x1000ee37
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1000ee28
sub eax, esi
sar eax, 1
add ebx, eax
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x1000ee50
add eax, 2
cmp word [eax], 0
jne 0x1000ee40
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 0x1000efb8
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.1000ed90
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.10011780
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 0x1000ef50
test cx, cx
je 0x1000efa5
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x1000eed8
sub eax, edx
sar eax, 1
cmp word [esi], 0
je 0x1000eeff
mov ecx, esi
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x1000eef0
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 0x1000efb8
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.1000ed90
jmp 0x1000ee92
xor ebx, ebx
jmp 0x1000ee1d
mov eax, edx
test cx, cx
je 0x1000efac
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x1000ef60
sub eax, edx
lea ecx, [eax + 0x58]
sar eax, 1
lea ebx, [eax + 0x2c]
mov dword [ebp - 0x14], edx
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x1000efb8
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.1000ed90
jmp 0x1000ee92
xor eax, eax
jmp 0x1000eee5
mov ebx, 0x2c
mov ecx, 0x58
jmp 0x1000ef73
mov ebx, 0x8007000e
jmp 0x1000eeb3
Function at 0x1000fde0
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 0x1000fe50
movzx eax, word [ebp - 0x2c]
test ax, ax
je 0x1000fe34
mov ebx, dword [sym.imp.ucrtbase.dll_towupper]
mov edi, esi
lea esi, [esi]
nop
mov dword [esp], eax
add edi, 2
call ebx
mov word [edi - 2], ax
movzx eax, word [edi]
test ax, ax
jne 0x1000fe20
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 0x10017dc0
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 0x1001a8e0
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 0x1001a940
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 0x1001a932
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.10017dc0
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 0x1001a932
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + str.SELECT__FROM]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x1001a958
cmp word [ebx], 0
mov edx, ebx
mov esi, dword [edi]
je 0x1001a981
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x1001a978
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [esi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1001a988
add esp, 0x18
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x10020560
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 0x10020618
mov dword [esp], ebx
call eax
sub esp, 4
test eax, eax
mov dword [ebx + 8], eax
jns 0x100205a0
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 0x1002058c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x1002064d
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 0x1002057d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x1002058e
Function at 0x403bb7
Capabilities:
Accept command line arguments
Terminate process
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
test esi, esi
je 0x403c40
xor ebx, ebx
test edi, edi
jne 0x403bd7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x403c0d
mov dword [ebp - 4], 0x402d68
js 0x403be7
mov dword [ebp - 4], 0x402d78
push 0x1000
call fcn.0040680c
mov ebx, eax
pop ecx
test ebx, ebx
je 0x403c53
push esi
push edi
push dword [ebp - 4]
push 0x1000
push ebx
call fcn.00406caa
add esp, 0x14
mov esi, ebx
mov ecx, eax
mov eax, dword [0x415a5c]
push 0
test eax, eax
je 0x403c29
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x403c39
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.00406906
pop ecx
call dword [sym.imp.msi.dll_MsiConfigureFeatureA]
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4060e3
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
or dword [ebp - 8], 0xffffffff
mov eax, ecx
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x18], edx
push ecx
xor edi, edi
mov dword [ebp - 0x10], eax
push eax
mov esi, edi
mov dword [ebp - 4], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
je 0x406166
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x406129
push 8
pop edi
or ebx, 0xffffffff
jmp 0x40617c
push esi
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x406166
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0x4035ec
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x40616e
cmp dword [ebp - 0x14], edi
je 0x40616e
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
jmp 0x406171
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or ebx, 0xffffffff
test esi, esi
je 0x40617c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x406185
mov dword [eax], ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x406191
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret