joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40370e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x403735
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x403738
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004036ea
pop esi
leave
ret 8

Function at 0x40587e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4058bd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4058bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4058bd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4058bd
cmp dword [ecx + 0x74], 0xe
jbe 0x4058bd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x43285c
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00432730
Function at 0x4332ba
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x433305
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004336d0
test al, al
jne 0x4332ff
sub edx, 2
cmp edx, edi
jne 0x4332e5
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x433327
lea eax, [edi + 2]
cmp edx, eax
je 0x433327
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00432f81
add esp, 0x10
jmp 0x433421
push esi
lea ecx, [ebp - 0x255]
call fcn.004336d0
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43336a
push dword [ebp - 0x25c]
jmp 0x433317
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4333a7
cmp word [ebp - 0x226], 0
je 0x4333c8
cmp word [ebp - 0x226], ax
jne 0x4333a7
cmp word [ebp - 0x224], 0
je 0x4333c8
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00432f81
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x433414
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x433381
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4333fc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x433421
push 0x4329d1
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043d490
add esp, 0x10
jmp 0x4333f1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404a11
leave
ret
Function at 0x434ce8
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 0x434d85
push ebx
push esi
call fcn.00434ca4
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.00434b96
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x434d32
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x434d84
push edi
push eax
call fcn.0043234b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x434d52
call fcn.00431455
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x434d83
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00434b96
add esp, 0x20
test eax, eax
jne 0x434d71
push edi
call fcn.00431455
jmp 0x434d79
push ebx
call fcn.00431455
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 0x434d88
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x434d99
pop esi
ret
push ebx
push edi
push esi
call fcn.00434ca4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043234b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x434dc1
push ebx
push esi
push edi
call fcn.004061a0
add esp, 0xc
push 0
call fcn.00431455
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4356a2
Capabilities:
Set environment variable

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

Function at 0x439bc0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45322c
push 0x453224
push str.FlsAlloc
push 0x1e
call fcn.00439890
mov esi, eax
add esp, 0x10
test esi, esi
je 0x439bf4
push dword [ebp + 8]
mov ecx, esi
call dword [0x44e1b8]
call esi
jmp 0x439bfa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x439c3e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45323c
push 0x453234
push str.FlsGetValue
push 0x20
call fcn.00439890
mov esi, eax
add esp, 0x10
test esi, esi
je 0x439c75
push dword [ebp + 8]
mov ecx, esi
call dword [0x44e1b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x445289
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 + 0x45bbe0]
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 0x4452c9
cmp byte [ebx], 0xa
jne 0x4452c9
or byte [eax + edi + 0x28], 4
jmp 0x4452ce
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4453cc
mov al, byte [edx]
cmp al, 0x1a
je 0x4453ae
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4452fd
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x445322
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x44532c
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 0x4452df
jmp 0x4453cc
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 0x4453a9
cmp dword [ebp - 0xc], 0
je 0x4453a9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x45bbe0]
test byte [eax + edi + 0x28], 0x48
je 0x445383
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44536e
mov byte [esi], dl
jmp 0x44537f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45bbe0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4453cc
cmp byte [ebp - 1], 0xa
jne 0x445392
cmp esi, ebx
jne 0x445392
mov byte [esi], 0xa
jmp 0x4453cb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004450db
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4453cc
mov byte [esi], 0xd
jmp 0x4453cb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x45bbe0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4453c8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4453cc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4453d5
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 + 0x45bbe0]
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 0x445418
cmp word [esi], dx
jne 0x445418
or byte [edi + eax + 0x28], 4
jmp 0x44541d
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 0x445556
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 0x445536
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x44545f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x445495
cmp eax, edx
jae 0x4454a1
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 0x445437
jmp 0x445556
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 0x445532
cmp dword [ebp - 0x14], 0
je 0x445532
mov eax, dword [ebx*4 + 0x45bbe0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x44550a
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x445550
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x45bbe0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x45bbe0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x45bbe0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x445553
pop ebx
cmp word [ebp - 4], bx
jne 0x44551b
cmp esi, dword [ebp + 0xc]
jne 0x44551b
mov word [esi], bx
jmp 0x445553
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004450db
add esp, 0x10
cmp word [ebp - 4], bx
je 0x445556
push 0xd
jmp 0x44554f
mov ecx, dword [ebx*4 + 0x45bbe0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44554d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x445556
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 0x44a0f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44a11d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44a11d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x447fb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x30000]
push edi
or ebp, 0xffffffff
jmp 0x447fd2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x447fd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x447fc8
mov eax, 1
add ebx, ebx
jne 0x447feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x447ffc
jne 0x44801b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44801b
dec eax
add ebx, ebx
jne 0x448008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x447fe0
add ebx, ebx
jne 0x448017
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x44806d
xor ecx, ecx
sub eax, 3
jb 0x448033
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4480a2
sar eax, 1
mov ebp, eax
jmp 0x44803e
add ebx, ebx
jne 0x44803e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44800c
inc ecx
add ebx, ebx
jne 0x44804c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44800c
add ebx, ebx
jne 0x448059
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44804e
jne 0x44806a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44804e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44808c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44807e
jmp 0x447fce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44808c
add edi, ecx
jmp 0x447fce
pop esi
mov edi, esi
mov ecx, 0xac1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4480aa
cmp byte [edi], 9
jne 0x4480aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4480af
lea edi, [esi + 0x45000]
mov eax, dword [edi]
or eax, eax
je 0x448127
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x54cb8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x54d94]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4480dc
mov ecx, edi
jns 0x44810b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x54d98]
or eax, eax
je 0x448121
mov dword [ebx], eax
add ebx, 4
jmp 0x4480f9
call dword [esi + 0x54da8]
mov ebp, dword [esi + 0x54d9c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x44815b
sub esp, 0xffffff80
jmp 0x40f247
Function at 0x402300
Capabilities:
Enumerate files on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1278
call fcn.0040c840
mov eax, dword [0x41b074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x416]
push edx
mov dword [ebp - 0x1270], eax
mov word [ebp - 0x418], cx
call fcn.00406a10
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00406a10
push edi
push str.C:ProgramDataMicrosoftWlansvcProfilesInterfaces_
push str._s_s.xml
lea edx, [ebp - 0x418]
mov dword [ebp - 0x1274], 0
call fcn.00401000
add esp, 0x24
lea edx, [ebp - 0x1268]
push edx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x126c], eax
cmp eax, 0xffffffff
jne 0x4023c0
push str.FindFirstFile_failed._n
mov ebx, str.Error
call fcn.00403450
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b74
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x123c]
push ecx
push edi
push str.C:ProgramDataMicrosoftWlansvcProfilesInterfaces_
push str._s_s_s
lea edx, [ebp - 0x210]
call fcn.00401000
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp - 0x816]
push eax
xor ebx, ebx
mov word [ebp - 0x818], dx
call fcn.00406a10
lea ecx, [ebp - 0x210]
push str.rt__ccsUTF_8
push ecx
call fcn.00404d4b
mov esi, eax
add esp, 0x24
test esi, esi
jne 0x402444
lea edx, [ebp - 0x210]
push edx
push str.Failed_to_open_file__s_n
lea edx, [ebp - 0x1018]
call fcn.00401000
lea eax, [ebp - 0x1018]
push eax
mov ebx, str.Error
call fcn.00403450
add esp, 0xc
jmp 0x4024d0
push esi
call fcn.00404b83
push esi
push 1
lea ecx, [ebp - 0x818]
push 0x400
push ecx
call fcn.00405178
push esi
call fcn.0040555b
lea edx, [ebp - 0x818]
push str._SSID_
push edx
call fcn.00404ec3
add esp, 0x20
test eax, eax
je 0x4024d0
mov edx, str.name
mov ecx, eax
call fcn.004046b0
test eax, eax
je 0x4024d0
mov ecx, dword [ebp + 8]
mov edx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x4024b7
test si, si
je 0x4024b3
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4024b7
add ecx, 4
add edx, 4
test si, si
jne 0x402491
xor ecx, ecx
jmp 0x4024bc
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x4024c3
lea ebx, [ecx + 1]
push eax
call fcn.00404b69
add esp, 4
test ebx, ebx
jne 0x402511
mov ecx, dword [ebp - 0x126c]
lea eax, [ebp - 0x1268]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4023c0
mov esi, dword [ebp - 0x1274]
mov edx, dword [ebp - 0x126c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404b74
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1270]
push 0x104
lea edx, [ebp - 0x123c]
push edx
push esi
call fcn.00404c41
push str..xml
push esi
call fcn.00404ec3
add esp, 0x14
test eax, eax
je 0x402540
xor ecx, ecx
mov word [eax], cx
mov esi, 1
jmp 0x4024f2
Function at 0x403330
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push esi
push str.AireSpiderWPS
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x40342b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40342b
call fcn.004036b0
test eax, eax
jne 0x403399
call fcn.00403530
test eax, eax
je 0x403399
call fcn.00403730
test eax, eax
jne 0x40343c
push 0x10
push eax
push str.Failed_to_elevate_user_privileges_to_administrator
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp + 8]
push 0x66
push 0
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 0x403320
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], esi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0xd
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x24], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], str.AireSpiderWPS
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x40343c
push 0
push 0x4031d0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0x67
push esi
call dword [sym.imp.USER32.dll_DialogBoxParamW]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0x10
push 0
push str.prov.exe_is_already_running
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403450
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403460
sub eax, edx
push esi
sar eax, 1
push edi
mov edi, eax
mov eax, ebx
lea edx, [eax + 2]
jmp 0x403480
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403480
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [0x42a39c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
add eax, esi
lea edi, [eax + edi + 5]
lea ecx, [edi + edi + 2]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [0x42a39c]
push edi
mov esi, eax
push esi
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp + 8]
push edi
push eax
push ebx
push esi
push str._s_s:__s_r_n
mov edx, esi
call fcn.00401000
mov ecx, dword [0x42a39c]
add esp, 0x14
push esi
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
ret
Function at 0x403530
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x41b074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x174]
xor edi, edi
push eax
push 0xa
mov dword [ebp - 0x180], edi
mov dword [ebp - 0x174], edi
mov dword [ebp - 0x178], edi
mov dword [ebp - 0x17c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403674
push 0x11c
lea ecx, [ebp - 0x170]
push edi
push ecx
call fcn.00406a10
add esp, 0xc
push 1
push 2
push edi
push edi
mov dword [ebp - 0x170], 0x11c
mov dword [ebp - 0x16c], 6
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea edx, [ebp - 0x170]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x403618
mov edx, dword [ebp - 0x174]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x17c]
push eax
push 4
lea ecx, [ebp - 0x184]
push ecx
push 0x12
push edx
call esi
test eax, eax
je 0x403674
cmp dword [ebp - 0x184], 3
jne 0x403618
mov edx, dword [ebp - 0x174]
lea eax, [ebp - 0x17c]
push eax
push 4
lea ecx, [ebp - 0x178]
push ecx
push 0x13
push edx
call esi
test eax, eax
je 0x403674
cmp dword [ebp - 0x178], edi
jne 0x40363a
mov ecx, dword [ebp - 0x174]
lea eax, [ebp - 0x178]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x403674
lea edx, [ebp - 0x17c]
push edx
lea eax, [ebp - 0x50]
push eax
push edi
push 0x1a
mov dword [ebp - 0x17c], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x403674
mov eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x180]
push ecx
lea edx, [ebp - 0x50]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov eax, dword [ebp - 0x174]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x40368d
push eax
call esi
mov dword [ebp - 0x174], edi
mov eax, dword [ebp - 0x178]
cmp eax, edi
je 0x40369a
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x180]
pop edi
xor ecx, ebp
pop esi
call fcn.00404b74
mov esp, ebp
pop ebp
ret

Function at 0x4036b0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41b074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x403702
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
pop ebx
je 0x403711
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404b74
mov esp, ebp
pop ebp
ret
Function at 0x403730
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x41b074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x206
xor esi, esi
lea ecx, [ebp - 0x20a]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x20c], ax
call fcn.00406a10
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4037d1
push 0x38
lea eax, [ebp - 0x244]
push esi
push eax
mov dword [ebp - 0x248], 0x3c
call fcn.00406a10
add esp, 0xc
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x23c], str.runas
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x22c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
lea eax, [esi + 1]
jne 0x4037d3
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404b74
mov esp, ebp
pop ebp
ret