joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5441c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5f34e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov dword [esp + 0x1c], 0
lea ecx, [esp + 8]
mov dword [esp + 0x28], 1
call fcn.005df190
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call fcn.005df190
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.005df190
lea eax, [esp + 0x34]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x2c], 4
call fcn.005df274
push 0x2e
lea ecx, [esp + 0xc]
call fcn.005df5f2
mov esi, eax
test esi, esi
jle 0x544296
lea ecx, [esp + 0x14]
push esi
push ecx
lea ecx, [esp + 0x10]
call fcn.005df364
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 5
call fcn.005df274
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 4
call fcn.005df184
mov edx, dword [esp + 8]
lea ecx, [esp + 8]
mov eax, dword [edx - 8]
sub eax, esi
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005df388
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 6
call fcn.005df274
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 4
call fcn.005df184
jmp 0x5442b2
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x10]
call fcn.005df274
push 0x635508
lea ecx, [esp + 0x14]
call fcn.005df27a
mov eax, dword [esp + 0xc]
or edi, 0xffffffff
xor ecx, ecx
mov esi, dword [eax - 8]
test esi, esi
jle 0x544311
lea edx, [eax + esi*2 - 2]
mov ax, word [edx]
cmp ax, 0x30
je 0x544305
cmp ax, 0x31
je 0x544305
cmp ax, 0x32
je 0x544305
cmp ax, 0x33
je 0x544305
cmp ax, 0x34
je 0x544305
cmp ax, 0x35
je 0x544305
cmp ax, 0x36
je 0x544305
cmp ax, 0x37
je 0x544305
cmp ax, 0x38
je 0x544305
cmp ax, 0x39
jne 0x54430f
inc ecx
sub edx, 2
cmp ecx, esi
jl 0x5442c6
jmp 0x544311
mov edi, ecx
lea edx, [esp + 0x14]
push edi
push edx
lea ecx, [esp + 0x14]
call fcn.005df388
mov eax, dword [eax]
mov byte [esp + 0x28], 7
push eax
call dword [0x5fca78]
add eax, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x10]
push 0x629424
push eax
call fcn.005df346
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 4
call fcn.005df184
sub esi, edi
lea ecx, [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x14]
call fcn.005df364
lea edx, [esp + 8]
mov byte [esp + 0x28], 8
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.005df25c
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push ecx
push eax
push edx
mov byte [esp + 0x34], 9
call fcn.005df25c
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0xa
call fcn.005df274
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 9
call fcn.005df184
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 8
call fcn.005df184
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 4
call fcn.005df184
mov esi, dword [esp + 0x30]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.005df334
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.005df184
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call fcn.005df184
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.005df184
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call fcn.005df184
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x544640
Capabilities:
Parse pe header

Disassembly:
push 0xffffffffffffffff
push 0x5f353f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
push edi
mov dword [esp + 0xc], 0
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x18], 1
mov esi, dword [ebp - 8]
lea edi, [esi - 1]
mov ecx, edi
test ecx, ecx
jl 0x5446c4
lea edx, [ebp + ecx*2]
mov ax, word [edx]
cmp ax, 0x30
je 0x5446c4
cmp ax, 0x31
je 0x5446c4
cmp ax, 0x32
je 0x5446c4
cmp ax, 0x33
je 0x5446c4
cmp ax, 0x34
je 0x5446c4
cmp ax, 0x35
je 0x5446c4
cmp ax, 0x36
je 0x5446c4
cmp ax, 0x37
je 0x5446c4
cmp ax, 0x38
je 0x5446c4
cmp ax, 0x39
je 0x5446c4
dec ecx
sub edx, 2
test ecx, ecx
jge 0x54467d
cmp ecx, edi
jge 0x54472e
mov ax, word [ebp + ecx*2 + 2]
cmp ax, 0x79
je 0x54472d
cmp ax, 0x7a
je 0x54472d
cmp ax, 0x61
je 0x54472d
cmp ax, 0x66
je 0x54472d
cmp ax, 0x70
je 0x54472d
cmp ax, 0x6e
je 0x54472d
cmp ax, 0xb5
je 0x54472d
cmp ax, 0x6d
je 0x54472d
cmp ax, 0x6b
je 0x54472d
cmp ax, 0x4d
je 0x54472d
cmp ax, 0x47
je 0x54472d
cmp ax, 0x54
je 0x54472d
cmp ax, 0x50
je 0x54472d
cmp ax, 0x45
je 0x54472d
cmp ax, 0x5a
je 0x54472d
cmp ax, 0x59
jne 0x54472e
inc ecx
sub esi, ecx
lea ecx, [esp + 0x24]
dec esi
push esi
mov esi, dword [esp + 0x24]
push esi
call fcn.005df388
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 0
call fcn.005df184
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x9d4d40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3bd000]
push edi
jmp 0x9d4d5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x9d4d61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9d4d50
mov eax, 1
add ebx, ebx
jne 0x9d4d73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9d4d84
jne 0x9d4da3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9d4da3
dec eax
add ebx, ebx
jne 0x9d4d90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x9d4d68
add ebx, ebx
jne 0x9d4d9f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x9d4df5
xor ecx, ecx
sub eax, 3
jb 0x9d4dbb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x9d4e2a
sar eax, 1
mov ebp, eax
jmp 0x9d4dc6
add ebx, ebx
jne 0x9d4dc6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9d4d94
inc ecx
add ebx, ebx
jne 0x9d4dd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9d4d94
add ebx, ebx
jne 0x9d4de1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9d4dd6
jne 0x9d4df2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9d4dd6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9d4e14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9d4e06
jmp 0x9d4d56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9d4e14
add edi, ecx
jmp 0x9d4d56
pop esi
mov edi, esi
mov ecx, 0x59ee
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9d4e32
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x9d4e37
lea edi, [esi + 0x5d2000]
mov eax, dword [edi]
or eax, eax
je 0x9d4ea8
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x601c60]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x601c9c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x9d4e5d
mov ecx, edi
jns 0x9d4e8c
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 + 0x601ca4]
or eax, eax
je 0x9d4ea2
mov dword [ebx], eax
add ebx, 4
jmp 0x9d4e7a
call dword [esi + 0x601ca0]
mov ebp, dword [esi + 0x601ca8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
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 0x9d4edc
sub esp, 0xffffff80
jmp 0x416cb4
Function at 0x41d896
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x41d8a5
pop dword [ebp - 0x4c]
mov eax, 0xaffcc616
sub eax, 0xafbaed71
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x4f978
push 0
mov eax, 0xd17de44f
add eax, 0x2ec6ce6d
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x651c93f
sub ecx, 0x651828c
xor edi, edi
add edi, eax
mov ebx, 0x487e00
add ebx, dword [ebp - 0x4c]
mov esi, 0x34732119
sub dword [ebp - 0x24], 0x951f3993
mov edx, dword [ebx]
sub dword [ebp - 0x34], ebx
xor edx, esi
xor dword [ebp - 0x20], 0xf809db9a
mov dword [edi], edx
add dword [ebp - 0x2c], ecx
add edi, 0x16f28904
sub edi, 0x16f28900
add ebx, 0x2e2c74f1
add ebx, 0xd1d38b13
loop 0x41d8fa
add eax, 0x71629b84
sub eax, 0x71618de5
mov ebx, eax
add eax, 0x6cac245f
add eax, 0x9353dba6
mov ecx, 0x54aca121
sub ecx, 0x546ca121
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x4024b5
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x408170
push ebx
push esi
call fcn.0040809c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00408030
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40811d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40816f
push edi
push eax
call fcn.00408cf0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40813d
call fcn.00406b91
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40816e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408030
add esp, 0x20
test eax, eax
jne 0x40815c
push edi
call fcn.00406b91
jmp 0x408164
push ebx
call fcn.00406b91
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40946d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4142b8
push 0x4142b0
push str.FlsAlloc
push 0x1f
call fcn.0040932c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4094a1
push dword [ebp + 8]
mov ecx, esi
call dword [0x41212c]
call esi
jmp 0x4094a7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4094eb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4142c8
push 0x4142c0
push str.FlsGetValue
push 0x21
call fcn.0040932c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409522
push dword [ebp + 8]
mov ecx, esi
call dword [0x41212c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40952a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4142d0
push 0x4142c8
push str.FlsSetValue
push 0x22
call fcn.0040932c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409564
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41212c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x401000
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x401029
mov al, byte [esi + 1]
inc esi
test al, al
je 0x401021
cmp al, 0x22
jne 0x401015
cmp byte [esi], 0x22
jne 0x401033
inc esi
jmp 0x401033
cmp al, 0x20
jle 0x401033
inc esi
cmp byte [esi], 0x20
jg 0x40102d
mov al, byte [esi]
test al, al
je 0x40103d
cmp al, 0x20
jle 0x401026
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402aca
push 0x404004
push section..data
call fcn.00402ab0
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40106d
movzx eax, word [ebp - 0x14]
jmp 0x401070
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00402ae2
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4012a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x404280], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.trast
push str.bask
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4012e8
xor eax, eax
jmp 0x401303
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x401000
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push eax
mov eax, dword fs:[0x30]
movzx ecx, byte [eax + 2]
cmp ecx, 1
je 0x401012
jmp 0x401014
int 3
pop eax
push ebp
mov ebp, ebp
sub esp, 0xc
call fcn.00401115
add esp, 0xc
mov esp, ebp
pop ebp
nop
ret

Function at 0x401052
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
xor ecx, ecx
mov eax, dword fs:[ecx + 0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x14]
lodsd eax, dword [esi]
xchg esi, eax
lodsd eax, dword [esi]
mov ebx, dword [eax + 0x10]
mov edx, dword [ebx + 0x3c]
add edx, ebx
mov edx, dword [edx + 0x78]
add edx, ebx
mov esi, dword [edx + 0x20]
add esi, ebx
xor ecx, ecx
inc ecx
lodsd eax, dword [esi]
add eax, ebx
cmp dword [eax], 0x50746547
jne 0x40107c
cmp dword [eax + 4], 0x41636f72
jne 0x40107c
cmp dword [eax + 8], 0x65726464
jne 0x40107c
mov esi, dword [edx + 0x24]
add esi, ebx
mov cx, word [esi + ecx*2]
dec ecx
mov esi, dword [edx + 0x1c]
add esi, ebx
mov edx, dword [esi + ecx*4]
add edx, ebx
mov eax, edx
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
add esp, 0x40
mov esp, ebp
pop ebp
ret

Function at 0x4010fe
Capabilities:
Access peb ldr_data

Disassembly:
xor eax, eax
push esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x14]
lodsd eax, dword [esi]
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 0x10]
pop esi
ret
Function at 0xe5e370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xe5e38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xe87074
push ecx
mov edi, eax
call fcn.00e72198
mov esi, eax
add esp, 8
test esi, esi
jne 0xe5e3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00e7202e
push esi
call fcn.00e71fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xe61850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xe618ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xe8c720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe618ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00e721e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xe618ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xe8c720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe6192a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00e73082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xe61957
mov word [eax], si
add eax, 2
push eax
call fcn.00e73030
add esp, 4
jmp 0xe61959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xe618ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xe618b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xe61ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xe62080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xe620c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xe87458
push ecx
call fcn.00e721e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00e721e1
add esp, 0x10
jmp 0xe620d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00e7220b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00e71dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00e62050
mov eax, dword [0xe8c728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xe6213b
push esi
call fcn.00e61fb0
add esp, 4
mov dword [0xe8c728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xe6214c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00e61ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xe65440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xe654b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xe6548e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xe65471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xe6547e
add edx, ecx
cmp ebx, edx
jb 0xe6548a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xe65467
xor ecx, ecx
jmp 0xe654a2
test eax, eax
jne 0xe65492
xor ecx, ecx
jmp 0xe654a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00e653c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xe658f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xe65921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xe65946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xe6596e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xe65993
push ecx
push esi
call fcn.00e654c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0xe66c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0xe66c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xe66c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xe66c38
add edx, eax
cmp ebx, edx
jb 0xe66c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xe66c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xe66c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0xe66c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xe66cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xe66c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xe66ca8
add edx, ecx
cmp ebx, edx
jb 0xe66cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xe66c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xe66f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00e73145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xe66ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0xe66fdd
lea eax, [esp + 0x18]
push eax
jmp 0xe66fe2
push 0xe8c720
call fcn.00e72fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xe66fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xe66f40
push 4
push ecx
push eax
call fcn.00e7343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret