joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402270
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x10014
call fcn.0041ffa0
mov ecx, dword [0x43200c]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
xor ebx, ebx
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [edx], ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp eax, 0xffffffff
je 0x402469
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
cmp eax, 0xffffffff
je 0x40245a
xor ebx, ebx
push ebx
mov dword [ebp - 0x1001c], esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push ebx
mov dword [ebp - 0x10018], edi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, 0xffffffff
je 0x402449
mov edi, esi
mov ecx, dword [ebp - 0x10018]
mov esi, dword [ebp - 0x1001c]
cmp eax, 0xffffffff
je 0x40245a
cmp edi, eax
jne 0x402457
mov dword [ebp - 0x10020], edi
shr edi, 0xf
je 0x4023ca
lea ebx, [ebp - 0x8010]
push 0
lea eax, [ebp - 0x10014]
push eax
push 0x8000
mov esi, ebx
push ebx
push dword [ebp - 0x1001c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
test eax, eax
je 0x402449
cmp dword [ebp - 0x10014], 0x8000
jne 0x402449
push 0
lea eax, [ebp - 0x10014]
push eax
push 0x8000
lea eax, [ebp - 0x10010]
push eax
push dword [ebp - 0x10018]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402449
cmp dword [ebp - 0x10014], 0x8000
jne 0x402449
push 0x8000
lea eax, [ebp - 0x10010]
push eax
mov ebx, esi
push esi
call fcn.0040ee27
add esp, 0xc
test eax, eax
jne 0x402446
dec edi
jne 0x402334
mov esi, dword [ebp - 0x10020]
and esi, 0x7fff
je 0x40243d
lea edi, [ebp - 0x10014]
lea eax, [ebp - 0x8010]
push 0
push edi
push esi
push eax
push dword [ebp - 0x1001c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
test eax, eax
je 0x402449
cmp dword [ebp - 0x10014], esi
jne 0x402449
lea ecx, [ebp - 0x10010]
push 0
push edi
mov edi, ecx
push esi
push ecx
push dword [ebp - 0x10018]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402449
cmp dword [ebp - 0x10014], esi
jne 0x402449
push esi
push edi
lea eax, [ebp - 0x8010]
push eax
call fcn.0040ee27
add esp, 0xc
test eax, eax
jne 0x402446
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x10018]
mov esi, dword [ebp - 0x1001c]
jmp 0x40245a
xor ebx, ebx
inc ebx
mov eax, ecx
inc eax
cmp eax, 2
jb 0x402469
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
inc eax
cmp eax, 2
jb 0x402478
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dec1
mov eax, ebx
add esp, 0x10014
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100011fb
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10015040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x100012db
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100012d4
push ebx
cmp dword [ebp - 0x20], 0x10
jb 0x100012b9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x100012b9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100012b9
mov edx, dword [esi]
test edx, edx
jne 0x10001287
push 0x200
push edx
push dword [0x10016568]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100012d3
lea ebx, [esi + 8]
jmp 0x100012af
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x100012af
shl eax, 3
push eax
push edx
push 0
push dword [0x10016568]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100012d3
shl dword [esi + 4], 1
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1000123f
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100024ca
leave
ret

Function at 0x100012e9
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.100011fb
cmp dword [esi], ebx
je 0x10001349
push edi
mov edi, ebx
cmp dword [esi + 8], ebx
jbe 0x10001348
mov eax, dword [esi]
push dword [eax + edi*4]
push ebx
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1000133f
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.100010a8
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
push 0
pop ebx
cmp edi, dword [esi + 8]
jb 0x1000130f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000134d
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x10001399
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10001388
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10001381
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1000135e
pop ebx
push dword [esi]
push 0
push dword [0x10016568]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret
Function at 0x1000139b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
imul esi, ecx, 0x2c
push edi
mov edi, edx
mov dword [ebp - 0x10], edi
add esi, dword [0x10016580]
mov dword [ebp - 8], esi
mov al, byte [esi + 0x14]
mov ebx, dword [esi]
and al, 1
je 0x100013c1
sub ebx, 5
movzx eax, al
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100013e8
push 0xa
pop eax
jmp 0x10001468
test edi, edi
je 0x10001409
mov byte [ebx], 0xe9
mov eax, dword [esi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [esi + 0x14], 1
je 0x10001428
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10001428
test byte [esi + 0x14], 1
je 0x1000141d
lea esi, [esi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
jmp 0x10001428
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
mov al, byte [esi + 0x10]
mov byte [ebx + 4], al
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x10]
mov cl, dl
add cl, cl
shl dl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor dl, cl
and dl, 4
xor dl, cl
xor eax, eax
mov byte [esi + 0x14], dl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10001a93
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x1001657c]
push esi
xor esi, esi
jmp 0x10001aa5
cmp dword [edx + 4], esi
jne 0x10001af9
mov edx, dword [edx]
test edx, edx
jne 0x10001a9e
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x10001af5
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x10001acc
mov eax, dword [0x1001657c]
mov dword [edx], eax
mov dword [0x1001657c], edx
pop edi
test edx, edx
jne 0x10001af9
xor eax, eax
pop esi
ret
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret

Function at 0x10002140
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1000215e
push 0
push 0
push 0
push 0x10002100
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x100054a7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100054e6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100054e6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100054e6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100054e6
cmp dword [ecx + 0x74], 0xe
jbe 0x100054e6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000816f
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 0x1000820c
push ebx
push esi
call fcn.10008138
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.100080cc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100081b9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000820b
push edi
push eax
call fcn.1000912a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100081d9
call fcn.10006c14
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000820a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100080cc
add esp, 0x20
test eax, eax
jne 0x100081f8
push edi
call fcn.10006c14
jmp 0x10008200
push ebx
call fcn.10006c14
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 0x10008479
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f550
push 0x1000f548
push str.FlsAlloc
push 0x1f
call fcn.10008395
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100084ad
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e150]
call esi
jmp 0x100084b3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100084f7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f560
push 0x1000f558
push str.FlsGetValue
push 0x21
call fcn.10008395
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000852e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10008536
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f568
push 0x1000f560
push str.FlsSetValue
push 0x22
call fcn.10008395
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008570
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000e150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000dbf0
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10003db0
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebp
push esi
xor ebp, ebp
push edi
mov esi, ecx
mov dword [eax], ebp
call fcn.10003c90
mov eax, dword [esp + 0x1c]
push eax
mov dword [esi], eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esi]
mov edi, eax
lea edx, [ecx + edi*2]
lea eax, [edi + 4]
mov ecx, eax
shr ecx, 2
sub eax, ecx
shr eax, 0xc
inc eax
shl eax, 0xc
push eax
mov dword [esp + 0x18], edi
mov dword [esi + 4], edx
call fcn.1001f3e6
add esp, 4
cmp eax, ebp
mov dword [esi + 0xc], eax
jne 0x10003e0c
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret 8
push ebx
mov dword [esi + 0x10], ebp
mov dword [esi + 8], eax
mov dword [esp + 0x14], 4
mov edx, dword [esp + 0x10]
lea eax, [ebp + 4]
cmp eax, edi
jbe 0x10003e34
mov eax, edi
sub eax, ebp
xor edx, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov ecx, dword [esi + 0x10]
mov eax, dword [esp + 0x14]
add ecx, 3
xor ebx, ebx
test eax, eax
mov dword [esi + 0x10], ecx
jle 0x10003ea0
mov eax, dword [esi]
xor ecx, ecx
mov cl, byte [eax]
add eax, 2
mov dword [esi], eax
and ecx, 0xff
mov edi, ecx
push edi
inc ebp
call fcn.1001fc68
add esp, 4
test eax, eax
jne 0x10003e77
cmp edi, 0x2b
je 0x10003e77
cmp edi, 0x2f
je 0x10003e77
cmp edi, 0x3d
jne 0x10003e47
mov al, byte [edi + esi + 0x15]
cmp al, 0xff
mov byte [esp + ebx + 0x10], al
jne 0x10003e8f
mov eax, dword [esi + 0x10]
dec eax
mov byte [esp + ebx + 0x10], 0
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jl 0x10003e47
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov cl, dl
shl cl, 2
mov al, dh
shr al, 4
and al, 3
or al, cl
mov cl, byte [esp + 0x12]
shr cl, 2
and cl, 0xf
mov dl, dh
shl dl, 4
or cl, dl
mov dx, word [esp + 0x12]
mov bl, dh
shl dl, 6
and bl, 0x3f
or bl, dl
mov edx, dword [esi + 8]
mov byte [edx], al
mov byte [esp + 0x22], bl
mov ebx, dword [esi + 8]
inc ebx
mov dword [esi + 8], ebx
mov eax, ebx
mov byte [eax], cl
mov edx, dword [esi + 8]
mov cl, byte [esp + 0x22]
inc edx
mov dword [esi + 8], edx
mov eax, edx
mov byte [eax], cl
mov ecx, dword [esi + 8]
inc ecx
cmp ebp, edi
mov dword [esi + 8], ecx
jb 0x10003e1b
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x24]
pop ebx
pop edi
mov dword [eax], edx
mov eax, dword [esi + 0xc]
pop esi
pop ebp
add esp, 0xc
ret 8

Function at 0x100042d0
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x100042ef
push 0x12c3
push str.D:mvstudio.netVC7_atlmfcinclude_atlbase.h
push str.m_hKey___0
call fcn.10003b80
add esp, 0xc
mov eax, dword [esp + 8]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop esi
ret 4

Function at 0x10004450
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x1000446f
push 0x13ed
push str.D:mvstudio.netVC7_atlmfcinclude_atlbase.h
push str.m_hKey___0
call fcn.10003b80
add esp, 0xc
mov ecx, dword [esp + 8]
mov edx, dword [esi]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 8
Function at 0x10004490
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x100044b1
push 0x13f9
push str.D:mvstudio.netVC7_atlmfcinclude_atlbase.h
push str.m_hKey___0
call fcn.10003b80
add esp, 0xc
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x100044d0
push 0x13fa
push str.D:mvstudio.netVC7_atlmfcinclude_atlbase.h
push str.pszValue___0
call fcn.10003b80
add esp, 0xc
mov ebx, dword [esp + 0x18]
cmp ebx, 1
je 0x100044f5
cmp ebx, 2
je 0x100044f5
push 0x13fb
push str.D:mvstudio.netVC7_atlmfcinclude_atlbase.h
push str._dwType____1______dwType____2___
call fcn.10003b80
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [edi]
inc eax
push eax
mov eax, dword [esp + 0x14]
push esi
push ebx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x10004520
Capabilities:
Set registry value

Disassembly:
push ecx
cmp dword [ecx], 0
mov dword [esp], ecx
jne 0x10004541
push 0x1406
push str.D:mvstudio.netVC7_atlmfcinclude_atlbase.h
push str.m_hKey___0
call fcn.10003b80
add esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
push esi
push edi
jne 0x10004564
push 0x1407
push str.D:mvstudio.netVC7_atlmfcinclude_atlbase.h
push str.pszValue___0
call fcn.10003b80
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
xor edi, edi
mov esi, ebp
mov edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x10004570
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x10004aa0
Capabilities:
Query or enumerate registry key

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push ecx
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x10004aee
push 0x369
push str.D:mvstudio.netVC7_atlmfcinclude_statreg.h
push 0x1002f710
call fcn.10003b80
add esp, 0xc
xor eax, eax
pop ecx
ret 4
mov eax, dword [esp]
xor edx, edx
cmp edx, eax
sbb eax, eax
neg eax
pop ecx
ret 4
Function at 0x100050c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [esp + 0x114]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebx]
push 0x2001f
push eax
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
call fcn.100043c0
mov esi, eax
test esi, esi
je 0x10005111
mov eax, dword [esp + 8]
test eax, eax
je 0x100051d4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
add esp, 0x110
ret 4
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push edx
mov dword [esp + 0x30], 0x100
call edi
test eax, eax
jne 0x10005180
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
call fcn.100050c0
mov esi, eax
test esi, esi
jne 0x100051e1
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push esi
push ecx
mov dword [esp + 0x30], 0x100
call edi
test eax, eax
je 0x10005142
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10005199
push eax
call edi
mov dword [esp + 0xc], 0
cmp dword [ebx], 0
jne 0x100051b5
push 0x12c3
push str.D:mvstudio.netVC7_atlmfcinclude_atlbase.h
push str.m_hKey___0
call fcn.10003b80
add esp, 0xc
mov edx, dword [esp + 0x120]
mov eax, dword [ebx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100051d3
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x110
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100051d3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x110
ret 4
Function at 0x10007490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
mov esi, ecx
call dword [0x10037130]
mov ebx, dword [ebp + 8]
mov edi, eax
xor eax, eax
cmp ebx, eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x40c], eax
je 0x100074de
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.1001f4b0
mov eax, esp
push edi
push esi
push ebx
push eax
call fcn.10004080
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
mov dword [ebp + 8], esi
jne 0x100074fe
call fcn.100041b0
mov edi, eax
jmp 0x10007596
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x1000751a
call fcn.100041b0
jmp 0x1000758d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x1000752f
call fcn.100041b0
jmp 0x1000758d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea edx, [ebx + 1]
push edx
lea ecx, [ebp - 0x40c]
call fcn.10005b00
mov eax, dword [ebp - 0x40c]
test eax, eax
jne 0x10007559
mov edi, 0x8007000e
jmp 0x1000758f
mov edx, dword [ebp + 0x14]
mov esi, edi
mov edi, eax
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x40c]
mov byte [ebx + ecx], 0
mov eax, dword [ebp - 0x40c]
push edx
push eax
lea ecx, [ebp - 8]
call fcn.10007110
mov esi, dword [ebp + 8]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x40c]
lea ecx, [ebp - 0x408]
cmp eax, ecx
je 0x100075b1
lea ecx, [ebp - 0x40c]
call fcn.10004200
mov eax, edi
lea esp, [ebp - 0x418]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001e9d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xd0
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
mov ebx, 0x1005d908
jmp 0x1001e9f0
mov ecx, 0xa
mov esi, str.SoftwareSybaseAdaptive_Server_Anywhere
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001ea06
mov ax, word [0x100309dc]
mov word [edi], ax
mov eax, dword [esp + 0xe4]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001ea20
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001ea30
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x24]
push edx
push eax
call ebp
test eax, eax
jne 0x1001eaaa
mov edx, dword [esp + 0xec]
lea ecx, [esp + 0xf0]
push ecx
mov ecx, dword [esp + 0xec]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1001eaaa
mov ecx, dword [esp + 0xf4]
cmp dword [esp + 0x14], ecx
je 0x1001eac6
add ebx, 4
cmp ebx, 0x1005d910
jl 0x1001e9f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd0
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd0
ret

Function at 0x1001ecf0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1001ed0e
mov eax, esi
pop esi
ret
mov byte [esi], 0
xor eax, eax
pop esi
ret

Function at 0x1001f2ad
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1005dde0]
xor eax, dword [ebp + 0x7c]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.1001f27d
and byte [esi + 0xc], 0
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
call fcn.10022e60
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x1001f312
cmp dword [ebp - 0x1c], 5
jb 0x1001f32a
jmp 0x1001f326
cmp dword [ebp - 0x10], 1
jne 0x1001f32a
cmp dword [ebp - 0x1c], 4
ja 0x1001f326
jne 0x1001f32a
cmp dword [ebp - 0x18], 0
jbe 0x1001f32a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x10033e60
call fcn.10004130
test eax, eax
jge 0x1001f34b
mov byte [0x1005e8e0], 1
mov ecx, dword [ebp + 0x74]
xor ecx, dword [ebp + 0x7c]
mov eax, esi
pop esi
call fcn.10022e4e
add ebp, 0x78
leave
ret