joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5b40
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b80
mov ebx, dword [ebp + 8]
add ebx, 0xfffffec0
mov esi, dword [ebp + 8]
add esi, 0xfffffeb4
mov edi, dword [ebp + 8]
add edi, 0xfffffeac
xor eax, eax
push ebp
push 0x4b5d3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004097a0
test al, al
je 0x4b5d1f
push ebx
lea eax, [ebp - 0xc]
mov ecx, 0x4b5d50
mov edx, dword [ebp - 4]
call fcn.004049dc
mov eax, dword [ebp - 0xc]
call fcn.00404b90
push eax
call sub.KERNEL32.DLL_FindFirstFileA_1
mov edx, dword [ebp + 8]
mov dword [edx - 0x144], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x144], 0xffffffff
je 0x4b5d1f
xor eax, eax
push ebp
push 0x4b5d18
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0x148], edx
mov eax, dword [ebx]
and eax, 0x10
cmp eax, 0x10
je 0x4b5ce3
lea eax, [ebp - 0x10]
lea edx, [ebx + 0x2c]
mov ecx, 0x104
call fcn.00404940
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004049dc
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004098d0
mov eax, dword [ebp - 0x14]
mov edx, 0x4b5d5c
call fcn.00408d2c
test eax, eax
jne 0x4b5c5d
lea eax, [ebp - 0x1c]
lea edx, [ebx + 0x2c]
mov ecx, 0x104
call fcn.00404940
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.004049dc
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 8]
call fcn.004b58e0
test al, al
je 0x4b5ce3
mov eax, dword [ebp - 8]
call fcn.00409790
test al, al
je 0x4b5ce3
mov eax, dword [ebp - 8]
call fcn.004b5878
mov dword [esi], eax
cmp dword [esi], 0
jle 0x4b5ce3
push 0x64
call sub.KERNEL32.DLL_Sleep_1
mov eax, dword [ebp - 8]
call fcn.004b5a30
test al, al
jne 0x4b5ce3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x150]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x54]
test eax, eax
jge 0x4b5ce3
mov eax, dword [edi]
add eax, dword [esi]
cmp eax, 0x300000
jg 0x4b5cc6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x150]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi]
add dword [edi], eax
jmp 0x4b5cdb
mov eax, dword [ebp + 8]
inc dword [eax - 0x148]
mov eax, dword [ebp + 8]
cmp dword [eax - 0x148], 0x14
jg 0x4b5cfb
cmp dword [edi], 0x200000
jge 0x4b5cfb
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x144]
push eax
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x4b5be4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5d1f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x144]
push eax
call sub.KERNEL32.DLL_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5d41
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.004046f4
ret
Function at 0x4b63bc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor edx, edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x214], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b64d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004b66b4
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
test eax, eax
jne 0x4b6440
lea edx, [ebp - 0x214]
mov eax, dword [0x4bf64c]
mov eax, dword [eax]
call fcn.0045f314
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
call fcn.00409864
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x105]
call fcn.00409a98
lea eax, [ebp - 0x20a]
push eax
push 0
push 0x4b64e0
lea eax, [ebp - 0x105]
push eax
call sub.KERNEL32.DLL_GetTempFileNameA
test eax, eax
jne 0x4b6495
lea eax, [ebp - 0x218]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404940
lea eax, [ebp - 0x218]
mov edx, 0x4b64ec
call fcn.00404998
mov edx, dword [ebp - 0x218]
lea eax, [ebp - 0x20a]
call fcn.00409a98
lea edx, [ebp - 0x21c]
lea eax, [ebp - 0x20a]
call fcn.00409c60
mov edx, dword [ebp - 0x21c]
lea eax, [ebx + 4]
call fcn.00404724
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b64d9
lea eax, [ebp - 0x21c]
mov edx, 4
call fcn.004046f4
ret
Function at 0x100019d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
test eax, eax
je 0x10001a18
test edx, edx
je 0x10001a18
mov ecx, dword [0x100850a0]
cmp ecx, 7
jg 0x10001a09
mov dword [ecx*8 + 0x10085060], eax
mov dword [ecx*8 + 0x10085064], edx
add ecx, 1
mov dword [0x100850a0], ecx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
or eax, edx
jne 0x10001a09
mov eax, dword [0x100850a0]
test eax, eax
jle 0x10001ae0
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esi, [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x1c], 0x10085060
mov edi, dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
jmp 0x10001a76
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], esi
mov dword [esp + 4], 4
mov dword [esp + 8], eax
mov eax, dword [ebp*8 + 0x10085060]
mov dword [esp], eax
add ebp, 1
call ebx
sub esp, 0x10
cmp ebp, dword [0x100850a0]
jge 0x10001ae8
mov eax, dword [ebp*8 + 0x10085060]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x40
mov dword [esp + 4], 4
mov dword [esp], eax
call ebx
mov eax, dword [ebp*8 + 0x10085060]
sub esp, 0x10
mov dword [esp + 4], 4
mov dword [esp], eax
call edi
sub esp, 8
test eax, eax
jne 0x10001a48
mov ecx, dword [ebp*8 + 0x10085064]
mov eax, dword [ebp*8 + 0x10085060]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], esi
mov dword [esp + 4], 4
mov dword [esp + 8], ecx
jmp 0x10001a63
mov dword [esp + 0x1c], 0x10085060
mov edi, dword [esp + 0x1c]
mov ecx, 0x10
xor eax, eax
mov dword [0x100850a0], 0
rep stosd dword es:[edi], eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10002370
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov eax, 0x74
push edi
push esi
push ebx
sub esp, 0x20
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x12], 0x6164692e
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x19], 0x6164722e
mov word [esp + 0x10], ax
mov dword [esp + 0x15], 0x617461
mov ebx, dword [ecx]
mov dword [esp + 0x1c], 0x617461
mov eax, dword [edi]
mov dword [esp + 0xc], 0x7865742e
test ebx, ebx
je 0x100023c1
cmp dword [ebx], 0x4550
je 0x100023d0
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x100023c1
mov edx, ebx
xor esi, esi
jmp 0x100023ea
add esi, 4
add edx, 4
cmp esi, eax
jae 0x10002420
mov ebp, dword [esp + 0x12]
cmp dword [edx], ebp
jne 0x100023e0
mov ebp, dword [esp + 0x15]
cmp dword [edx + 3], ebp
jne 0x100023e0
mov esi, dword [edx + 8]
test esi, esi
jne 0x10002405
mov esi, dword [edx + 0x10]
mov dword [edi], esi
neg eax
and eax, ebx
mov ebx, dword [esp + 0x38]
add eax, dword [edx + 0xc]
mov dword [ebx], eax
mov dword [ecx], eax
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x38]
cmp dword [esi], ebx
je 0x100023c1
mov edx, ebx
xor esi, esi
jmp 0x1000243a
add esi, 4
add edx, 4
cmp esi, eax
jae 0x10002450
mov edi, dword [esp + 0x19]
cmp dword [edx], edi
jne 0x10002430
mov edi, dword [esp + 0x1c]
cmp dword [edx + 3], edi
jne 0x10002430
jmp 0x10002407
mov edx, ebx
xor esi, esi
jmp 0x1000246e
add esi, 4
add edx, 4
cmp esi, eax
jae 0x100023c1
mov edi, dword [esp + 0xc]
cmp dword [edx], edi
jne 0x10002460
movzx edi, word [esp + 0x10]
cmp word [edx + 4], di
jne 0x10002460
jmp 0x10002407
Function at 0x10002a20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x13c
mov ebp, dword [esp + 0x150]
mov dword [esp + 8], 0x104
mov dword [esp], 0
test ebp, ebp
mov eax, ebp
cmove eax, dword [0x100850c4]
mov dword [0x100850c4], eax
lea eax, [esp + 0x2c]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0xc
cmp eax, 0x103
ja 0x10002b98
mov edx, dword [str.go.exe]
test edx, edx
je 0x10002b98
mov ebx, 0x10051020
jmp 0x10002a96
mov eax, dword [ebx + 0x10]
add ebx, 0x10
test eax, eax
je 0x10002b98
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov eax, dword [ebx + 0xc]
sub esp, 4
mov edi, dword [eax]
mov eax, ebp
and eax, dword [ebx + 8]
je 0x10002a88
lea eax, [esp + 0x2c]
mov dword [esp], eax
call sym._basename
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._stricmp
test eax, eax
jne 0x10002a88
and edi, 0xfffff000
add edi, esi
mov dword [esp], edi
call sym._md5page
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x10002a88
lea eax, [esp + 0x28]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [esp + 4], 4
mov dword [esp], edi
mov dword [esp + 0x18], eax
call eax
sub esp, 0x10
test eax, eax
je 0x10002a88
mov edx, dword [ebx + 0xc]
or dword [ebx + 8], 4
mov eax, dword [edx]
test eax, eax
je 0x10002b6a
mov ecx, 0xc
mov dword [esp + 0x1c], edi
mov edi, ecx
nop
mov ecx, dword [edx + 8]
add eax, esi
mov edx, dword [edx + 4]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call sym._memcpy
mov edx, dword [ebx + 0xc]
add edx, edi
add edi, 0xc
mov eax, dword [edx]
test eax, eax
jne 0x10002b40
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x28]
mov dword [esp + 4], 4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
call eax
sub esp, 0x10
jmp 0x10002a88
add esp, 0x13c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10003ad0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ecx, 0x40
push edi
push esi
mov esi, 0x10051420
push ebx
mov ebx, eax
sub esp, 0x23c
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x10051520
mov ecx, 0x40
lea edi, [esp + 0x130]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 4], 1
mov dword [esp], 0x1078
call sym._calloc
mov dword [esp + 8], 0x1000
mov edi, eax
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call sym._memcpy
mov byte [edi + 0x1000], 0x80
mov ecx, 0x67452301
mov dword [edi + 0x1038], 0x8000
mov dword [esp + 0x20], 0x10325476
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x18], 0
lea esi, [esi]
nop
mov esi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
mov edi, dword [esp + 0x24]
jmp 0x10003bc2
cmp ebx, 0x2f
ja 0x10003bf0
lea ecx, [ebx + ebx*2 + 5]
mov edx, esi
xor edx, edi
and ecx, 0xf
xor edx, ebp
mov eax, dword [esp + 0x1c]
add edx, dword [esp + ebx*4 + 0x130]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x18]
add edx, dword [ecx + eax]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + ebx*4 + 0x30]
add ebx, 1
add edx, eax
rol edx, cl
add edx, esi
mov dword [esp + 0x14], ebp
mov ebp, edi
mov edi, esi
mov esi, edx
cmp ebx, 0xf
jbe 0x10003be0
cmp ebx, 0x1f
ja 0x10003b80
lea ecx, [ebx + ebx*4 + 1]
mov edx, esi
xor edx, edi
and ecx, 0xf
and edx, ebp
xor edx, edi
jmp 0x10003b92
mov edx, edi
mov ecx, ebx
xor edx, ebp
and edx, esi
xor edx, ebp
jmp 0x10003b92
mov eax, dword [esp + 0x1c]
lea edx, [ebx*8]
sub edx, ebx
and edx, 0xf
lea ecx, [eax + edx*4]
mov eax, dword [esp + 0x18]
mov edx, ebp
not edx
or edx, esi
xor edx, edi
add edx, dword [esp + ebx*4 + 0x130]
add edx, dword [ecx + eax]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + ebx*4 + 0x30]
add ebx, 1
add edx, eax
rol edx, cl
add edx, esi
cmp ebx, 0x40
jne 0x10003bb8
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x18], 0x40
mov eax, dword [esp + 0x18]
add dword [esp + 0x28], edx
add dword [esp + 0x24], esi
add ecx, ebp
add dword [esp + 0x20], edi
cmp eax, 0x1040
jne 0x10003b68
mov eax, dword [esp + 0x28]
mov dword [0x100852d0], ecx
mov dword [0x100852cc], eax
mov eax, dword [esp + 0x24]
mov dword [0x100852c8], eax
mov eax, dword [esp + 0x20]
mov dword [0x100852c4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sym._free
add esp, 0x23c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10048850
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3c
lea eax, [esp + 0x28]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.Software_vmdisp9x
mov dword [esp], 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x10048890
add esp, 0x3c
ret
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0xff
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], 0x10085300
mov dword [esp + 8], 0
mov dword [esp + 4], str.REV_QEMU3DFX
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x10048908
cmp dword [esp + 0x24], 1
jne 0x10048908
mov dword [esp], 0x10085300
call sym._strlen
cmp eax, 7
ja 0x100488f3
mov byte [0x10085301], 0x2d
mov dword [str.cb0eb90_], 0x10085300
mov eax, 0x2d
mov word [0x10085307], ax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
add esp, 0x3c
ret

Function at 0x100496f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x10049750
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x10089a1c]
test esi, esi
jle 0x10049870
mov eax, dword [0x10089a20]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x10049784
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x10049807
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x10049770
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x10049897
mov eax, dword [0x10089a20]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x10089a20]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x10049877
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x10049800
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x10049810
add dword [0x10089a1c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x10089a20]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x10049800
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x1004978e
mov eax, dword [0x10089a20]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop

Function at 0x10049bb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x10089a2c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x10089a24]
sub esp, 4
test ebx, ebx
je 0x10049c05
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x10049bfe
test esi, esi
je 0x10049bfe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x10049be0
mov dword [esp], 0x10089a2c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10049f40
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x10000000], 0x5a4d
jne 0x10049f65
mov ecx, dword [0x1000003c]
cmp dword [ecx + 0x10000000], 0x4550
lea edx, [ecx + 0x10000000]
je 0x10049f70
ret
cmp word [ecx + 0x10000018], 0x10b
jne 0x10049f65
push esi
movzx eax, word [ecx + 0x10000014]
push ebx
movzx esi, word [ecx + 0x10000006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x10000000
test si, si
je 0x10049fb8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x10049fae
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x10049fba
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x10049fa0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x100012c0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
movzx eax, word [esi]
test ax, ax
je 0x1000131b
push edi
mov edi, eax
movzx ecx, di
lea esi, [esi + 2]
mov edx, 0x5a
mov eax, 0x40
sub eax, ecx
sub edx, ecx
sar eax, 0xb
sar edx, 0xb
xor edx, eax
mov eax, 0xff3a
sub eax, ecx
and edx, 0x20
sar eax, 0xb
xor edx, eax
mov eax, 0xff20
sub eax, ecx
sar eax, 0xb
xor edx, eax
and edx, 0x60
xor edx, edi
mov word [esi - 2], dx
movzx eax, word [esi]
mov edi, eax
test ax, ax
jne 0x100012d0
pop edi
pop esi
ret 4

Function at 0x10002010
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x10008040]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov edi, edx
mov esi, ecx
mov eax, 0x104
mov dword [esp + 8], esi
sub eax, edi
push 0x100062b4
push eax
mov eax, dword [esi]
lea eax, [eax + edi*2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
test eax, eax
jne 0x100021a3
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x100021a3
inc edi
mov dword [esp + 0xc], 0x100062bc
mov dword [esp + 0x18], edi
mov edi, dword [esi + 4]
add edi, 0x2c
mov ecx, edi
mov dword [esp + 0xc], edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002085
sub ecx, edx
mov eax, 1
sar ecx, 1
cmp eax, ecx
jne 0x100020d1
mov edx, edi
mov esi, eax
mov edi, 0x100062bc
sub edi, dword [esp + 0xc]
nop word [eax + eax]
movzx ecx, word [edi + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x100020cd
add edx, 2
sub esi, 1
jne 0x100020b0
mov esi, dword [esp + 8]
jmp 0x10002184
mov edi, dword [esp + 0xc]
mov ecx, edi
mov dword [esp + 0x1c], 0x100062c0
mov esi, 2
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
test ax, ax
jne 0x100020e3
sub ecx, edx
sar ecx, 1
cmp esi, ecx
jne 0x1000211e
mov edx, edi
mov edi, 0x100062c0
sub edi, dword [esp + 0xc]
movzx ecx, word [edi + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x1000211a
add edx, 2
sub esi, 1
jne 0x10002100
mov esi, dword [esp + 8]
jmp 0x10002184
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 8]
mov eax, 0x104
push edi
mov edi, dword [esp + 0x1c]
sub eax, edi
push eax
mov eax, dword [esi]
lea eax, [eax + edi*2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
test eax, eax
jne 0x10002199
mov ecx, dword [esi + 4]
test byte [ecx], 0x10
lea eax, [ecx + 0x2c]
je 0x1000216b
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002150
sub eax, edx
mov ecx, esi
sar eax, 1
lea edx, [eax + edi]
call fcn.10002010
jmp 0x10002184
mov ecx, dword [esi + 8]
push eax
call fcn.10001ed0
test al, al
je 0x10002184
push 0
push 0x10
push dword [esi]
call dword [sym.imp.GDI32.dll_AddFontResourceExW]
push dword [esi + 4]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10002076
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.10004888
mov esp, ebp
pop ebp
ret
Function at 0x10003270
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100069a0
push 0x10004f79
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10008040]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x10003320
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x10003320
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x10003320
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x10003320
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100038a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
cmp dword [0x100084a0], 0
jne 0x10003916
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x100084a0
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x10003916
push esi
mov esi, dword [0x100084ac]
mov dword [0x100084b4], eax
mov dword [0x100084b0], eax
mov dword [0x100084a8], eax
push edi
test esi, esi
je 0x100038fc
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x10003907
mov esi, dword [esi + 4]
test esi, esi
jne 0x100038e2
xor eax, eax
pop edi
mov dword [0x1000849c], eax
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x1000849c], eax
pop esi
pop ecx
ret
mov eax, 0x10dd
pop ecx
ret
Function at 0x10003d80
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1000849c]
push esi
mov esi, ecx
test eax, eax
jne 0x10003dee
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp esi, eax
jne 0x10003d9a
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.10004896
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10003ddb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.10004be5
add esp, 8
mov dword [0x1000849c], esi
mov eax, esi
mov dword [0x100084a8], 0
pop edi
pop esi
ret
mov eax, dword [0x100084b0]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x100084b0], edi
pop edi
pop esi
ret