joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457fe6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x45802e
call fcn.0045780b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45802e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x458071
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x45805a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x45805a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x45806e
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x45f6b2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x45f6f9
call fcn.0045780b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45f6f9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x45f715
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0045f22a
mov esi, eax
test edi, edi
je 0x45f713
test ebx, ebx
je 0x45f713
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x460523
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4e3ab0
call fcn.00473c28
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x460548
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x46058e
lea ecx, [ebp - 0x10]
call fcn.00407870
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045fdac
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004078a0
mov eax, esi
call fcn.00473d00
ret 8
Function at 0x463474
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x463498
cmp dword [edi + 0x54], 0
jne 0x463498
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0045780b
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00463435
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x46e186
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x520628]
jne 0x46e190
repz ret
jmp fcn.00475fe2

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x472237
call fcn.004742a0
mov dword [eax], esi
call fcn.0047428d
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0046e58a
add esp, 0x14
push 0x16
pop eax
jmp 0x47228c
test dword [ebp + 0xc], 0xfffffff9
jne 0x472213
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x472264
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004742b3
pop ecx
call fcn.0047428d
mov eax, dword [eax]
jmp 0x47228c
test al, 0x10
jne 0x47228a
test al, 1
je 0x47228a
test byte [ebp + 0xc], 2
je 0x47228a
call fcn.004742a0
mov dword [eax], 5
call fcn.0047428d
mov dword [eax], 0xd
jmp 0x47225b
xor eax, eax
pop esi
pop ebp
ret

Function at 0x48178c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00475945
and dword [ebp - 4], 0
cmp dword [0x5285b0], 0
mov ebx, eax
jne 0x48183d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4818ee
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4ebca0
push edi
call esi
test eax, eax
je 0x4818ee
push eax
call fcn.004758d3
mov dword [esp], 0x4ebc90
push edi
mov dword [0x5285b0], eax
call esi
push eax
call fcn.004758d3
mov dword [esp], 0x4ebc7c
push edi
mov dword [0x5285b4], eax
call esi
push eax
call fcn.004758d3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5285b8], eax
call esi
push eax
call fcn.004758d3
pop ecx
mov dword [0x5285c0], eax
test eax, eax
je 0x48183d
push 0x4ebc48
push edi
call esi
push eax
call fcn.004758d3
pop ecx
mov dword [0x5285bc], eax
mov eax, dword [0x5285bc]
cmp eax, ebx
je 0x481895
cmp dword [0x5285c0], ebx
je 0x481895
push eax
call fcn.0047594e
push dword [0x5285c0]
mov esi, eax
call fcn.0047594e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x481895
test edi, edi
je 0x481895
call esi
test eax, eax
je 0x48188c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48188c
test byte [ebp - 0xc], 1
jne 0x481895
or dword [ebp + 0x10], 0x200000
jmp 0x4818ce
mov eax, dword [0x5285b4]
cmp eax, ebx
je 0x4818ce
push eax
call fcn.0047594e
pop ecx
test eax, eax
je 0x4818ce
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4818ce
mov eax, dword [0x5285b8]
cmp eax, ebx
je 0x4818ce
push eax
call fcn.0047594e
pop ecx
test eax, eax
je 0x4818ce
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5285b0]
call fcn.0047594e
pop ecx
test eax, eax
je 0x4818ee
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4818f0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x486ad0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x528640], 0
je 0x486ae6
xor eax, eax
jmp 0x486d02
cmp dword [0x52863c], 0
je 0x486af9
mov eax, dword [0x52863c]
jmp 0x486d02
push 0x24
push 0
push 0x528618
call fcn.00473d40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x528618], eax
push 0
push 0
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x52861c], eax
cmp dword [0x52861c], 0
jne 0x486b9e
mov dword [0x528640], 1
cmp dword [0x52861c], 0
je 0x486b51
mov eax, dword [0x52861c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x528620], 0
mov dword [0x528624], 0
mov dword [0x528628], 0
mov dword [0x52862c], 0
mov dword [0x528630], 0
mov dword [0x528634], 0
mov dword [0x528638], 0
xor eax, eax
jmp 0x486d02
push str.ImagehlpApiVersionEx
mov ecx, dword [0x52861c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528620], eax
push str.SymInitialize
mov edx, dword [0x52861c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528624], eax
push str.SymSetOptions
mov eax, dword [0x52861c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528628], eax
push str.SymGetOptions
mov ecx, dword [0x52861c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52862c], eax
push str.SymLoadModule64
mov edx, dword [0x52861c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528630], eax
push str.SymGetModuleInfo64
mov eax, dword [0x52861c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528634], eax
push str.SymFromName
mov ecx, dword [0x52861c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528638], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.00473d40
add esp, 0xc
mov eax, 0xb
mov word [ebp - 8], ax
cmp dword [0x528620], 0
je 0x486c83
cmp dword [0x528624], 0
je 0x486c83
cmp dword [0x528630], 0
je 0x486c83
cmp dword [0x528634], 0
je 0x486c83
cmp dword [0x528638], 0
jne 0x486c88
jmp 0x486b32
lea ecx, [ebp - 8]
push ecx
call dword [0x528620]
movzx edx, word [ebp - 8]
cmp edx, 0xb
jge 0x486ca0
jmp 0x486b32
push 0
push 0
mov eax, dword [0x528618]
push eax
call dword [0x528624]
test eax, eax
jne 0x486cb9
jmp 0x486b32
cmp dword [0x52862c], 0
je 0x486cf3
cmp dword [0x528628], 0
je 0x486cf3
call dword [0x52862c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0xfffffff8
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
or edx, 0x2704
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
call dword [0x528628]
mov dword [0x52863c], 0x528618
mov eax, dword [0x52863c]
mov esp, ebp
pop ebp
ret
Function at 0x487260
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.00487330
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x487325
mov edx, dword [ebp - 4]
cmp edx, dword [0x521a70]
jb 0x4872a5
mov eax, dword [ebp - 4]
cmp eax, dword [0x521a74]
ja 0x4872a5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x487275
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.00473d40
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4872cb
jmp 0x487325
cmp dword [ebp - 0x10], 0x10000
jne 0x48730e
cmp dword [ebp - 0x14], 0x10000
jb 0x48730e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x487301
mov eax, dword [ebp - 0x24]
jmp 0x487327
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x487320
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.00487330
add esp, 4
mov dword [ebp - 4], eax
jmp 0x487275
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x487360
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.00487440
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x48742d
mov edx, dword [ebp - 4]
cmp edx, dword [0x521a70]
jb 0x4873aa
mov eax, dword [ebp - 4]
cmp eax, dword [0x521a74]
ja 0x4873aa
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x48737a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.00473d40
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4873d0
jmp 0x48742d
cmp dword [ebp - 0x10], 0x10000
jne 0x487413
cmp dword [ebp - 0x14], 0x10000
jb 0x487413
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x487406
mov eax, dword [ebp - 0x24]
jmp 0x48742f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x487428
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.00487440
add esp, 4
mov dword [ebp - 4], eax
jmp 0x48737a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x487790
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x528654], eax
je 0x4877ae
mov eax, 0x10dd
jmp 0x48788f
mov eax, dword [0x528664]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x48782c
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x48780a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x48780a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.00487900
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004509e1
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x4877b6
mov dword [0x528664], 0
call fcn.004878a0
mov ecx, dword [0x528660]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x487879
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004509e1
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x487844
mov dword [0x528660], 0
mov dword [0x528654], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x487dd0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x487de5
xor eax, eax
jmp 0x487e5a
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x487e12
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x487e55
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x487e53
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x487e4f
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x487e53
xor eax, eax
jmp 0x487e5a
jmp 0x487e09
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x487f00
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x528658], 0
je 0x487f19
mov eax, dword [0x528658]
jmp 0x487fb9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x487f2b
xor eax, eax
jmp 0x487fb9
push 8
call fcn.004509b2
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x487f81
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x487f6a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.004509e1
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x528658], eax
mov dword [0x52865c], 0
mov eax, dword [ebp - 4]
jmp 0x487fb9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x487f9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x487f4b
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x528660]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x528660], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x488d40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x488d6b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x488e24
push 0x1c
push 0
lea ecx, [ebp - 0x64]
push ecx
call fcn.00473d40
add esp, 0xc
push 0x1c
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x488d9a
xor eax, eax
jmp 0x488e24
push 0
push 0x40
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x488db8
xor eax, eax
jmp 0x488e24
movzx edx, word [ebp - 0x48]
cmp edx, 0x5a4d
jne 0x488dd2
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x58]
ja 0x488dd2
cmp dword [ebp - 0xc], 0x40
jae 0x488de1
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x488e24
push 0
push 0xf8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x488e05
xor eax, eax
jmp 0x488e24
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0x4550
je 0x488e1f
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x488e24
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0046e186
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48a110
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x434], 0
push 0x104
lea eax, [ebp - 0x418]
push eax
push str.WINDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp + 0xc], 1
jb 0x48a163
cmp dword [ebp + 0xc], 0x1000
jbe 0x48a175
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x48a352
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x434]
push ecx
call fcn.00489e40
test eax, eax
jne 0x48a19b
jmp 0x48a352
cmp dword [ebp - 0x41c], 0
je 0x48a1b0
cmp dword [ebp - 0x41c], 0x104
jb 0x48a1ba
jmp 0x48a352
push str._sysnative_rundll32.exe
push 0x104
lea edx, [ebp - 0x418]
push edx
call fcn.0048a380
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x48a1e9
jmp 0x48a352
mov eax, dword [ebp - 0x434]
add eax, 0xc
push eax
push str.rundll32.exe___hs__1
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.0048a3e0
add esp, 0x10
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x48a225
jmp 0x48a352
push 0x10
push 0
lea edx, [ebp - 0x430]
push edx
call fcn.00473d40
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x480]
push eax
call fcn.00473d40
add esp, 0xc
mov dword [ebp - 0x480], 0x44
lea ecx, [ebp - 0x430]
push ecx
lea edx, [ebp - 0x480]
push edx
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [ebp + 0x14]
test eax, eax
je 0x48a352
mov edx, dword [ebp - 0x434]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x434]
push ecx
push 0x4ed6a4
mov edx, dword [ebp - 0x430]
push edx
call fcn.00489a80
test eax, eax
jne 0x48a2da
push 0xffffffffffffffff
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48a352
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x42c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x484], 0x1f4
lea eax, [ebp - 0x484]
push eax
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x484], 0
je 0x48a348
jmp 0x48a352
mov dword [ebp - 0x420], 1
lea ecx, [ebp - 0x434]
push ecx
call fcn.0048a0c0
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e186
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48a670
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x34], 0
jne 0x48a684
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp + 0x34], eax
cmp dword [ebp + 0x2c], 0
jne 0x48a6a0
lea ecx, [ebp - 0x10]
mov dword [ebp + 0x2c], ecx
push 0x10
push 0
lea edx, [ebp - 0x10]
push edx
call fcn.00473d40
add esp, 0xc
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
or ecx, 4
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp + 0x34]
test eax, eax
jne 0x48a6d9
xor eax, eax
jmp 0x48a774
mov ecx, dword [ebp + 0x30]
mov dword [ebp - 0x14], ecx
push 1
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
push ecx
call fcn.00488b80
test eax, eax
jne 0x48a737
mov edx, dword [ebp + 0x34]
push edx
mov eax, dword [ebp + 0x30]
push eax
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 8]
push edx
call fcn.0048a0f0
test eax, eax
jne 0x48a737
push 0xffffffffffffffff
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x48a774
mov eax, dword [ebp + 0x1c]
and eax, 4
jne 0x48a74c
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp + 0x2c]
lea ecx, [ebp - 0x10]
cmp eax, ecx
jne 0x48a76f
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x30

Function at 0x490f10
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00490c80
Function at 0x496a40
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00474d50
mov eax, dword [0x520628]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x496aa5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x496aa5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.00477fe5
add eax, 0x40
push eax
call fcn.004d812c
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0046e186
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.0047b545
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x496b34
call fcn.00496900
test eax, eax
jle 0x496b34
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0046e186
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0046e186
add esp, 0x108
ret