joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, ecx
test ebx, ebx
je 0x100183ab
mov eax, dword [esi + 0x78]
test eax, eax
je 0x100183ab
push ebp
push edi
call fcn.10018a20
mov al, byte [esi + 0x10]
lea ecx, [esp + 0x3c]
push 1
push ecx
mov ecx, esi
mov dword [esi + 0x7c], 0
mov byte [esp + 0x44], al
call fcn.10018840
lea edx, [esp + 0x1c]
push edx
call dword [0x5b08564]
fild dword [esi + 0x1c]
push 0
fstp dword [esp + 0x1c]
call dword [0x5b08598]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdivr dword [esp + 0x18]
fild dword [esp + 0x1c]
fmul st(1)
fadd dword [0x5b088bc]
call fcn.1002d310
fild dword [esp + 0x20]
mov dword [esp + 0x1c], eax
fmul st(1)
fadd dword [0x5b088bc]
call fcn.1002d310
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push 8
push eax
mov ecx, esi
fstp st(0)
call fcn.10018840
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x14
push ecx
call dword [0x5b08568]
test eax, eax
je 0x100182eb
cmp dword [esp + 0x28], 1
jne 0x100182eb
mov ecx, dword [esp + 0x2c]
xor edi, edi
lea eax, [esi + 0x1ac]
cmp ecx, dword [eax]
je 0x100182d8
inc edi
add eax, 4
cmp edi, 0x10
jl 0x100182cb
push ecx
call dword [0x5b0858c]
cmp edi, 0x10
jne 0x100182e7
or edi, 0xffffffff
mov eax, edi
jmp 0x100182ee
or eax, 0xffffffff
lea edx, [esp + 0x13]
push 1
push edx
mov ecx, esi
mov byte [esp + 0x1b], al
call fcn.10018840
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x20]
push eax
mov eax, dword [esi + 0x1c]
push 0
push 0
push ecx
mov ecx, dword [esi + 0x50]
push edx
push eax
push 0
push 0
push ecx
call dword [0x5b080bc]
mov al, byte [esp + 0x3c]
cmp al, 1
jne 0x10018335
push 1
mov ecx, esi
call fcn.100183c0
jmp 0x10018361
cmp al, 2
jne 0x10018361
mov edx, dword [esi + 0x64]
mov ecx, dword [esi + 0x7c]
mov eax, dword [edx + 0x14]
mov edx, dword [esi + 0x5c]
push eax
mov eax, dword [esi + 0x78]
add ecx, eax
push ecx
push edx
lea ecx, [esi + 0x84]
call fcn.1002cba0
test eax, eax
mov dword [ebx], eax
jbe 0x10018361
add dword [esi + 0x7c], eax
mov eax, dword [esi + 0x7c]
mov ebp, dword [0x5b08138]
mov dword [ebx], eax
lea edi, [esi + 0x40]
lea ebx, [esi + 0x38]
push edi
call ebp
mov ecx, dword [edi]
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
sub ecx, eax
mov eax, dword [edi + 4]
sbb eax, edx
mov edx, dword [esi + 0x34]
cmp eax, edx
jg 0x1001839b
jl 0x10018391
cmp ecx, dword [esi + 0x30]
jae 0x1001839b
push 1
call dword [0x5b08220]
jmp 0x10018372
push ebx
call ebp
mov eax, dword [esi + 0x78]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x28
ret 4
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 4
Function at 0x1001e440
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x274
push ebx
push esi
push edi
mov ecx, 0xa
mov esi, 0x5b70620
lea edi, [esp + 0x17c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, 0x37
lea edi, [esp + 0x1a8]
push 0x80
push 4
push eax
rep stosd dword es:[edi], eax
push 2
lea eax, [esp + 0x190]
push 0x40000000
push eax
call dword [0x5b081d4]
mov ecx, dword [0x5b4c068]
mov edx, dword [0x5b4c06c]
mov esi, eax
mov eax, dword [0x5b4c070]
mov dword [esp + 0x44], ecx
mov cl, byte [0x5b4c074]
mov dword [esp + 0x4c], eax
mov byte [esp + 0x50], cl
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x51]
mov dword [esp + 0x48], edx
rep stosd dword es:[edi], eax
lea edx, [esp + 0x34]
mov dword [esp + 0x30], 0
push edx
stosb byte es:[edi], al
call dword [0x5b0822c]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x79]
mov byte [esp + 0x78], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, 0x64
mov cl, 0x25
mov byte [esp + 0x1a], al
mov byte [esp + 0x1f], al
mov byte [esp + 0x24], al
mov byte [esp + 0x29], al
mov byte [esp + 0x2e], al
mov eax, dword [esp + 0x3e]
mov byte [esp + 0x18], cl
mov byte [esp + 0x1c], cl
mov dl, 0x32
mov byte [esp + 0x21], cl
mov byte [esp + 0x26], cl
mov byte [esp + 0x2b], cl
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x1e], dl
mov byte [esp + 0x23], dl
mov byte [esp + 0x28], dl
mov byte [esp + 0x2d], dl
mov edx, dword [esp + 0x3a]
and eax, 0xffff
mov bl, 0x2e
and ecx, 0xffff
push eax
mov byte [esp + 0x1d], 0x34
mov byte [esp + 0x1f], 0x2d
mov byte [esp + 0x21], bl
mov byte [esp + 0x24], 0x2d
mov byte [esp + 0x26], bl
mov byte [esp + 0x29], 0x20
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2e], 0x3a
mov byte [esp + 0x30], bl
mov byte [esp + 0x33], 0
push ecx
and edx, 0xffff
mov eax, dword [esp + 0x3e]
mov ecx, dword [esp + 0x3c]
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x8c]
push edx
push eax
call dword [0x5b084a0]
add esp, 0x1c
lea ecx, [esp + 0x30]
lea edi, [esp + 0x78]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x80]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x14], 0x4d
push ecx
push edx
push esi
mov byte [esp + 0x21], 0x61
mov byte [esp + 0x22], 0x72
mov byte [esp + 0x23], 0x6b
mov byte [esp + 0x24], 0x54
mov byte [esp + 0x25], 0x69
mov byte [esp + 0x26], 0x6d
mov byte [esp + 0x27], 0x65
mov byte [esp + 0x28], 0
call dword [0x5b081d0]
push esi
call dword [0x5b08298]
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x7c]
push ecx
push eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x54]
push ecx
push edx
push 0x80000001
call fcn.10014ca0
add esp, 0x1c
pop edi
pop esi
pop ebx
add esp, 0x274
ret
Function at 0x1001e640
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x148
mov al, 0x50
push ebx
mov byte [esp + 9], al
mov byte [esp + 0x20], al
mov al, 0x73
push ebp
mov byte [esp + 0x2f], al
mov byte [esp + 0x31], al
push esi
lea eax, [esp + 0x28]
push edi
lea ecx, [esp + 0x10]
mov bl, 0x6c
push eax
push ecx
mov byte [esp + 0x18], 0x53
mov byte [esp + 0x19], 0x48
mov byte [esp + 0x1a], 0x4c
mov byte [esp + 0x1b], 0x57
mov byte [esp + 0x1c], 0x41
mov byte [esp + 0x1e], 0x49
mov byte [esp + 0x1f], 0x2e
mov byte [esp + 0x20], 0x64
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], 0
mov byte [esp + 0x35], 0x61
mov byte [esp + 0x36], 0x74
mov byte [esp + 0x37], 0x68
mov byte [esp + 0x38], 0x46
mov byte [esp + 0x39], 0x69
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], 0x65
mov byte [esp + 0x3c], 0x45
mov byte [esp + 0x3d], 0x78
mov byte [esp + 0x3e], 0x69
mov byte [esp + 0x40], 0x74
mov byte [esp + 0x42], 0x41
mov byte [esp + 0x43], 0
call fcn.1001b660
mov ebp, eax
mov al, 0x72
mov byte [esp + 0x45], al
mov byte [esp + 0x4c], al
mov byte [esp + 0x51], al
lea edx, [esp + 0x44]
lea eax, [esp + 0x24]
push edx
push eax
mov byte [esp + 0x2c], 0x4b
mov byte [esp + 0x2d], 0x45
mov byte [esp + 0x2e], 0x52
mov byte [esp + 0x2f], 0x4e
mov byte [esp + 0x30], 0x45
mov byte [esp + 0x31], 0x4c
mov byte [esp + 0x32], 0x33
mov byte [esp + 0x33], 0x32
mov byte [esp + 0x34], 0x2e
mov byte [esp + 0x35], 0x64
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], 0
mov byte [esp + 0x4c], 0x43
mov byte [esp + 0x4e], 0x65
mov byte [esp + 0x4f], 0x61
mov byte [esp + 0x50], 0x74
mov byte [esp + 0x51], 0x65
mov byte [esp + 0x52], 0x44
mov byte [esp + 0x53], 0x69
mov byte [esp + 0x55], 0x65
mov byte [esp + 0x56], 0x63
mov byte [esp + 0x57], 0x74
mov byte [esp + 0x58], 0x6f
mov byte [esp + 0x5a], 0x79
mov byte [esp + 0x5b], 0x41
mov byte [esp + 0x5c], 0
call fcn.1001b660
add esp, 0x10
mov dword [esp + 0x50], eax
mov byte [esp + 0x54], 0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x55]
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x15c]
mov ecx, dword [0x5b7cc7c]
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
call fcn.10010d70
mov edi, eax
xor esi, esi
test edi, edi
jbe 0x1001e7f1
cmp byte [esi + ebx], 0x5c
jne 0x1001e7ec
push esi
lea ecx, [esp + 0x58]
push ebx
push ecx
mov ecx, dword [0x5b7cc7c]
call fcn.10010ce0
lea edx, [esp + 0x54]
push edx
call ebp
test eax, eax
jne 0x1001e7ec
push eax
lea eax, [esp + 0x58]
push eax
call dword [esp + 0x58]
inc esi
cmp esi, edi
jb 0x1001e7bf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret
Function at 0x10025c04
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x54
push ebx
push esi
mov esi, ecx
mov bl, 0x53
mov cl, 0x4d
mov dl, 0x41
mov al, 0x5c
mov byte [esp + 0xe], cl
mov byte [esp + 0x12], cl
mov byte [esp + 0xc], bl
mov byte [esp + 0xd], dl
mov byte [esp + 0xf], al
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], dl
mov byte [esp + 0x13], al
mov cl, 0x73
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], dl
mov byte [esp + 0x23], al
mov byte [esp + 0x29], al
mov byte [esp + 0x2f], al
mov eax, dword [esp + 0x60]
mov bl, 0x6e
mov dl, 0x63
mov byte [esp + 0x1a], cl
mov byte [esp + 0x25], cl
mov byte [esp + 0x28], cl
mov byte [esp + 0x2e], cl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], dl
mov byte [esp + 0x21], bl
push eax
lea ecx, [esp + 0x38]
mov dl, 0x65
xor ebx, ebx
push 0x5b4ccd8
push ecx
mov byte [esp + 0x20], 0x44
mov byte [esp + 0x21], 0x6f
mov byte [esp + 0x22], 0x6d
mov byte [esp + 0x23], 0x61
mov byte [esp + 0x24], 0x69
mov byte [esp + 0x2b], 0x6f
mov byte [esp + 0x2c], 0x75
mov byte [esp + 0x2e], 0x74
mov byte [esp + 0x30], 0x55
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], 0x72
mov byte [esp + 0x36], 0x4e
mov byte [esp + 0x37], 0x61
mov byte [esp + 0x38], 0x6d
mov byte [esp + 0x39], dl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x17], bl
call dword [0x5b085d4]
add esp, 0xc
lea edx, [esp + 0x60]
lea eax, [esp + 0xc]
push edx
push eax
push 0x80000002
call dword [0x5b08000]
test eax, eax
je 0x10025cf9
pop esi
xor eax, eax
pop ebx
add esp, 0x54
ret 4
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x34]
push edi
push ecx
push edx
call dword [0x5b08068]
mov edi, eax
mov eax, dword [esp + 0x64]
push eax
call dword [0x5b08010]
cmp edi, ebx
lea edx, [esp + 0xf]
setne cl
add ecx, 0xa0
push 1
mov byte [esp + 0x13], cl
push edx
mov ecx, esi
call fcn.10010b10
lea eax, [esp + 0xf]
push eax
call dword [0x5b0821c]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x54
ret 4
Function at 0x10027290
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x28]
test esi, esi
push edi
jne 0x100272a5
pop edi
xor al, al
pop esi
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
push eax
push 0
push 0x2a
call dword [0x5b080e8]
mov edi, eax
test edi, edi
jne 0x100272c2
pop edi
xor al, al
pop esi
add esp, 0x1c
ret
mov cl, 0x65
mov al, 0x72
mov byte [esp + 0x15], cl
mov byte [esp + 0x18], cl
mov byte [esp + 0xa], cl
mov byte [esp + 0xb], cl
lea ecx, [esp + 0x14]
mov dl, 0x6c
push ecx
mov byte [esp + 0x18], 0x6b
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], 0x6e
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], 0x33
mov byte [esp + 0x1f], 0x32
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x21], 0x64
mov byte [esp + 0x22], dl
mov byte [esp + 0x23], dl
mov byte [esp + 0x24], 0
mov byte [esp + 0xc], 0x46
mov byte [esp + 0xd], al
mov byte [esp + 0x10], 0x4c
mov byte [esp + 0x11], 0x69
mov byte [esp + 0x12], 0x62
mov byte [esp + 0x13], al
mov byte [esp + 0x14], 0x61
mov byte [esp + 0x15], al
mov byte [esp + 0x16], 0x79
mov byte [esp + 0x17], 0
call dword [0x5b08228]
lea edx, [esp + 8]
push edx
push eax
call dword [0x5b081b0]
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [0x5b08170]
mov esi, eax
test esi, esi
jne 0x10027377
push edi
call dword [0x5b08298]
pop edi
xor al, al
pop esi
add esp, 0x1c
ret
push 0xffffffffffffffff
push esi
call dword [0x5b08294]
push edi
mov edi, dword [0x5b08298]
call edi
push esi
call edi
pop edi
mov al, 1
pop esi
add esp, 0x1c
ret
Function at 0x10086050
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ebx
lea eax, [eax + eax*2]
push ebp
xor ebp, ebp
push esi
lea eax, [eax + eax*4]
push edi
mov dword [esp + 0x10], ebp
lea ecx, [ecx + eax*2 + 0x20]
mov ax, word [edx]
imul ax, word [esp + 0x24]
cmp ax, 0xf800
mov word [ecx], ax
jge 0x1008608a
mov eax, 0xfffff800
jmp 0x1008609a
cmp ax, 0x7ff
jle 0x10086097
mov eax, 0x7ff
jmp 0x1008609a
movsx eax, ax
mov edi, edx
mov word [ecx], ax
lea esi, [edx + 0x10]
lea eax, [ecx + 2]
sub edi, ecx
mov dword [esp + 0x20], esi
mov ecx, 7
mov bx, word [edi + eax]
add esi, 0x10
mov word [eax], bx
mov bx, word [esi - 0x10]
mov word [eax + 0xe], bx
add eax, 2
dec ecx
jne 0x100860b0
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov esi, 1
mov ax, word [edi]
sub word [edx], ax
mov eax, dword [esp + 0x1c]
cmp dword [ecx + eax*4 + 0xd4], esi
jne 0x10086132
mov ebx, edx
lea esi, [edi + 2]
sub ebx, edi
mov edi, 7
mov cx, word [ebx + esi]
add esi, 2
movsx eax, cx
cdq
xor eax, edx
mov dword [esp + 0x18], ecx
sub cx, word [esi - 2]
sub eax, edx
add ebp, eax
movsx eax, cx
cdq
xor eax, edx
mov word [esi - 2], cx
sub eax, edx
mov edx, dword [esp + 0x10]
add edx, eax
dec edi
mov dword [esp + 0x10], edx
jne 0x100860f4
pop edi
mov eax, ebp
mov ecx, edx
pop esi
pop ebp
sub eax, ecx
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x20]
mov dx, word [ebx]
add ebx, 0x10
mov cx, dx
mov dword [esp + 0x18], edx
movsx eax, cx
sub cx, word [edi + esi*2]
cdq
xor eax, edx
mov word [edi + esi*2], cx
sub eax, edx
add ebp, eax
movsx eax, cx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x10]
add edx, eax
inc esi
cmp esi, 8
mov dword [esp + 0x10], edx
jb 0x10086136
pop edi
mov eax, ebp
mov ecx, edx
pop esi
pop ebp
sub eax, ecx
pop ebx
pop ecx
ret
Function at 0x48edd4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a9b30]
jne 0x48edde
repz ret
jmp fcn.00493887

Function at 0x491a11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a9b30]
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.0048bfb2
and dword [ebp - 0x14], 0
cmp dword [0x4acb0c], 0
mov dword [ebp - 0x18], eax
jne 0x491ac4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x491b6c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x491b6c
mov esi, dword [fcn.00487fe0]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4acb0c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4acb10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4acb14], eax
call edi
push eax
call esi
mov dword [0x4acb1c], eax
test eax, eax
je 0x491ac4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4acb18], eax
mov eax, dword [0x4acb18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00487fe4]
cmp eax, ecx
je 0x491b1d
cmp dword [0x4acb1c], ecx
je 0x491b1d
push eax
call esi
push dword [0x4acb1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x491b1d
test ebx, ebx
je 0x491b1d
call edi
test eax, eax
je 0x491b14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x491b14
test byte [ebp - 8], 1
jne 0x491b1d
or dword [ebp + 0x10], 0x200000
jmp 0x491b50
mov eax, dword [0x4acb10]
cmp eax, dword [ebp - 0x18]
je 0x491b50
push eax
call esi
test eax, eax
je 0x491b50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x491b50
mov eax, dword [0x4acb14]
cmp eax, dword [ebp - 0x18]
je 0x491b50
push eax
call esi
test eax, eax
je 0x491b50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4acb0c]
call esi
test eax, eax
je 0x491b6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x491b6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048edd4
leave
ret
Function at 0x40e340
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
test edi, edi
je 0x40e3a5
cmp dword [edi], 0
mov esi, dword [esi]
je 0x40e385
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e39b
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e39b
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 0x40e39b
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 [0x551f08], 0
jne 0x40e3e5
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e3d7
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x551f10], eax
mov byte [0x551f08], 1
jmp 0x40e3ea
mov eax, dword [0x551f10]
mov byte [0x551f08], 1
jmp 0x40e3ea
mov eax, dword [0x551f10]
test eax, eax
je 0x40e400
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 0x40e4d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x54e414]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0040e420
mov esi, eax
test esi, esi
jne 0x40e5c7
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x40e599
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040e4d0
mov esi, eax
test esi, esi
jne 0x40e5c7
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x40e560
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40e5b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.0040e340
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40e5d6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004d1486
mov esp, ebp
pop ebp
ret 4
Function at 0x40eb00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4fb960
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x54e414]
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 - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], 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 0x40eba8
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x40eba8
call fcn.0040e120
mov edi, eax
jmp 0x40ec9d
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40ebc5
call fcn.0040e120
jmp 0x40ec90
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x40ebe0
call fcn.0040e120
jmp 0x40ec90
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x14], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40ebfe
mov edi, 0x8007000e
jmp 0x40ec92
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x40ecd7
jb 0x40ec1c
cmp eax, 0xffffffff
ja 0x40ecd7
cmp eax, 0x400
jbe 0x40ec2e
push eax
lea ecx, [ebp]
call fcn.004114f0
jmp 0x40ec45
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x40ec45
mov dword [ebp - 4], 1
cmp dword [ebp], 0
jne 0x40ec59
mov edi, 0x8007000e
jmp 0x40ec92
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 0x40ec76
call fcn.0040e120
jmp 0x40ec90
mov eax, dword [ebp]
xor edx, edx
push dword [ebp + 0x41c]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x24]
push dword [ebp]
call fcn.0040f890
mov edi, eax
test esi, esi
je 0x40ec9d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40ecb0
lea ecx, [ebp]
call fcn.004114e0
nop dword [eax]
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.004d1486
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
push 0x80070216
call fcn.0040e030
int3
Function at 0x414560
Capabilities:
Delete file

Disassembly:
mov ecx, dword [esp + 4]
jmp fcn.00426bd0

Function at 0x414570
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbe50
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x54e414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0040a670
test al, al
je 0x4145b0
xor al, al
jmp 0x41476b
push edi
call fcn.004144a0
add esp, 4
test al, al
je 0x4145c4
mov al, 1
jmp 0x41476b
push 0
mov ecx, edi
call fcn.0040a680
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x414613
lea ecx, [ebp - 0x28]
call fcn.0040a8b0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.00427080
test al, al
je 0x414604
push 0
lea ecx, [ebp - 0x28]
call fcn.0040a680
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040a7e0
push edi
call fcn.004144a0
add esp, 4
test al, al
jne 0x4145bd
mov ecx, edi
call fcn.0040aef0
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x41470c
mov ecx, edi
call fcn.0040ad00
mov ebx, eax
nop dword [eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x41464c
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x41466f
mov eax, ebx
cmp ecx, 8
jb 0x414665
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x4146fc
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040a590
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040a670
test al, al
jne 0x4146ed
lea eax, [ebp - 0x28]
push eax
call fcn.00414280
add esp, 4
test al, al
jne 0x4146ed
push 0
lea ecx, [ebp - 0x28]
call fcn.0040a680
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4146ed
lea ecx, [ebp - 0x40]
call fcn.0040a8b0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00427080
test al, al
je 0x4146e1
push 0
lea ecx, [ebp - 0x40]
call fcn.0040a680
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040a7e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040a7e0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x414640
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.00414280
add esp, 4
test al, al
jne 0x414762
push 0
mov ecx, edi
call fcn.0040a680
push eax
call ebx
test eax, eax
jne 0x414762
lea ecx, [ebp - 0x40]
call fcn.0040a8b0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.00427080
test al, al
je 0x414753
push 0
lea ecx, [ebp - 0x40]
call fcn.0040a680
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040a7e0
push edi
call fcn.004144a0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d1486
mov esp, ebp
pop ebp
ret