joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100562b6
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x100a3330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x1005646d
push 2
pop eax
mov word [ebp - 0x114], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x144], 0x10
call fcn.10056186
mov cx, word [0x100a62e8]
inc cx
mov dword [ebp - 0x14c], eax
push 0x2c
mov word [0x100a62e8], cx
push 0
push dword [edi + 0xc]
movzx eax, cx
mov dword [ebp - 0x148], eax
call fcn.10058f30
mov esi, dword [edi + 0xc]
add esp, 0xc
mov ecx, edi
mov word [esi], 8
mov ax, word [edi + 8]
mov word [esi + 4], ax
mov eax, dword [ebp - 0x148]
mov word [esi + 6], ax
mov eax, dword [ebp - 0x14c]
push 0x2c
mov dword [esi + 8], eax
push dword [edi + 0xc]
call fcn.10056138
mov word [esi + 2], ax
lea eax, [ebp - 0x114]
push dword [ebp - 0x144]
push eax
push 0
push 0x2c
push dword [edi + 0xc]
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x1005646d
test ebx, ebx
jne 0x1005638f
xor eax, eax
inc eax
jmp 0x1005646f
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.10058f30
add esp, 0xc
lea esi, [edi + 4]
push 0
push 0x64
push 0
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x10056457
lea eax, [ebp - 0x140]
push eax
push dword [esi]
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [ebp - 0x140], 1
je 0x10056457
mov ecx, edi
call fcn.10056186
mov esi, eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edx, eax
cmp edx, 0xffffffff
je 0x10056454
mov cl, byte [ebp - 0x104]
and cl, 0xf
movzx ecx, cl
shl cx, 2
movzx eax, cx
movzx ecx, ax
mov dword [ebp - 0x150], eax
mov ax, word [ebp + ecx - 0x100]
cmp ax, word [edi + 8]
jne 0x10056454
cmp byte [ebp + ecx - 0x104], 0
jne 0x10056454
mov eax, dword [ebp - 0x148]
cmp word [ebp + ecx - 0xfe], ax
je 0x10056480
lea esi, [edi + 4]
mov ecx, edi
call fcn.10056186
sub eax, dword [ebp - 0x14c]
cmp eax, dword [ebp + 0x10]
jb 0x100563a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10056b99
leave
ret 0xc
sub esi, dword [ebp + ecx - 0xfc]
mov ecx, dword [ebp - 0x150]
movzx ecx, cx
sub edx, ecx
mov word [ebx], ax
movzx ecx, byte [ebp - 0xfc]
sub edx, 0xc
mov dword [ebx + 4], esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
jmp 0x10056387

Function at 0x10072335
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100721b4

Function at 0x10075aaf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007576f
Function at 0x402130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45de80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
lea ecx, [esi + 0xc0]
push eax
call fcn.0040f350
mov eax, dword [esi + 0xc4]
lea edi, [esi + 0xc4]
test eax, eax
je 0x402185
push eax
call fcn.0042f4bc
add esp, 4
mov dword [edi], 0
push 0x46c264
push dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call fcn.0042f5fd
mov eax, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
setne byte [ebp - 0xd]
test eax, eax
je 0x4021b6
push eax
call fcn.0042f4bc
add esp, 4
push 0x46c268
push dword [ebp + 8]
push edi
call fcn.0042f5fd
mov ecx, dword [edi]
add esp, 0xc
or ebx, 0xffffffff
test ecx, ecx
je 0x4021f8
test eax, eax
jne 0x4021f8
cmp byte [ebp - 0xd], al
jne 0x4021f1
push ecx
push 1
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xfeff
push 2
push eax
call fcn.0042f87c
add esp, 0x10
xor esi, esi
jmp 0x4022f1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push str.Opening_log_file:__
push eax
call fcn.0040cc10
push str.__failed_
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call fcn.0040cce0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1c]
push str.ERROR:
push eax
call fcn.0040cc10
add esp, 0x24
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0040f350
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402261
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 4], 0
je 0x40227e
push ecx
mov ecx, esp
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], ecx
call fcn.0040ee30
mov eax, dword [esi + 4]
call eax
add esp, 4
cmp dword [edi], 0
je 0x4022b0
push 0x46c24c
push 0x46c254
lea ecx, [ebp - 0x14]
call fcn.0040d370
push dword [ebp - 0x14]
push 0x46c258
push dword [edi]
call fcn.0040ee10
push dword [edi]
mov esi, eax
call fcn.0042f137
add esp, 0x10
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4022ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4022ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 0x22
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x402310
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e120
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push esi
xorps xmm0, xmm0
mov dword [0x47e094], 0x46e53c
lea eax, [ebp - 0x38]
movlpd qword [0x4835c8], xmm0
push edi
mov esi, ecx
movlpd qword [0x4835c0], xmm0
mov byte [0x4835b8], 0
mov byte [0x4835b9], 0
mov dword [ebp - 0x38], vtable.std::_Func_impl_class__lambda_ef67f7e3564a8eeec7e38ab1f63d496a___class_std::allocator_int___void___.0
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
lea eax, [ebp - 0x60]
mov word [ebp - 0x70], 0x100
movlpd qword [ebp - 0x68], xmm0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x3c], 0
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0040e6f0
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
sete al
test al, al
jne 0x404941
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
sete al
test al, al
sete al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x14], 0
mov cl, byte [ebp - 0x70]
xor edx, edx
movzx eax, byte [ebp - 0x6f]
cmp cl, 1
cmovne eax, edx
mov byte [ebp - 0x6f], al
je 0x40495f
mov dword [ebp - 0x68], 0xfa
mov dword [ebp - 0x64], edx
push ecx
lea ecx, [ebp - 0x78]
call fcn.00415310
mov eax, dword [esi + 0xb8]
lea edi, [esi + 0xb8]
test eax, eax
je 0x404987
push eax
call fcn.0042f4bc
add esp, 4
mov dword [edi], 0
mov eax, dword [esi + 0xb4]
cmp dword [eax - 0xc], 0
je 0x4049c4
push 0x46d188
push eax
push edi
call fcn.0042f5fd
mov ecx, dword [edi]
add esp, 0xc
test ecx, ecx
je 0x4049e9
test eax, eax
jne 0x4049e9
push ecx
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xfeff
push 2
push eax
call fcn.0042f87c
add esp, 0x10
mov eax, dword [esi + 0x34]
cmp eax, 1
jne 0x4049f0
push fcn.004067a0
push ecx
mov ecx, esp
lea eax, [esi + 0x30]
push eax
mov dword [ebp - 0x10], ecx
call fcn.0040ee30
mov ecx, esi
call fcn.00404cc0
jmp 0x404a27
mov esi, 0x22
jmp 0x404a3e
cmp eax, 4
lea eax, [esi + 0x30]
jne 0x404a12
push fcn.004067a0
push ecx
mov ecx, esp
push eax
mov dword [ebp - 0x10], ecx
call fcn.0040ee30
mov ecx, esi
call fcn.00405870
jmp 0x404a27
push 0
push ecx
mov ecx, esp
push eax
mov dword [ebp - 0x10], ecx
call fcn.0040ee30
mov ecx, esi
call fcn.004067a0
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x404a3e
push eax
call fcn.0042f4bc
add esp, 4
mov dword [edi], 0
lea ecx, [ebp - 0x78]
mov byte [ebp - 0x70], 0
call fcn.004152a0
mov byte [0x4835b8], 1
mov dword [0x47e094], 0x46d190
call fcn.00401570
mov ecx, dword [ebp - 0x3c]
xorps xmm0, xmm0
movlpd qword [0x4835c0], xmm0
movlpd qword [0x4835c8], xmm0
test ecx, ecx
je 0x404a92
mov edx, dword [ecx]
lea eax, [ebp - 0x60]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x74], 0
je 0x404a9d
call fcn.0042c047
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a430
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x14
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
test edi, edi
je 0x40a468
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x40a468
push 2
push 0xc
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x40a473
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x14
ret 0xc
push ebx
xor ebx, ebx
cmp dword [esp + 0x18], ebx
jbe 0x40a534
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x40a526
mov eax, dword [esp + 0x10]
add eax, 8
push eax
lea eax, [edi + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40a526
mov eax, dword [esp + 0x10]
mov cl, byte [edi]
cmp cl, byte [eax]
jne 0x40a526
mov edx, dword [esi + 0x34]
mov ecx, dword [edi + 4]
call fcn.0040ca80
mov ecx, dword [esp + 0x10]
mov esi, eax
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx + 4]
mov edx, dword [edx + 0x34]
call fcn.0040ca80
cmp esi, eax
jne 0x40a522
cmp byte [esp + 0x2c], 0
mov eax, dword [esp + 0x10]
je 0x40a51c
mov cl, byte [eax + 1]
test cl, 3
je 0x40a522
mov dl, byte [edi + 1]
test cl, 4
je 0x40a4fb
test dl, 0xf
jmp 0x40a501
mov al, dl
xor al, cl
test al, 0xb
je 0x40a510
and cl, 0xa
cmp cl, 0xa
jne 0x40a522
test dl, 0xf
jne 0x40a522
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x14
ret 0xc
test byte [eax + 1], 1
jne 0x40a510
mov esi, dword [esp + 0x14]
inc ebx
movzx eax, bx
cmp eax, dword [esp + 0x18]
jb 0x40a482
pop ebx
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x14
ret 0xc
Function at 0x40a540
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], 0
mov dword [esp], 0
push ebp
mov ebp, ecx
mov dword [esp + 8], ebp
push edi
test eax, eax
je 0x40a701
mov edi, dword [esp + 0x40]
test edi, edi
je 0x40a701
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetAclInformation]
lea ecx, [esp + 0x1c]
push 2
push 0xc
push ecx
push eax
call esi
test eax, eax
je 0x40a599
push 2
push 0xc
lea eax, [esp + 0x30]
push eax
push edi
call esi
test eax, eax
jne 0x40a5a4
pop esi
pop edi
xor al, al
pop ebp
add esp, 0x28
ret 0x10
cmp dword [esp + 0x28], 0
push ebx
mov dword [esp + 0x1c], 0
jbe 0x40a6c2
mov bl, byte [esp + 0x40]
xor eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_GetAce]
lea ecx, [esp + 0x10]
push ecx
push eax
push edi
call esi
test eax, eax
je 0x40a6ac
mov eax, dword [esp + 0x10]
test bl, bl
je 0x40a5e3
test byte [eax + 1], 3
jmp 0x40a5e7
test byte [eax + 1], 1
je 0x40a6ac
push dword [ebp + 0xd8]
add eax, 8
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40a60b
test bl, bl
jne 0x40a60b
mov ebp, dword [esp + 0x44]
jmp 0x40a612
mov ebp, dword [esp + 0x10]
add ebp, 8
xor edi, edi
cmp dword [esp + 0x20], edi
jbe 0x40a6f5
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esp + 0x44]
call esi
test eax, eax
je 0x40a6e7
mov eax, dword [esp + 0x18]
push ebp
add eax, 8
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40a6e7
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x40a6e7
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx + 4]
mov edx, dword [edx + 0x34]
call fcn.0040ca80
mov ecx, dword [esp + 0x10]
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx + 4]
mov edx, dword [eax + 0x34]
call fcn.0040ca80
cmp esi, eax
mov esi, dword [sym.imp.ADVAPI32.dll_GetAce]
jne 0x40a6e7
test bl, bl
je 0x40a6a4
mov eax, dword [esp + 0x10]
mov al, byte [eax + 1]
test al, 4
je 0x40a6ce
mov eax, dword [esp + 0x18]
test byte [eax + 1], 0xf
jne 0x40a6e7
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
movzx eax, ax
cmp eax, dword [esp + 0x2c]
jb 0x40a5c4
pop ebx
pop esi
pop edi
xor al, al
pop ebp
add esp, 0x28
ret 0x10
mov ecx, dword [esp + 0x18]
mov dl, byte [ecx + 1]
mov cl, dl
xor cl, al
test cl, 3
jne 0x40a6e7
test dl, 8
je 0x40a6a4
test al, 8
jne 0x40a6a4
inc edi
movzx eax, di
cmp eax, dword [esp + 0x20]
jb 0x40a620
pop ebx
pop esi
pop edi
mov al, 1
pop ebp
add esp, 0x28
ret 0x10
pop edi
xor al, al
pop ebp
add esp, 0x28
ret 0x10
Function at 0x40a960
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push edi
mov edi, ecx
mov dword [ebp - 0x24], edi
mov eax, dword [edi + 4]
cmp dword [eax - 0xc], 0
jne 0x40a99b
xor eax, eax
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xc]
push ebx
lea ebx, [edi + 0xc]
test eax, eax
je 0x40a9b3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], 0
cmp byte [edi + 8], 0
je 0x40a9f0
push ebx
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x40a9de
mov dword [ebx], eax
mov eax, 6
pop ebx
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.00415f44
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40aa0c
push 0x80004005
call fcn.0040f420
mov eax, dword [edx]
mov ecx, edx
push esi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [0x4835d4]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
cmp dword [eax - 0xc], ecx
cmove eax, ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push dword [edi + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [0x4835d4]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
xor eax, eax
cmp dword [edi - 0xc], eax
cmove edi, eax
test edx, edx
jns 0x40aa83
push 0x80070057
call fcn.0040f420
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x40aaa0
push edx
lea ecx, [ebp - 0x1c]
call fcn.0040f040
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x18]
push dword [eax + 4]
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, dword [ebp - 0x18]
test eax, eax
je 0x40aacd
mov ecx, edi
call fcn.0040c5d0
mov dword [ebx], eax
push dword [esi - 8]
push esi
call fcn.00430a52
add esp, 8
test eax, eax
js 0x40aa79
cmp eax, dword [esi - 8]
jg 0x40aa79
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
je 0x40aaf6
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov edi, 6
cmp dword [ebx], eax
mov dword [ebp - 4], 0xffffffff
cmovne edi, eax
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40ab21
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop esi
pop ebx
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40b960
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e98b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push edi
mov dword [esi], vtable.CSD.0
call fcn.00415f44
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x40b9a2
push 0x80004005
call fcn.0040f420
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x1c]
push 0
mov dword [ebp - 4], 0
push 0x46e530
mov dword [esi + 0x28], eax
call fcn.0040f190
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0x30], 0
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ce60
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push 0
push 0
push str.computername
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x40ce8b
mov ecx, esi
call fcn.0040ef30
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4
js 0x40cef1
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x40cea8
push edi
mov ecx, esi
call fcn.0040f040
push edi
push dword [esi]
push str.computername
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x40cec0
xor ecx, ecx
jmp 0x40ced2
push dword [eax - 8]
push eax
call fcn.00430a52
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40cef1
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40cef1
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
pop edi
pop esi
mov word [eax + ecx*2], dx
mov eax, ebx
pop ebx
ret 4
push 0x80070057
call fcn.0040f420
int3

Function at 0x40eaf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40eb03
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40eb46
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40eb42
nop dword [eax + eax]
cmp esi, edx
jae 0x40eb46
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40eb30
cmp esi, edx
jb 0x40eb4a
xor eax, eax
pop esi
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
ret
Function at 0x414c50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f43a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.00425b70
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x414cff
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0042906f
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x47a604
push eax
call fcn.00429d4a
push eax
push esi
call fcn.00425a24
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41fd02
Capabilities:
Get disk information

Disassembly:
push 0x268
mov eax, 0x45fb47
call fcn.00423ab1
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
test esi, esi
mov edi, dword [ebp + 0x10]
setne al
mov dword [ebp - 0x264], esi
test eax, eax
jne 0x41fd30
call fcn.0041618e
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x41fd2b
lea eax, [ebp - 0x268]
push eax
push esi
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x41fd78
push 0xffffffffffffffff
push ebx
push 0x104
push esi
call fcn.00430dfd
push eax
call fcn.0040eb90
add esp, 0x14
push ebx
push edi
call fcn.0041fcd5
xor eax, eax
jmp 0x41fe9b
cmp eax, 0x104
jb 0x41fd95
test edi, edi
je 0x41fd71
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.0040eeb0
jmp 0x41fd71
call fcn.00415f44
push eax
lea ecx, [ebp - 0x26c]
call fcn.0040f440
and dword [ebp - 4], 0
lea eax, [ebp - 0x26c]
push eax
push esi
call fcn.0041f6bf
mov esi, dword [ebp - 0x26c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x41fe90
xor ecx, ecx
lea eax, [ebp - 0x270]
push ecx
push ecx
push eax
lea eax, [ebp - 0x274]
push eax
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x41fe00
push ebx
push edi
call fcn.0041fcd5
lea ecx, [esi - 0x10]
call fcn.0040f470
jmp 0x41fd71
mov eax, dword [ebp - 0x270]
test al, 2
jne 0x41fe1c
push dword [ebp - 0x264]
call dword [sym.imp.USER32.dll_CharUpperW]
mov eax, dword [ebp - 0x270]
test al, 4
jne 0x41fe90
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x41fe90
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x41fdec
cmp eax, dword [ebp - 0x264]
jbe 0x41fdec
lea eax, [ebp - 0x234]
push eax
call fcn.00430ca6
mov edx, dword [ebp - 0x268]
sub edx, dword [ebp - 0x264]
sar edx, 1
pop ecx
add eax, edx
mov ecx, 0x104
cmp eax, ecx
jge 0x41fea3
lea eax, [ebp - 0x234]
sub ecx, edx
push eax
push ecx
push dword [ebp - 0x268]
call fcn.00430ccc
push eax
call fcn.0040eb90
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.0040f470
xor eax, eax
inc eax
call fcn.00423a5b
ret 0xc
test edi, edi
je 0x41fdf3
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.0040eeb0
jmp 0x41fdf3

Function at 0x43b885
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043b548

Function at 0x43b890
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043b6c9

Function at 0x43d625
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043cf93

Function at 0x43d630
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043d1ce

Function at 0x447b56
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret