joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429191
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004210ef
xor ebx, ebx
cmp dword [0x444ad4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x429267
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x429347
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x429347
push eax
call fcn.00421081
mov dword [esp], 0x439660
push edi
mov dword [0x444ad4], eax
call esi
push eax
call fcn.00421081
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x444ad8], eax
call esi
push eax
call fcn.00421081
mov dword [0x444adc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042097a
test eax, eax
pop ecx
pop ecx
je 0x429235
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004195f9
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x429267
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00421081
cmp eax, ebx
pop ecx
mov dword [0x444ae4], eax
je 0x429267
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00421081
pop ecx
mov dword [0x444ae0], eax
mov eax, dword [0x444ae0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4292ec
cmp dword [0x444ae4], ecx
je 0x4292ec
push eax
call fcn.004210f8
push dword [0x444ae4]
mov esi, eax
call fcn.004210f8
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4292ec
cmp edi, ebx
je 0x4292ec
call esi
cmp eax, ebx
je 0x4292b9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4292b9
test byte [ebp - 0x18], 1
jne 0x4292ec
lea eax, [ebp - 0x10]
push eax
call fcn.004209b1
test eax, eax
pop ecx
je 0x4292d4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004195f9
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4292e3
or dword [ebp + 0x10], 0x200000
jmp 0x429327
or dword [ebp + 0x10], 0x40000
jmp 0x429327
mov eax, dword [0x444ad8]
cmp eax, dword [ebp - 8]
je 0x429327
push eax
call fcn.004210f8
cmp eax, ebx
pop ecx
je 0x429327
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x429327
mov eax, dword [0x444adc]
cmp eax, dword [ebp - 8]
je 0x429327
push eax
call fcn.004210f8
cmp eax, ebx
pop ecx
je 0x429327
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x444ad4]
call fcn.004210f8
cmp eax, ebx
pop ecx
je 0x429347
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x429349
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e59c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4422c4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042e531
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00419f90
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42e5eb
cmp dword [ebp - 0x1c], 5
jb 0x42e603
jmp 0x42e5ff
cmp dword [ebp - 0x10], 1
jne 0x42e603
cmp dword [ebp - 0x1c], 4
ja 0x42e5ff
jne 0x42e603
cmp dword [ebp - 0x18], 0
jbe 0x42e603
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4397b8
call fcn.0042e422
test eax, eax
jge 0x42e624
mov byte [0x444c44], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00419556
add ebp, 0x78
leave
ret

Function at 0x42e7d6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x444c2c], 0
push esi
jne 0x42e749
call fcn.0042e674
test eax, eax
je 0x42e78c
mov eax, dword [0x444c2c]
cmp eax, 1
jne 0x42e76a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42e78c
pop esi
ret
push eax
call dword [0x444c34]
test eax, eax
jne 0x42e7d4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42e790
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x444c2c]
call dword [0x444c34]
mov edi, eax
test edi, edi
je 0x42e7b7
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x42e7d3
lea edi, [esi + 0xff0]
push esi
push dword [0x444c2c]
call dword [0x444c30]
add esi, 0x10
cmp esi, edi
jb 0x42e7bd
mov eax, esi
pop edi
pop esi
ret
jmp 0x42e736

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40329c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47f03c], 0
je 0x4032fd
cmp word [0x47f210], 0xd7b2
jne 0x4032c5
cmp dword [0x47f218], 0
jbe 0x4032c5
mov eax, 0x47f20c
call dword [0x47f228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47d05c
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403324
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x47d020], 0
jne 0x403319
push 0
push 0x47d054
push 0x47d05c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret

Function at 0x4046e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404746
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403640
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402700
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404730
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40474d
lea eax, [ebp - 0x10]
call fcn.00403418
ret

Function at 0x406ab4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.0040346c
mov eax, ebx
call fcn.004038bc
mov eax, dword [ebx]
call fcn.0040366c
test eax, eax
jle 0x406ae5
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x406ada
pop esi
pop ebx
ret

Function at 0x406dc4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x406e10
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.00407d5c
test al, al
jne 0x406e06
cmp word [edi], 0x5a4d
jne 0x406e06
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x406e06
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x406e1c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x406fa4
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x47d230], 0
jne 0x407085
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x406ff7
push 0x10000
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
jmp 0x407028
push 0x105
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
push ebx
call sub.KERNEL32.dll_LocalFree
cmp esi, 0xffffffff
je 0x407085
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x407053
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x407065
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x40707f
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4072d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4073cb
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x407314
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov ebx, eax
jmp 0x407348
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00403b14
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.00403658
mov eax, dword [ebp - 8]
call fcn.0040386c
push eax
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4073ad
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x4073a7
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4073a1
mov eax, dword [ebp - 4]
call fcn.00406dc4
test eax, eax
je 0x40738e
cmp word [eax + 0x18], 0x20b
je 0x407392
xor eax, eax
jmp 0x407394
mov al, 1
neg al
sbb edi, edi
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
push ebx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4073d2
lea eax, [ebp - 0xc]
call fcn.004039ec
lea eax, [ebp - 8]
call fcn.00403418
ret
Function at 0x40aa74
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
jne 0x40aaf0
cmp dword [esp + 0x10], 0x1000
jne 0x40aaf0
cmp dword [esp + 4], 0
je 0x40aaf0
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x40aaf0
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x40aaf0
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x40aaf0
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40c97c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
cmp dword [0x47dba8], 0
je 0x40c9c1
push esp
push 0x40
push 4
mov eax, dword [0x47dba8]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x40c9c1
mov eax, dword [0x47dba8]
mov edx, dword [0x47dbac]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x47dba8]
push eax
call sub.KERNEL32.dll_VirtualProtect
xor eax, eax
mov dword [0x47dba8], eax
cmp dword [0x47dbb0], 0
je 0x40ca05
push esp
push 0x40
push 4
mov eax, dword [0x47dbb0]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x40ca05
mov eax, dword [0x47dbb0]
mov edx, dword [0x47dbb4]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x47dbb0]
push eax
call sub.KERNEL32.dll_VirtualProtect
xor eax, eax
mov dword [0x47dbb0], eax
xor eax, eax
mov dword [0x47f6b0], eax
pop edx
ret
Function at 0x40db30
Capabilities:
Hash data using sha1

Disassembly:
push 0xcc
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov edx, eax
mov eax, edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, edx
ret

Function at 0x411ad4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x411b7b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 8]
mov eax, dword [0x47dd1c]
call fcn.00406ab4
push dword [ebp - 8]
push 0x411b94
lea ecx, [ebp - 0xc]
mov edx, dword [esi]
mov eax, dword [0x47dd20]
call fcn.004119dc
push dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040372c
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.0040386c
push eax
call fcn.00411848
mov edi, eax
test edi, edi
je 0x411b60
push 0
push 0
push 0
push 4
push edi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x411b5a
mov edx, dword [eax]
mov dword [esi], edx
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
mov bl, 1
push edi
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411b82
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040343c
ret

Function at 0x411e34
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, eax
test esi, esi
sete byte [ebp - 5]
cmp byte [ebp - 5], 0
jne 0x411e8c
xor ebx, ebx
jmp 0x411e85
cmp edx, edi
jne 0x411e84
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push edi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x411e8c
mov eax, dword [ebp - 4]
mov dword [esi + ebx*4], eax
mov byte [ebp - 5], 1
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0xc]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
jmp 0x411e8c
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x411e52
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411e98
Capabilities:
Allocate or change rwx memory
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
xor ecx, ecx
push ebp
push 0x411fb3
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x411f15
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x411f0b
mov eax, dword [ebp - 4]
add eax, 0x3c
mov eax, dword [eax]
add eax, dword [ebp - 4]
cmp dword [eax], 0x4550
jne 0x411f0b
cmp word [eax + 0x18], 0x20b
jne 0x411f02
add eax, 0x18
mov eax, dword [eax + 0x70]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
jmp 0x411f0b
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x411f1f
cmp dword [ebp - 0x14], 0
je 0x411fa9
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x14]
dec eax
test eax, eax
jl 0x411fa9
inc eax
xor ebx, ebx
mov edx, dword [esi + 0x1c]
add edx, dword [ebp - 4]
mov edx, dword [edx + ebx*4]
add edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jne 0x411fa5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.00411e34
test al, al
je 0x411fa9
mov eax, dword [esi + 0x1c]
add eax, dword [ebp - 4]
lea eax, [eax + ebx*4]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0x40
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x411f95
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
mov dword [esi], eax
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
jmp 0x411fa9
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.00411e34
jmp 0x411fa9
inc ebx
dec eax
jne 0x411f37
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x411fbd
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x411fcc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov ebp, edx
mov dword [esp], eax
mov eax, dword [esp]
call fcn.00406dc4
mov edi, eax
test edi, edi
je 0x412063
cmp dword [edi + 0x80], 0
je 0x412063
mov eax, dword [edi + 0x80]
cmp eax, dword [edi + 0x50]
jae 0x412063
mov esi, dword [edi + 0x80]
add esi, dword [esp]
test esi, esi
je 0x412063
jmp 0x41204f
mov ebx, dword [esp]
add ebx, dword [esi + 0x10]
jmp 0x412047
cmp ebp, dword [ebx]
jne 0x412044
lea eax, [esp + 8]
push eax
push 0x40
push 4
push ebx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x412044
mov eax, dword [esp + 4]
mov dword [ebx], eax
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
push 4
push ebx
call sub.KERNEL32.dll_VirtualProtect
add ebx, 4
cmp dword [ebx], 0
jne 0x412015
add esi, 0x14
cmp dword [esi + 0xc], 0
je 0x412063
cmp dword [esi + 0x10], 0
je 0x412063
mov eax, dword [edi + 0x50]
cmp eax, dword [esi + 0x10]
ja 0x41200d
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x413c18
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x413e1b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [esi], eax
xor edx, edx
mov eax, dword [0x47dc94]
call fcn.0040a8e4
mov dword [0x47f724], eax
xor edx, edx
mov eax, dword [0x47dc98]
call fcn.0040a8e4
mov dword [0x47f728], eax
lea eax, [ebp - 8]
mov edx, 5
call fcn.00403958
lea eax, [ebp - 8]
call fcn.004038c4
mov byte [eax], 0x72
lea eax, [ebp - 8]
call fcn.004038c4
mov byte [eax + 1], 0x64
lea eax, [ebp - 8]
call fcn.004038c4
mov byte [eax + 2], 0x65
lea eax, [ebp - 8]
call fcn.004038c4
mov byte [eax + 3], 0x63
lea eax, [ebp - 8]
call fcn.004038c4
mov byte [eax + 4], 0x20
lea edx, [ebp - 0x10]
mov eax, dword [0x47dd08]
call fcn.00406ab4
push dword [ebp - 0x10]
push 0x413e34
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.00406660
push dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 4
call fcn.0040372c
mov eax, dword [ebp - 8]
call fcn.0040386c
push eax
push 0
push 0
call fcn.00404b74
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x413df8
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [0x47f718], edi
mov eax, dword [ebp - 4]
mov dword [0x47f71c], eax
cmp dword [0x47f724], 0
je 0x413d41
cmp dword [0x47f728], 0
jne 0x413dc7
mov dl, 1
mov eax, dword [0x47dc34]
call fcn.0040a9f0
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x413ddc
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x413ddc
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x413ddc
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x413ddc
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x413ddc
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x413ddc
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x47f720], edx
mov edx, 0x413bc8
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0xc]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
mov bl, 1
jmp 0x413ddc
push 0x413b74
push 0xffffffffffffffff
call dword [0x47f724]
mov dword [esi], eax
cmp dword [esi], 0
setne bl
test bl, bl
jne 0x413df8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413e22
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040343c
lea eax, [ebp - 8]
call fcn.00403418
ret
Function at 0x413e38
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x47f724], 0
je 0x413e50
cmp dword [0x47f728], 0
jne 0x413e91
mov dl, 1
mov eax, dword [0x47dc34]
call fcn.0040a9f0
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x413e98
mov eax, dword [0x47f720]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
jmp 0x413e98
push eax
call dword [0x47f728]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x416858
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor eax, eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x416943
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
call fcn.00412190
xor eax, eax
push ebp
push 0x416926
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x14]
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00406cbc
test al, al
je 0x416913
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00412590
test al, al
je 0x416913
cmp dword [ebp - 0xc], 0
jne 0x4168b9
cmp dword [ebp - 0x10], 0
je 0x416913
call fcn.0040bfc0
lea eax, [ebp - 0x18]
push eax
push 0x40
push 8
push ebx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x416913
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
mov ecx, 8
mov edx, ebx
call fcn.00410c74
test al, al
jne 0x4168f7
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 4], eax
mov edx, 8
mov eax, ebx
call fcn.00413b38
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 8
push ebx
call sub.KERNEL32.dll_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41692d
call fcn.00412320
ret