joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404eb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4267f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4310b0]
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 edi, ecx
mov ebx, edx
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], eax
cmp dword [edi + 0x14], 8
jb 0x404eff
mov edi, dword [edi]
mov esi, edi
call fcn.00402270
cmp word [edi], 0
je 0x404f9f
movzx eax, word [esi]
test ax, ax
je 0x404f2a
cmp ax, 0x7c
je 0x404f2a
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x404f18
mov edx, esi
sub edx, edi
sar edx, 1
push edx
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401f00
cmp dword [ebp - 0x1c], 0
je 0x404f8a
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x404f4c
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404f8a
test al, 0x10
jne 0x404f8a
mov edi, dword [ebp - 0x30]
mov ebx, dword [edi]
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x2c]
push eax
push ecx
push ebx
call fcn.004032d0
mov ecx, dword [edi + 4]
mov edx, 0x9249248
sub edx, ecx
cmp edx, 1
jb 0x404fcf
inc ecx
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
cmp word [esi], 0
je 0x404f9f
add esi, 2
cmp word [esi], 0
mov edi, esi
jne 0x404f10
cmp dword [ebp - 0x18], 8
jb 0x404fb1
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0040ed11
add esp, 4
mov al, 1
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.0040e862
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.0040e79c
int3
Function at 0x406460
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42693b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4310b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 8], 0
je 0x4064a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x44
mov byte [ebx + 4], 0
call fcn.0040ed6d
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4064cb
mov ecx, dword [ebp + 8]
push ecx
mov esi, eax
call fcn.00406560
mov esi, eax
jmp 0x4064cd
xor esi, esi
mov dword [ebx + 8], esi
test esi, esi
je 0x406549
lea edi, [esi + 8]
push edi
push 4
push esi
push 0x407ca0
push 0
push 0
call fcn.0040f39e
add esp, 0x18
mov dword [esi + 0xc], eax
cmp eax, 2
jae 0x406501
mov dword [esi + 0xc], 0
mov dword [edi], 0
cmp dword [esi + 0xc], 1
jbe 0x406534
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x406534
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
je 0x406534
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x406560
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426904
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4310b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [esi + 4], 0xfffffffe
xor ebx, ebx
mov dword [ebp - 0x248], esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [esi], 0x42e6e8
push 0x7c
mov dword [esi + 0x1c], ebx
call fcn.0040ed6d
add esp, 4
cmp eax, ebx
je 0x4066c8
mov dword [esi + 0x18], eax
mov dword [eax], eax
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x7fffffff
push ebx
push ebx
mov dword [esi + 0x3c], eax
mov byte [esi + 0x10], bl
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
lea ecx, [esi + 0x24]
push ecx
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x1c
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x406649
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406627
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00401f00
push 0x1b
push 0x42e6b0
lea ecx, [ebp - 0x234]
call fcn.00404150
push 0x28
call fcn.0040ed6d
add esp, 4
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x406683
lea edx, [ebp - 0x234]
push edx
mov ecx, eax
call fcn.0040e5c0
jmp 0x406685
xor eax, eax
mov dword [esi + 0x40], eax
cmp eax, ebx
je 0x406692
mov ecx, dword [esi + 0x3c]
mov dword [eax + 0x1c], ecx
cmp dword [ebp - 0x220], 8
jb 0x4066aa
mov edx, dword [ebp - 0x234]
push edx
call fcn.0040ed11
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e862
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x238], ebx
call fcn.0040e8f9
push 0x42f4a0
lea ecx, [ebp - 0x244]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.004102c2
int3
Function at 0x406730
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426690
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4310b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], 0x42e6e8
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x406776
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esi + 0x40]
cmp edi, ebx
je 0x4067a6
cmp dword [edi + 0x14], 8
jb 0x40678e
mov eax, dword [edi]
push eax
call fcn.0040ed11
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
push edi
mov word [edi], ax
call fcn.0040ed11
add esp, 4
lea ecx, [esi + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea edi, [esi + 0x18]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
mov eax, dword [edi]
mov ebx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 4], eax
mov dword [edi + 4], 0
cmp ebx, dword [edi]
je 0x4067ee
mov edx, dword [ebx]
lea eax, [ebx + 8]
push eax
mov dword [ebp - 0x10], edx
call fcn.00401200
push ebx
call fcn.0040ed11
mov ebx, dword [ebp - 0x10]
add esp, 4
cmp ebx, dword [edi]
jne 0x4067d0
mov ecx, dword [edi]
push ecx
call fcn.0040ed11
mov eax, dword [esi + 0xc]
xor edi, edi
add esp, 4
mov dword [esi], 0x42e708
cmp eax, edi
je 0x406820
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406a70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42624b
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4310b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [esi], 0x42e704
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
cmp edi, ebx
je 0x406b10
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406ac0
sub eax, edx
sar eax, 1
mov ebx, eax
je 0x406b10
lea eax, [ebx + ebx + 2]
push eax
call fcn.0040eebd
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x406b10
mov ecx, edi
mov edx, eax
jmp 0x406af0
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x406af0
mov ecx, dword [esi + 0x14]
xor edx, edx
push esi
mov word [ecx + ebx*2], dx
call fcn.00406bd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42629b
mov eax, dword fs:[0]
push eax
mov eax, 0x100c
call fcn.0041f1a0
mov eax, dword [0x4310b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], ebx
jb 0x4071c3
mov ecx, dword [edi]
jmp 0x4071c5
mov ecx, edi
mov byte [ecx], bl
cmp eax, ebx
jne 0x4071d2
xor al, al
jmp 0x407270
push ebx
push 0x8000000
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1018], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x4071cb
push 0xfff
lea eax, [ebp - 0x100f]
push 0
xor bl, bl
push eax
mov byte [ebp - 0x1010], bl
call fcn.0040fb20
add esp, 0xc
test bl, bl
jne 0x407265
push 0
lea ecx, [ebp - 0x1014]
push ecx
push 0x1000
lea edx, [ebp - 0x1010]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
sete bl
test bl, bl
jne 0x407265
mov eax, dword [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x1010]
push ecx
mov ecx, edi
call fcn.00407290
cmp dword [ebp - 0x1014], 0x1000
jae 0x407217
mov bl, 1
jmp 0x407267
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e862
mov esp, ebp
pop ebp
ret

Function at 0x407890
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push 0x44
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.0040fb20
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x5c]
push edx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push 0
push eax
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4078fa
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x14]
push eax
call esi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407aa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x407ab9
mov eax, dword [eax]
mov edx, edi
xor ecx, ecx
shr edx, 4
inc edx
mov word [eax], cx
movzx eax, dx
push 6
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x407add
pop edi
xor eax, eax
pop ebx
pop ebp
ret
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407ad7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407b2c
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
mov ecx, edi
je 0x407b20
lea ebx, [ebx]
dec ecx
cmp esi, eax
jae 0x407b22
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
test ecx, ecx
jne 0x407b10
cmp esi, eax
ja 0x407b2c
movzx eax, word [esi]
test ax, ax
jne 0x407b33
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
push eax
add esi, 2
push esi
call fcn.00401f00
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x407b50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4310b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x407b7d
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e862
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.0040fb20
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x407bad
mov esi, dword [esi]
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x407bf9
cmp eax, 0x50
je 0x407bf9
cmp eax, 0xb7
je 0x407bf9
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e862
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040e862
mov esp, ebp
pop ebp
ret
Function at 0x4090b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x4090c3
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x40913d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.0040f7b0
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x409111
sub eax, edi
jmp 0x409113
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x409102
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x409130
sub eax, edi
jmp 0x409132
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x409121
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x409269
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], edx
cmp ebx, ecx
jbe 0x409163
mov ebx, ecx
test ebx, ebx
je 0x4091b6
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x409185
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.00407fe0
jmp 0x40919e
cmp eax, 2
jne 0x4091a4
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x409197
xor eax, eax
jmp 0x4091a1
mov edx, ebx
call fcn.00408250
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.0040f7b0
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x4091de
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x4091f2
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x4090c0
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x409269
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x409238
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x409219
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.0040fb20
add esp, 0xc
add ebx, edi
pop edi
mov dword [esi + 0x16c0], ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x409269
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x409252
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.0040fb20
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x40c155
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x40c16d
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x40c19c
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x40c1de
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x40c2b2
sub edx, 0x10000
js 0x40c2b2
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x40c1c4
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x40c1c4
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x40c235
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x40c232
add edx, 8
jne 0x40c219
jmp 0x40c2a3
add edx, 4
test eax, 0xffff
jne 0x40c242
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x40c2a3
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x40c276
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x40c1c4
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x40c2b2
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x40c1c4
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x40c2c3
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40cf40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2c
push ebx
push esi
xor eax, eax
xor ebx, ebx
push edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0xc]
push eax
push edi
mov esi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.0040c7e0
test al, al
jne 0x40cf96
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x2c
ret 4
lea ecx, [esi + 0x80]
push ecx
mov ecx, dword [esi + 0x44]
lea edx, [esp + 0x40]
push edx
push 0x2c
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x50], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
cmp al, bl
jne 0x40cfcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40cf8b
push edi
mov ecx, esi
call fcn.0040cea0
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 4

Function at 0x40d1b0
Capabilities:
Create pipe

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x78], 0
jne 0x40d24d
push 0
push 1
push 0
mov dword [esi + 0x78], 2
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x4c], eax
test eax, eax
je 0x40d24d
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x90], eax
test eax, eax
je 0x40d24d
push 4
push 0xffffffffffffffff
push esi
push 0x40d1a0
push eax
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40d24d
cmp dword [esi + 0x38], 8
lea eax, [esi + 0x24]
jb 0x40d213
mov eax, dword [eax]
mov ecx, dword [esi + 0x40]
push ecx
push 0
push 0x40
push 0x40
push 1
push 6
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x44], eax
cmp eax, 0xffffffff
je 0x40d24d
mov edx, dword [esi + 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x40d251
mov dword [esi + 0x78], 1
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x40e862
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4310b0]
jne 0x40e86c
repz ret
jmp fcn.0041030e
Function at 0x4188dc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4310b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00411a24
and dword [ebp - 0x14], 0
cmp dword [0x433014], 0
mov dword [ebp - 0x18], eax
jne 0x41898f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x418a37
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x418a37
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x428c70
push ebx
mov dword [0x433014], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x433018], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43301c], eax
call edi
push eax
call esi
mov dword [0x433024], eax
test eax, eax
je 0x41898f
push 0x428c28
push ebx
call edi
push eax
call esi
mov dword [0x433020], eax
mov eax, dword [0x433020]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4189e8
cmp dword [0x433024], ecx
je 0x4189e8
push eax
call esi
push dword [0x433024]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4189e8
test ebx, ebx
je 0x4189e8
call edi
test eax, eax
je 0x4189df
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4189df
test byte [ebp - 8], 1
jne 0x4189e8
or dword [ebp + 0x10], 0x200000
jmp 0x418a1b
mov eax, dword [0x433018]
cmp eax, dword [ebp - 0x18]
je 0x418a1b
push eax
call esi
test eax, eax
je 0x418a1b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x418a1b
mov eax, dword [0x43301c]
cmp eax, dword [ebp - 0x18]
je 0x418a1b
push eax
call esi
test eax, eax
je 0x418a1b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x433014]
call esi
test eax, eax
je 0x418a37
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x418a39
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e862
leave
ret