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

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004c94c6
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4bea36
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004bea49
pop edi
pop esi
pop ebx
ret 8

Function at 0x4c001d
Capabilities:
Get graphical window text

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

Function at 0x4c19e1
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 0x4c1a23
call fcn.004c94c6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c1a23
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c1a1a
xor eax, eax
jmp 0x4c1a2b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c1a31
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c99f6
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 0x4c9a24
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c9a42
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c995c
jmp 0x4c9a42
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c9a42
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c995c
test edi, edi
mov eax, edi
jne 0x4c9a2c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5300bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [ebx]
lea esi, [edx + 0x1000]
mov dword [ebp - 4], 0x10
xor ecx, dword [esi]
mov dword [ebp - 8], ecx
call fcn.0053008c
xor eax, edi
mov edi, dword [ebp - 8]
add esi, 4
dec dword [ebp - 4]
mov ecx, eax
jne 0x5300da
mov eax, dword [edx + 0x1040]
xor eax, ecx
mov ecx, dword [edx + 0x1044]
mov edx, dword [ebp + 8]
xor ecx, edi
pop edi
mov dword [edx], ecx
mov dword [ebx], eax
pop esi
leave
ret

Function at 0x53010e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [ebx]
lea esi, [edx + 0x1044]
mov dword [ebp - 4], 0x10
xor ecx, dword [esi]
mov dword [ebp - 8], ecx
call fcn.0053008c
xor eax, edi
mov edi, dword [ebp - 8]
sub esi, 4
dec dword [ebp - 4]
mov ecx, eax
jne 0x530129
mov eax, dword [edx + 0x1004]
xor eax, ecx
mov ecx, dword [edx + 0x1000]
mov edx, dword [ebp + 8]
xor ecx, edi
pop edi
mov dword [edx], ecx
mov dword [ebx], eax
pop esi
leave
ret
Function at 0x553580
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x5535e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x5535d7
mov edx, dword [0x587ac0]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x5535cb
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x5535b0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x5535d9
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x555730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xf8
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x78]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0
jmp 0x55579c
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x18]
jae 0x5557e3
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00566e8a
add esp, 8
test eax, eax
jne 0x5557e1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x5557e5
jmp 0x555793
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x55c6c0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x5808f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00557a90
add esp, 4
movzx edx, al
test edx, edx
je 0x55c751
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea ecx, [ebp - 0x2d8]
push ecx
call fcn.00560de0
add esp, 0xc
mov dword [ebp - 0x2d8], 0x10001
lea edx, [ebp - 0x2d8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x55c74f
mov edx, dword [ebp - 0x220]
cmp edx, dword [ebp + 0xc]
jne 0x55c74f
jmp 0x55c751
jmp 0x55c6d3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00561535
mov esp, ebp
pop ebp
ret

Function at 0x55ce9e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x55cf23
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00560e60
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x55cee6
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x55cf08
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x55cf7e
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.0055cc6c
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x55cf6a
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x55cf7e
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x55cea7
pop esi
pop ebx
leave
ret
Function at 0x561535
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5808f0]
jne 0x56153f
repz ret
jmp fcn.00564129

Function at 0x565262
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x581010]
je 0x56527d
inc edi
cmp edi, 0x17
jb 0x56526e
cmp edi, 0x17
jae 0x5653fd
push ebp
push 3
call fcn.005690ed
cmp eax, 1
pop ecx
je 0x5653c9
push 3
call fcn.005690ed
test eax, eax
pop ecx
jne 0x5652b1
cmp dword [0x5809cc], 1
je 0x5653c9
cmp ebx, 0xfc
je 0x5653fc
push 0x585fb8
mov ebx, 0x314
push ebx
mov ebp, 0x588d60
push ebp
call fcn.00566c4a
add esp, 0xc
test eax, eax
je 0x5652e7
push esi
push esi
push esi
push esi
push esi
call fcn.005655ec
add esp, 0x14
push 0x104
mov esi, 0x588d79
push esi
push 0
mov byte [0x588e7d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x56532b
push 0x585fa0
push 0x2fb
push esi
call fcn.00566c4a
add esp, 0xc
test eax, eax
je 0x56532b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.005655ec
add esp, 0x14
push esi
call fcn.00562e70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x565370
push esi
call fcn.00562e70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x589074
push 0x585f9c
sub ecx, eax
push ecx
push eax
call fcn.00568e36
add esp, 0x14
test eax, eax
je 0x565370
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.005655ec
add esp, 0x14
jmp 0x565372
xor esi, esi
push 0x585f98
push ebx
push ebp
call fcn.00568d76
add esp, 0xc
test eax, eax
je 0x565392
push esi
push esi
push esi
push esi
push esi
call fcn.005655ec
add esp, 0x14
push dword [edi*8 + 0x581014]
push ebx
push ebp
call fcn.00568d76
add esp, 0xc
test eax, eax
je 0x5653b4
push esi
push esi
push esi
push esi
push esi
call fcn.005655ec
add esp, 0x14
push 0x12010
push 0x585f70
push ebp
call fcn.00568f30
add esp, 0xc
jmp 0x5653fc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x5653fc
cmp ebp, 0xffffffff
je 0x5653fc
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x581014]
push dword [esi]
call fcn.00562e70
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x568f30
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00564cca
xor ebx, ebx
cmp dword [0x5893e4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x569006
push 0x586924
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5690e6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x586918
push edi
call esi
cmp eax, ebx
je 0x5690e6
push eax
call fcn.00564c5c
mov dword [esp], 0x586908
push edi
mov dword [0x5893e4], eax
call esi
push eax
call fcn.00564c5c
mov dword [esp], 0x5868f4
push edi
mov dword [0x5893e8], eax
call esi
push eax
call fcn.00564c5c
mov dword [0x5893ec], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0056321a
test eax, eax
pop ecx
pop ecx
je 0x568fd4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005655ec
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x569006
push 0x5868d8
push edi
call esi
push eax
call fcn.00564c5c
cmp eax, ebx
pop ecx
mov dword [0x5893f4], eax
je 0x569006
push 0x5868c0
push edi
call esi
push eax
call fcn.00564c5c
pop ecx
mov dword [0x5893f0], eax
mov eax, dword [0x5893f0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x56908b
cmp dword [0x5893f4], ecx
je 0x56908b
push eax
call fcn.00564cd3
push dword [0x5893f4]
mov esi, eax
call fcn.00564cd3
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x56908b
cmp edi, ebx
je 0x56908b
call esi
cmp eax, ebx
je 0x569058
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x569058
test byte [ebp - 0x18], 1
jne 0x56908b
lea eax, [ebp - 0x10]
push eax
call fcn.00563251
test eax, eax
pop ecx
je 0x569073
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005655ec
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x569082
or dword [ebp + 0x10], 0x200000
jmp 0x5690c6
or dword [ebp + 0x10], 0x40000
jmp 0x5690c6
mov eax, dword [0x5893e8]
cmp eax, dword [ebp - 8]
je 0x5690c6
push eax
call fcn.00564cd3
cmp eax, ebx
pop ecx
je 0x5690c6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5690c6
mov eax, dword [0x5893ec]
cmp eax, dword [ebp - 8]
je 0x5690c6
push eax
call fcn.00564cd3
cmp eax, ebx
pop ecx
je 0x5690c6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5893e4]
call fcn.00564cd3
cmp eax, ebx
pop ecx
je 0x5690e6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5690e8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40361a
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x4daca0], 0x594
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
jne 0x403654
push 0x402d04
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x42a6b8]
mov edi, dword [0x42a6bc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x28], 0x9e3779b9
call fcn.00403613
mov eax, dword [0x42a6c0]
add dword [ebp - 8], 0x23f
mov ebx, dword [0x42a6c4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, dword [ebp - 0xc]
mov ecx, eax
shl ecx, 4
cmp dword [0x4daca0], 0xc
mov dword [ebp - 4], ecx
jne 0x4036f8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc44]
push eax
push esi
push 0x402d24
push 0x402d50
push 0x402d74
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push esi
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
add dword [ebp - 4], ecx
mov ecx, dword [0x4daca0]
cmp ecx, 0xfa9
jne 0x403716
mov dword [0x4da23c], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x403724
mov dword [0x4d9bec], esi
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
shr eax, cl
mov dword [0x4da238], 0xf4ea3dee
add eax, ebx
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x4daca0], 0x213
mov dword [ebp - 0x18], ecx
jne 0x403763
push esi
push 0x402da8
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], 0x64
sub dword [ebp - 0x10], eax
sub dword [ebp - 0x10], 0x64
cmp dword [0x4daca0], 0xc
jne 0x403796
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0x444]
push eax
push 0x402de8
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov eax, dword [ebp - 0x10]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x14]
shr eax, cl
add eax, edi
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp - 8], eax
dec dword [ebp - 0x1c]
jne 0x403690
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x4037e4
Capabilities:
Create pipe
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4daca0]
mov ecx, dword [0x4d9bf0]
sub esp, 0x42c
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x4038d9
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x4daca0], 0x959
jne 0x4038c5
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputAttribute]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402df8
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x402e5c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402e70
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.0040361a
add ebx, 8
dec dword [ebp - 4]
jne 0x40380d
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4039ab
Capabilities:
Get common file path

Disassembly:
mov eax, 0x427aa4
call fcn.004279a8
mov eax, 0x1428
call fcn.00410f30
push ebx
push esi
xor esi, esi
cmp dword [0x4daca0], 0x5b1
push edi
jne 0x403a57
push esi
lea eax, [ebp - 0x434]
push eax
push esi
push 0x402f64
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLocalTime]
lea eax, [ebp - 0x34]
call fcn.00403cbf
mov dword [ebp - 4], esi
call fcn.00404862
push 0x402f90
lea ecx, [ebp - 0x18]
call fcn.00403440
lea ecx, [ebp - 0x18]
call fcn.0040345c
lea ecx, [ebp - 0x18]
call fcn.004034a2
lea ecx, [ebp - 0x18]
call fcn.004034bb
push esi
push esi
call fcn.00404dc4
push esi
call fcn.00404d95
push esi
call fcn.00404d7e
push esi
call fcn.004050cd
add esp, 0x10
mov dword [esp], esi
call fcn.004035f4
fstp st(0)
push esi
call fcn.00404d7e
pop ecx
call fcn.00404e88
add dword [0x4daca0], 0x1134b
push dword [0x4daca0]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4d9bf0], eax
call fcn.004038f6
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x403aa0
inc edi
cmp edi, 0x4f6a4
jl 0x403a80
mov eax, dword [0x4daca0]
xor ecx, ecx
cmp eax, esi
jbe 0x403ac6
mov edx, dword [0x4daca4]
mov dl, byte [edx + ecx + 0x1134b]
mov edi, dword [0x4d9bf0]
mov byte [edi + ecx], dl
inc ecx
cmp ecx, eax
jb 0x403aab
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0xe
jne 0x403b15
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
lea eax, [ebp - 0x434]
push eax
push esi
push 0x402fa0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x402fb8
push 0x402fec
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
lea eax, [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
mov eax, dword [0x4daca0]
inc edi
cmp edi, 0x39621
jl 0x403ac8
call fcn.004037e4
xor edi, edi
call ebx
cmp edi, 0x26
jne 0x403b31
call fcn.004038dc
inc edi
cmp edi, 0x6753f
jl 0x403b25
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x7b
pop ebx
cmp dword [0x4daca0], 0x86
jne 0x403b8c
push 0x402ffc
push 0x403038
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push esi
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
lea eax, [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [0x4daca0], 0xf
jne 0x403bad
push esi
push esi
call edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
push 0x403080
push 0x4030c4
call edi
dec ebx
jne 0x403b43
push 0x4030fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4057cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4297dc]
jne 0x4057d5
repz ret
jmp fcn.0040a5bc
Function at 0x40e9db
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.00407cb2
and dword [ebp - 4], 0
cmp dword [0x42b814], 0
mov ebx, eax
jne 0x40ea8c
push 0x402c6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40eb3d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c60
push edi
call esi
test eax, eax
je 0x40eb3d
push eax
call fcn.00407c40
mov dword [esp], 0x402c50
push edi
mov dword [0x42b814], eax
call esi
push eax
call fcn.00407c40
mov dword [esp], 0x402c3c
push edi
mov dword [0x42b818], eax
call esi
push eax
call fcn.00407c40
mov dword [esp], 0x402c20
push edi
mov dword [0x42b81c], eax
call esi
push eax
call fcn.00407c40
pop ecx
mov dword [0x42b824], eax
test eax, eax
je 0x40ea8c
push 0x402c08
push edi
call esi
push eax
call fcn.00407c40
pop ecx
mov dword [0x42b820], eax
mov eax, dword [0x42b820]
cmp eax, ebx
je 0x40eae4
cmp dword [0x42b824], ebx
je 0x40eae4
push eax
call fcn.00407cbb
push dword [0x42b824]
mov esi, eax
call fcn.00407cbb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40eae4
test edi, edi
je 0x40eae4
call esi
test eax, eax
je 0x40eadb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40eadb
test byte [ebp - 0xc], 1
jne 0x40eae4
or dword [ebp + 0x10], 0x200000
jmp 0x40eb1d
mov eax, dword [0x42b818]
cmp eax, ebx
je 0x40eb1d
push eax
call fcn.00407cbb
pop ecx
test eax, eax
je 0x40eb1d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40eb1d
mov eax, dword [0x42b81c]
cmp eax, ebx
je 0x40eb1d
push eax
call fcn.00407cbb
pop ecx
test eax, eax
je 0x40eb1d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b814]
call fcn.00407cbb
pop ecx
test eax, eax
je 0x40eb3d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40eb3f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret