joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440ce9
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5ac
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x47d544
push ebx
mov edi, ecx
call fcn.004431e0
mov dword [esp + 0x18], eax
pop ecx
pop ecx
test eax, eax
je 0x440d5e
mov esi, eax
lea eax, [esp + 0x28]
sub esi, ebx
push esi
push ebx
push eax
call fcn.004486a0
xor ebx, ebx
mov byte [esp + esi + 0x34], bl
mov esi, dword [esp + 0x1c]
inc esi
push esi
call fcn.00449820
lea eax, [esp + 0x28]
push esi
push eax
call fcn.00447910
push 0xa
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00453d14
add esp, 0x24
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
jmp 0x440d7c
push 0x3ff
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.004486a0
add esp, 0xc
xor ebx, ebx
mov byte [esp + 0x427], bl
mov eax, ebx
mov word [edi + 4], ax
mov al, byte [esp + 0x28]
sub al, 0x30
cmp al, 9
ja 0x440da3
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x10], ebx
cmp eax, 0xffffffff
je 0x440e14
jmp 0x440e2a
mov dword [esp + 0x10], ebx
jmp 0x440e14
test ebx, ebx
jne 0x440db4
call fcn.00453cba
mov ebx, eax
call fcn.00453cba
sub eax, ebx
cmp eax, 0x7530
jge 0x440e2c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x276d
jne 0x440de9
lea eax, [esp + 0x428]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x440e14
cmp esi, 0x2afa
je 0x440e10
mov eax, 0x2afb
cmp esi, eax
jne 0x440e00
cmp dword [esp + 0x10], eax
jne 0x440e10
cmp esi, 0x2734
je 0x440e10
cmp esi, 0x2714
jne 0x440e2c
mov dword [esp + 0x10], esi
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x440da9
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4429b3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4429f2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4429f2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4429f2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4429f2
cmp dword [ecx + 0x74], 0xe
jbe 0x4429f2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x447428
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00442e00
mov eax, dword [0x48d054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004587ec
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44746a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4475c6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00469000
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x48f770]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004589fc
mov ecx, dword [esi*4 + 0x48f770]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4475bf
cmp eax, dword [edi + ecx + 0x24]
jne 0x4475bf
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4475bf
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004589fc
add esp, 0x14
test edx, edx
jl 0x4475bf
jg 0x447535
test eax, eax
jb 0x4475bf
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4475bf
jl 0x44754f
cmp dword [ebp - 0x1008], eax
ja 0x4475bf
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x44756d
test ebx, ebx
je 0x4475a6
cmp ecx, edi
jae 0x4475a6
mov al, byte [ecx]
cmp al, 0xd
jne 0x447587
lea eax, [edi - 1]
cmp ecx, eax
jae 0x447593
cmp byte [ecx + 1], 0xa
jne 0x447593
inc ecx
jmp 0x447593
movzx eax, al
movsx eax, byte [eax + 0x48d2d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44756d
cmp edx, ebx
jne 0x44756d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4475c4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0044255c
leave
ret
Function at 0x453274
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x48d054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x46ecf0
push esi
call fcn.0045f17b
pop ecx
pop ecx
test eax, eax
jne 0x4532a2
xor al, al
jmp 0x45331f
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00452fb7
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4532dc
push dword [ebp - 0x210]
call fcn.0045127a
xor al, al
jmp 0x45331d
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4532e2
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x453302
push edx
call fcn.004531aa
pop ecx
test al, al
je 0x4532cd
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x453310
mov bl, 1
push dword [ebp - 0x210]
call fcn.0045127a
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044255c
leave
ret
Function at 0x4590a1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x48f770]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4590e1
cmp byte [ebx], 0xa
jne 0x4590e1
or byte [eax + edi + 0x28], 4
jmp 0x4590e6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4591e4
mov al, byte [edx]
cmp al, 0x1a
je 0x4591c6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x459115
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x45913a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x459144
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4590f7
jmp 0x4591e4
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4591c1
cmp dword [ebp - 0xc], 0
je 0x4591c1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x48f770]
test byte [eax + edi + 0x28], 0x48
je 0x45919b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x459186
mov byte [esi], dl
jmp 0x459197
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48f770]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4591e4
cmp byte [ebp - 1], 0xa
jne 0x4591aa
cmp esi, ebx
jne 0x4591aa
mov byte [esi], 0xa
jmp 0x4591e3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00458a1a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4591e4
mov byte [esi], 0xd
jmp 0x4591e3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x48f770]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4591e0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4591e4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4591ed
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x48f770]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x459230
cmp word [esi], dx
jne 0x459230
or byte [edi + eax + 0x28], 4
jmp 0x459235
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x45936e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x45934e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x459277
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4592ad
cmp eax, edx
jae 0x4592b9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x45924f
jmp 0x45936e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45934a
cmp dword [ebp - 0x14], 0
je 0x45934a
mov eax, dword [ebx*4 + 0x48f770]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x459322
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x459368
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x48f770]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x48f770]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x48f770]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x45936b
pop ebx
cmp word [ebp - 4], bx
jne 0x459333
cmp esi, dword [ebp + 0xc]
jne 0x459333
mov word [esi], bx
jmp 0x45936b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00458a1a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x45936e
push 0xd
jmp 0x459367
mov ecx, dword [ebx*4 + 0x48f770]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x459365
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45936e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45a12a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x470478
push 0x470470
push str.FlsAlloc
push 0x1e
call fcn.00459f97
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45a15e
push dword [ebp + 8]
mov ecx, esi
call dword [0x46c2e8]
call esi
jmp 0x45a164
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x45a1a8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x470488
push 0x470480
push str.FlsGetValue
push 0x20
call fcn.00459f97
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45a1df
push dword [ebp + 8]
mov ecx, esi
call dword [0x46c2e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x45c15b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045bfcc
Function at 0x462061
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4620fe
push ebx
push esi
call fcn.0046202a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0045a63c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4620ab
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4620fd
push edi
push eax
call fcn.00459c2c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4620cb
call fcn.00459bf2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4620fc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0045a63c
add esp, 0x20
test eax, eax
jne 0x4620ea
push edi
call fcn.00459bf2
jmp 0x4620f2
push ebx
call fcn.00459bf2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x462101
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x462112
pop esi
ret
push ebx
push edi
push esi
call fcn.0046202a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00459c2c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x46213a
push ebx
push esi
push edi
call fcn.00443a50
add esp, 0xc
push 0
call fcn.00459bf2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4624fe
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046214f
Function at 0x4682e7
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00468263
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x46845f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x46845f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x46840e
jg 0x468340
test eax, eax
je 0x468404
push 1
push 0x1000
call fcn.0045c197
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x468366
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4683fb
push 0x8000
push ebx
call fcn.00456c65
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x468392
jg 0x46838d
cmp ecx, 0x1000
jb 0x468392
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0045b7ee
add esp, 0x10
cmp eax, 0xffffffff
je 0x4683d7
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x46838d
jl 0x4683be
test ecx, ecx
jne 0x46837f
push dword [ebp - 0xc]
push ebx
call fcn.00456c65
push esi
call fcn.00459bf2
add esp, 0xc
xor edi, edi
jmp 0x468470
cmp byte [edi + 0x24], 0
je 0x4683ee
cmp dword [edi + 0x20], 5
jne 0x4683ee
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4683f9
mov edi, dword [edi + 0x18]
jmp 0x4683fb
xor edi, edi
push esi
call fcn.00459bf2
pop ecx
jmp 0x468470
test ecx, ecx
jg 0x4683d0
jl 0x46840e
test eax, eax
jae 0x4683d0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00458a1a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x468431
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4683d0
jmp 0x468468
push ebx
call fcn.0045f710
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4683d0
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x468470
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x46846d
mov edi, dword [edi + 0x18]
jmp 0x468470
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00458a1a
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x468fc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x468fed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x468fed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401207
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x41a1e8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [0x41a1ec]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0xc], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x34], 0x9e3779b9
mov dword [ebp - 0x18], eax
call fcn.00401200
add dword [ebp - 0xc], 0x23f
cmp dword [0x84d9a4], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0x454]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
mov ecx, dword [0x41a1f0]
mov edx, dword [0x41a1f4]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, esi
mov dword [ebp - 8], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x84d9a4], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x84d9a0]
cmove eax, dword [ebp - 8]
and dword [ebp - 8], 0
cmp dword [0x84d9a4], 0x3eb
mov dword [0x84d9a0], eax
mov eax, dword [0x84d8f8]
cmove eax, dword [ebp - 8]
mov dword [0x84d8f8], eax
mov eax, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add dword [ebp - 0x10], edx
and dword [ebp - 8], 0
mov dword [0x84d99c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
xor ecx, eax
cmp dword [0x84d9a4], 0x213
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
jne 0x401359
lea eax, [ebp - 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
lea eax, [ebp - 0x854]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x54]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov ecx, dword [ebp - 0x10]
sub ebx, ecx
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0xc]
shr edx, cl
add eax, ebx
mov ecx, dword [ebp - 4]
add edx, edi
xor ecx, eax
mov dword [ebp - 0x10], edx
cmp dword [0x84d9a4], 0xb03
mov dword [ebp - 4], ecx
jne 0x40139a
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, edx
sub esi, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 0xc], eax
dec dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jne 0x40127f
mov edi, dword [ebp - 0x24]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bb07
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419c10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00406dd7
mov dword [ebp - 0x14], eax
cmp dword [0x43476c], esi
jne 0x40bbfa
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40bb87
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40bcda
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40bcda
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bcda
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43476c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x434770], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x434774], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43477c], eax
test eax, eax
je 0x40bbf7
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x434778], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40bc1f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40bc12
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40bc34
push 4
pop eax
jmp 0x40bcdc
cmp dword [ebp - 0x14], esi
je 0x40bc34
push dword [0x43476c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40bc19
mov eax, dword [0x434778]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40bc92
cmp dword [0x43477c], edi
je 0x40bc92
push eax
call ebx
push dword [0x43477c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40bc92
test eax, eax
je 0x40bc92
call ecx
test eax, eax
je 0x40bc87
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40bc87
test byte [ebp - 8], 1
jne 0x40bc92
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40bcc2
mov eax, dword [0x434770]
cmp eax, edi
je 0x40bcbf
push eax
call ebx
test eax, eax
je 0x40bcbf
call eax
mov esi, eax
test esi, esi
je 0x40bcbf
mov eax, dword [0x434774]
cmp eax, edi
je 0x40bcbf
push eax
call ebx
test eax, eax
je 0x40bcbf
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43476c]
call ebx
test eax, eax
je 0x40bcda
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40bcdc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040394d
mov esp, ebp
pop ebp
ret