joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e229
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x40e246
cmp dword [0x41c9cc], edi
jne 0x40e398
cmp word [0x41c9d8], di
mov dword [0x41c9cc], 1
jne 0x40e278
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x41c9d4], eax
mov word [0x41c9d8], cx
cmp word [0x41c9d8], 2
jne 0x40e2b4
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x40e2b4
mov ecx, dword [0x41c9d4]
cmp ecx, edi
je 0x40e2b4
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x41c9d0], eax
jmp 0x40e39d
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.00402170
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x41c9d0], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40e398
cmp dword [ebp - 0x8c], 1
je 0x40e308
cmp dword [ebp - 0x8c], 2
jne 0x40e398
cmp dword [ebp - 0x98], 4
jae 0x40e377
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push 0x80000001
call dword [0x41e4b8]
test eax, eax
jne 0x40e398
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [0x41e4b4]
test eax, eax
jne 0x40e36c
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.00403530
add esp, 0xc
mov dword [0x41c9d0], eax
push dword [ebp + 8]
call dword [0x41e4ac]
jmp 0x40e398
cmp dword [ebp - 0x8c], 2
jne 0x40e398
cmp dword [ebp - 0x98], 4
jb 0x40e398
push edi
push 0x41c9d0
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x41c9d0]
pop edi
leave
ret

Function at 0x40efa5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x40efe9
push dword [ebp + 8]
call fcn.0041226c
mov esi, eax
test esi, esi
je 0x40f014
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [0x41e4b0]
push esi
mov edi, eax
call dword [0x41e4ac]
xor eax, eax
test edi, edi
sete al
jmp 0x40f014
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x4141cc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc
Function at 0x411920
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x411950
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x4119da
cmp dword [esp + 0x14], ebx
je 0x4119da
cmp esi, ebx
jne 0x411976
push 0x10
call fcn.0041173d
cmp eax, ebx
je 0x411965
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x411967
xor esi, esi
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.004116df
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x41198d
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x41199d
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x4119a9
call fcn.00408d05
mov eax, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
push ebx
lea eax, [ecx + eax*4]
push eax
call fcn.00402170
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8

Function at 0x411a10
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov ebx, ecx
pop edi
cmp dword [esi + 8], edi
mov dword [ebp - 4], edi
jle 0x411a63
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x411a46
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x411a46
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x411a5d
and dword [ebp - 4], 0
jmp 0x411a5d
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x411a56
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xc]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jl 0x411a27
cmp dword [ebp - 4], 0
je 0x411a91
push esi
lea ecx, [ebx + 0x14]
call fcn.004116f2
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x411a87
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x411e4f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x412c06
call fcn.00402150
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.00408ea3
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.00408ea3
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.00408d20
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x40a0c2
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x4011c9
Capabilities:
Get domain controller name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x490004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
push esi
push eax
push 0x40020010
xor esi, esi
push esi
push esi
push ecx
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x40124e
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x401204
sub ecx, edx
sar ecx, 1
push edi
lea edi, [ecx*2 + 2]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, eax
mov dword [ebx], ecx
test ecx, ecx
je 0x401242
mov eax, dword [ebp - 8]
xor esi, esi
push edi
inc esi
mov eax, dword [eax]
add eax, 4
push eax
push ecx
call fcn.00463550
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
pop edi
jmp 0x40125b
push eax
push 0x4858a8
call fcn.004012e8
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004614f6
leave
ret
Function at 0x401f85
Capabilities:
Encrypt data using rc4 via systemfunction033

Disassembly:
sub esp, 0x94
mov eax, dword [0x490004]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
push 0x10
pop eax
mov edi, ecx
mov dword [esp + 0x14], eax
xor ebp, ebp
mov dword [esp + 0x18], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x1c], eax
mov ebx, dword [edi + 4]
cmp dword [0x4928ec], ebp
je 0x4020c4
cmp dword [0x4928e8], ebp
je 0x4020c4
cmp dword [edi], 0x14
jb 0x4020bd
test ebx, ebx
je 0x4020bd
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.cryptdll.dll_MD5Init]
push dword [0x4928e8]
mov esi, dword [sym.imp.cryptdll.dll_MD5Update]
lea eax, [esp + 0x34]
push dword [0x4928ec]
push eax
call esi
push 0x10
push ebx
lea eax, [esp + 0x38]
push eax
call esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.cryptdll.dll_MD5Final]
mov eax, dword [edi]
sub eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction033]
test eax, eax
js 0x4020b6
mov esi, dword [edi]
lea eax, [ebx + 0x14]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], eax
push ecx
sub esi, 0x14
mov edx, eax
push esi
call fcn.00401106
add esp, 0xc
test eax, eax
je 0x4020af
mov eax, dword [esp + 0x2c]
cmp eax, dword [ebx + 0x10]
jne 0x40209c
mov ebx, dword [edi + 4]
push esi
call fcn.004016d4
mov dword [edi + 4], eax
test eax, eax
je 0x4020cf
push esi
push dword [esp + 0x14]
push eax
call fcn.00463550
add esp, 0xc
mov dword [edi], esi
inc ebp
test ebx, ebx
je 0x4020cf
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4020cf
push dword [ebx + 0x10]
push eax
push str.ERROR_alibaba_rpc_drsr_ProcessGetNCChangesReply_decrypt___Checksums_dont_match__C:0x_08x___R:0x_08x__n
call fcn.004012e8
add esp, 0xc
jmp 0x4020cf
push str.ERROR_alibaba_rpc_drsr_ProcessGetNCChangesReply_decrypt___Unable_to_calculate_CRC32_n
jmp 0x4020c9
push str.ERROR_alibaba_rpc_drsr_ProcessGetNCChangesReply_decrypt___RtlDecryptData2_n
jmp 0x4020c9
push str.ERROR_alibaba_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_valid_data_n
jmp 0x4020c9
push str.ERROR_alibaba_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_Session_Key_n
call fcn.004012e8
pop ecx
mov ecx, dword [esp + 0x9c]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004614f6
add esp, 0x94
ret
Function at 0x4020ea
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
sub esp, 0x9c
mov eax, dword [0x490004]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor edi, edi
test edx, edx
mov eax, 0x4928e8
push 0x10
cmovne eax, edx
mov edx, dword [ebx]
pop ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x28], ecx
lea ecx, [edx + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
cmp dword [eax + 4], edi
je 0x402240
cmp dword [eax], edi
je 0x402240
test edx, edx
je 0x402239
cmp dword [ebx + 4], edi
je 0x402239
push ecx
call fcn.004016d4
mov dword [esp + 0x10], eax
test eax, eax
je 0x40224b
push dword [ebx]
lea esi, [eax + 0x14]
mov ebp, eax
push dword [ebx + 4]
push esi
call fcn.00463550
add esp, 8
mov eax, ebp
add eax, 0x10
mov edx, esi
mov dword [esp + 0x20], eax
push eax
push dword [ebx]
call fcn.00401106
add esp, 0xc
test eax, eax
je 0x402225
push 0x10
push ebp
call dword [sym.imp.cryptdll.dll_CDGenerateRandomBits]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.cryptdll.dll_MD5Init]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.cryptdll.dll_MD5Update]
push dword [eax]
push dword [eax + 4]
lea eax, [esp + 0x40]
push eax
call esi
push 0x10
push ebp
lea eax, [esp + 0x40]
push eax
call esi
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.cryptdll.dll_MD5Final]
mov esi, dword [esp + 0x18]
add esi, 0x14
lea eax, [esi - 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
js 0x402214
mov ebp, dword [ebx + 4]
inc edi
mov eax, dword [esp + 0x10]
mov dword [ebx + 4], eax
mov dword [ebx], esi
jmp 0x40221f
push str.ERROR_alibaba_rpc_drsr_CreateGetNCChangesReply_encrypt___RtlEncryptData2_n
call fcn.004012e8
pop ecx
test ebp, ebp
je 0x40224b
jmp 0x402230
push str.ERROR_alibaba_rpc_drsr_CreateGetNCChangesReply_encrypt___Unable_to_calculate_CRC32_n
call fcn.004012e8
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40224b
push str.ERROR_alibaba_rpc_drsr_CreateGetNCChangesReply_encrypt___No_valid_data_n
jmp 0x402245
push str.ERROR_alibaba_rpc_drsr_CreateGetNCChangesReply_encrypt___No_Session_Key_n
call fcn.004012e8
pop ecx
mov ecx, dword [esp + 0xa4]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004614f6
add esp, 0x9c
ret
Function at 0x402928
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x18
mov eax, dword [0x490004]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esp + 0x20]
mov eax, ecx
mov ecx, dword [esp + 0x28]
push esi
push edi
mov edi, edx
mov dword [esp + 0xc], eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x10], ecx
push edx
xor esi, esi
lea edx, [esp + 0x18]
push edx
push esi
lea edx, [esp + 0x24]
mov dword [esp + 0x24], esi
push edx
push esi
push eax
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4029e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4029e1
mov eax, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add eax, eax
push eax
push 0x40
call ebp
mov dword [edi], eax
test eax, eax
je 0x4029e0
mov eax, dword [esp + 0x18]
add eax, eax
push eax
push 0x40
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], eax
test eax, eax
je 0x4029da
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
lea eax, [esp + 0x28]
push eax
push dword [edi]
push dword [esp + 0x24]
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test esi, esi
jne 0x4029e0
push dword [ebx]
call ebp
mov dword [ebx], eax
push dword [edi]
call ebp
mov dword [edi], eax
pop ebp
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004614f6
add esp, 0x18
ret
Function at 0x40a5ca
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [ecx + 8]
mov ebp, edx
push edi
mov edi, dword [esp + 0x10]
xor edx, edx
test edi, edi
jle 0x40a5f6
push ebx
mov ebx, dword [ecx]
mov al, byte [edx + ebp]
xor byte [ebx + esi], al
lea eax, [esi + 1]
xor esi, esi
cmp eax, dword [ecx + 4]
cmovl esi, eax
inc edx
cmp edx, edi
jl 0x40a5df
pop ebx
add dword [ecx + 0xc], edi
pop edi
mov dword [ecx + 8], esi
pop esi
pop ebp
ret

Function at 0x40db04
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
mov esi, dword [edi + 0x88]
test esi, esi
je 0x40db34
mov eax, dword [esp + 0x14]
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [edi + 0x88], eax
mov eax, dword [esi + 8]
and dword [esi + 0x10], 0
and dword [eax], 0
and dword [eax + 4], 0
jmp 0x40db96
movzx eax, word [edi + 0x8c]
cdq
add eax, 0x28
adc edx, 0
push edx
push eax
call fcn.00404936
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [ecx], esi
test esi, esi
jne 0x40db7f
mov eax, dword [edi + 0x98]
lea ecx, [ebp - 1]
push esi
cdq
push ecx
push edx
push eax
call fcn.00475440
mov ecx, dword [edi + 0x3c]
push edx
mov edx, dword [esp + 0x14]
push eax
call fcn.004042b4
pop ecx
pop ecx
push 7
pop eax
jmp 0x40dba5
lea eax, [esi + 0x28]
mov dword [esi + 0x14], edi
mov dword [esi + 8], eax
push 0x20
pop eax
mov word [esi + 0x1c], ax
xor eax, eax
inc eax
mov word [esi + 0x1e], ax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
mov dword [esi + 0x18], ebp
inc dword [edi + 0x78]
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x412d06
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
movzx eax, word [ecx + 0x12]
and dword [esp], 0
push ebx
push ebp
movzx ebp, byte [ecx + 9]
push esi
movzx esi, word [ecx + 0x18]
push edi
mov edi, dword [ecx + 0x38]
mov dword [esp + 0x14], edx
lea esi, [eax + esi*2]
mov dword [esp + 0x18], ecx
movzx ebx, byte [edi + ebp + 5]
movzx eax, byte [edi + ebp + 6]
shl ebx, 8
or ebx, eax
cmp esi, ebx
jbe 0x412d60
test ebx, ebx
jne 0x412d4f
mov eax, dword [ecx + 0x34]
mov ebx, 0x10000
cmp dword [eax + 0x24], ebx
je 0x412d60
mov ecx, 0xfe0c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.0045f8ea
cmp byte [edi + ebp + 2], 0
jne 0x412d6e
cmp byte [edi + ebp + 1], 0
je 0x412da7
lea eax, [esi + 2]
cmp eax, ebx
ja 0x412da7
lea eax, [esp + 0x10]
push eax
call fcn.00412c1f
pop ecx
test eax, eax
je 0x412d97
mov ecx, dword [esp + 0x20]
sub eax, edi
mov dword [ecx], eax
cmp eax, esi
jg 0x412df9
mov ecx, 0xfe1c
jmp 0x412d54
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x412dfb
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [esi + 2]
add eax, edx
cmp eax, ebx
jle 0x412de4
lfence
mov eax, dword [ecx + 0x14]
sub eax, edx
push 4
lea edx, [eax - 2]
pop eax
cmp edx, eax
cmovg edx, eax
call fcn.00412888
test eax, eax
jne 0x412dfb
movzx ecx, byte [edi + ebp + 5]
movzx eax, byte [edi + ebp + 6]
mov edx, dword [esp + 0x14]
shl ecx, 8
or ecx, eax
dec ecx
movzx ebx, cx
inc ebx
sub ebx, edx
mov eax, ebx
mov byte [edi + ebp + 6], bl
sar eax, 8
mov byte [edi + ebp + 5], al
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4301c7
Capabilities:
Reference sql statements

Disassembly:
push ecx
push ebx
push esi
push edi
push dword [esp + 0x14]
mov esi, edx
mov ebx, str.sqlite_master
push esi
push ebx
push esi
mov edi, ecx
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push edi
call fcn.00433a28
add esp, 0x18
cmp dword [esp + 0x14], 0
jne 0x430200
push esi
push ebx
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push edi
call fcn.00433a28
add esp, 0x10
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x45feb5
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
xor ecx, ecx
call fcn.0045ff36
push 0
push 0x45ff2a
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push dword [0x492be8]
push 1
call fcn.00467ec5
push eax
call fcn.0046862d
pop ecx
pop ecx
push eax
call fcn.0046843e
pop ecx
pop ecx
push dword [0x492be0]
push 2
call fcn.00467ec5
push eax
call fcn.0046862d
pop ecx
pop ecx
push eax
call fcn.0046843e
pop ecx
pop ecx
push dword [0x492be4]
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
cmp esi, 0xc000004b
pop esi
push 0
jne 0x45ff23
call dword [sym.imp.KERNEL32.dll_ExitThread]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x469baa
Capabilities:
Parse pe header

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

Function at 0x46c6c6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x479f7c
push 0x479f74
push str.FlsAlloc
push 0x1f
call fcn.0046c5a4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46c6fa
push dword [ebp + 8]
mov ecx, esi
call dword [0x4772cc]
call esi
jmp 0x46c700
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x46c744
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x479f8c
push 0x479f84
push str.FlsGetValue
push 0x21
call fcn.0046c5a4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46c77b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4772cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x46c783
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x479f94
push 0x479f8c
push str.FlsSetValue
push 0x22
call fcn.0046c5a4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46c7bd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4772cc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x46dfce
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x490004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x46e019
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0046e169
test al, al
jne 0x46e013
sub edx, 2
cmp edx, edi
jne 0x46dff9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x46e03b
lea eax, [edi + 2]
cmp edx, eax
je 0x46e03b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0046df1a
add esp, 0x10
jmp 0x46e135
push esi
lea ecx, [ebp - 0x255]
call fcn.0046e169
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46e07e
push dword [ebp - 0x25c]
jmp 0x46e02b
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x46e0bb
cmp word [ebp - 0x226], 0
je 0x46e0dc
cmp word [ebp - 0x226], ax
jne 0x46e0bb
cmp word [ebp - 0x224], 0
je 0x46e0dc
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0046df1a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x46e128
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x46e095
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x46e110
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x46e135
push 0x46dd4a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004728b0
add esp, 0x10
jmp 0x46e105
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004614f6
leave
ret

Function at 0x46ebf0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x46ec01
pop esi
ret
push ebx
push edi
push esi
call fcn.0046ebb9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046af73
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x46ec29
push ebx
push esi
push edi
call fcn.00463550
add esp, 0xc
push 0
call fcn.0046af39
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x46eff9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046ec3e