joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
mov esi, ecx
push eax
push 0
push esi
push 0x406c90
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x1088], eax
test eax, eax
jne 0x4065b2
push 0x4e33
push esi
call fcn.00407920
add esp, 8
mov dword [esi + 0xa0c], 0
mov eax, dword [esi + 0xa0c]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406bb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x1c9c]
test edi, edi
je 0x406bc9
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x108c]
test eax, eax
jne 0x406c06
mov eax, dword [esi + 0x1084]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x406c06
lea ecx, [ebp - 4]
push ecx
push 0
push esi
push 0x406c20
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x108c], eax
test edi, edi
je 0x406c11
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406d60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
push edi
mov ecx, 0x114
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 8]
mov edx, 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.MSVCRT.dll_wcsncpy]
add esp, 0xc
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x406dd0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x8000080
push 3
push edi
mov esi, ecx
push 1
push SQLAllocStmt
push esi
call dword [sym.imp.SQLUNIRL.dll__CreateFile_28]
cmp eax, 0xffffffff
mov dword [esi + 0x208], eax
jne 0x406e0f
mov ecx, esi
call fcn.00406f40
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
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.00419400
xor ecx, ecx
add eax, ebx
adc edx, ecx
mov dword [esi + 0x420], eax
mov eax, edx
mov dword [esi + 0x438], edi
mov dword [esi + 0x440], edi
cmp eax, edi
mov dword [esi + 0x424], edx
mov dword [esi + 0x43c], edi
mov dword [esi + 0x444], edi
mov dword [esi + 0x448], edi
mov ebx, 2
ja 0x406e6c
cmp dword [esi + 0x420], edi
jbe 0x406ea3
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 0x406ea3
mov ecx, esi
call fcn.00407190
test eax, eax
jne 0x406ea3
mov ecx, esi
call fcn.00406f40
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x208]
lea eax, [ebp - 0xc]
push edi
push eax
lea ecx, [ebp - 2]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406ece
mov ecx, esi
call fcn.00406f40
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xc], ebx
jne 0x406f18
mov ax, word [ebp - 2]
cmp al, 0xff
jne 0x406f18
cmp ah, 0xfe
jne 0x406f18
mov ecx, dword [esi + 0x440]
mov dword [esi + 0x414], 1
add ecx, ebx
mov dword [esi + 0x440], ecx
mov eax, dword [esi + 0x444]
adc eax, edi
pop edi
mov dword [esi + 0x444], eax
mov eax, 1
mov dword [esi + 0x410], eax
pop esi
pop ebx
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]
mov eax, 1
pop edi
mov dword [esi + 0x410], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406fa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
xor ecx, ecx
push edi
cmp eax, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
je 0x40714c
cmp dword [ebx + 0x448], ecx
je 0x40715a
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
mov edi, dword [ebx + 0x440]
cdq
mov ecx, dword [ebx + 0x430]
add eax, edi
mov edi, dword [ebx + 0x444]
adc edx, edi
xor edi, edi
cmp edx, edi
jb 0x40700f
ja 0x406ff2
cmp eax, ecx
jbe 0x40700f
sub ecx, dword [ebx + 0x440]
mov dword [esi], ecx
mov eax, dword [ebx + 0x420]
or eax, dword [ebx + 0x424]
je 0x40700f
mov dword [ebp - 8], 1
mov ecx, dword [esi]
xor edi, edi
cmp ecx, edi
je 0x407061
mov esi, dword [ebx + 0x41c]
mov edx, dword [ebx + 0x440]
mov edi, dword [ebp + 8]
add esi, edx
mov edx, ecx
mov eax, dword [ebp + 0x10]
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 esi, eax
mov dword [ebx + 0x440], edx
mov ecx, dword [ebx + 0x444]
adc ecx, 0
xor edi, edi
mov dword [ebx + 0x444], ecx
mov edx, dword [eax]
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 1
jne 0x40714c
mov eax, dword [ebx + 0x41c]
mov dword [ebx + 0x438], edi
mov dword [ebx + 0x440], edi
push eax
mov dword [ebx + 0x43c], edi
mov dword [ebx + 0x444], edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebx + 0x424]
mov dword [ebx + 0x41c], edi
cmp eax, edi
ja 0x4070a8
cmp dword [ebx + 0x420], edi
jbe 0x4070b7
mov ecx, ebx
call fcn.00407190
test eax, eax
je 0x407175
mov eax, dword [esi]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x430]
sub edx, eax
cmp edx, ecx
jbe 0x4070e1
add eax, ecx
mov dword [esi], eax
mov eax, dword [ebx + 0x420]
or eax, dword [ebx + 0x424]
je 0x4070e6
mov edx, 1
jmp 0x4070e8
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 0x407143
mov esi, dword [ebx + 0x440]
mov edi, dword [ebx + 0x41c]
add esi, edi
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 dword [ebx + 0x440], esi
mov ecx, dword [ebx + 0x444]
mov esi, dword [ebp + 0x10]
adc ecx, 0
xor edi, edi
mov dword [ebx + 0x444], ecx
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp edx, 1
je 0x40706b
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 0x40714c
mov ecx, ebx
call fcn.00406f40
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407190
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
xor ecx, ecx
mov edx, dword [esi + 0x424]
mov eax, dword [esi + 0x434]
cmp edx, ecx
ja 0x4071ea
jb 0x4071b1
mov ecx, dword [esi + 0x420]
cmp ecx, eax
ja 0x4071ea
mov edx, dword [esi + 0x428]
push 0
push edx
mov eax, edx
mov edx, dword [esi + 0x42c]
mov ecx, 0x20
call fcn.00419440
push eax
mov eax, dword [esi + 0x418]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esi + 0x420]
mov dword [esi + 0x41c], eax
jmp 0x407220
mov edx, dword [esi + 0x428]
push eax
push edx
mov eax, edx
mov edx, dword [esi + 0x42c]
mov ecx, 0x20
call fcn.00419440
push eax
mov eax, dword [esi + 0x418]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esi + 0x434]
mov dword [esi + 0x41c], eax
mov eax, dword [esi + 0x41c]
mov dword [esi + 0x430], ecx
test eax, eax
je 0x40727d
mov edx, dword [esi + 0x420]
mov eax, ecx
xor ecx, ecx
sub edx, eax
mov dword [esi + 0x420], edx
mov edx, dword [esi + 0x424]
sbb edx, ecx
mov dword [esi + 0x448], 1
mov dword [esi + 0x424], edx
mov edx, dword [esi + 0x428]
add edx, eax
mov dword [esi + 0x428], edx
mov eax, dword [esi + 0x42c]
adc eax, ecx
mov dword [esi + 0x42c], eax
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x408190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], 0
je 0x4081fa
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4081fa
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 4]
mov byte [esi], 0
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4081fa
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
lea eax, [ebp + 0xc]
push edi
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 0x4081fa
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
lea eax, [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x18]
xor esi, esi
push eax
push 0x20019
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 0x4087d5
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 8]
lea ecx, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x18]
push ebx
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4087be
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4087b7
cmp eax, 2
jne 0x4087be
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004193a0
mov esi, esp
test esi, esi
je 0x4087be
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4087be
cmp eax, edi
jae 0x4087be
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 - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esp, [ebp - 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408900
Capabilities:
Set registry value

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x1c]
lea eax, [ebp + 0x1c]
push edi
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [ebx], 0
mov dword [ebp - 4], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d552
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
lea eax, [ebp - 4]
push esi
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 0x40d54d
mov dword [ebx], 1
pop edi
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 0x40db40
Capabilities:
Query or enumerate registry value

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

Disassembly:
push ebx
push esi
push edi
push ebp
xor ecx, ecx
xor edx, edx
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov cl, byte [esi + 0x100]
mov dl, byte [esi + 0x101]
test ebp, ebp
je 0x41786f
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 0x417844
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc

Function at 0x417881
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov eax, 0x3020100
push esi
mov ecx, 0x40
mov esi, dword [esp + 0xc]
push edi
mov edx, esi
push ebp
mov dword [edx], eax
add edx, 4
add eax, 0x4040404
dec ecx
jne 0x417895
xor ecx, ecx
xor edi, edi
mov ebp, dword [esp + 0x1c]
mov byte [esi + 0x100], cl
mov byte [esi + 0x101], cl
xor ebx, ebx
xor edx, edx
xor eax, eax
mov dl, byte [edi + esi]
mov al, byte [ebp + ecx]
add bl, al
inc ecx
add bl, dl
inc edi
mov al, byte [ebx + esi]
mov byte [edi + esi - 1], al
cmp dword [esp + 0x18], ecx
mov byte [ebx + esi], dl
jne 0x4178db
xor ecx, ecx
cmp edi, 0x100
jb 0x4178b8
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x419232
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bdf8
push 0x4193f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4234a8], 0xffffffff
or dword [0x4234ac], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x42349c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x423498]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4234a4], eax
call fcn.0041952b
cmp dword [0x422310], 0
jne 0x4192b5
push 0x419528
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00419516
push 0x41d018
push 0x41d014
call sub.MSVCRT.dll__initterm
mov eax, dword [0x423494]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x423490]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x41d010
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00404590
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x406243
pop dword [ebp - 0x4c]
mov eax, 0xc45e017b
sub eax, 0xc41d9f38
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x2b511288
add dword [ebp - 0x5c], 0x230132c3
mov dword [ebp - 0x58], 0xbcf3cb0
add dword [ebp - 0x58], 0x26640f95
mov dword [ebp - 0x54], 0x44c12828
sub dword [ebp - 0x54], 0xf874e3fa
mov dword [ebp - 0x50], 0x5c9dc525
add dword [ebp - 0x50], 0xa3623adb
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x2bb84ee1
sub dword [ebp - 0x5c], 0xb745e58b
mov dword [ebp - 0x58], 0xc555a460
sub dword [ebp - 0x58], 0x83e942eb
mov dword [ebp - 0x54], 0x6e38548a
sub dword [ebp - 0x54], 0xac8e81e
mov dword [ebp - 0x50], 0xc11b194a
add dword [ebp - 0x50], 0x3ee4e6b6
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xf834bda1
sub eax, 0xf7f43ca1
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3bd8f
push 0
call eax
mov ecx, 0xfaffa0c8
sub ecx, 0xfaff457c
mov edx, eax
mov ebx, 0x782534a4
add ebx, 0x8821af5c
add ebx, dword [ebp - 0x4c]
mov esi, 0x93bf74dd
add esi, 0x69aa3585
mov dword [ebp - 0x48], 0xc3c40253
mov edi, dword [ebx]
sub dword [ebp - 0x40], ecx
add edi, esi
sub dword [ebp - 4], edx
mov dword [edx], edi
xor dword [ebp - 0x38], 0x1c50a716
add edx, 4
add ebx, 0x30012aeb
add ebx, 0xcffed519
loop 0x406360
add eax, 0x866aebe0
add eax, 0x79967423
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

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

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
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 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
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 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc
Function at 0x4024a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x4024a9
xor ecx, ecx
jne 0x4024a9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4024f0
mov eax, dword [ebp - 0xc]
jmp 0x40254d
cmp dword [ebp - 4], 1
je 0x402503
cmp dword [ebp - 4], 2
je 0x402503
mov eax, 0xd
jmp 0x40254d
cmp dword [ebp + 0xc], 0
je 0x402541
cmp dword [ebp - 8], 0
je 0x402539
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x402530
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x402537
mov eax, 0xd
jmp 0x40254d
jmp 0x402541
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4058e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov byte [ebp - 1], 1
mov ecx, dword [ebp - 0x20]
call fcn.00405f50
movzx eax, al
test eax, eax
je 0x40594e
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.00405a00
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.00405a00
push eax
push 0x4e
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.004025d0
mov ecx, eax
call fcn.0040a010
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4059ec
mov ecx, dword [ebp - 0x20]
call fcn.00402b50
movzx edx, al
test edx, edx
je 0x40599c
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.00405a00
and eax, 0xffff
movzx edx, ax
push edx
push 0x111
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.004025d0
mov ecx, eax
call fcn.0040a010
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4059ec
push 1
push 0
push 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x28]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x14], eax
mov eax, 0x20
cmp eax, dword [ebp - 0x14]
sbb ecx, ecx
neg ecx
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
je 0x4059ec
mov eax, dword [ebp - 0x20]
mov cl, byte [eax + 0x58]
or cl, 2
mov edx, dword [ebp - 0x20]
mov byte [edx + 0x58], cl
push 1
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.004053e0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x407360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x416400]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x454], ecx
call fcn.00406cd0
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
call fcn.00409f80
mov eax, dword [ebp - 0x454]
push eax
lea ecx, [ebp - 0x18]
call fcn.00407650
lea ecx, [ebp - 0x438]
call fcn.00409f80
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406d30
add esp, 8
mov dword [ebp - 8], eax
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4073de
call fcn.00406d40
mov dword [ebp - 0x444], eax
jmp 0x407533
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x40740f
call fcn.00406d40
mov dword [ebp - 0x444], eax
jmp 0x407533
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x40743f
call fcn.00406d40
mov dword [ebp - 0x444], eax
jmp 0x407533
mov edx, dword [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
cmp edx, dword [ebp - 0x1c]
jae 0x40748f
mov dword [ebp - 0x44c], 0x8007000e
lea ecx, [ebp - 0x438]
call fcn.0040a050
lea ecx, [ebp - 0x2c]
call fcn.00409ce0
mov eax, dword [ebp - 0x44c]
jmp 0x407568
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
lea ecx, [ebp - 0x438]
call fcn.0040a020
lea ecx, [ebp - 0x438]
call fcn.0040a010
test eax, eax
jne 0x4074bc
mov dword [ebp - 0x444], 0x8007000e
jmp 0x407533
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.0040a010
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.00406cd0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x4074fe
call fcn.00406d40
mov dword [ebp - 0x444], eax
jmp 0x407533
lea ecx, [ebp - 0x438]
call fcn.0040a010
xor ecx, ecx
mov edx, dword [ebp - 0x43c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x438]
call fcn.0040a010
push eax
lea ecx, [ebp - 0x18]
call fcn.00407680
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x10], 0
je 0x407543
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x450], edx
lea ecx, [ebp - 0x438]
call fcn.0040a050
lea ecx, [ebp - 0x2c]
call fcn.00409ce0
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0040a797
mov esp, ebp
pop ebp
ret 0x10