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

Disassembly:
push 0xffffffffffffffff
push 0x545711
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push ebp
mov dword [esp + 8], ecx
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.0050ece0
lea ecx, [esp + 0x34]
mov dword [esp + 0x18c], 0
call fcn.0050ece0
lea ecx, [esp + 0x14]
mov byte [esp + 0x18c], 1
call fcn.0050ece0
mov eax, dword [esp + 0x1a0]
mov edi, dword [esp + 0x19c]
mov ebp, dword [esp + 0x198]
cmp eax, 1
mov byte [esp + 0x18c], 2
jne 0x50e6df
mov dword [edi], 0
mov dword [ebp], 0
mov eax, dword [esp + 0x194]
lea ecx, [esp + 0x24]
push eax
call fcn.0050ed50
lea ecx, [esp + 0x24]
push ecx
call fcn.0050f200
add esp, 4
lea ecx, [esp + 0x24]
push 0x6519b0
call fcn.0050edd0
lea edx, [esp + 0x44]
lea ecx, [esp + 0x24]
push edx
call fcn.004dbd60
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x50e864
mov esi, 0x6519a4
lea eax, [esp + 0x70]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x50e75a
test cl, cl
je 0x50e756
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x50e75a
add eax, 2
add esi, 2
test cl, cl
jne 0x50e736
xor eax, eax
jmp 0x50e75f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x50e848
mov esi, 0x6519a0
lea eax, [esp + 0x70]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x50e794
test cl, cl
je 0x50e790
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x50e794
add eax, 2
add esi, 2
test cl, cl
jne 0x50e770
xor eax, eax
jmp 0x50e799
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x50e848
test byte [esp + 0x44], 0x10
mov eax, dword [esp + 0x194]
push eax
jne 0x50e7f1
lea ecx, [esp + 0x38]
call fcn.0050ed50
lea ecx, [esp + 0x34]
push ecx
call fcn.0050f200
add esp, 4
lea edx, [esp + 0x70]
lea ecx, [esp + 0x34]
push edx
call fcn.0050edd0
push 0
lea ecx, [esp + 0x38]
call fcn.004dbd60
push eax
call fcn.00525c34
add esp, 8
test eax, eax
jne 0x50e848
inc dword [ebp]
jmp 0x50e848
lea ecx, [esp + 0x18]
call fcn.0050ed50
lea ecx, [esp + 0x14]
push ecx
call fcn.0050f200
add esp, 4
lea edx, [esp + 0x70]
lea ecx, [esp + 0x14]
push edx
call fcn.0050edd0
push 0
lea ecx, [esp + 0x18]
call fcn.004dbd60
push eax
call fcn.00525c34
add esp, 8
test eax, eax
jne 0x50e848
mov ecx, dword [edi]
push eax
inc ecx
push edi
mov dword [edi], ecx
push ebp
lea ecx, [esp + 0x20]
call fcn.004e8590
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0050e660
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x50e72d
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp]
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add esi, eax
mov byte [esp + 0x18c], 1
call fcn.0050ed00
lea ecx, [esp + 0x34]
mov byte [esp + 0x18c], 0
call fcn.0050ed00
lea ecx, [esp + 0x24]
mov dword [esp + 0x18c], 0xffffffff
call fcn.0050ed00
mov ecx, dword [esp + 0x184]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x184
ret 0x10
Function at 0x50f120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x545778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0050ece0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.0050ed50
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.0050f050
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.0050ed00
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x510b00
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor ebp, ebp
push esi
cmp ebx, 1
push edi
jl 0x510b1b
cmp ebx, 8
jg 0x510b1b
mov eax, 1
jmp 0x510b1d
xor eax, eax
mov esi, dword [esp + 0x14]
push str.bad_pack_level
push eax
push esi
call fcn.0050f380
mov eax, dword [esi + 0x6af70]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af78], ebp
jne 0x510b54
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
mov ecx, 0x7fff
xor eax, eax
lea edi, [esi + 0x4af70]
mov dword [esi + 0x6af6c], ebp
rep stosd dword es:[edi], eax
mov ax, word [ebx*8 + 0x56b192]
xor ecx, ecx
mov dword [esi + 0x6af98], eax
mov cx, word [ebx*8 + 0x56b190]
xor edx, edx
mov dword [esi + 0x6af9c], ecx
mov dx, word [ebx*8 + 0x56b194]
xor eax, eax
mov dword [esi + 0x6afa0], edx
mov ax, word [ebx*8 + 0x56b196]
cmp ebx, 2
mov dword [esi + 0x6af94], eax
jg 0x510bb5
mov eax, dword [esp + 0x1c]
or byte [eax], 4
jmp 0x510bc1
cmp ebx, 8
jl 0x510bc1
mov eax, dword [esp + 0x1c]
or byte [eax], 2
lea edi, [esi + 0x1af70]
push 0x10000
push edi
push esi
mov dword [esi + 0x6af84], ebp
mov dword [esi + 0x6af74], ebp
call dword [esi + 0xc]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af90], eax
je 0x510c3a
cmp eax, 0xffffffff
je 0x510c3a
cmp eax, 0x106
mov dword [esi + 0x6af8c], ebp
jae 0x510c05
push esi
call fcn.00510e50
add esp, 4
mov dword [esi + 0x6af7c], ebp
xor eax, eax
mov edx, dword [esi + 0x6af7c]
xor ecx, ecx
mov cl, byte [edi + eax]
and edx, 0x3ff
and ecx, 0x7fff
shl edx, 5
xor ecx, edx
inc eax
cmp eax, 2
mov dword [esi + 0x6af7c], ecx
jb 0x510c0d
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x511ed0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x511edb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x511fde
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x56b1e0]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x56b1e0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x56b1e0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x56b1e0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x56b1e0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x56b1e0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x56b1e0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x56b1e0]
xor eax, edx
inc ecx
dec edi
jne 0x511ef6
pop edi
test esi, esi
je 0x512000
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x56b1e0]
xor eax, edx
inc ecx
dec esi
jne 0x511fe2
pop esi
pop ebx
not eax
ret
Function at 0x5121c0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x5121de
mov eax, 0x1000000
pop esi
add esp, 0x50
ret
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x5121f8
mov eax, 0x200
pop esi
add esp, 0x50
ret
mov eax, dword [esp + 0x20]
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
push edi
je 0x51220c
mov ebp, 1
test al, 2
je 0x512213
or ebp, 2
test al, 4
je 0x51221a
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x512224
or ebp, 0x10
test al, 0x20
je 0x51222b
or ebp, 0x20
test ecx, ecx
je 0x512237
or ebp, 0x40000000
jmp 0x51223d
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x51224d
or ebp, 0x800000
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [esp + 0x14], eax
jbe 0x5122fb
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x6c]
push 2
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push esi
call ebx
cmp word [esp + 0x64], 0x54ad
jne 0x5122fb
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 0x34]
cmp ecx, edx
jbe 0x5122fb
push 0
push 0
push eax
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x2c]
push 4
push ecx
push esi
call ebx
mov eax, dword [esp + 0x24]
cmp eax, 0x5a4d
je 0x5122f5
cmp eax, 0x454e
je 0x5122f5
cmp eax, 0x454c
je 0x5122f5
cmp eax, 0x4550
jne 0x5122fb
or ebp, 0x400000
mov eax, dword [esp + 0x68]
pop ebx
test eax, eax
je 0x512306
mov dword [eax], ebp
mov eax, dword [esp + 0x68]
test eax, eax
je 0x512314
mov edx, dword [esp + 0x10]
mov dword [eax], edx
mov esi, dword [esp + 0x6c]
mov edi, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test esi, esi
je 0x51237e
lea eax, [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
push ecx
call edi
lea edx, [esp + 0x18]
lea eax, [esp + 0x3c]
push edx
push eax
call edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push edx
call edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.00512100
mov edx, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.00512100
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov dword [esi + 4], eax
call fcn.00512100
add esp, 0x18
mov dword [esi + 8], eax
mov esi, dword [esp + 0x70]
test esi, esi
je 0x5123c1
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x3c]
push eax
push ecx
call edi
lea edx, [esp + 0x64]
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
and edx, 0xffff
and eax, 0xffff
shl edx, 0x10
or edx, eax
mov dword [esi], edx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x50
ret
Function at 0x5125a0
Capabilities:
Write file on windows

Disassembly:
mov edx, ecx
push ebx
push esi
push edi
mov ebx, dword [edx + 0x18]
test ebx, ebx
je 0x5125f0
mov edi, dword [edx + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, dword [edx + 0x20]
lea ecx, [edi + eax]
cmp ecx, esi
jb 0x5125cc
pop edi
pop esi
mov dword [edx + 0xc], 0x30000
xor eax, eax
pop ebx
ret 8
mov esi, dword [esp + 0x10]
mov ecx, eax
add edi, ebx
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x1c]
pop edi
add ecx, eax
pop esi
mov dword [edx + 0x1c], ecx
pop ebx
ret 8
mov eax, dword [edx]
test eax, eax
je 0x512618
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x14]
push 0
push edx
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
pop esi
mov dword [edx + 0xc], 0x1000000
xor eax, eax
pop ebx
ret 8

Function at 0x512a40
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov edx, dword [ebx + 0x58]
test edx, edx
je 0x512aaa
mov eax, dword [ebx + 0x60]
mov ebp, dword [ebx + 0x5c]
cmp eax, ebp
jae 0x512afb
mov ecx, dword [esp + 0x14]
sub ebp, eax
cmp ebp, ecx
jbe 0x512a66
mov ebp, ecx
mov ecx, ebp
lea esi, [eax + edx]
mov eax, dword [esp + 0x10]
mov edx, ecx
push edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x4c]
add edx, ebp
add ecx, ebp
push eax
mov dword [ebx + 0x60], edx
mov dword [ebx + 0x48], ecx
call fcn.00511ed0
add esp, 0xc
mov dword [ebx + 0x4c], eax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x512af4
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x512afb
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x48]
add ecx, eax
push eax
mov eax, dword [ebx + 0x4c]
push esi
push eax
mov dword [ebx + 0x48], ecx
call fcn.00511ed0
add esp, 0xc
mov dword [ebx + 0x4c], eax
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
ret 8
mov dword [ebx + 0xc], 0x1000000
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x525c54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005260a5
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x525c77
test byte [esp + 8], 2
je 0x525c77
call fcn.00526118
mov dword [eax], 0xd
call fcn.00526121
mov dword [eax], 5
jmp 0x525c50
xor eax, eax
ret
Function at 0x5373e4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x53741c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00535471
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00535449
jmp 0x537428
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x538ad9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x538b1b
call fcn.0053ef97
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x538b1b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x538b12
xor eax, eax
jmp 0x538b23
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00538b29
pop edi
pop esi
pop ebx
ret 4

Function at 0x53f4c7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x53f4f5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53f513
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0053f42d
jmp 0x53f513
mov eax, dword [esi + 0x14]
test eax, eax
je 0x53f513
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0053f42d
test edi, edi
mov eax, edi
jne 0x53f4fd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x430470
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x96c
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x260], 0x44
push 0
push eax
call fcn.00690450
movups xmm0, xmmword [0x761b18]
mov ax, word [0x761b30]
push 0x1ee
mov word [ebp - 0x1f8], ax
lea eax, [ebp - 0x1f6]
movups xmmword [ebp - 0x210], xmm0
push 0
movq xmm0, qword [0x761b28]
push eax
movq qword [ebp - 0x200], xmm0
call fcn.00690450
add esp, 0x18
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x260]
push eax
push 0
push 0
push 0x44
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x430650
mov eax, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov dword [ebp - 0x760], eax
mov eax, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov dword [ebp - 0x758], eax
mov eax, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
mov dword [ebp - 0x754], eax
mov eax, dword [sym.imp.KERNEL32.DLL_ExitProcess]
push 0
mov dword [ebp - 0x750], eax
lea eax, [ebp - 0x764]
push 0
push eax
push dword [ebp - 0x540]
mov dword [ebp - 0x75c], ebx
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push 0x104
lea eax, [ebp - 0x74c]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [ebp - 0x530]
mov ecx, 0x80
push eax
push dword [ebp - 0x53c]
mov esi, 0x430400
lea edi, [ebp - 0x964]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x530], 0x10003
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
mov esi, dword [ebp - 0x46c]
add esi, 0xfffffbdc
and esi, 0xffffffe0
mov dword [ebp - 0x968], esi
lea eax, [esi - 4]
mov dword [ebp - 0x46c], eax
lea eax, [esi + 4]
mov dword [ebp - 0x478], eax
lea eax, [ebp - 0x214]
push eax
push 0x40
push 0x424
push esi
push dword [ebp - 0x540]
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
push 0
push 0x424
lea eax, [ebp - 0x968]
push eax
push esi
push dword [ebp - 0x540]
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
push 0x424
push esi
push dword [ebp - 0x540]
call dword [sym.imp.KERNEL32.DLL_FlushInstructionCache]
lea eax, [ebp - 0x530]
push eax
push dword [ebp - 0x53c]
call dword [sym.imp.KERNEL32.DLL_SetThreadContext]
push dword [ebp - 0x53c]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push dword [ebp - 0x53c]
call ebx
push dword [ebp - 0x540]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0067d651
mov esp, ebp
pop ebp
ret
Function at 0x436500
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d4159
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
call fcn.0043ca60
mov dword [ebp - 4], 0
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x1c], 1
je 0x43657a
push ecx
mov edx, edi
mov ecx, esi
call fcn.0060f9d0
mov ecx, esi
call fcn.0060ff00
add esp, 4
push ecx
mov edx, ebx
mov ecx, esi
call fcn.0060f9d0
mov edi, dword [0x854fa8]
add esp, 4
test edi, edi
je 0x436628
push dword [ebp - 0x18]
movzx eax, word [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x436628
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x436628
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push ebx
push edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
cmp dword [esi + 0x14], 8
mov ebx, eax
mov ecx, esi
jb 0x4365d4
mov ecx, dword [esi]
push 0
push 0x200080
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
test edi, edi
je 0x436628
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
test eax, eax
jne 0x436611
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x436628
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x436621
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0067d651
mov esp, ebp
pop ebp
ret 0x14
Function at 0x438f40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x82f084]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push 0xc
xor eax, eax
mov dword [esp + 0x18], 0
push str._C_taskmgr__
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
call fcn.0042fe00
cmp dword [esp + 0x18], 8
lea eax, [esp + 4]
push 0
cmovae eax, dword [esp + 8]
push 0
push eax
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
lea ecx, [esp + 4]
setg bl
call fcn.0042fd70
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
xor ecx, esp
call fcn.0067d651
mov esp, ebp
pop ebp
ret
Function at 0x440060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x440146
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x440135
jg 0x4400a0
test edx, edx
je 0x440135
nop dword [eax]
call fcn.00441520
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4400f4
jg 0x4400b7
test esi, esi
je 0x4400f4
cmp ebx, eax
jg 0x4400c7
jl 0x4400c1
cmp edi, esi
jae 0x4400c7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0068f950
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x440119
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x44012f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x4400a0
jl 0x44012f
test edi, edi
jne 0x4400a0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x440168
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x44016a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x4401e8
jg 0x44017d
test esi, esi
je 0x4401e8
test eax, eax
jl 0x4401c2
jg 0x440187
test ebx, ebx
je 0x4401c2
cmp edi, eax
jg 0x440197
jl 0x440191
cmp esi, ebx
jae 0x440197
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0068f950
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x4401c5
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4401e8
jg 0x4401cf
test esi, esi
je 0x4401e8
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4401e8
push eax
push esi
push 1
push edx
call fcn.00698421
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc