joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52bdf8
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], eax
mov eax, 0xedb88320
xor esi, esi
mov ebx, dword [esp]
mov edx, esi
mov ecx, 0xfffffff8
mov edi, edx
and edi, 1
dec edi
jne 0x52be1e
shr edx, 1
xor edx, eax
jmp 0x52be20
shr edx, 1
inc ecx
jne 0x52be10
mov dword [ebx], edx
inc esi
add ebx, 4
cmp esi, 0x100
jne 0x52be09
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x52be68
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x52bedc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x23
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x554b20]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.004064bc
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.00477248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52bee3
lea eax, [ebp - 0x20c]
call fcn.004062ac
ret

Function at 0x52bee8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x52bf57
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20a]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004064bc
mov eax, dword [ebp - 0x210]
mov edx, ebx
call fcn.00477248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52bf5e
lea eax, [ebp - 0x210]
call fcn.004062ac
ret
Function at 0x52d948
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, ebx
xor edx, edx
call fcn.004062bc
xor edx, edx
push ebp
push 0x52d9a0
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
push 0
push esi
lea edx, [ebp - 0x20e]
push edx
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, ebx
lea edx, [ebp - 0x20e]
mov ecx, 0x105
call fcn.004064bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52d9be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x52da04
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x52db0c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.0046f7b0
cmp dword [ebp - 4], 0
je 0x52da48
mov eax, dword [ebp - 4]
mov edx, 0x52db28
call fcn.00406908
jne 0x52da5c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
mov eax, dword [ebp - 0xc]
mov edx, 0x52db38
call fcn.00406690
jmp 0x52dacb
xor eax, eax
push ebp
push 0x52da90
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x65
mov eax, dword [ebp - 4]
call fcn.0046f374
test al, al
jne 0x52da86
mov eax, dword [ebp - 4]
call fcn.0046f398
dec ebx
jne 0x52da6f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52dacb
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
call fcn.00406348
push eax
call sub.kernel32.dll_GetFileAttributesW
test al, 1
setne al
test al, al
je 0x52daf6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
xor edx, edx
call fcn.0046f4c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52db13
lea eax, [ebp - 4]
call fcn.004062ac
ret

Function at 0x536f20
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x536fa0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetUserDefaultUILanguage_1
movzx eax, ax
mov ecx, 0x536fb8
mov edx, 0x59
call fcn.00475268
push dword [ebp - 4]
push 0x536fcc
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetUserDefaultUILanguage_1
movzx eax, ax
mov ecx, 0x536fdc
mov edx, 0x5a
call fcn.00475268
push dword [ebp - 8]
mov eax, ebx
mov edx, 3
call fcn.00406760
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536fa7
lea eax, [ebp - 8]
mov edx, 2
call fcn.004062b4
ret
Function at 0x53af18
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
add eax, 0xc
mov eax, dword [eax]
mov dword [edx + 0xc], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0xc]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
movzx ebx, cl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
shr ecx, 0x18
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x550244]
mov dword [edx + eax*4 + 0x10], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x14], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x18], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x1c], ecx
add eax, 4
cmp eax, 0x28
jl 0x53af43
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x53b004
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
add eax, 0x14
mov eax, dword [eax]
mov dword [edx + 0x14], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x14]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
movzx ebx, cl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
shr ecx, 0x18
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x550244]
mov dword [edx + eax*4 + 0x18], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x18]
mov dword [edx + eax*4 + 0x1c], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x20], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 0x10]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, ebx
mov dword [edx + eax*4 + 0x2c], ecx
add eax, 6
cmp eax, 0x2e
jl 0x53b03f
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x53b114
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
lea ecx, [eax + 0x14]
mov ecx, dword [ecx]
mov dword [edx + 0x14], ecx
lea ecx, [eax + 0x18]
mov ecx, dword [ecx]
mov dword [edx + 0x18], ecx
add eax, 0x1c
mov eax, dword [eax]
mov dword [edx + 0x1c], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x1c]
mov edi, ecx
shl edi, 0x18
shr ecx, 8
or edi, ecx
mov ecx, edi
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x18
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x550244]
mov dword [edx + eax*4 + 0x20], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x20]
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov edi, dword [edx + eax*4 + 0xc]
xor edi, ebx
mov dword [edx + eax*4 + 0x2c], edi
movzx ecx, byte [edx + eax*4 + 0x2c]
mov ecx, dword [ecx*4 + str.cwko0]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x18
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x30], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, dword [edx + eax*4 + 0x30]
mov dword [edx + eax*4 + 0x34], ecx
mov ebx, dword [edx + eax*4 + 0x18]
xor ebx, ecx
mov dword [edx + eax*4 + 0x38], ebx
mov ecx, dword [edx + eax*4 + 0x1c]
xor ecx, ebx
mov dword [edx + eax*4 + 0x3c], ecx
add eax, 8
cmp eax, 0x34
jl 0x53b15f
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x541e28
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x541e97
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetUserDefaultLangID
cmp ax, 0x411
je 0x541e7c
lea eax, [ebp - 4]
call fcn.00541bac
cmp dword [ebp - 4], 0
je 0x541e7c
push 0x541eb0
push 0x541eb0
push 1
lea eax, [ebp - 8]
call fcn.00541ce0
mov ecx, dword [ebp - 8]
mov eax, dword [0x551184]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.005376a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x541e9e
lea eax, [ebp - 8]
mov edx, 2
call fcn.004062b4
ret

Function at 0x541eb4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x541ebc
push ebx
xor eax, eax
push ebp
push 0x542113
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x542120
call sub.kernel32.dll_OutputDebugStringW
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x542150
mov edx, 0x542170
mov eax, 0x80000002
call fcn.004d5f60
cmp dword [ebp - 0x18], 0
jne 0x541f0b
push 0x5421ac
call sub.kernel32.dll_OutputDebugStringW
jmp 0x5420c9
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x5421e0
mov edx, 0x542170
mov eax, 0x80000002
call fcn.004d5f60
mov edx, 0x5421fc
mov eax, dword [ebp - 4]
call fcn.0046e620
test al, al
je 0x541f45
push 0x542204
call sub.kernel32.dll_OutputDebugStringW
jmp 0x5420c9
lea eax, [ebp - 0x24]
call fcn.004d63a4
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov ecx, 0x542238
call fcn.00406690
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4d464c]
call fcn.004d4710
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x542024
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 0x542268
call fcn.0046eebc
mov ebx, eax
lea eax, [ebp - 0x28]
call fcn.004d62d8
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x10]
mov ecx, 0x54227c
call fcn.00406690
mov eax, dword [ebp - 0x10]
call fcn.0046f32c
test al, al
je 0x541fcb
lea ecx, [ebp - 0x2c]
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.004d656c
mov eax, dword [ebp - 0x2c]
mov edx, ebx
call fcn.0046eebc
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x30], 0
lea edx, [ebp - 0x34]
xor ecx, ecx
mov eax, 0x5422ac
call fcn.004d7608
push 0
mov ecx, dword [ebp - 0x14]
mov edx, 0x5422c4
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 8]
dec eax
jne 0x54200e
push 0x5422d8
call sub.kernel32.dll_OutputDebugStringW
call fcn.00404db8
jmp 0x5420c9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54202b
mov eax, dword [ebp - 0x20]
call fcn.00404224
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54211a
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.004062b4
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004054e0
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.004062b4
lea eax, [ebp - 0x1c]
call fcn.004054bc
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004062b4
ret
Function at 0x401ba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x41a286
call fcn.0041984c
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x401c1d
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x401c1d
call fcn.00401225
mov esi, eax
jmp 0x401d23
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x401c40
call fcn.00401225
jmp 0x401d16
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x401c36
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x401c73
mov esi, 0x8007000e
jmp 0x401d18
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x401d46
jb 0x401c8e
cmp eax, 0xffffffff
ja 0x401d46
cmp eax, 0x400
jbe 0x401ca3
push eax
lea ecx, [ebp - 0x418]
call fcn.00405ec3
jmp 0x401cc5
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x401cc5
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x401c69
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x401c36
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00402758
mov esi, eax
test edi, edi
je 0x401d23
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x401d3c
lea ecx, [ebp - 0x418]
call fcn.00405eba
mov eax, esi
call fcn.00419799
ret 0x10
push 0x80070216
call fcn.004011a5
int3
Function at 0x4070d8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x20a
lea eax, [ebp - 0x41c]
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.004094e0
push edi
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.004094e0
add esp, 0x18
mov dword [ebp - 0x420], ebx
mov ecx, 0x105
mov dword [ebp - 0x428], ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], ebx
push ecx
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
push ecx
lea eax, [ebp - 0x41c]
push eax
push 0x42273c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, 0x104
test eax, eax
je 0x407178
push 0xa
push edi
push esi
push dword [ebp - 0x420]
call fcn.0040ce72
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x407192
push str.thsnYaViMRAeBoda
mov edx, edi
mov ecx, esi
call fcn.00403aa0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040787a
leave
ret
Function at 0x401380
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x2001f
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4013e8
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x18]
push ecx
push eax
push eax
lea edx, [esp + 0x20]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4013de
cmp dword [esp + 4], eax
jne 0x4013de
cmp dword [esp + 8], eax
jne 0x4013de
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 0xc
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
ret

Function at 0x4013f0
Capabilities:
Delete registry key
Set registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x403008]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
mov esi, dword [esp + 0x124]
mov ebx, dword [esp + 0x128]
push edi
mov edi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x20006
push 0
push 0x402483
push 0
push str.SOFTWAREFirebird_ProjectFirebird_ServerInstances
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40146b
push 0
push str.RegCreateKeyEx
push eax
call ebx
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00401658
add esp, 0x114
ret
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
movzx eax, ax
test ax, ax
je 0x4014ac
movzx ecx, ax
mov dl, byte [esp + ecx + 0x17]
cmp dl, 0x2f
lea ecx, [esp + ecx + 0x18]
je 0x4014ac
cmp dl, 0x5c
je 0x4014ac
mov byte [ecx], 0x5c
add eax, 1
movzx ecx, ax
mov byte [esp + ecx + 0x18], 0
mov ecx, dword [esp + 0xc]
movzx edx, ax
add edx, 1
push edx
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push str.DefaultInstance
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401523
mov edx, dword [esp + 0xc]
push edx
push str.RegSetValueEx
push eax
call ebx
add esp, 0xc
cmp dword [esp + 0x10], 1
jne 0x401507
push str.SOFTWAREFirebird_ProjectFirebird_ServerInstances
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, str.SOFTWAREFirebird_ProjectFirebird_Server
call fcn.00401380
mov esi, str.SOFTWAREFirebird_Project
call fcn.00401380
pop edi
pop esi
mov ax, 1
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00401658
add esp, 0x114
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor ax, ax
call fcn.00401658
add esp, 0x114
ret
Function at 0x401550
Capabilities:
Delete registry value

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push 0x2001f
push 0
push str.SOFTWAREFirebird_ProjectFirebird_ServerInstances
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401592
cmp byte [esp + 0x10], 0
je 0x401580
mov ax, 1
pop edi
pop ecx
ret
push 0
push str.RegOpenKeyEx
push eax
call dword [esp + 0x20]
add esp, 0xc
pop edi
pop ecx
ret
mov ecx, dword [esp + 4]
push esi
push str.DefaultInstance
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
test esi, esi
je 0x4015da
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x14], 0
je 0x4015c4
pop esi
mov eax, 1
pop edi
pop ecx
ret
push 0
push str.RegDeleteValue
push esi
call dword [esp + 0x24]
add esp, 0xc
pop esi
movzx eax, ax
pop edi
pop ecx
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, str.SOFTWAREFirebird_ProjectFirebird_ServerInstances
call fcn.00401380
mov esi, str.SOFTWAREFirebird_ProjectFirebird_Server
call fcn.00401380
mov esi, str.SOFTWAREFirebird_Project
call fcn.00401380
pop esi
xor ax, ax
pop edi
pop ecx
ret
Function at 0x40216f
Capabilities:
Get file attributes
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [esp + 4], 0x406a0a
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msys_1.0.dll_fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4021a0
mov dword [ebp - 0x70], 0
jmp 0x4022d3
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msys_1.0.dll_fileno
mov edx, eax
lea eax, [ebp - 0x68]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msys_1.0.dll_fstat
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4021d8
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.stat_ing__s_n
call fcn.00403b43
mov eax, dword [ebp - 0x60]
and eax, 0xf000
cmp eax, 0x8000
je 0x402212
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.error_file__s_is_not_a_regular_file_n
mov eax, dword [0x409164]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.msys_1.0.dll_fprintf
mov dword [esp], 1
call sub.msys_1.0.dll_exit
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xf
ja 0x402238
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.Error_file__s_only_contains__d_bytes._n_tit_cannot_contain_autogen_definitions_n
call fcn.00403aec
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [esp], eax
call sub.msys_1.0.dll_malloc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
jne 0x402267
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [esp + 4], eax
mov dword [esp], str.Error:_could_not_allocate__d_bytes_n
call fcn.00403aec
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.msys_1.0.dll_fread
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x4022a4
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.reading_file__s_n
call fcn.00403b43
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x18]
add dword [eax], edx
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x1c]
sub dword [eax], edx
cmp dword [ebp - 0x1c], 0
je 0x4022bc
jmp 0x402267
mov eax, dword [ebp - 0x18]
mov byte [eax], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msys_1.0.dll_fclose
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
leave
ret
Function at 0x4022d8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x409140]
mov dword [ebp - 4], eax
mov eax, dword [0x40913c]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x402300
mov dword [esp], 1
call sub.msys_1.0.dll_exit
mov eax, dword [ebp - 8]
mov edx, eax
lea eax, [ebp - 8]
add dword [eax], 4
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
dec dword [eax]
cmp dword [ebp - 4], 0
jns 0x40231d
jmp 0x402355
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msys_1.0.dll_fputs
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msys_1.0.dll_free
cmp dword [ebp - 4], 0
jle 0x402300
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.msys_1.0.dll_fputc
jmp 0x402300
mov eax, dword [0x40913c]
mov dword [esp], eax
call sub.msys_1.0.dll_free
leave
ret