joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417c3f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x417c5d
xor eax, eax
jmp 0x417dcb
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x43d020]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x417c90
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00419123
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x417d62
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x417d9a
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x417ceb
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x417cdc
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x417cbf
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417d2b
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x417d34
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x417cb0
jmp 0x417d36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x417dc6
cmp dword [ebp - 4], edi
je 0x417d9a
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x417d8f
call fcn.00410f4f
mov dword [eax], 9
call fcn.00410f62
mov dword [eax], esi
jmp 0x417dc1
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417d84
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x417d36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x417d36
push dword [ebp - 4]
call fcn.00410f75
pop ecx
jmp 0x417dc1
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x417daf
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x417daf
xor eax, eax
jmp 0x417dc9
call fcn.00410f4f
mov dword [eax], 0x1c
call fcn.00410f62
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x417dc9
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x418409
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43bf7c], ebx
push esi
push edi
jne 0x418489
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4184c4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42fd78
push edi
call esi
test eax, eax
mov dword [0x43bf7c], eax
je 0x4184c4
push 0x42fd68
push edi
call esi
push 0x42fd54
push edi
mov dword [0x43bf80], eax
call esi
cmp dword [0x43b810], 2
mov dword [0x43bf84], eax
jne 0x418489
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x43bf8c], eax
je 0x418489
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x43bf88], eax
mov eax, dword [0x43bf88]
test eax, eax
je 0x4184ce
call eax
test eax, eax
je 0x4184b5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43bf8c]
test eax, eax
je 0x4184b5
test byte [ebp - 8], 1
jne 0x4184ce
cmp dword [0x43b81c], 4
jb 0x4184c8
or byte [ebp + 0x12], 0x20
jmp 0x4184ed
xor eax, eax
jmp 0x4184fd
or byte [ebp + 0x12], 4
jmp 0x4184ed
mov eax, dword [0x43bf80]
test eax, eax
je 0x4184ed
call eax
mov ebx, eax
test ebx, ebx
je 0x4184ed
mov eax, dword [0x43bf84]
test eax, eax
je 0x4184ed
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43bf7c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a23e
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x41a2a6
push 0x3d
push esi
call fcn.0040f923
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x41a2a6
cmp esi, eax
je 0x41a2a6
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x43b830]
sete cl
cmp eax, dword [0x43b834]
mov dword [ebp - 4], ecx
jne 0x41a28c
mov edi, eax
call fcn.0041a1df
mov dword [0x43b830], eax
cmp eax, ebx
jne 0x41a2e5
cmp dword [ebp + 0xc], ebx
je 0x41a2ae
cmp dword [0x43b838], ebx
je 0x41a2ae
call fcn.004193f8
test eax, eax
je 0x41a2e5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x41a3e9
push 4
pop ecx
call fcn.00412cd6
cmp eax, ebx
mov dword [0x43b830], eax
je 0x41a2a6
mov dword [eax], ebx
cmp dword [0x43b838], ebx
jne 0x41a2e5
push 4
pop ecx
call fcn.00412cd6
cmp eax, ebx
mov dword [0x43b838], eax
je 0x41a2a6
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x43b830]
sub edi, esi
push esi
call fcn.0041a192
mov edi, eax
test edi, edi
pop ecx
jl 0x41a33f
cmp dword [ebx], 0
je 0x41a33f
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0040fc0d
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41a326
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x41a373
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x41a31d
mov edx, edi
shl edx, 2
mov ecx, ebx
call fcn.00412d4c
test eax, eax
mov esi, dword [ebp + 8]
je 0x41a373
jmp 0x41a36e
cmp dword [ebp - 4], 0
jne 0x41a3e2
test edi, edi
jge 0x41a34f
neg edi
lea edx, [edi*4 + 8]
mov ecx, ebx
call fcn.00412d4c
test eax, eax
je 0x41a2a6
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x43b830], eax
cmp dword [ebp + 0xc], 0
je 0x41a3cd
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a37e
sub eax, edx
lea ecx, [eax + 2]
call fcn.00412cd6
mov edi, eax
test edi, edi
je 0x41a3cd
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x41a399
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
mov byte [eax], dl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41a3c6
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.0040fc0d
pop ecx
cmp dword [ebp - 4], 0
je 0x41a3da
push esi
call fcn.0040fc0d
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x41a2a9
push esi
call fcn.0040fc0d
pop ecx
xor eax, eax
jmp 0x41a2a9
Function at 0x41d910
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00410700
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41d9db
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41d9db
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41d98e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41d999
or bh, 8
and edi, 0x8000000
je 0x41d9b4
mov eax, dword [0x43d3dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41d9db
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ddb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41dddb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41ddff
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41de1a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4237c1
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 0x423803
call fcn.004277a0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x423803
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4237fa
xor eax, eax
jmp 0x42380b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00423811
pop edi
pop esi
pop ebx
ret 4

Function at 0x4281fe
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 0x42822c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42824a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00428164
jmp 0x42824a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42824a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00428164
test edi, edi
mov eax, edi
jne 0x428234
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4013f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401409
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401444
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401440
lea ebx, [ebx]
cmp esi, eax
jae 0x401444
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401430
cmp esi, eax
jb 0x40144a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401660
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40167b
pop edi
add esp, 0x1c
ret
mov eax, dword [esp + 0x24]
push esi
push 0x20
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40169f
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
push ebx
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
xor eax, eax
test ebx, ebx
pop ebx
pop esi
setne al
pop edi
add esp, 0x1c
ret
Function at 0x401c10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x248
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
mov ecx, 0xd
mov esi, str.SYSTEMCurrentControlSetEnumRootCITRIXDEVICES0000
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
push 0x1ff
lea eax, [esp + 0x51]
push 0
push eax
mov dword [esp + 0x18], 0
movsw word es:[edi], word [esi]
mov byte [esp + 0x58], 0
call fcn.004338b0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x20]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401d45
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push str.Class
mov edi, 0x200
push eax
mov dword [esp + 0x20], edi
call esi
test eax, eax
jne 0x401d45
lea ecx, [esp + 0x4c]
push str.CitrixDevices
push ecx
call fcn.00433180
add esp, 8
test eax, eax
jne 0x401d45
push edi
push eax
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x14], edi
call fcn.004338b0
add esp, 0xc
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push str.UpperFilters
push eax
mov dword [esp + 0x28], 7
call esi
test eax, eax
jne 0x401d45
lea ecx, [esp + 0x4c]
push str.kbdclass
push ecx
call fcn.00433180
add esp, 8
test eax, eax
jne 0x401d45
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00432ccc
add esp, 0x248
ret
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00432ccc
add esp, 0x248
ret
Function at 0x402060
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x458
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x454], eax
push ebx
mov ebx, dword [esp + 0x46c]
push esi
mov esi, dword [esp + 0x464]
push edi
mov edi, dword [esp + 0x46c]
test esi, esi
jne 0x4020aa
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x454]
xor ecx, esp
call fcn.00432ccc
add esp, 0x458
ret
push 0x3ff
lea eax, [esp + 0x65]
push 0
push eax
mov byte [esp + 0x6c], 0
call fcn.004338b0
xor eax, eax
push 0x44
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.004338b0
add esp, 0x18
mov dword [esp + 0x1c], 0x44
test edi, edi
jne 0x402103
push esi
lea edx, [esp + 0x64]
push 0x44cf54
push edx
call fcn.004337eb
add esp, 0xc
jmp 0x402117
push edi
push esi
lea eax, [esp + 0x68]
push 0x44cf4c
push eax
call fcn.004337eb
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402090
mov eax, dword [esp + 0x470]
test eax, eax
je 0x402173
test ebx, ebx
je 0x402159
mov dword [ebx], 0
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402173
test ebx, ebx
je 0x402173
mov dword [ebx], 1
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x460]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00432ccc
add esp, 0x458
ret
Function at 0x402820
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov edi, dword [esp + 0x224]
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.004338b0
push 0x104
lea ecx, [esp + 0x121]
push 0
push ecx
mov byte [esp + 0x128], 0
call fcn.004338b0
add esp, 0x18
push 0x104
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movzx eax, word [esp + 0x220]
mov ecx, dword [0x45fb70]
push 0x44d2cc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4028b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x402946
push ebp
push edi
lea edx, [esp + 0x118]
push edx
push 0x44cf24
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.00433868
mov ecx, dword [0x45fb70]
add esp, 0x14
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [0x45fb70]
push esi
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x80
push 2
push 0
push 0
mov ebp, eax
push 0x40000000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402929
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x402945
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x218]
pop edi
pop esi
xor ecx, esp
call fcn.00432ccc
add esp, 0x214
ret 8
Function at 0x402960
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov edi, dword [esp + 0x224]
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.004338b0
push 0x104
lea ecx, [esp + 0x121]
push 0
push ecx
mov byte [esp + 0x128], 0
call fcn.004338b0
add esp, 0x18
push 0x104
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movzx eax, word [esp + 0x220]
mov ecx, dword [0x45fb70]
push 0x44d2cc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4029f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x402a95
push ebp
call fcn.004017d0
push edi
lea edx, [esp + 0x118]
push edx
push 0x44cf24
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.00433868
mov ecx, dword [0x45fb70]
add esp, 0x14
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [0x45fb70]
push esi
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x80
push 2
push 0
push 0
mov ebp, eax
push 0x40000000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402a73
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.00401800
xor eax, eax
jmp 0x402a94
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00401800
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x218]
pop edi
pop esi
xor ecx, esp
call fcn.00432ccc
add esp, 0x214
ret 8
Function at 0x403e80
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4493eb
mov eax, dword fs:[0]
push eax
sub esp, 0x578
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0x574], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e764]
xor eax, esp
push eax
lea eax, [esp + 0x58c]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 2
mov ebp, ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x403ed8
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
push 0x124
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.004338b0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40400b
push str.iexplore.exe
lea edx, [esp + 0x484]
push 0x105
push edx
call fcn.00433fec
lea eax, [esp + 0x48c]
push 0x105
push eax
call fcn.004334d9
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
add esp, 0x14
jmp 0x403f40
lea ecx, [esp + 0x38]
push 0x104
push ecx
call fcn.004334d9
lea edx, [esp + 0x488]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00433042
add esp, 0x10
test eax, eax
je 0x403ff1
push 0x103
lea ecx, [esp + 0x381]
push ebx
push ecx
mov byte [esp + 0x388], bl
call fcn.004338b0
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
push ebx
push 0x410
call edi
cmp eax, ebx
je 0x403fae
push 0x104
lea ecx, [esp + 0x380]
push ecx
push ebx
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
lea ecx, [esp + 0x13c]
call fcn.00411920
lea edx, [esp + 0x37c]
push edx
lea ecx, [esp + 0x140]
mov dword [esp + 0x598], ebx
call fcn.00411930
lea ecx, [esp + 0x13c]
cmp eax, 1
je 0x404035
mov dword [esp + 0x594], 0xffffffff
call fcn.00411690
lea eax, [esp + 0x14]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403f40
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x58c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x574]
xor ecx, esp
call fcn.00432ccc
add esp, 0x584
ret
push ebx
call fcn.004118d0
movzx ecx, ax
push ecx
push 1
lea ecx, [esp + 0x144]
call fcn.004118d0
movzx edx, ax
push edx
push 2
lea ecx, [esp + 0x148]
call fcn.004118d0
movzx eax, ax
push eax
push 3
lea ecx, [esp + 0x14c]
call fcn.004118d0
movzx ecx, ax
push ecx
push 0x44cf18
push 0x3ff
push 0x45fb78
call fcn.00433868
add esp, 0x1c
push 3
lea ecx, [esp + 0x140]
call fcn.004118d0
movzx edx, ax
lea ecx, [esp + 0x13c]
mov dword [ebp + 0x1dc], edx
mov dword [esp + 0x594], 0xffffffff
call fcn.00411690
mov eax, 1
jmp 0x40400d