joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cfe0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x422015
lea edi, [esi - 0x21015]
push edi
or ebp, 0xffffffff
jmp 0x42d002
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42d009
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42cff8
mov eax, 1
add ebx, ebx
jne 0x42d01b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42d010
jne 0x42d02c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42d010
xor ecx, ecx
sub eax, 3
jb 0x42d040
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42d0b2
mov ebp, eax
add ebx, ebx
jne 0x42d04b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42d058
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42d07c
inc ecx
add ebx, ebx
jne 0x42d068
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42d05d
jne 0x42d079
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42d05d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42d09c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42d08d
jmp 0x42cffe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42d09c
add edi, ecx
jmp 0x42cffe
pop esi
mov edi, esi
mov ecx, 0x6bf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42d0ba
cmp byte [edi], 6
jne 0x42d0ba
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 0x42d0bf
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x42d12e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3df4c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3e024]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42d0ec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3e02c]
or eax, eax
je 0x42d128
mov dword [ebx], eax
add ebx, 4
jmp 0x42d109
call dword [esi + 0x3e028]
mov ebp, dword [esi + 0x3e030]
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 0x42d162
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x10006762
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1005f070]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10060d58], 0
jne 0x10006812
and dword [ebp - 0x6c], 0
lea eax, [ebp - 0x6c]
push esi
push eax
push 0x20019
push ecx
mov edx, str.SOFTWAREMicrosoftInternet_Explorer
mov dword [ebp - 0x70], 0x64
mov ecx, 0x80000002
call fcn.1002bf39
xor esi, esi
inc esi
test eax, eax
jne 0x100067fc
movzx eax, byte [ebp - 0x68]
xor ecx, ecx
cmp dword [ebp - 0x74], esi
cmove eax, ecx
mov byte [ebp - 0x68], al
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x74]
push eax
push ecx
push str.Version
push dword [ebp - 0x6c]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x100067fc
cmp word [ebp - 0x68], ax
je 0x100067fc
push 0xa
pop edx
lea ecx, [ebp - 0x68]
call fcn.1002bf39
mov ecx, dword [0x10060d54]
cmp eax, 4
cmova ecx, esi
mov dword [0x10060d54], ecx
cmp dword [ebp - 0x6c], 0
mov dword [0x10060d58], esi
pop esi
je 0x10006812
push dword [ebp - 0x6c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [0x10060d54]
xor ecx, ebp
call fcn.1002f764
leave
ret
Function at 0x10009b64
Capabilities:
Delete registry value

Disassembly:
push 0x1c
mov eax, 0x10031761
call fcn.10030d83
mov ebx, edx
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov edi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x18]
mov edx, str.SOFTWARE
push eax
lea eax, [ebp - 0x28]
push eax
sub esp, 0x14
call fcn.1002bf39
test eax, eax
jne 0x10009c8d
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
mov edx, 0x10036e08
push eax
sub esp, 0x14
call fcn.1002bf39
test eax, eax
jne 0x10009c8d
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
mov edx, str.Internet_Explorer
push eax
sub esp, 0x14
call fcn.1002bf39
test eax, eax
jne 0x10009c8d
cmp dword [ebp + 8], edi
mov eax, str.Default_HTML_Editor
mov ecx, dword [ebp - 0x14]
mov esi, str.Default_MHTML_Editor
cmove esi, eax
mov edx, esi
call fcn.1000b7bc
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
mov edx, esi
push eax
sub esp, 0x14
call fcn.1002bf39
test eax, eax
jne 0x10009c8d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
mov edx, 0x10036e40
push eax
sub esp, 0x14
call fcn.1002bf39
test eax, eax
jne 0x10009c8d
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
mov edx, 0x100364c0
push eax
sub esp, 0x14
call fcn.1002bf39
test eax, eax
jne 0x10009c8d
push str.Description
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0x1c]
xor esi, esi
push esi
mov ecx, ebx
call fcn.1002bf39
call fcn.10006762
test eax, eax
je 0x10009c8a
push esi
push esi
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
xor edi, edi
inc edi
cmp dword [ebp - 0x1c], 0
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
je 0x10009c9e
push dword [ebp - 0x1c]
call esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x20], ebx
je 0x10009cad
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x10], ebx
je 0x10009cba
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x10009cc7
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x24], ebx
je 0x10009cd4
push dword [ebp - 0x24]
call esi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x28], ebx
je 0x10009ce1
push dword [ebp - 0x28]
call esi
mov eax, edi
call fcn.10030d61
ret 4
Function at 0x1000eae7
Capabilities:
Create process on windows

Disassembly:
push 0x90
mov eax, 0x10031b12
call fcn.10030db7
mov edi, edx
mov eax, dword [ebp + 0x20]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x68], eax
xor esi, esi
mov eax, dword [ebp + 0x24]
mov ebx, esi
mov dword [ebp - 0x64], eax
call fcn.1002bf39
push eax
push ecx
push dword [0x10038130]
lea ecx, [ebp - 0x7c]
call fcn.1002bf39
push 7
mov dword [ebp - 4], esi
xor eax, eax
pop ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], ecx
mov word [ebp - 0x60], ax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], ecx
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 2
call fcn.10021463
test al, al
je 0x1000ebb9
call fcn.1002bf39
test al, al
jne 0x1000ebb9
test edi, edi
je 0x1000ec68
cmp word [edi], si
je 0x1000ec68
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1000eb68
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x48]
call fcn.1002bf39
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x28]
call fcn.1002bf39
push eax
lea ecx, [ebp - 0x60]
call fcn.1002bf39
lea ecx, [ebp - 0x28]
call fcn.1000ccca
cmp dword [ebp - 0x50], 0
je 0x1000ebb9
cmp dword [ebp - 0x4c], 8
lea ebx, [ebp - 0x60]
lea edi, [ebp - 0x48]
cmovae ebx, dword [ebp - 0x60]
cmp dword [ebp - 0x34], 8
cmovae edi, dword [ebp - 0x48]
push dword [ebp - 0x64]
push dword [ebp - 0x68]
push esi
push esi
push 0x400
push esi
push esi
push esi
push edi
push ebx
call dword [sym.imp.kernel32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x1000ec36
lea ecx, [ebp - 0x9c]
call fcn.1002bf39
push eax
push ecx
push dword [0x1003812c]
lea ecx, [ebp - 0x24]
call fcn.1002bf39
cmp byte [ebp - 0x24], 0
je 0x1000ec36
mov ecx, dword [ebp - 0x14]
call fcn.1002bf39
mov edi, eax
test edi, edi
je 0x1000ec36
cmp byte [ebp - 0x1c], 0
je 0x1000ec22
mov ecx, dword [ebp - 0x14]
call fcn.1002bf39
test eax, eax
je 0x1000ec22
mov ecx, dword [ebp - 0x18]
mov edx, eax
call fcn.1002bf39
push dword [ebp - 0x14]
xor cl, cl
call fcn.1002bf39
mov ecx, dword [ebp - 0x20]
mov edx, edi
call fcn.1002bf39
xor eax, eax
mov dword [ebp - 0x20], vtable.Mso::Logging::StructuredObject_unsigned_int__1_.0
mov word [ebp - 0x14], ax
mov edx, 0x851
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], str.Param
push eax
push str.HevCreateProcess_
push ecx
push 0x64
mov ecx, 0x170b0c5
mov dword [ebp - 0x18], esi
call fcn.1002bf39
lea ecx, [ebp - 0x48]
call fcn.1000ccca
lea ecx, [ebp - 0x60]
call fcn.1000ccca
cmp byte [ebp - 0x7c], 0
je 0x1000ecbc
mov ecx, dword [ebp - 0x6c]
call fcn.1002bf39
mov edi, eax
test edi, edi
je 0x1000ecbc
cmp byte [ebp - 0x74], 0
je 0x1000eca8
mov ecx, dword [ebp - 0x6c]
call fcn.1002bf39
test eax, eax
je 0x1000eca8
mov ecx, dword [ebp - 0x70]
mov edx, eax
call fcn.1002bf39
push dword [ebp - 0x6c]
xor cl, cl
call fcn.1002bf39
mov ecx, dword [ebp - 0x78]
mov edx, edi
call fcn.1002bf39
mov eax, esi
call fcn.10030d76
ret 0x20
Function at 0x1001762b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x10
mov esi, ecx
push 1
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1001766d
push edi
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
test eax, eax
je 0x1001766d
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x1001766d
cmp word [eax + 2], 0
je 0x1001766d
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x1001766d
add eax, 0x30
jmp 0x10017672
mov eax, 0x1003901c
pop edi
pop esi
ret
Function at 0x1001d0a2
Capabilities:
Get thread local storage value

Disassembly:
push 8
mov eax, 0x100323df
call fcn.10030d83
cmp byte [0x100604ac], 0
push dword [0x100604a8]
je 0x1001d0c5
call dword [sym.imp.kernel32.dll_FlsGetValue]
jmp 0x1001d0cb
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1001d114
push 0x14
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x1001d11c
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
push 8
pop ecx
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call fcn.1000ccf7
mov dword [esi], eax
push esi
mov dword [eax], edi
mov dword [eax + 4], edi
mov ecx, dword [esi]
mov dword [ecx], esi
mov ecx, 0x100604a8
call fcn.1002bf39
mov eax, esi
call fcn.10030d61
ret
call fcn.1002bf39
int3
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219

Function at 0x40d650
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x40d66a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40d671
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40d660
mov eax, 1
add ebx, ebx
jne 0x40d683
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40d678
jne 0x40d694
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d678
xor ecx, ecx
sub eax, 3
jb 0x40d6a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40d71a
mov ebp, eax
add ebx, ebx
jne 0x40d6b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40d6c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40d6e4
inc ecx
add ebx, ebx
jne 0x40d6d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40d6c5
jne 0x40d6e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d6c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40d704
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40d6f5
jmp 0x40d666
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40d704
add edi, ecx
jmp 0x40d666
pop esi
mov edi, esi
mov ecx, 0x15b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40d722
cmp byte [edi], 5
jne 0x40d722
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 0x40d727
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40d796
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe110]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe160]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40d754
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe164]
or eax, eax
je 0x40d790
mov dword [ebx], eax
add ebx, 4
jmp 0x40d771
call dword [esi + 0xe174]
mov ebp, dword [esi + 0xe168]
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 0x40d7ca
sub esp, 0xffffff80
jmp 0x40327f
Function at 0x4013e3
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40ca60
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40cc8f
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ebp, dword [sym.imp.USER32.dll_ReleaseDC]
nop dword [eax]
push str.dHJdvghcgyhushgjdshgj
push 0x629ed0
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 6
push str.dHJdvghcgyhushgjdshgj
push 0x629ed0
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xbb
push str.dHJdvghcgyhushgjdshgj
push 0x629ed0
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x38
push str.dHJdvghcgyhushgjdshgj
push 0x629ed0
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0xe1
push str.dHJdvghcgyhushgjdshgj
push 0x629ed0
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xb7
push str.dHJdvghcgyhushgjdshgj
push 0x629ed0
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x12
push str.dHJdvghcgyhushgjdshgj
push 0x629ed0
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xf5
push str.dHJdvghcgyhushgjdshgj
push 0x629ed0
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0xe0
push str.dHJdvghcgyhushgjdshgj
push 0x629ed0
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xc9
push str.dHJdvghcgyhushgjdshgj
push 0x629ed0
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x46
push str.dHJdvghcgyhushgjdshgj
push 0x629ed0
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0xb2
push str.dHJdvghcgyhushgjdshgj
push 0x629ed0
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x93
push str.dHJdvghcgyhushgjdshgj
push 0x629ed0
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0xa9
push str.dHJdvghcgyhushgjdshgj
push 0x629ed0
call fcn.00402ef0
add esp, 8
push eax
call fcn.004065a0
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x7f
inc ebx
cmp esi, ebx
jne 0x40ca80
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402e4b
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40cca0
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x10]
cmp dword [eax + 0x14], 0x10
mov ebp, eax
jb 0x40ccb8
mov ebp, dword [eax]
mov esi, dword [esp + 0x20]
xor esi, edi
cmp edi, 4
jae 0x40ccc7
mov ecx, edi
jmp 0x40cd23
mov dword [esp], edi
shr edi, 2
cmp edi, 2
mov eax, 1
cmovae eax, edi
mov dword [esp + 4], eax
xor ebx, ebx
nop
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ecx, 0x629ed0
push edi
call fcn.00403ff8
imul eax, dword [ebp + ebx*4], 0x5bd1e991
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul eax, ecx, 0x5bd1e991
imul esi, esi, 0x5bd1e991
xor esi, eax
inc ebx
cmp dword [esp + 4], ebx
jne 0x40cce0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
mov edi, dword [esp]
and edi, 0xfffffffc
and ecx, 3
xor eax, eax
cmp ecx, 1
je 0x40cd4c
cmp ecx, 2
je 0x40cd42
cmp ecx, 3
jne 0x40cd5b
movsx eax, byte [ebp + edi + 2]
shl eax, 0x10
movsx ecx, byte [ebp + edi + 1]
shl ecx, 8
xor eax, ecx
movsx ecx, byte [ebp + edi]
xor ecx, eax
imul eax, ecx, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e991
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4037ab
Capabilities:
Terminate process

Disassembly:
jmp 0x460d63
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x460d74
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405cf9
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4038ff
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a0d07
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a0d18
pop esi
ret
push ebx
push edi
push esi
call fcn.004a0bee
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040426e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a0d40
push ebx
push esi
push edi
call fcn.00405ad3
add esp, 0xc
push 0
call fcn.00406703
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405b9b
Capabilities:
Parse pe header

Disassembly:
jmp 0x4229b9
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4229f8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4229f8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4229f8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4229f8
cmp dword [ecx + 0x74], 0xe
jbe 0x4229f8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x49ee19
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x623d24]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49ee64
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049f2db
test al, al
jne 0x49ee5e
sub edx, 2
cmp edx, edi
jne 0x49ee44
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49ee86
lea eax, [edi + 2]
cmp edx, eax
je 0x49ee86
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049ea12
add esp, 0x10
jmp 0x49ef80
push esi
lea ecx, [ebp - 0x255]
call fcn.0049f2db
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49eec9
push dword [ebp - 0x25c]
jmp 0x49ee76
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49ef06
cmp word [ebp - 0x226], 0
je 0x49ef27
cmp word [ebp - 0x226], ax
jne 0x49ef06
cmp word [ebp - 0x224], 0
je 0x49ef27
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049ea12
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49ef73
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49eee0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49ef5b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49ef80
push 0x49e3fa
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040590c
add esp, 0x10
jmp 0x49ef50
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004031d4
leave
ret
Function at 0x4aa40c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401e38
mov eax, dword [0x623d24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004062c6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4aa44e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4aa5aa
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406433
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x62b328]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004033f5
mov ecx, dword [esi*4 + 0x62b328]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4aa5a3
cmp eax, dword [edi + ecx + 0x24]
jne 0x4aa5a3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4aa5a3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004033f5
add esp, 0x14
test edx, edx
jl 0x4aa5a3
jg 0x4aa519
test eax, eax
jb 0x4aa5a3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4aa5a3
jl 0x4aa533
cmp dword [ebp - 0x1008], eax
ja 0x4aa5a3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4aa551
test ebx, ebx
je 0x4aa58a
cmp ecx, edi
jae 0x4aa58a
mov al, byte [ecx]
cmp al, 0xd
jne 0x4aa56b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4aa577
cmp byte [ecx + 1], 0xa
jne 0x4aa577
inc ecx
jmp 0x4aa577
movzx eax, al
movsx eax, byte [eax + 0x627a90]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4aa551
cmp edx, ebx
jne 0x4aa551
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4aa5a8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004031d4
leave
ret