joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406d10
Capabilities:
Encode data using xor

Disassembly:
add byte [ebx + 0x22ff5f85], cl
dec dword [ebx + 0x4b]
and al, 0x8b
rcr byte [ebx - 0x1e], 1
add al, 0x29
sal bh, 1
pop ebx
shl edx, 0xe3
mov dword [ebx + 0x28], edx
fstp dword [esi + 0x33]
rcr byte [ebx - 0x75], 0xe5
cwde
inc ebp
or al, 0
nop
nop
nop
nop
or edx, dword ds:[eax - 0x5e1374ab]
push ebp
mov ebp, esp
mov eax, dword [0x410540]
test eax, eax
push ebp
mov ebp, esp
mov eax, dword [0x410540]
test eax, eax
jne 0x406ce5
dec esi
inc eax
add al, 0xc5
add bh, bh
adc eax, 0x40c071
sbb eax, 0xd55a0466
mov eax, dword [ebp + 8]
mov dword [0x91410540], 1
mov dword [eax], 0x5410440
cmp ah, ch
add al, 0x41
lds esp, [edi + 0x8f76d12]
mov dword [ecx], 0xb7410440
mov eax, dword [0x20414496]
pop ebp
pop ss
call 0x90d0c9eb

Function at 0x407ef0
Capabilities:
Encode data using xor

Disassembly:
xchg dword [ebx + 0x144c16ec], ecx
cmp dword [ebp + 0x10], 0x4f
dec esp
adc al, 0x83
jge 0x407f09
dec edi
push ecx
pop es
mov dword [ebp + 0x72], 0x16
fld qword [esi + 0x301d7708]
xor byte [eax + eax*2], dh
mov ecx, dword [ebp + 0x18]
aas
scasd eax, dword es:[edi]
je 0x407f4b
add byte [ebx - 0x50c0e7b3], cl
pop ebp
mov ebp, 0x57f64c56
fnstsw ax
mov dword [ebp - 4], esi
mov dword [ecx], esi
test ah, 5
mov ebx, dword [ebx]
sti
push cs
pop ebp
inc ebp
or cl, bl
loopne 0x407f08
pop ebp
and bh, al
add dword [ecx], eax
xor al, 0x2a
add byte [ebx + 0x558b0c4d], cl
or byte [ecx + 0x45], cl
in al, dx
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_modf]
fstp qword [ebp + 8]
fld qword [ebp - 0x14]
fcomp qword [0x40c230]
add esp, 0xc
scasd eax, dword es:[edi]
loopne 0x407ef4
les eax, [ebx + edi*2 + 0x72]
lea esi, [ebx + 0x50]
cmp ecx, dword [edx + 0x45c65876]
in al, dx
fcomp qword [0x40ccad]
fnstsw ax
xchg ebp, eax
loopne 0x407f03
les ecx, [eax + 0x59]
dec eax
dec esi
inc ebp
in al, dx
fsubr qword [ebp + 0x40c310]
lea eax, [ebp - 0x14]
mov bl, 0x83
in al, dx
push ebp
sub al, 0x1c
and al, 0xff
jnp 0x407fa0
rol dword [eax], 0xdd
pop ebp
jb 0x407f6c
inc ebp
hlt
add al, ch
xor eax, 0x50ee0000
or eax, 0xc8d530b1
mov byte [esp + ebp + 0x3b41fc4d], bl
imul ecx, dword [ebp - 4], 0x77
test al, 0x9e
inc ebx
push eax
push ss
invalid

Function at 0x409860
Capabilities:
Resolve function by parsing pe exports

Disassembly:
insb byte es:[edi], dx
pop ecx
dec edi
mov bh, 0x41
jecxz 0x409864
test ah, ch
add byte [eax], al
add byte [eax + 0x9eb9049], dl
test eax, 0x9dd722a0
invalid
and dl, bh
popfd
mov al, byte [0x6a9dd722]
arpl ax, si
fnstenv [ecx]
call dword [eax - 0x1474cb75]
or eax, 0x9afa92f9
jns 0x40984e
push 0x63
invalid
mov edx, 0xc7b1f1d
mov dl, 0xa0
Function at 0x63267c
Capabilities:
Contain obfuscated stackstrings
Decode data using base64 via vbmi lookup table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x20], edx
mov byte [ecx + eax], dl
mov edx, dword [ebp + 0xc]
add edx, 0xfffffffe
mov dword [ebp - 0x54], 0x3e000000
mov dword [ebp - 0x50], 0x3f000000
mov dword [ebp - 0x4c], 0x37363534
mov dword [ebp - 0x48], 0x3b3a3938
mov dword [ebp - 0x44], 0x3d3c
mov dword [ebp - 0x3c], 0x2010000
mov dword [ebp - 0x38], 0x6050403
mov dword [ebp - 0x34], 0xa090807
mov dword [ebp - 0x30], 0xe0d0c0b
mov dword [ebp - 0x2c], 0x1211100f
mov dword [ebp - 0x28], 0x16151413
mov dword [ebp - 0x24], 0x191817
mov dword [ebp - 0x1c], 0x1c1b1a00
mov dword [ebp - 0x18], 0x201f1e1d
mov dword [ebp - 0x14], 0x24232221
mov dword [ebp - 0x10], 0x28272625
mov dword [ebp - 0xc], 0x2c2b2a29
mov dword [ebp - 8], 0x302f2e2d
mov word [ebp - 4], 0x3231
mov byte [ebp - 2], 0x33
test edx, edx
jle 0x6327a9
push esi
mov esi, dword [ebp + 8]
add esi, 2
dec edx
shr edx, 2
push edi
lea edi, [ecx + 2]
inc edx
movzx eax, byte [esi - 2]
mov cl, byte [ebp + eax - 0x7c]
movzx eax, byte [esi - 1]
shl cl, 2
mov al, byte [ebp + eax - 0x7c]
shr al, 4
or cl, al
mov byte [edi - 2], cl
movzx eax, byte [esi]
mov cl, byte [ebp + eax - 0x7c]
movzx eax, byte [esi - 1]
shr cl, 2
mov al, byte [ebp + eax - 0x7c]
shl al, 4
or cl, al
mov byte [edi - 1], cl
movzx eax, byte [esi]
lea esi, [esi + 4]
mov cl, byte [ebp + eax - 0x7c]
movzx eax, byte [esi - 3]
shl cl, 6
or cl, byte [ebp + eax - 0x7c]
mov byte [edi], cl
lea edi, [edi + 3]
sub edx, 1
jne 0x632753
pop edi
pop esi
xor eax, eax
leave
ret

Function at 0x9e06ae
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x9e06dc
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x9e06d3
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x9e06cb
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x9e06fd
mov esp, ebp
pop ebp
ret
Function at 0x9e0701
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x9e076d
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x9e079a
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x9e0789
xor ecx, eax
xor edx, ebx
dec edi
jne 0x9e077a
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x9e07c0
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x9e0761
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x9e07ec
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410794
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004034f8
xor eax, eax
push ebp
push 0x4108f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x20
call fcn.004027ec
mov eax, dword [ebp - 4]
call fcn.00403508
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x4108d8
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x2000
mov eax, dword [ebp - 0x14]
call fcn.0040248c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x4108bf
cmp eax, 0xea
jne 0x41085d
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.004024cc
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetEnumResourceA
test eax, eax
jne 0x4108d8
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
dec esi
or esi, esi
jl 0x4107f6
inc esi
mov eax, dword [ebx]
call fcn.00403bb4
inc eax
push eax
mov eax, ebx
mov ecx, 1
mov edx, dword [0x407e4c]
call fcn.00403d70
add esp, 4
mov eax, dword [ebx]
call fcn.00403bbc
mov edx, dword [ebx]
lea eax, [edx + eax*4]
push eax
lea eax, [ebp - 0x3c]
mov edx, dword [edi + 0x14]
add edx, 2
call fcn.004032c0
mov ecx, dword [ebp - 0x3c]
mov edx, 0x410910
pop eax
call fcn.00403354
add edi, 0x20
dec esi
jne 0x41086d
jmp 0x4107f6
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x4108d8
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0xc]
call fcn.004024ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4108fd
lea eax, [ebp - 0x3c]
call fcn.00403174
lea eax, [ebp - 4]
call fcn.00403174
ret
Function at 0x1004cae
Capabilities:
Contain obfuscated stackstrings

Disassembly:
loopne 0x1004caf
invalid
call [ecx + 0x50]
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.01002cba
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x1004cd8
jmp 0x1004697
cmp dword [ebp - 0x37c], 0
je 0x1004ce6
jmp 0x1004d9b
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x1004d3f
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x1004d44
jmp 0x1004697
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x1004d8b
lea eax, [ebp - 0x714]
push eax
call fcn.01002d05
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.01002cba
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x1004d96
jmp 0x1004d9b
jmp 0x1004697
cmp dword [ebp - 0x37c], 0
jne 0x1004e45
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x7ec], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x7e8], eax
and dword [ebp - 0x7e0], 0
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x7e4], eax
invalid
mov ch, 0x1c
clc
invalid

Function at 0x1004faf
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
inc ebx
call fcn.0100672a
test eax, eax
je 0x100501d
cmp dword [0x100bc3c], 0
jne 0x1005011
test byte [0x100c898], bl
jne 0x1005011
push 6
push 0
push 0x1003e28
push dword [0x100ba4c]
mov dword [0x100be64], esi
push 0x7d3
push dword [0x100c4a4]
call fcn.01004819
sub eax, 6
je 0x1005011
dec eax
je 0x1005025
sub eax, 0x832
jne 0x1005011
mov dword [0x100bc3c], ebx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
xor ebx, ebx
jmp 0x100501d
Function at 0x10052d4
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x100b2d0]
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
je 0x100537f
mov edi, 0x104
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.0100342e
test eax, eax
je 0x10053e4
lea eax, [ebp - 0x108]
push eax
mov esi, 0x100bc44
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x100c494], 0x20
je 0x1005371
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x12c]
sub eax, ebx
je 0x1005365
dec eax
je 0x100535e
dec eax
je 0x1005357
dec eax
jne 0x1005371
push 0x1001420
jmp 0x100536a
push 0x1001418
jmp 0x100536a
push 0x1001410
jmp 0x100536a
push 0x1001408
push edi
push esi
call fcn.010066cf
push 0x1001271
push edi
push esi
call fcn.010066cf
jmp 0x100538c
push eax
mov esi, 0x100bc44
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.010044bd
xor edi, edi
inc edi
test eax, eax
jne 0x10053ab
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10053c3
mov dword [0x100c880], edi
push ebx
push dword [ebp + 0x10]
push esi
call fcn.0100456a
test eax, eax
je 0x10053cf
mov dword [0x100ba5c], ebx
mov eax, edi
jmp 0x10053e6
call fcn.01003aa1
mov dword [0x100ba5c], eax
jmp 0x10053e4
cmp dword [0x100c880], ebx
je 0x10053e4
push esi
mov dword [0x100c880], ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010064de
leave
ret 0xc

Function at 0x100672a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1006741
xor eax, eax
jmp 0x1006749
shr eax, 4
not eax
and eax, 1
pop ebp
ret 4

Function at 0x10069ea
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ecx], al
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
je 0x1006a22
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x1006a26
xor eax, eax
jmp 0x1006a3c
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
leave
ret 4
Function at 0x1007d01
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x1007d3e
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x1007d1b
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1007d5a
dec esi
je 0x1007d53
dec esi
jne 0x1007d5f
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x401550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x471990]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x4015b7
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.00401741
lea ecx, [esp + 0x1c]
call fcn.0040131c
cmp eax, dword [esp + 0x14]
je 0x4015cf
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.0040171e
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x401587
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401a79
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.0040171e
jmp 0x4015b9

Function at 0x401652
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
movsd xmm0, qword [0x4198a8]
push esi
push edi
push ecx
push ecx
movsd qword [esp], xmm0
push 0x419890
call fcn.00401006
add esp, 0xc
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x471990], eax
push 0x27
mov esi, 0x470930
mov edx, 0x547
push 0x41b900
mov ecx, esi
call fcn.00401112
pop ecx
pop ecx
mov edx, 0x8aafdc01
call fcn.00401550
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x4e4
push esi
call eax
test eax, eax
je 0x4016c8
call fcn.004015ed
push 0x1000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4016e0
or eax, 0xffffffff
jmp 0x4016f6
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
call dword [sym.imp.KERNEL32.dll_GetSystemFileCacheSize]
xor eax, eax
pop edi
pop esi
leave
ret 0x10

Function at 0x402327
Capabilities:
Parse pe header

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

Function at 0x408324
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4155b8
push 0x4155b0
push str.FlsAlloc
push 0x1e
call fcn.00408242
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408358
push dword [ebp + 8]
mov ecx, esi
call dword [0x414118]
call esi
jmp 0x40835e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x5e1370
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 0x5e138e
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 0x60a074
push ecx
mov edi, eax
call fcn.005f5198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5e13cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.005f502e
push esi
call fcn.005f4fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x5e4850
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 0x5e48ae
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 0x60f720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5e48ba
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.005f51e1
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 0x5e48ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x60f720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5e492a
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.005f6082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x5e4957
mov word [eax], si
add eax, 2
push eax
call fcn.005f6030
add esp, 4
jmp 0x5e4959
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 0x5e48ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5e48b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x5e4ff0
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 0x5e5080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5e50c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x60a458
push ecx
call fcn.005f51e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005f51e1
add esp, 0x10
jmp 0x5e50d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.005f520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.005f4dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.005e5050
mov eax, dword [0x60f728]
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 0x5e513b
push esi
call fcn.005e4fb0
add esp, 4
mov dword [0x60f728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x5e514c
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.005e4ff0
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 0x5e8440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5e84b7
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 0x5e848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5e8471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5e847e
add edx, ecx
cmp ebx, edx
jb 0x5e848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5e8467
xor ecx, ecx
jmp 0x5e84a2
test eax, eax
jne 0x5e8492
xor ecx, ecx
jmp 0x5e84a2
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.005e83c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x5e88f0
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 0x5e8921
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 0x5e8946
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 0x5e896e
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 0x5e8993
push ecx
push esi
call fcn.005e84c0
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