joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40842c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], 0x11c
push 0
push eax
call fcn.0040d550
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4085d3
mov ecx, dword [ebp - 0x120]
cmp ecx, 6
je 0x4084dc
cmp ecx, 0xa
je 0x4084dc
cmp ecx, 5
jne 0x4085d3
cmp dword [ebp - 0x11c], 2
jne 0x4084ba
cmp byte [ebp - 0xa], 1
jne 0x4084a6
call fcn.00408333
cmp eax, 9
je case.0x408522.1
test dword [ebp - 0xc], 0x8000
jne 0x4085d3
push 2
jmp 0x40859e
cmp dword [ebp - 0x11c], 1
jne 0x4085d3
test dword [ebp - 0xc], 0x200
jne 0x4085d3
xor eax, eax
inc eax
jmp 0x4085d5
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 8]
and dword [ebp - 8], 0
push eax
push ecx
push ecx
call fcn.004081d8
add esp, 0xc
test eax, eax
je 0x4085d3
mov eax, dword [ebp - 8]
cmp eax, 0x30
ja 0x40857b
je case.0x408522.1
cmp eax, 0xb
ja 0x408529
je case.0x408522.2
dec eax
cmp eax, 9
ja case.0x408522.2
movzx eax, byte [eax + 0x4085fc]
jmp dword [eax*4 + 0x4085e8]
cmp eax, 0x10
ja 0x40855a
je case.0x408522.4
sub eax, 0xc
je case.0x408522.7
sub eax, 1
je case.0x408522.7
sub eax, 1
je case.0x408522.7
sub eax, 1
je case.0x408522.7
jmp case.0x408522.2
sub eax, 0x11
je case.0x408522.7
sub eax, 1
je case.0x408522.7
sub eax, 7
je case.0x408522.7
dec eax
sub eax, 1
jmp 0x4085b8
cmp eax, 0x7d
ja 0x4085a1
je case.0x408522.4
sub eax, 0x46
je case.0x408522.4
dec eax
sub eax, 1
je case.0x408522.4
sub eax, 0xc
je case.0x408522.4
sub eax, 0x25
je 0x40859c
sub eax, 1
jne case.0x408522.2
push 4
pop eax
jmp 0x4085d5
sub eax, 0x7e
je case.0x408522.4
sub eax, 3
je case.0x408522.4
sub eax, 1
je case.0x408522.4
sub eax, 0x3a
je case.0x408522.4
sub eax, 3
je case.0x408522.4
mov al, byte [ebp - 0xa]
cmp al, 3
je case.0x408522.7
cmp al, 2
je case.0x408522.7
test byte [ebp - 0xc], 2
jne case.0x408522.4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c7be
leave
ret
push 3
jmp 0x40859e

Function at 0x408606
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 8], eax
test eax, eax
je 0x40866c
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.0040c7be
leave
ret
Function at 0x408c8a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp edi, 0x80000003
jne 0x408cb7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040c7be
leave
ret
push esi
push 0x802
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.0040d550
mov esi, dword [0x43ad7c]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.004060ef
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
push edi
push str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x80c]
add esp, 0x2c
lea ecx, [ecx - 0x10]
call fcn.004015b2
lea ecx, [ebp - 0x808]
call fcn.004095d5
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
sub eax, 3
je 0x408d4b
sub eax, 1
jne 0x408d43
int3
xor eax, eax
inc eax
jmp 0x408caa
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4095d5
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x409644
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x409620
push ebx
push edi
push eax
call fcn.0040d6b0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x40963b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x40a768
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
mov esi, ecx
call fcn.004015db
push eax
lea ecx, [ebp - 8]
call fcn.00401f9b
mov dword [ebp - 0xc], esi
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [ebp + ecx - 0xc]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x40a79e
push edx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040c3f7
mov ecx, dword [0x43ae88]
mov eax, dword [eax + 4]
test eax, eax
jne 0x40a7ce
mov eax, ecx
cmp eax, ecx
je 0x40a7e0
add eax, 0xc
lea ecx, [ebp - 8]
push eax
call fcn.00401c8c
jmp 0x40a7f6
or esi, 0x4000
lea edx, [ebp - 8]
mov ecx, esi
call fcn.00404974
mov esi, eax
test esi, esi
js 0x40a865
mov eax, dword [ebp - 8]
xor edx, edx
mov esi, dword [edi]
inc edx
mov edi, 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x40a81b
push edi
lea ecx, [ebp - 8]
call fcn.00402095
mov eax, dword [ebp - 8]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.004031a1
test esi, esi
jne 0x40a83a
mov esi, 0x80040709
jmp 0x40a865
mov esi, dword [ebp - 8]
test esi, esi
jne 0x40a845
xor eax, eax
jmp 0x40a84c
push esi
call fcn.00415b2d
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.00401ed9
cmp byte [ebp + 8], 0
je 0x40a863
mov ecx, dword [ebp - 8]
call fcn.00404846
xor esi, esi
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.004015b2
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c7be
leave
ret

Function at 0x40d0f3
Capabilities:
Parse pe header

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

Function at 0x41d0f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d11d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d11d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405980
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
call dword [sym.imp.MSVCRT.dll_rand]
test al, 3
jne 0x405a00
mov eax, dword [esp + 8]
push 0x40870c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x405a00
push ebx
push esi
push edi
mov ecx, 0x40d
mov esi, 0x408820
mov edi, 0x42e058
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov ecx, 0x54321cba
mov bl, byte [eax + 0x42e058]
mov edx, ecx
sar edx, 0x17
xor bl, dl
add ecx, 0x1234567f
mov byte [eax + 0x42e058], bl
inc eax
cmp eax, 0x1034
jb 0x4059bf
push ebp
push 0x1034
push 1
push 0x42e058
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9e1058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009e11a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9e107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9e106a
add dl, dl
jne 0x9e1089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9e10dc
xor eax, eax
add dl, dl
jne 0x9e1096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9e117d
add dl, dl
jne 0x9e10a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9e10b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9e10bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9e10c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9e10d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9e1075
mov eax, 1
add dl, dl
jne 0x9e10ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9e10f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9e10e1
sub eax, ebx
mov ebx, 1
jne 0x9e1128
mov ecx, 1
add dl, dl
jne 0x9e110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9e1119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9e1105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9e1075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9e113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9e114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9e1136
cmp eax, 0x7d00
jae 0x9e116d
cmp eax, 0x500
jb 0x9e1168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9e1075
cmp eax, 0x7f
ja 0x9e1170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9e1075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9e119e
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 0x9e1075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4157f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x415015
lea edi, [esi - 0x14015]
push edi
or ebp, 0xffffffff
jmp 0x415812
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x415819
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x415808
mov eax, 1
add ebx, ebx
jne 0x41582b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x415820
jne 0x41583c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x415820
xor ecx, ecx
sub eax, 3
jb 0x415850
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4158c2
mov ebp, eax
add ebx, ebx
jne 0x41585b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x415868
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41588c
inc ecx
add ebx, ebx
jne 0x415878
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41586d
jne 0x415889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41586d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4158ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41589d
jmp 0x41580e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4158ac
add edi, ecx
jmp 0x41580e
pop esi
mov edi, esi
mov ecx, 0xeef
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x4158d9
mov eax, dword [edi]
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x4158ca
lea edi, [esi + 0x13000]
mov eax, dword [edi]
or eax, eax
je 0x415921
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4158df
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1506c]
or eax, eax
je 0x41591b
mov dword [ebx], eax
add ebx, 4
jmp 0x4158fc
call dword [esi + 0x15068]
mov ebp, dword [esi + 0x15070]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x415955
sub esp, 0xffffff80
jmp 0x401eb4
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x241d5bf8
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5c5d39be
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x404d00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x404d32
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.004054e0
pop ecx
mov esi, eax
test esi, esi
jne 0x404d65
push 1
call fcn.00404530
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x407288], eax
mov dword [0x40728c], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404da0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test eax, eax
jne 0x404dbb
mov ebx, dword [0x407358]
mov esi, ebx
xor ecx, ecx
jmp 0x404dde
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404dc6
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404dd9
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404dc1
lea eax, [ecx + 1]
push eax
call fcn.004054e0
pop ecx
mov edi, eax
mov dword [0x407294], eax
cmp dword [0x407294], 0
jne 0x404e05
push 1
call fcn.00404530
pop ecx
mov esi, ebx
jmp 0x404e3a
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404e0e
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404e35
mov ecx, edi
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x404e25
pop eax
mov eax, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404e09
mov byte [edi], 0
cmp ebx, dword [0x407358]
je 0x404e51
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0xfa14fbe
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
mov ecx, 0x12ff0799
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x631f6402
nop
nop
nop
nop
test eax, eax
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x4974ad0
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402690
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x4026db
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4026d4
test esi, esi
je 0x4026d4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4026b0
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4028c0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402910
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4029e8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40294e
cmp eax, 4
jne 0x402970
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40295e
cmp edx, 4
je 0x40295e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004028c0
Function at 0x10002c70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10049100]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0x28]
push 0x28
mov byte [ebp - 0xc], al
call fcn.1001dcc6
add esp, 4
test eax, eax
je 0x10002caf
movups xmm0, xmmword [ebp + 8]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp + 0x18]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0xc]
movq qword [eax + 0x20], xmm0
jmp 0x10002cb1
xor eax, eax
lea ecx, [ebp - 0x30]
push ecx
push 0
push eax
push 0x10001550
push 0
push 0
call fcn.1002662f
add esp, 0x18
mov dword [ebp - 0x34], eax
test eax, eax
je 0x10002cfa
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x10002cf3
push ecx
push eax
call fcn.1001c6bb
add esp, 8
test eax, eax
jne 0x10002cf3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001e01d
mov esp, ebp
pop ebp
ret
push 1
call fcn.1001cdc1
push 6
mov dword [ebp - 0x30], 0
call fcn.1001cdc1
int3

Function at 0x10002d40
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x10049100]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm1, xmmword [ebp + 8]
push esi
movups xmm0, xmmword [ebp + 0x18]
mov esi, dword [ebp + 0x28]
movd eax, xmm1
push edi
mov edi, dword [ebp + 0x2c]
push eax
movups xmmword [ebp - 0x404], xmm0
mov dword [ebp - 0x3f0], esi
mov dword [ebp - 0x3f4], eax
call fcn.10014560
add esp, 4
test eax, eax
je 0x10002e29
push 0x3e8
add eax, 0x10
push edi
push eax
call fcn.10022b04
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002da2
sub eax, edx
xor edi, edi
sar eax, 1
mov esi, 0x1505
push ebx
lea ebx, [eax + eax]
test ebx, ebx
je 0x10002de9
mov eax, esi
mov ecx, edi
shld edi, esi, 5
shl esi, 5
add esi, eax
adc edi, ecx
mov ecx, dword [ebp - 0x3f0]
movzx eax, byte [ecx]
cdq
add esi, eax
adc edi, edx
inc ecx
mov dword [ebp - 0x3f0], ecx
sub ebx, 1
jne 0x10002dc0
push edi
push esi
push dword [ebp - 0x3f4]
lea eax, [ebp - 0x3ec]
push str.LUNA_NOTIFY._d._llu
push eax
call fcn.10002f40
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 ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001e01d
mov esp, ebp
pop ebp
ret
Function at 0x100053e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038bd3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10049100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
mov byte [ebp - 4], 2
je 0x100054da
test dl, 0x10
jne 0x100054da
mov al, 1
jmp 0x100054dc
xor al, al
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
mov ebx, dword [ecx + 4]
mov edx, ebx
mov esi, dword [esi + 0x18]
sar edx, 3
cmp esi, edx
jae 0x10005500
lea eax, [esi*8]
mov dword [ecx + 4], eax
jmp 0x10005533
jbe 0x10005533
mov eax, dword [ecx + 8]
sar eax, 3
cmp esi, eax
jbe 0x10005518
lea eax, [ebp + 0x17]
push eax
push esi
call fcn.10004740
jmp 0x10005533
sub esi, edx
je 0x10005530
shl esi, 3
push esi
push 0
push ebx
call fcn.1001fc50
add esp, 0xc
lea ecx, [edi + 0x40]
add ebx, esi
mov dword [ecx + 4], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c