joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440100
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x1048
push 0x4879a8
push esi
call fcn.00445d50
mov ecx, dword [ebp + 0xc]
add esp, 0xc
cmp ecx, 0x48
jle 0x44012c
mov ecx, 0x48
mov edi, dword [ebp + 0x10]
add ecx, edi
mov eax, edi
add esi, 8
mov dword [ebp + 0xc], 6
lea ecx, [ecx]
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x44014a
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x440159
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x440168
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x440177
mov eax, edi
xor dword [esi - 8], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x440184
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x440193
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x4401a2
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x4401b1
mov eax, edi
xor dword [esi - 4], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x4401be
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x4401cd
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x4401dc
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x4401eb
mov eax, edi
xor dword [esi], edx
add esi, 0xc
dec dword [ebp + 0xc]
jne 0x440140
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
xor esi, esi
push 1
lea eax, [ebp - 8]
push ebx
push eax
call fcn.0043f8a0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ebx + esi*4], ecx
mov dword [ebx + esi*4 + 4], edx
add esi, 2
add esp, 0xc
cmp esi, 0x12
jl 0x440206
xor esi, esi
lea esp, [esp]
push 1
lea eax, [ebp - 8]
push ebx
push eax
call fcn.0043f8a0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ebx + esi*4 + 0x48], ecx
mov dword [ebx + esi*4 + 0x4c], edx
add esi, 2
add esp, 0xc
cmp esi, 0x400
jl 0x440230
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x440450
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
pop ebp
ret
Function at 0x443590
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464b5c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x188
mov eax, dword [0x488fdc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x20]
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebx + 0x34]
mov dword [ebp - 0x20], edx
mov edx, dword [ebx + 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
call fcn.004432c0
push 0x10
lea edx, [ebp - 0x38]
push edx
push 0x10
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x198]
mov dword [ebp - 4], 0
call fcn.00401490
mov ecx, dword [ebx + 0x14]
push 0
push ecx
lea ecx, [ebp - 0x194]
call fcn.00409600
mov edx, dword [ebx + 0x10]
push edx
push esi
push edi
lea ecx, [ebp - 0x194]
call fcn.004092c0
mov edi, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x168]
xor al, al
push edi
mov dword [ebp - 4], 2
rep stosb byte es:[edi], al
call fcn.00405b20
add esp, 4
mov ecx, dword [ebp - 0x178]
mov edi, dword [ebp - 0x174]
mov edx, ecx
mov esi, edi
xor al, al
mov byte [ebp - 4], 3
rep stosb byte es:[edi], al
push esi
cmp edx, 0x10
jb 0x443697
call fcn.00405a90
jmp 0x44369c
call fcn.00405b20
mov ecx, dword [ebp - 0x188]
mov edi, dword [ebp - 0x184]
mov edx, ecx
add esp, 4
mov esi, edi
xor al, al
mov byte [ebp - 4], 1
rep stosb byte es:[edi], al
push esi
cmp edx, 0x10
jb 0x4436c4
call fcn.00405a90
jmp 0x4436c9
call fcn.00405b20
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x140]
neg eax
and eax, 0xf
lea ecx, [ebp + eax - 0x140]
add esp, 4
cmp edi, ecx
jne 0x4436ec
mov ecx, dword [ebp - 0x40]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044545a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x44545a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x488fdc]
jne 0x445464
repz ret
jmp fcn.0044d50c

Function at 0x45daf3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x488fdc]
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.0044cf99
and dword [ebp - 0x14], 0
cmp dword [0x4bbb50], 0
mov dword [ebp - 0x18], eax
jne 0x45dba6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45dc4e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x45dc4e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x478b2c
push ebx
mov dword [0x4bbb50], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4bbb54], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4bbb58], eax
call edi
push eax
call esi
mov dword [0x4bbb60], eax
test eax, eax
je 0x45dba6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4bbb5c], eax
mov eax, dword [0x4bbb5c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x45dbff
cmp dword [0x4bbb60], ecx
je 0x45dbff
push eax
call esi
push dword [0x4bbb60]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x45dbff
test ebx, ebx
je 0x45dbff
call edi
test eax, eax
je 0x45dbf6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45dbf6
test byte [ebp - 8], 1
jne 0x45dbff
or dword [ebp + 0x10], 0x200000
jmp 0x45dc32
mov eax, dword [0x4bbb54]
cmp eax, dword [ebp - 0x18]
je 0x45dc32
push eax
call esi
test eax, eax
je 0x45dc32
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45dc32
mov eax, dword [0x4bbb58]
cmp eax, dword [ebp - 0x18]
je 0x45dc32
push eax
call esi
test eax, eax
je 0x45dc32
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4bbb50]
call esi
test eax, eax
je 0x45dc4e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45dc50
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044545a
leave
ret
Function at 0xb02058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xb021a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb0207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb0206a
add dl, dl
jne 0xb02089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb020dc
xor eax, eax
add dl, dl
jne 0xb02096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb0217d
add dl, dl
jne 0xb020a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb020b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb020bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb020c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb020d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb02075
mov eax, 1
add dl, dl
jne 0xb020ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb020f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb020e1
sub eax, ebx
mov ebx, 1
jne 0xb02128
mov ecx, 1
add dl, dl
jne 0xb0210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb02119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb02105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb02075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb0213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb0214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb02136
cmp eax, 0x7d00
jae 0xb0216d
cmp eax, 0x500
jb 0xb02168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb02075
cmp eax, 0x7f
ja 0xb02170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb02075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb0219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb02075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401390
Capabilities:
Accept command line arguments
Create thread

Disassembly:
sub esp, 0x24
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
sub esp, 0xc
mov ecx, 0x411474
call fcn.00404b80
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
push 0
push 0
mov dword [0x4114a4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4114a8], eax
test eax, eax
je 0x4013eb
lea eax, [esp + 4]
push eax
push 0
push 0x411474
push 0x4012a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x1c
push 0
push 0
mov dword [esp + 0x18], 0
call fcn.00409d01
sub esp, 8
mov ecx, 0x411474
call fcn.00404b00
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
je 0x40146d
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x14]
push eax
push 0xfd
push 0
push 0
call fcn.00409d01
test eax, eax
jne 0x40145b
lea eax, [esp + 0x14]
push eax
call edi
lea eax, [esp + 0x14]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
jne 0x401436
pop ebx
mov esi, dword [0x4114a0]
xor eax, eax
test esi, esi
je 0x40149d
cmp dword [esi], eax
je 0x40149d
mov edi, dword [sym.imp.ole32.dll_CoRevokeClassObject]
test eax, eax
jne 0x4014a2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x401491
push eax
call edi
add esi, 0x24
cmp dword [esi], 0
jne 0x401483
test eax, eax
jne 0x4014a2
call fcn.00404a10
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
push 0x1d
push 0
push 0
call fcn.00409d01
mov ecx, 0x411474
call fcn.00404930
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
xor eax, eax
pop esi
add esp, 0x24
ret 0x10

Function at 0x4031f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x40acb3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x410018]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 0xc], 0
xorps xmm0, xmm0
movq qword [esi + 0x10], xmm0
movq qword [esi + 0x18], xmm0
movq qword [esi + 0x20], xmm0
mov byte [esi + 0x28], 0
mov dword [esp + 0x14], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00403900
mov dword [esi + 0x2c], eax
mov dword [esp + 0x14], 1
mov ecx, dword [0x411430]
mov dword [esi], vtable.ATL::CComObject_class_CAcHelpController_.2.0
mov dword [esi + 4], vtable.ATL::CComObject_class_CAcHelpController_.1.0
mov dword [esi + 8], vtable.ATL::CComObject_class_CAcHelpController_.0
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x403de0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40ad0b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x410018]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 0xc], 0
xorps xmm0, xmm0
movq qword [esi + 0x10], xmm0
movq qword [esi + 0x18], xmm0
movq qword [esi + 0x20], xmm0
mov byte [esi + 0x28], 0
mov dword [esp + 0x14], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00403900
mov dword [esi + 0x2c], eax
mov dword [esi], vtable.ATL::CComObjectCached_class_CAcHelpController_.2.0
mov dword [esi + 4], vtable.ATL::CComObjectCached_class_CAcHelpController_.1.0
mov dword [esi + 8], vtable.ATL::CComObjectCached_class_CAcHelpController_.0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x405cc0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
test edx, edx
jne 0x405cd2
lea eax, [edx + 0xd]
pop esi
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x405ce0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405ce0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x405d60
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, ecx
test ebx, ebx
jne 0x405d74
pop ebp
lea eax, [ebx + 0xd]
pop ebx
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
lea ebx, [ebx]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405d85
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x405d80
push esi
push ebx
push 7
push 0
push dword [esp + 0x24]
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x4064a0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x224
mov eax, dword [0x410018]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x22c]
mov eax, dword [ebp + 4]
push esi
push edi
or eax, 0x2001f
push eax
push ecx
push dword [ebp]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.004063e0
mov esi, eax
test esi, esi
jne 0x40658c
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
call edi
test eax, eax
jne 0x406560
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.004064a0
mov esi, eax
test esi, esi
jne 0x40658c
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
call edi
test eax, eax
je 0x406527
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406577
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
push dword [esp + 0x1c]
mov ecx, ebp
mov dword [esp + 0x18], 0
call fcn.00406630
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40659b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.0040a340
add esp, 0x224
ret 4

Function at 0x406630
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
test edi, edi
je 0x406695
cmp dword [edi], 0
mov esi, dword [esi]
je 0x406675
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40668b
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40668b
push 0
push dword [edi]
push 0
push 0
push dword [esp + 0x1c]
push esi
call eax
pop edi
pop esi
ret 4
cmp dword [edi + 4], 0
je 0x40668b
push dword [esp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4
cmp byte [0x411460], 0
jne 0x4066d5
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4066c7
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41145c], eax
mov byte [0x411460], 1
jmp 0x4066da
mov eax, dword [0x41145c]
mov byte [0x411460], 1
jmp 0x4066da
mov eax, dword [0x41145c]
test eax, eax
je 0x4066f0
push 0
push dword [esi + 4]
push dword [esp + 0x14]
push dword [esi]
call eax
pop edi
pop esi
ret 4
push dword [esp + 0xc]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
ret 4
Function at 0x4070d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x40b150
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x410018]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
mov edi, dword [ebp + 0x410]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x407178
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x407178
call fcn.004055d0
mov edi, eax
jmp 0x40726f
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x407195
call fcn.004055d0
jmp 0x407262
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x4071b0
call fcn.004055d0
jmp 0x407262
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x18], edi
lea ecx, [edi + 1]
cmp ecx, edi
jae 0x4071ce
mov edi, 0x8007000e
jmp 0x407264
xor eax, eax
shld eax, ecx, 1
add ecx, ecx
mov byte [ebp - 4], 2
test eax, eax
jne 0x4071fe
cmp ecx, 0xffffffff
ja 0x4071fe
cmp ecx, 0x400
jbe 0x4071f6
push ecx
lea ecx, [ebp]
call fcn.004055a0
jmp 0x407217
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x407217
push 0x80070216
call fcn.00406260
mov eax, 0x40720e
ret
mov dword [ebp - 4], 1
cmp dword [ebp], 0
jne 0x40722b
mov edi, 0x8007000e
jmp 0x407264
push edi
push dword [ebp]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x407248
call fcn.004055d0
jmp 0x407262
mov eax, dword [ebp]
push dword [ebp + 0x41c]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp]
lea ecx, [ebp - 0x24]
call fcn.00406f70
mov edi, eax
test esi, esi
je 0x40726f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x407280
lea ecx, [ebp]
call fcn.00405580
nop
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0040a340
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
Function at 0x409dd5
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x410018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409e95
push edi
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push ebx
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x110], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409e84
cmp dword [ebp - 0x110], 2
mov byte [ebp - 5], bl
lea eax, [ebp - 0x108]
jne 0x409e75
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb ebx, ebx
inc ebx
jmp 0x409e84
push eax
push edi
push esi
call fcn.00409f07
xor ebx, ebx
test eax, eax
setns bl
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
jmp 0x409e97
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a340
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x4be34cf5
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x4aa43fa7
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x7e1748
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7e1752
pushal
call 0x7e1758
pop ebp
sub ebp, 0x10
sub ebp, 0x3e1748
jmp 0x7e176e
mov eax, 0x3e1748
add eax, ebp
add eax, 0x4c
mov ecx, 0x617
mov edx, 0xe16d00bb
xor byte [eax], dl
inc eax
dec ecx
jne 0x7e1785
jmp 0x7e1798
xor byte [esi + 0x30], dh
xor al, byte [edi + 0x3abbbbbb]
jp 0x7e17e6
xor byte [edx], dh
xchg dword [ebx + 0x7a3abbbb], edi
inc ebx
mov ebx, 0x76b8bbbb
add edi, dword [ebx + edi*4 - 0x6cfe4445]
mov ebx, 0x594cbbbb
mov eax, 0xb73a3073
mov ebx, 0x7eb8bbbb
fistp word ss:[edi - 0x6040cdb9]
jmp 0x7e179a
mov bl, 0xbb
mov ebx, 0xb72e30bb
mov ebx, 0x3630bbbb
stosd dword es:[edi], eax
mov ebx, 0x527abbbb
mov ecx, 0x7938b98a
mov edi, 0x4f3eb4f2
inc esp
inc esp
inc esp
xor byte [edi - 0x6020c961], dl
mov edi, 0x30bbb779
aaa
lahf
mov edi, 0xd3bbbbbb
sar dword [eax], cl
mov ch, 0xbb
shl dword [esi + 0x28], cl
xchg esp, eax
mov ebx, 0x369f97ba
fistp word [edi - 0x6048cdb9]
push ebx
mov esi, 0x52bbbbbb
ljmp 0x9fdf