joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001580
Capabilities:
Get common file path

Disassembly:
sub esp, 0x248
lea eax, [esp]
push ebx
push esi
push edi
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov edi, 0x100070d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x258]
not ecx
dec ecx
mov edi, ebx
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, esi
add ecx, edx
cmp ecx, 0x105
jb 0x100015d8
pop edi
pop esi
mov eax, 8
pop ebx
add esp, 0x248
ret
mov edi, 0x100070d0
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
pop ebp
jne 0x10001658
pop edi
pop esi
mov eax, 2
pop ebx
add esp, 0x248
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x248
ret
Function at 0x10001670
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
lea eax, [esp + 0x108]
push ebx
push esi
push edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, eax
test edx, edx
jne 0x100016a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
add esp, 0x210
ret
mov ebx, dword [esp + 0x220]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
cmp ecx, 0x105
jb 0x100016ce
pop edi
pop esi
mov eax, 8
pop ebx
add esp, 0x210
ret
lea ecx, [esp + 0xc]
push 0x105
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
test edx, edx
jne 0x100016f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
add esp, 0x210
ret
mov esi, dword [esp + 0x224]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
cmp ecx, 0x105
jb 0x10001720
pop edi
pop esi
mov eax, 8
pop ebx
add esp, 0x210
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x120]
push ecx
call fcn.10001520
mov edx, dword [esp + 0x238]
add esp, 0xc
and eax, 0xff
pop ebp
pop edi
mov dword [edx], eax
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret
Function at 0x10001e10
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp + 0x104]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov edi, 0x100070d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x218]
not ecx
dec ecx
mov edi, ebx
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, esi
add ecx, edx
cmp ecx, 0x104
jb 0x10001e6b
pop edi
pop esi
mov eax, 8
pop ebx
add esp, 0x208
ret
or ecx, 0xffffffff
lea edi, [esp + 0x110]
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x100070d0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x208
ret

Function at 0x10001f10
Capabilities:
Delete registry key

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SystemCurrentControlSetServicesVxD
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10001f5f
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x10001f5f
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret
Function at 0x10001f70
Capabilities:
Delete registry key
Delete service

Disassembly:
sub esp, 8
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, dword [esp + 0x18]
mov edi, eax
test edi, edi
je 0x10001fb7
push ebx
push 0xf01ff
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x10001fb3
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push edi
call ebx
pop ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SystemCurrentControlSetServices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x10001ffb
mov edx, dword [esp + 0xc]
push ebp
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 8
ret

Function at 0x10002010
Capabilities:
Delete file
Get common file path
Get startup folder

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push ebx
push eax
xor bl, bl
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x1000208c
lea ecx, [esp + 8]
push ecx
push 7
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x10002082
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x10002073
mov ecx, dword [esp + 0x114]
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x10002073
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov bl, 1
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, bl
pop ebx
add esp, 0x10c
ret

Function at 0x100020c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x100020df
mov eax, dword [esp + 8]
push eax
push str.cdnprot.vxd
push str.cdnprot.vxd
call fcn.100020a0
add esp, 0xc
push str.cdnprot.vxd
call fcn.10001580
add esp, 4
test eax, eax
jne 0x1000214c
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
push edx
push eax
push 0xf003f
push eax
push eax
push eax
push str.SystemCurrentControlSetServicesVxDCdnprot
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1000214a
push edi
mov edi, str.Cdnprot.VXD
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Cdnprot.VXD
push 1
push eax
mov eax, dword [esp + 0x18]
push str.StaticVxd
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
ret
Function at 0x10003800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10007838
cmp edx, dword [eax]
je 0x10003822
add eax, 8
inc ecx
cmp eax, 0x100078c8
jl 0x10003813
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10007838]
jne 0x10003950
mov eax, dword [0x1000880c]
cmp eax, 1
je 0x1000392a
test eax, eax
jne 0x10003853
cmp dword [0x10008810], 1
je 0x1000392a
cmp edx, 0xfc
je 0x10003950
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000388a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10004290
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10003d00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x100038cd
lea eax, [ebp - 0x1a4]
push eax
call fcn.10003d00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10006490
push edi
call fcn.10002460
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10004290
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100042a0
lea eax, [ebp - 0xa0]
push 0x10006470
push eax
call fcn.100042a0
push dword [esi + 0x1000783c]
lea eax, [ebp - 0xa0]
push eax
call fcn.100042a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.100052fe
add esp, 0x2c
pop edi
jmp 0x10003950
lea eax, [ebp + 8]
lea esi, [esi + 0x1000783c]
push 0
push eax
push dword [esi]
call fcn.10003d00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401000
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x204
push ebx
push ebp
push esi
push edi
push eax
xor edi, edi
xor ebp, ebp
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
xor ecx, ecx
nop
mov eax, ecx
cdq
idiv ebx
mov eax, dword [esp + 0x21c]
mov byte [esp + ecx + 0x14], cl
inc ecx
cmp ecx, 0x100
mov dl, byte [edx + eax]
mov byte [esp + ecx + 0x113], dl
jl 0x401020
xor eax, eax
jmp 0x401050
movzx edx, byte [esp + eax + 0x14]
movzx ecx, byte [esp + eax + 0x114]
add ecx, esi
add edx, ecx
and edx, 0xff
mov esi, edx
movzx ecx, byte [esp + esi + 0x14]
xor byte [esp + eax + 0x14], cl
mov cl, byte [esp + eax + 0x14]
xor byte [esp + esi + 0x14], cl
mov cl, byte [esp + esi + 0x14]
xor byte [esp + eax + 0x14], cl
inc eax
cmp eax, 0x100
jl 0x401050
mov ebx, dword [esp + 0x218]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor esi, esi
mov dword [esp + 0x10], eax
test eax, eax
jg 0x4010b7
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x204
ret
mov ebx, dword [esp + 0x218]
inc edi
and edi, 0xff
movzx edx, byte [esp + edi + 0x14]
add edx, ebp
and edx, 0xff
mov ebp, edx
movzx eax, byte [esp + ebp + 0x14]
xor byte [esp + edi + 0x14], al
mov al, byte [esp + edi + 0x14]
xor byte [esp + ebp + 0x14], al
mov al, byte [esp + ebp + 0x14]
xor byte [esp + edi + 0x14], al
movzx edx, byte [esp + ebp + 0x14]
movzx ecx, byte [esp + edi + 0x14]
add ecx, edx
and ecx, 0xff
mov dl, byte [esp + ecx + 0x14]
cmp dl, byte [esi + ebx]
jne 0x401103
xor dl, dl
sar bl, 0x19
nop
neg ebx
shl al, 0x1c
sar bl, 4
mov cl, cl
rol eax, 8
add ecx, 0x56
rol ebx, 0xe
inc ax
neg bx
not cl
or ax, bx
dec cl
add bl, 0xf
and ebx, 0x16
ror al, 7
shl bx, 0x12
inc eax
not ax
xor ebx, 0xe9
sub bx, cx
add cx, 0x84
add bl, 0
mov ax, ax
or cx, bx
shl bx, 0x12
nop
shl bl, 0xf
not cx
ror bl, 0x15
or cl, 0
rol bx, 0x12
not eax
or cl, bl
shl bl, 0xd
and cl, al
xor bx, cx
neg cx
dec ecx
mov eax, dword [esp + 0x218]
xor byte [esi + eax], dl
sar bl, 0x19
nop
neg ebx
shl al, 0x1c
sar bl, 4
mov cl, cl
rol eax, 8
add ecx, 0x56
rol ebx, 0xe
inc ax
neg bx
not cl
or ax, bx
dec cl
add bl, 0xf
and ebx, 0x16
ror al, 7
shl bx, 0x12
inc eax
not ax
xor ebx, 0xe9
sub bx, cx
add cx, 0x84
add bl, 0
mov ax, ax
or cx, bx
shl bx, 0x12
nop
shl bl, 0xf
not cx
ror bl, 0x15
or cl, 0
rol bx, 0x12
not eax
or cl, bl
shl bl, 0xd
and cl, al
xor bx, cx
neg cx
dec ecx
inc esi
cmp esi, dword [esp + 0x10]
jl 0x4010b0
mov eax, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
Function at 0x406183
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405078
and dword [ebp - 4], 0
cmp dword [0x40e978], 0
mov ebx, eax
jne 0x406234
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4062e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4062e5
push eax
call fcn.00405006
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e978], eax
call esi
push eax
call fcn.00405006
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e97c], eax
call esi
push eax
call fcn.00405006
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e980], eax
call esi
push eax
call fcn.00405006
pop ecx
mov dword [0x40e988], eax
test eax, eax
je 0x406234
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405006
pop ecx
mov dword [0x40e984], eax
mov eax, dword [0x40e984]
cmp eax, ebx
je 0x40628c
cmp dword [0x40e988], ebx
je 0x40628c
push eax
call fcn.00405081
push dword [0x40e988]
mov esi, eax
call fcn.00405081
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40628c
test edi, edi
je 0x40628c
call esi
test eax, eax
je 0x406283
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406283
test byte [ebp - 0xc], 1
jne 0x40628c
or dword [ebp + 0x10], 0x200000
jmp 0x4062c5
mov eax, dword [0x40e97c]
cmp eax, ebx
je 0x4062c5
push eax
call fcn.00405081
pop ecx
test eax, eax
je 0x4062c5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4062c5
mov eax, dword [0x40e980]
cmp eax, ebx
je 0x4062c5
push eax
call fcn.00405081
pop ecx
test eax, eax
je 0x4062c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e978]
call fcn.00405081
pop ecx
test eax, eax
je 0x4062e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4062e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407fee
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40ddd8]
jne 0x407ff8
repz ret
jmp fcn.004095d5
Function at 0x40f030
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40f052
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f059
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f048
mov eax, 1
add ebx, ebx
jne 0x40f06b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f060
jne 0x40f07c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f060
xor ecx, ecx
sub eax, 3
jb 0x40f090
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f102
mov ebp, eax
add ebx, ebx
jne 0x40f09b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f0cc
inc ecx
add ebx, ebx
jne 0x40f0b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0ad
jne 0x40f0c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f0ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f0dd
jmp 0x40f04e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f0ec
add edi, ecx
jmp 0x40f04e
pop esi
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f154
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf4dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf590]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f109
mov ecx, edi
jns 0x40f138
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf594]
or eax, eax
je 0x40f14e
mov dword [ebx], eax
add ebx, 4
jmp 0x40f126
call dword [esi + 0xf59c]
mov ebp, dword [esi + 0xf598]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40f188
sub esp, 0xffffff80
jmp 0x402d40
Function at 0x4062ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4062ee
xor eax, eax
test eax, eax
je 0x406300
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406300
xor ecx, ecx
jmp 0x406303
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x42ce04], 0
push esi
jne 0x406426
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 0x406400
mov dword [ecx*4 + 0x42ce00], eax
inc ecx
cmp ecx, 0x100
jl 0x4063fb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406457
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 + 0x42ce00]
xor eax, esi
inc ecx
dec edx
jne 0x406439
pop edi
not eax
pop esi
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x401813
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401852
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401852
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401852
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401852
cmp dword [ecx + 0x74], 0xe
jbe 0x401852
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100021f0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
mov eax, dword [0x10049100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x3f4], eax
call fcn.10013e90
add esp, 4
test eax, eax
je 0x100022cc
push 0x3e8
add eax, 0x150
push esi
push eax
call fcn.10022664
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002240
sub eax, edx
mov esi, 0x1505
push edi
sar eax, 1
xor edi, edi
add eax, eax
je 0x1000228c
nop dword [eax + eax]
dec eax
lea ebx, [ebx + 1]
mov dword [ebp - 0x3f0], eax
mov ecx, edi
mov eax, esi
shld edi, esi, 5
shl esi, 5
add esi, eax
movzx eax, byte [ebx - 1]
cdq
adc edi, ecx
add esi, eax
mov eax, dword [ebp - 0x3f0]
adc edi, edx
test eax, eax
jne 0x10002260
push edi
push esi
push dword [ebp - 0x3f4]
lea eax, [ebp - 0x3ec]
push str.LUNA_NOTIFY._d._llu
push eax
call fcn.100028f0
add esp, 0x14
lea eax, [ebp - 0x3ec]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d8af
mov esp, ebp
pop ebp
ret