joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477ea0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 2
pop eax
lea ecx, [ebp - 0x10]
mov word [edi], ax
call fcn.00405c18
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0047810b
push dword [ebp - 0x10]
call dword [sym.imp.WSOCK32.dll_inet_addr]
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00405a64
cmp ebx, 0xffffffff
jne 0x477ef7
mov ecx, dword [ebp + 0xc]
mov edx, 0x4b8d00
call fcn.0045a14d
test al, al
je 0x477ef7
push 0
push 1
jmp 0x477f1a
mov ecx, dword [ebp + 0x10]
mov dword [edi + 4], ebx
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja 0x477f16
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [edi + 2], ax
mov al, 1
jmp 0x477f28
push 0
push 2
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00456883
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x477f31
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
and dword [ebx], 0
mov edi, ecx
mov dword [ebx + 4], eax
mov ecx, 0x3e8
mov eax, esi
inc dword [ebx]
cdq
idiv ecx
mov dword [ebp - 8], eax
imul eax, eax, 0x3e8
sub esi, eax
imul eax, esi, 0x3e8
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
cmp byte [ebp + 0x14], al
je 0x477f7a
push ebx
push eax
jmp 0x477f7c
push eax
push ebx
push eax
call dword [sym.imp.WSOCK32.dll_select]
mov esi, eax
test esi, esi
jne 0x477f96
cmp byte [ebp + 0x14], al
je 0x477fc2
push eax
push 0x274c
jmp 0x477fb6
jle 0x477fad
push ebx
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll___WSAFDIsSet]
test eax, eax
jne 0x477fc2
push 0xfffffffffffffffe
pop esi
push eax
push esi
jmp 0x477fb6
push 0
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00456883
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48ba67
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
cmp word [eax], di
je 0x48bb81
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48ba9e
xor eax, eax
jmp 0x48bbb0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x48bac1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48ba97
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x48ba97
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x492cac
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x48ba97
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp dword [edx], edi
jne 0x48bb5d
cmp dword [ecx], edi
jne 0x48bb5d
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
push 0x2000
push dword [ecx]
push dword [edx]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
jmp 0x48bb86
mov eax, edi
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x64], 0
je 0x48bb9b
push dword [esi + 0x64]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push edi
mov dword [esi + 0x64], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x427e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
push edx
push ecx
push ebx
push esi
push edi
mov edx, 0x464188
mov eax, 0x63000
add byte [ebx], al
inc ebx
or byte [ecx + 0x2323], bh
lea eax, [ecx + eax]
lock xor dword [eax], edx
ror edx, 1
dec eax
loop 0x427e3c
mov ecx, eax
jmp ecx

Function at 0x427eaa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4540d0]
jne 0x427eb4
repz ret
jmp fcn.00429e94

Function at 0x42bc0b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4540d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004296a2
and dword [ebp - 0x14], 0
cmp dword [0x455cfc], 0
mov dword [ebp - 0x18], eax
jne 0x42bcbe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42bd66
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44f7cc
push ebx
call edi
test eax, eax
je 0x42bd66
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x455cfc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x455d00], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x455d04], eax
call edi
push eax
call esi
mov dword [0x455d0c], eax
test eax, eax
je 0x42bcbe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x455d08], eax
mov eax, dword [0x455d08]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42bd17
cmp dword [0x455d0c], ecx
je 0x42bd17
push eax
call esi
push dword [0x455d0c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42bd17
test ebx, ebx
je 0x42bd17
call edi
test eax, eax
je 0x42bd0e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42bd0e
test byte [ebp - 8], 1
jne 0x42bd17
or dword [ebp + 0x10], 0x200000
jmp 0x42bd4a
mov eax, dword [0x455d00]
cmp eax, dword [ebp - 0x18]
je 0x42bd4a
push eax
call esi
test eax, eax
je 0x42bd4a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42bd4a
mov eax, dword [0x455d04]
cmp eax, dword [ebp - 0x18]
je 0x42bd4a
push eax
call esi
test eax, eax
je 0x42bd4a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x455cfc]
call esi
test eax, eax
je 0x42bd66
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42bd68
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427eaa
leave
ret
Function at 0x402e72
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x426390]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402f06
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402ec3
cmp dword [ebp + 0x10], ebx
jne 0x402efa
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402e72
test eax, eax
jne 0x402ed5
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402eaa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040648f
cmp eax, ebx
je 0x402f0d
push ebx
push dword [0x426390]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f06
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x426390], ebx
jne 0x402f03
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402f03
jmp 0x402f06
Function at 0x40334b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x403378
mov ecx, dword [0x426338]
push edi
add eax, ecx
push edi
push eax
mov dword [0x418874], eax
push dword [0x40a64c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403476
cmp eax, edi
jl 0x40346f
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40a64c]
call ebx
test eax, eax
je 0x40346c
cmp dword [ebp - 4], esi
jne 0x40346c
push dword [ebp + 8]
add dword [0x418874], esi
call fcn.00403476
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40346f
cmp dword [ebp + 0x10], edi
jne 0x40343b
cmp dword [ebp + 8], edi
jle 0x403467
mov esi, 0x414870
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4033eb
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40a64c]
call ebx
test eax, eax
je 0x40346c
cmp edi, dword [ebp - 4]
jne 0x40346c
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403437
cmp dword [ebp + 0x14], edi
jne 0x403437
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x418874], eax
cmp dword [ebp + 8], 0
jg 0x4033de
jmp 0x403467
push 0xfffffffffffffffe
jmp 0x40346e
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403446
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a64c]
call ebx
test eax, eax
je 0x40346c
mov eax, dword [ebp - 4]
add dword [0x418874], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40346f
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403476
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x418874]
sub esi, dword [0x40c7e0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x4262ec], eax
jle 0x4035e0
push dword [0x420884]
call fcn.00403624
push ebx
push ebx
push dword [0x40c7e0]
push dword [0x40a64c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x420880], esi
mov dword [0x418870], ebx
mov ebp, 0x40c870
mov eax, dword [0x418878]
mov edi, 0x4000
sub eax, dword [0x420884]
cmp eax, edi
jg 0x4034eb
mov edi, eax
mov esi, 0x414870
push edi
push esi
call fcn.004035f2
test eax, eax
je 0x4035d2
add dword [0x420884], edi
mov dword [0x40c800], esi
mov dword [0x40c804], edi
cmp dword [0x4262f0], ebx
je 0x403542
cmp dword [0x426380], ebx
jne 0x403542
mov eax, dword [0x420880]
push ebx
sub eax, dword [0x418874]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40c7e0]
mov dword [0x418870], eax
call fcn.0040300f
pop ecx
mov ecx, 0x40c7e8
mov dword [0x40c808], ebp
mov dword [0x40c80c], 0x8000
call fcn.00406589
test eax, eax
jl 0x4035db
mov esi, dword [0x40c808]
sub esi, ebp
je 0x40359c
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40a64c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4035d7
cmp esi, dword [esp + 0x10]
jne 0x4035d7
add dword [0x40c7e0], esi
cmp dword [0x40c804], ebx
jne 0x403511
jmp 0x4035a8
cmp dword [0x40c804], ebx
jne 0x4035db
cmp edi, ebx
je 0x4035db
mov eax, dword [0x418874]
mov ecx, eax
sub ecx, dword [0x40c7e0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4034d5
push ebx
push ebx
push eax
push dword [0x40a64c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4035e0
or eax, 0xffffffff
jmp 0x4035ea
push 0xfffffffffffffffe
jmp 0x4035dd
push 0xfffffffffffffffd
pop eax
jmp 0x4035ea
push 1
call fcn.0040300f
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4057cb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x423cd0], 0x44
push eax
xor eax, eax
push 0x423cd0
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405806
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405b98
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4230d0
push esi
call fcn.00405fc4
push esi
call fcn.00405b4b
mov edi, eax
test edi, edi
jne 0x405bb9
xor eax, eax
jmp 0x405c0b
push edi
call fcn.00406222
test byte [0x4262f8], 0x80
je 0x405bd2
mov al, byte [edi]
test al, al
je 0x405bb5
cmp al, 0x5c
je 0x405bb5
sub edi, esi
jmp 0x405bea
call fcn.00406468
test eax, eax
je 0x405be4
test byte [eax], 0x10
je 0x405bb5
push esi
call fcn.00405afe
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405bd6
call fcn.00405ab7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c7c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405c98
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405c9b
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405cca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405d0e
test edi, edi
jne 0x405cd5
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405d08
Function at 0x405d12
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.0040648f
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405d36
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405e6f
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x423e58], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x423e58
je 0x405d7a
push 1
push 0
push esi
call fcn.00405c9b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e75
cmp eax, edi
jg 0x405e75
mov esi, 0x4238d0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e75
cmp eax, edi
jg 0x405e75
push esi
push ebp
push str._s_s_r_n
push 0x4234d0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4262f0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405fe6
push 4
push 0xc0000000
push esi
call fcn.00405c9b
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405e6f
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405e68
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405e68
cmp edi, dword [esp + 0x18]
jne 0x405e68
push str._Rename__r_n
push esi
call fcn.00405c10
test eax, eax
jne 0x405e7c
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405fc4
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x4234d0
push eax
call fcn.00405c5c
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x426370]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aad0
push eax
call fcn.00405c10
test eax, eax
je 0x405e33
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405ea3
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e98
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405e35
Function at 0x405eab
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405f1c
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405f0b
cmp dword [ebp + 0x14], 1
je 0x405f0d
cmp dword [ebp + 0x14], 2
je 0x405f0d
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4062bb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4062e0
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x4062d7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x406353
cmp dword [0x424a60], ebx
je 0x406353
cmp byte [0x424660], bl
je 0x40631f
cmp dword [0x40a8a0], 0xffffffff
jne 0x406328
push 4
push 0x40000000
push 0x424660
call fcn.00405c9b
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x406353
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x406353
push esi
mov esi, 0x425280
push 0x40aae8
push esi
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064fb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42425c], 0
push esi
jne 0x406532
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40650c
mov dword [ecx*4 + 0x424258], eax
inc ecx
cmp ecx, 0x100
jl 0x406507
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406563
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x424258]
xor eax, esi
inc ecx
dec edx
jne 0x406545
pop edi
not eax
pop esi
ret 0xc
Function at 0x402531
Capabilities:
Terminate process

Disassembly:
jmp 0x43e831
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x43e842
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004038d7
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4025bd
Capabilities:
Query environment variable

Disassembly:
jmp 0x441da4
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x441db5
pop esi
ret
push ebx
push edi
push esi
call fcn.00441c8b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402ab8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x441ddd
push ebx
push esi
push edi
call fcn.004037a1
add esp, 0xc
push 0
call fcn.00403db4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40380f
Capabilities:
Parse pe header

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

Function at 0x417602
Capabilities:
Parse pe header

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