joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55207b
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00551eea
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5521ea
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5521ea
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x55219f
jg 0x5520d7
test eax, eax
je 0x552195
push 1
push 0x1000
call fcn.0041141e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5520fa
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x55218c
push 0x8000
push ebx
call fcn.0040c4a8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x552123
jg 0x55211e
cmp ecx, 0x1000
jb 0x552123
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041ed8f
add esp, 0x10
cmp eax, 0xffffffff
je 0x552168
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x55211e
jl 0x55214f
test ecx, ecx
jne 0x552110
push dword [ebp - 0xc]
push ebx
call fcn.0040c4a8
push esi
call fcn.0040fe80
add esp, 0xc
xor ebx, ebx
jmp 0x5521f8
cmp byte [edi + 0x24], 0
je 0x55217f
cmp dword [edi + 0x20], 5
jne 0x55217f
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x55218a
mov ebx, dword [edi + 0x18]
jmp 0x55218c
xor ebx, ebx
push esi
call fcn.0040fe80
pop ecx
jmp 0x5521f8
test ecx, ecx
jg 0x552161
jl 0x55219f
test eax, eax
jae 0x552161
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00420dfd
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5521bf
cmp byte [edi + 0x1c], 0
je 0x552161
jmp 0x5521f0
push ebx
call fcn.00412d43
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x552161
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5521f8
cmp byte [edi + 0x1c], 0
je 0x5521f5
mov ebx, dword [edi + 0x18]
jmp 0x5521f8
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00420dfd
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401220
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
push ebx
push edi
xor eax, eax
xor edi, edi
xor ebx, ebx
test ecx, ecx
mov dword [ebp - 8], eax
je 0x401328
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x401328
push esi
mov esi, 0x105
mov dword [ebp - 4], esi
test edi, edi
je 0x40125f
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call fcn.00424844
mov edi, eax
add esp, 4
test edi, edi
je 0x401324
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
test esi, esi
je 0x401302
cmp esi, dword [ebp - 4]
jbe 0x40128f
inc esi
mov dword [ebp - 4], esi
jmp 0x401252
mov eax, dword [ebp + 0xc]
lea ecx, [esi + eax + 2]
push ecx
call fcn.00424844
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401302
push esi
push edi
push ebx
call dword [sym.imp.MSVCR71.dll_strncpy]
mov al, byte [esi + edi - 1]
mov edx, dword [ebp + 0xc]
add esp, 0xc
add esi, ebx
cmp al, 0x5c
mov eax, dword [ebp + 8]
push edx
push eax
jne 0x4012df
push esi
call dword [sym.imp.MSVCR71.dll_strncpy]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push ebx
mov byte [esi + ecx], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x401305
lea ecx, [esi + 1]
push ecx
mov byte [esi], 0x5c
call dword [sym.imp.MSVCR71.dll_strncpy]
mov edx, dword [ebp + 0xc]
add esp, 0xc
push ebx
mov byte [esi + edx + 1], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x401305
mov esi, dword [ebp - 8]
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
test ebx, ebx
je 0x40131b
push ebx
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409aa0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
lea eax, [esi + 4]
push eax
xor edi, edi
push edi
push esi
push 0x4099f0
push edi
push edi
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi], eax
jne 0x409ae0
mov ecx, dword [esi + 0x30]
push eax
push 0x8caf
push 1
push ecx
call fcn.0040e170
add esp, 0x10
pop edi
mov eax, 0x80004005
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x409f40
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
lea eax, [ebx + 0x14]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx]
test edi, edi
je 0x409f9c
mov esi, dword [edi]
mov eax, dword [esi + 0x10]
and eax, 0xfffffffd
or eax, 8
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x409f87
push 0
push 0x3039
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov esi, dword [esi + 0xc]
test esi, esi
je 0x409f95
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [edi + 8]
test edi, edi
jne 0x409f62
lea eax, [ebx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebx]
test esi, esi
je 0x40a031
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push 0x4e20
push ecx
call ebx
test eax, eax
jne 0x409fe8
mov edx, dword [esi]
test byte [edx + 0x10], 0x10
jne 0x40a01b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi]
mov eax, dword [eax + 8]
push 0x4e20
push eax
call ebx
test eax, eax
je 0x409fc7
cmp eax, 0x102
jne 0x40a023
mov ecx, dword [esi]
mov edx, dword [ecx]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, dword [esi]
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 8]
or edx, 0x10
push eax
mov dword [edi + 0x10], edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi]
or dword [eax + 0x10], 0x40
jmp 0x40a02a
mov dword [ebp - 4], 0x80004005
mov esi, dword [esi + 8]
test esi, esi
jne 0x409fb6
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e380
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x42c34c]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x24ac]
test eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
je 0x40e3b8
mov dword [ebx], 1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
call fcn.00424a57
mov esp, ebp
pop ebp
ret 4
mov eax, dword [str.MSMQ]
mov ecx, dword [0x428788]
mov dx, word [0x42878c]
push esi
push edi
push 4
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [0x42cbe0]
push 0
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], dx
call dword [eax + 0x35c]
mov edx, dword [0x42cbe0]
push SQLAllocConnect
lea ecx, [ebp - 0x10]
mov edi, eax
push ecx
push edi
call dword [edx + 0x364]
mov esi, eax
test esi, esi
jne 0x40e43e
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebx], 0
je 0x40e425
mov eax, dword [ebp - 0x14]
push 3
push 0x8cde
push esi
push eax
call fcn.0040e170
add esp, 0x10
pop edi
pop esi
mov dword [ebx], 0
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
call fcn.00424a57
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x30]
push ecx
push esi
mov dword [ebp - 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
xor edx, edx
cmp eax, 4
sete dl
pop edi
pop esi
xor eax, eax
mov dword [ebx], edx
pop ebx
call fcn.00424a57
mov esp, ebp
pop ebp
ret 4

Function at 0x41a2c0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, ecx
mov eax, dword [esi + 0xa14]
push 0xffffffffffffffff
push eax
call edi
test eax, eax
jne 0x41a307
mov eax, dword [esi + 0x1084]
test eax, eax
je 0x41a2fe
push 0
push eax
call edi
cmp eax, 0x102
jne 0x41a2fe
mov ecx, dword [esi + 0x1084]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
mov ecx, esi
pop esi
jmp fcn.0041a0f0
pop edi
pop esi
ret

Function at 0x41a3e0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0
mov esi, ecx
push esi
push 0x41a310
push 0
push 0
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi + 0x1088], eax
jne 0x41a424
push 0x4e33
push esi
call fcn.0041cb10
add esp, 8
mov dword [esi + 0xa0c], 0
mov eax, dword [esi + 0xa0c]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41b590
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
push edi
xor eax, eax
mov ecx, 0x114
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
push 0x103
push edx
shl ecx, 4
push esi
mov dword [esi + 0x434], ecx
mov word [esi + 0x206], 0
call dword [sym.imp.MSVCR71.dll_wcsncpy]
add esp, 0xc
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41b660
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov edx, dword [esi + 0x424]
mov eax, dword [esi + 0x434]
xor ecx, ecx
cmp edx, ecx
ja 0x41b6b3
jb 0x41b683
mov ecx, dword [esi + 0x420]
cmp ecx, eax
ja 0x41b6b3
mov edx, dword [esi + 0x428]
push 0
push edx
mov eax, edx
mov edx, dword [esi + 0x42c]
mov cl, 0x20
call fcn.00424be0
push eax
mov eax, dword [esi + 0x418]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esi + 0x420]
jmp 0x41b6e0
mov edx, dword [esi + 0x428]
push eax
push edx
mov eax, edx
mov edx, dword [esi + 0x42c]
mov cl, 0x20
call fcn.00424be0
push eax
mov eax, dword [esi + 0x418]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esi + 0x434]
test eax, eax
mov dword [esi + 0x41c], eax
mov dword [esi + 0x430], ecx
je 0x41b72d
mov edx, dword [esi + 0x420]
mov eax, ecx
xor ecx, ecx
sub edx, eax
mov dword [esi + 0x420], edx
sbb dword [esi + 0x424], ecx
mov edx, dword [esi + 0x428]
add edx, eax
adc dword [esi + 0x42c], ecx
mov dword [esi + 0x448], 1
mov dword [esi + 0x428], edx
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x41b7d0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
push 0x8000080
push 3
push edi
push 1
mov esi, ecx
push SQLAllocConnect
push esi
call dword [sym.imp.SQLUNIRL.dll__CreateFile_28]
cmp eax, 0xffffffff
mov dword [esi + 0x208], eax
jne 0x41b83e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [esi + 0x20c], eax
push pe_nt_image_headers32
lea eax, [esi + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov edx, dword [esi + 0x20c]
movzx ecx, ax
push ecx
push edx
push edi
push 0x1000
call dword [sym.imp.SQLUNIRL.dll__FormatMessage_28]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 8]
push 1
push edi
push edi
push edx
mov ebx, eax
call fcn.00424c10
xor ecx, ecx
add eax, ebx
adc edx, ecx
mov dword [esi + 0x420], eax
mov eax, edx
cmp eax, edi
mov dword [esi + 0x424], edx
mov dword [esi + 0x438], edi
mov dword [esi + 0x43c], edi
mov dword [esi + 0x440], edi
mov dword [esi + 0x444], edi
mov dword [esi + 0x448], edi
mov ebx, 2
ja 0x41b89c
cmp dword [esi + 0x420], edi
jbe 0x41b8d3
mov edx, dword [esi + 0x208]
push edi
push edi
push edi
push ebx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 0x418], eax
je 0x41b8d3
mov ecx, esi
call fcn.0041b660
test eax, eax
jne 0x41b8d3
mov ecx, esi
call fcn.0041b5f0
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x208]
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
lea ecx, [ebp - 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b8c3
cmp dword [ebp - 0xc], ebx
jne 0x41b938
mov ax, word [ebp - 4]
cmp al, 0xff
jne 0x41b938
cmp ah, 0xfe
jne 0x41b938
mov ecx, dword [esi + 0x440]
mov eax, dword [esi + 0x444]
add ecx, ebx
adc eax, edi
mov dword [esi + 0x444], eax
pop ebx
mov eax, 1
pop edi
mov dword [esi + 0x414], 1
mov dword [esi + 0x440], ecx
mov dword [esi + 0x410], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x208]
push edi
push edi
push edi
push eax
mov dword [esi + 0x414], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop ebx
mov eax, 1
pop edi
mov dword [esi + 0x410], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41b970
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
jne 0x41b996
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x448], ecx
push esi
push edi
je 0x41bb2e
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
mov edi, dword [ebx + 0x440]
mov ecx, dword [ebx + 0x430]
cdq
add eax, edi
adc edx, dword [ebx + 0x444]
xor edi, edi
cmp edx, edi
jb 0x41b9e7
ja 0x41b9ca
cmp eax, ecx
jbe 0x41b9e7
sub ecx, dword [ebx + 0x440]
mov dword [esi], ecx
mov eax, dword [ebx + 0x420]
or eax, dword [ebx + 0x424]
je 0x41b9e7
mov dword [ebp - 8], 1
mov ecx, dword [esi]
xor edi, edi
cmp ecx, edi
je 0x41ba39
mov edx, dword [ebx + 0x440]
mov esi, dword [ebx + 0x41c]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
mov edx, dword [ebx + 0x440]
add edx, ecx
mov ecx, dword [ebx + 0x444]
adc ecx, 0
mov dword [ebx + 0x440], edx
mov dword [ebx + 0x444], ecx
mov edx, dword [eax]
mov dword [ebp - 4], edx
mov esi, eax
xor edi, edi
cmp dword [ebp - 8], 1
jne 0x41bb20
mov eax, dword [ebx + 0x41c]
push eax
mov dword [ebx + 0x438], edi
mov dword [ebx + 0x43c], edi
mov dword [ebx + 0x440], edi
mov dword [ebx + 0x444], edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebx + 0x424], edi
mov dword [ebx + 0x41c], edi
ja 0x41ba7e
cmp dword [ebx + 0x420], edi
jbe 0x41ba8d
mov ecx, ebx
call fcn.0041b660
test eax, eax
je 0x41bb49
mov eax, dword [esi]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x430]
sub edx, eax
cmp edx, ecx
jbe 0x41bab7
add eax, ecx
mov dword [esi], eax
mov eax, dword [ebx + 0x420]
or eax, dword [ebx + 0x424]
je 0x41babc
mov edx, 1
jmp 0x41babe
mov ecx, dword [ebp + 0xc]
mov dword [esi], ecx
xor edx, edx
mov ecx, dword [esi]
mov eax, dword [ebp - 4]
sub ecx, eax
je 0x41bb17
mov esi, dword [ebx + 0x440]
add esi, dword [ebx + 0x41c]
mov edi, dword [ebp + 8]
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
mov edi, dword [ebp - 4]
mov esi, dword [ebx + 0x440]
sub ecx, edi
add esi, ecx
mov ecx, dword [ebx + 0x444]
adc ecx, 0
mov dword [ebx + 0x440], esi
mov esi, dword [ebp + 0x10]
mov dword [ebx + 0x444], ecx
mov eax, dword [eax]
mov dword [ebp - 4], eax
xor edi, edi
cmp edx, 1
je 0x41ba43
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
push eax
mov eax, dword [ebx + 0x208]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41bb20
mov ecx, ebx
call fcn.0041b5f0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41c290
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], 0
je 0x41c2fc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41c2fc
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ecx
push edx
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41c2fc
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
push edi
lea eax, [ebp + 0xc]
push eax
push esi
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x41c2fc
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41c7e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
lea eax, [ebp + 0x18]
push eax
push 0x20019
xor esi, esi
push esi
push ecx
push edx
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41c888
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x18]
push ebx
lea ecx, [ebp - 0xc]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41c871
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x41c86a
cmp eax, 2
jne 0x41c871
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00424a70
mov esi, esp
test esi, esi
je 0x41c871
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x41c871
cmp eax, edi
jae 0x41c871
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d5d0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41d623
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41d623
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41d623
mov esp, ebp
pop ebp
ret
movzx eax, ax
or eax, 0x80040000
mov esp, ebp
pop ebp
ret
Function at 0x420bf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x1c]
push edi
lea eax, [ebp + 0x1c]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [ebx], 0
mov dword [ebp - 4], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x420c64
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push esi
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x420c5f
pop edi
mov dword [ebx], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [ebp + 0x14]
mov byte [edi], cl
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x420c80
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x20019
mov byte [esi], 0
mov byte [edi], 0
mov ecx, dword [str.HardwareDescriptionSystem]
push 0
push ecx
push reloc.ODBC32.dll_SQLAllocEnv
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x420cf2
mov edx, dword [ebp + 8]
mov ecx, dword [str.Identifier]
push edx
mov edx, dword [ebp - 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
push 0
push ecx
push edx
call esi
mov eax, dword [ebp + 0xc]
mov edx, dword [str.SystemBiosVersion]
push eax
mov eax, dword [ebp - 4]
push edi
lea ecx, [ebp - 8]
push ecx
push 0
push edx
push eax
call esi
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x422340
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor edx, edx
xor ecx, ecx
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push edi
mov edi, eax
mov ebx, dword [esp + 0x14]
push ebp
mov cl, byte [esi + 0x100]
mov ebp, ebx
mov dl, byte [esi + 0x101]
test ebx, ebx
je 0x42247b
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x422450
test eax, eax
jne 0x422450
mov eax, edi
lea edi, [edi + ebx*4]
mov dword [esp + 0x1c], edi
sub eax, 4
mov ebp, ebx
mov edi, dword [eax + 4]
inc ecx
xor eax, eax
and ecx, 0xff
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 8
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x10
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x18
lea ebx, [ebp*4]
xor edi, eax
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov dword [eax], edi
dec ebp
jne 0x422390
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x42247b
lea edi, [eax + 4]
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x422450
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc