joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1017fef9
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x10188678], 0xa89
mov edx, dword [0x10188674]
add edx, 0xbf9
mov dword [0x10188674], edx
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.1017f429
lea ecx, [0x10180147]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], 0x14fe00
mov edx, dword [0x10188660]
mov dword [esp + 0x64], edx
mov edx, dword [0x10188664]
mov dword [esp + 0x3c], edx
mov edx, dword [0x10188668]
mov dword [esp + 0x78], edx
mov edx, dword [0x1018866c]
mov dword [esp + 0x50], edx
mov edx, dword [0x10188670]
mov dword [esp + 0x74], edx
mov dword [0x10188678], 0x2bd
mov dword [0x10188674], 0xfffff059
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x1017ffb7
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x10188678], 0xfde
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
jne 0x1017ff9b
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
sete dl
mov dword [esp + 0x14], ecx
mov byte [esp + 0x13], dl
mov al, byte [esp + 0x13]
test al, 1
jne 0x1017ffe9
jmp 0x1017ff9b
mov eax, dword [esp + 0x18]
mov dword [esp + 0x88], eax
mov dword [0x10188674], 0x828
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x54], edx
mov dword [0x10188678], 0x1419
call fcn.1017f7de
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x1018006e
mov dword [0x10188674], 0xa5a
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101801b3
mov dword [0x10188674], 0x1f96
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [0x10188678], 0x2262
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x101801b3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x10181045]
mov esi, 0xe
lea edi, [ebp - 0x2c]
mov ebx, dword [0x10188674]
add ebx, 0xfffff1bd
mov dword [0x10188674], ebx
mov dword [0x10188678], 0x1ac5
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], esi
call fcn.10180076
call fcn.10180476
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.1017efe9
xor ecx, ecx
mov edx, dword [0x10188678]
add edx, 0xffffe3d9
mov dword [0x10188674], edx
cmp eax, 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
je 0x10180301
mov eax, dword [ebp - 0x40]
mov dword [0x10188678], 0x1f5
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x10188678]
add ecx, 0x121d
mov dword [0x10188674], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x30]
mov dword [esp + 4], ecx
mov dword [ebp - 0x48], eax
call fcn.1017f1b2
xor eax, eax
mov ecx, dword [ebp - 0x48]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x54], ecx
mov dword [0x10188674], 0xb6b
mov ecx, dword [ebp - 0x48]
mov dword [edx + 0x20], ecx
mov dword [0x10188678], 0x1691
cmp ecx, 0
mov dword [ebp - 0x44], eax
je 0x10180301
mov eax, dword [ebp - 0x48]
add eax, 0x1066
mov dword [0x10188674], 0xffffedf9
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
jmp 0x10180301
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x49d1d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7e000]
push edi
or ebp, 0xffffffff
jmp 0x49d1f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x49d1f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49d1e8
mov eax, 1
add ebx, ebx
jne 0x49d20b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x49d21c
jne 0x49d23b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49d23b
dec eax
add ebx, ebx
jne 0x49d228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x49d200
add ebx, ebx
jne 0x49d237
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x49d28d
xor ecx, ecx
sub eax, 3
jb 0x49d253
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49d2c2
sar eax, 1
mov ebp, eax
jmp 0x49d25e
add ebx, ebx
jne 0x49d25e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49d22c
inc ecx
add ebx, ebx
jne 0x49d26c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49d22c
add ebx, ebx
jne 0x49d279
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x49d26e
jne 0x49d28a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x49d26e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x49d2ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x49d29e
jmp 0x49d1ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x49d2ac
add edi, ecx
jmp 0x49d1ee
pop esi
mov edi, esi
mov ecx, 0x349
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x49d2ca
cmp byte [edi], 9
jne 0x49d2ca
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 0x49d2cf
lea edi, [esi + 0x9b000]
mov eax, dword [edi]
or eax, eax
je 0x49d347
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9d964]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9d9a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x49d2fc
mov ecx, edi
jns 0x49d32b
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 + 0x9d9a4]
or eax, eax
je 0x49d341
mov dword [ebx], eax
add ebx, 4
jmp 0x49d319
call dword [esi + 0x9d9ac]
mov ebp, dword [esi + 0x9d9a8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
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 0x49d37b
sub esp, 0xffffff80
jmp 0x402ed0
Function at 0x1010eb9
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1003748
call fcn.010110bc
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1010ef6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1010ef6
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1010f0e
cmp eax, 0x20b
je 0x1010efb
mov dword [ebp - 0x1c], ebx
jmp 0x1010f22
cmp dword [ecx + 0x84], 0xe
jbe 0x1010ef6
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1010f1c
cmp dword [ecx + 0x74], 0xe
jbe 0x1010ef6
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10142ac], 0xffffffff
or dword [0x10142b0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1013810]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x101380c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10142b4], eax
call fcn.010110b2
cmp dword [0x10133b0], ebx
jne 0x1010f7d
push fcn.010110b2
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0101109b
push 0x1013010
push 0x101300c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1013808]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1013804]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1013008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1011013
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1010fe7
cmp al, 0x22
jne 0x1010fd9
cmp byte [esi], 0x22
jne 0x1010ff0
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1010ffa
cmp al, 0x20
jbe 0x1010fec
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x101101e
movzx eax, word [ebp - 0x50]
jmp 0x1011021
cmp byte [esi], 0x20
jbe 0x1010ff0
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1011013
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x101103e
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1011073
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010110f7
ret
Function at 0x40324c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40325b
pop dword [ebp - 0xc]
mov eax, 0x69e8c578
add eax, 0x96576ce3
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xf38a5696
sub dword [ebp - 0x1c], 0xa538114b
mov dword [ebp - 0x18], 0xeb84ee1e
add dword [ebp - 0x18], 0x46ae5e27
mov dword [ebp - 0x14], 0xb8f4daa8
sub dword [ebp - 0x14], 0x6ca8967a
mov dword [ebp - 0x10], 0x2aaea7d5
add dword [ebp - 0x10], 0xd551582b
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x528408a7
add eax, 0xadbc77d1
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x494c5316
sub dword [ebp - 0x1c], 0xd4d9e9c0
mov dword [ebp - 0x18], 0x8f1a79b2
sub dword [ebp - 0x18], 0x4dae183d
mov dword [ebp - 0x14], 0xf15a951a
add dword [ebp - 0x14], 0x7214d752
mov dword [ebp - 0x10], 0xd1739a54
add dword [ebp - 0x10], 0x2e8c65ac
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xdae13c7f
add eax, 0x255f43fd
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x39fd4
push 0
call eax
mov ecx, 0x6719ed72
sub ecx, 0x6719999d
xor ebx, ebx
add ebx, eax
mov esi, 0x459200
add esi, dword [ebp - 0xc]
mov edi, 0x83db88b5
sub edi, 0xdea544b4
xor dword [ebp - 4], 0x8f68a3e7
mov edx, dword [esi]
add dword [ebp - 4], 0xbdcd1617
add edx, edi
xor dword [ebp - 8], 0x9b69d01d
mov dword [ebx], edx
add dword [ebp - 4], edx
add ebx, 0xcaa3a96f
sub ebx, 0xcaa3a96b
add esi, 4
loop 0x403379
add eax, 0x6fef1fd9
sub eax, 0x6fedddb2
mov ebx, eax
add eax, 0xdd60ddff
add eax, 0x229f2206
mov ecx, 0xd7c712a4
add ecx, 0x2878ed5c
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x402ef8
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0x48131b
call fcn.00466686
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_PtInRect]
movsx edi, ax
shr eax, 0x10
movsx ebx, ax
mov dword [ebp - 0x3c], ecx
mov cl, byte [0x4a5914]
push ebx
mov byte [ebp - 0x35], cl
mov cl, byte [0x4a5915]
push edi
push 0x4a5890
mov byte [ebp - 0x36], cl
mov byte [0x4a5914], 0
mov byte [0x4a5915], 0
call esi
test eax, eax
je 0x402ff8
cmp byte [ebp - 0x35], 0
mov byte [0x4a5821], 0
mov byte [0x4a5822], 1
je 0x403042
lea esi, [ebp - 0x34]
call fcn.00424973
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0040e1ad
test al, al
lea eax, [ebp - 0x5c]
je 0x402f8c
push 0x48a718
push eax
call fcn.00424e0d
mov byte [ebp - 4], 1
jmp 0x402f9b
push str.Setup_is_harding_work_it_maybe_make_you_cannt_connect_to_internet_if_you_quit_now._Do_you_sure_to_exit_
push eax
call fcn.00424e0d
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
call fcn.00409901
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.0042523a
push dword [ebp - 0x3c]
call fcn.00403048
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
pop ecx
jae 0x402fcb
lea eax, [ebp - 0x2c]
push 0x34
push str.FBI_Warning
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x402fee
push esi
push esi
push 0x10
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x34]
call fcn.0042523a
jmp 0x403042
push ebx
push edi
push 0x4a58a0
call esi
mov byte [0x4a5822], 0
test eax, eax
je 0x403026
cmp byte [ebp - 0x36], 0
mov byte [0x4a5821], 1
je 0x403042
push 6
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x403042
cmp byte [ebp - 0x36], 0
mov byte [0x4a5821], 0
jne 0x403039
cmp byte [ebp - 0x35], 0
je 0x403042
push dword [ebp - 0x3c]
call fcn.00403048
pop ecx
call fcn.00466709
ret
Function at 0x40a3f2
Capabilities:
Check mutex on windows

Disassembly:
push 0x6c
mov eax, 0x47fdd3
call fcn.00466686
xor ebx, ebx
lea esi, [ebp - 0x34]
mov edi, ecx
mov byte [ebp - 0x35], bl
call fcn.00424973
push 0x48bbac
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 4], ebx
call fcn.00424e0d
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00409901
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.0042523a
mov eax, edi
call fcn.0042735a
lea esi, [ebp - 0x44]
lea edi, [ebp - 0x78]
call fcn.00419276
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40a45a
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40a477
mov byte [ebp - 0x35], 1
cmp eax, 0xb7
jne 0x40a48d
mov byte [ebp - 0x35], 1
cmp esi, ebx
je 0x40a48d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x34]
call fcn.0042523a
cmp byte [ebp - 0x35], bl
sete al
call fcn.00466709
ret

Function at 0x40b7ed
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
movzx eax, ax
push 0x48a70c
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40b816
or eax, 0xffffffff
jmp 0x40b8ac
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40b82b
push 0xfffffffffffffffe
jmp 0x40b8ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b83d
push 0xfffffffffffffffd
jmp 0x40b8ab
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jle 0x40b8a9
mov ecx, dword [ebp + 8]
lea edi, [ebp - 0x20]
call fcn.004251d2
cmp dword [eax + 0x18], 0x10
jb 0x40b863
mov eax, dword [eax + 4]
jmp 0x40b866
add eax, 4
push 0x48bc1c
push eax
call fcn.0046064e
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00408bd4
test esi, esi
jne 0x40b889
push 0xfffffffffffffffc
jmp 0x40b8ab
push esi
push 1
push ebx
push dword [ebp - 4]
call fcn.004607c7
push esi
call fcn.0046052e
add esp, 0x14
push esi
call fcn.004608c0
pop ecx
xor eax, eax
jmp 0x40b8ac
push 0xfffffffffffffffa
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40db5e
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x48bca0
call edi
push str.psapi.dll
mov ebp, eax
call edi
push str.Wlanapi.dll
mov dword [esp + 0x14], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov dword [esp + 0xc], eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
cmp ebp, ebx
je 0x40dc29
push str.CreateToolhelp32Snapshot
push ebp
call edi
push str.Process32First
push ebp
mov dword [esi], eax
call edi
push str.Process32Next
push ebp
mov dword [esi + 4], eax
call edi
push str.Module32First
push ebp
mov dword [esi + 8], eax
call edi
push str.Module32Next
push ebp
mov dword [esi + 0xc], eax
call edi
push str.Thread32First
push ebp
mov dword [esi + 0x10], eax
call edi
push str.Thread32Next
push ebp
mov dword [esi + 0x14], eax
call edi
push str.GlobalMemoryStatusEx
push ebp
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x30], eax
mov ebp, dword [esp + 0x10]
cmp ebp, ebx
je 0x40dc68
push str.EnumProcesses
push ebp
call edi
push str.EnumProcessModules
push ebp
mov dword [esi + 0x1c], eax
call edi
push str.EnumProcessModulesEx
push ebp
mov dword [esi + 0x24], eax
call edi
push str.GetModuleFileNameExW
push ebp
mov dword [esi + 0x28], eax
call edi
push str.GetProcessImageFileNameW
push ebp
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x2c], eax
cmp dword [esp + 0xc], ebx
je 0x40dce3
push str.WlanOpenHandle
push dword [esp + 0x10]
call edi
mov ebx, dword [esp + 0xc]
push str.WlanEnumInterfaces
push ebx
mov dword [esi + 0x34], eax
call edi
push str.WlanGetAvailableNetworkList
push ebx
mov dword [esi + 0x38], eax
call edi
push str.WlanGetProfile
push ebx
mov dword [esi + 0x3c], eax
call edi
push str.WlanCloseHandle
push ebx
mov dword [esi + 0x40], eax
call edi
push str.WlanFreeMemory
push ebx
mov dword [esi + 0x44], eax
call edi
push str.WlanDeleteProfile
push ebx
mov dword [esi + 0x48], eax
call edi
push str.WlanDisconnect
push ebx
mov dword [esi + 0x4c], eax
call edi
push str.WlanSetProfile
push ebx
mov dword [esi + 0x50], eax
call edi
push str.WlanConnect
push ebx
mov dword [esi + 0x54], eax
call edi
mov dword [esi + 0x58], eax
pop edi
pop ebp
mov eax, esi
pop ebx
pop ecx
pop ecx
ret
Function at 0x40e1bf
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a0ee0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x20c], 0
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.00467850
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x20c], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.00424e0d
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0045fbf1
leave
ret

Function at 0x40e3b4
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x480fc9
call fcn.00466686
xor edi, edi
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 0x21c], edi
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x220], esi
call fcn.00467850
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00424e0d
mov dword [ebp - 4], edi
push edi
mov dword [ebp - 0x21c], 1
call fcn.004256ed
mov eax, esi
call fcn.00466709
ret

Function at 0x40e55a
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x482014
call fcn.00466686
xor esi, esi
mov dword [ebp - 0x240], esi
call fcn.0040e311
test al, al
je 0x40e589
push 1
mov ecx, ebx
call fcn.0040e42e
pop ecx
jmp 0x40e636
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push esi
push eax
call fcn.00467850
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
je 0x40e57a
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00424e0d
lea edi, [ebp - 0x23c]
mov dword [ebp - 4], esi
call fcn.0042654d
push esi
mov esi, edi
call fcn.004256ed
mov eax, edi
push eax
call fcn.0040f419
pop ecx
test al, al
jne 0x40e5fc
mov eax, edi
push eax
call fcn.0040eea7
pop ecx
lea ecx, [ebp - 0x23c]
call fcn.0040f1eb
push 1
test al, al
jne 0x40e617
mov ecx, ebx
call fcn.0040e42e
pop ecx
jmp 0x40e62b
lea esi, [ebp - 0x23c]
call fcn.004256ed
mov eax, esi
push eax
push ebx
call fcn.00424e57
lea ecx, [ebp - 0x23c]
call fcn.0042523a
mov eax, ebx
call fcn.00466709
ret
Function at 0x40e8fe
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4a0ee0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
lea ecx, [ebp - 0x28]
call fcn.004269e0
xor esi, esi
cmp dword [ebp + 0x10], esi
jg 0x40e945
jl 0x40e92a
cmp dword [ebp + 0xc], esi
ja 0x40e945
push 0xffffffffffffff9c
pop esi
lea ecx, [ebp - 0x28]
call fcn.0042523a
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045fbf1
leave
ret
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x40e951
lea eax, [ebp - 0x20]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40e9a5
push esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40e999
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
and esi, 3
add esi, 0xfffffffd
jmp 0x40e99c
push 0xfffffffffffffffb
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e92d
push 0xfffffffffffffff7
jmp 0x40e92c
Function at 0x40eea7
Capabilities:
Create directory

Disassembly:
push 0x88
mov eax, 0x480ee2
call fcn.00466686
mov eax, dword [ebp + 8]
push eax
lea edi, [ebp - 0x54]
call fcn.0042662c
xor ebx, ebx
push ebx
mov esi, edi
mov dword [ebp - 4], ebx
call fcn.004256ed
lea esi, [ebp - 0x34]
call fcn.00424973
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 1
call fcn.00438f90
mov edi, 0x48bfc8
push edi
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 2
mov byte [ebp - 0x55], bl
call fcn.00424e0d
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x54]
call fcn.0042648d
lea ecx, [ebp - 0x94]
mov byte [ebp - 0x56], al
call fcn.0042523a
cmp byte [ebp - 0x56], bl
je 0x40ef50
cmp dword [ebp - 0x3c], 2
jne 0x40ef4c
or ebx, 0xffffffff
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 1
call fcn.004088df
lea ecx, [ebp - 0x34]
call fcn.0042523a
lea ecx, [ebp - 0x54]
call fcn.0042523a
mov eax, ebx
call fcn.00466709
ret
mov byte [ebp - 0x55], 1
push 0x48bfd0
lea eax, [ebp - 0x94]
push eax
call fcn.00424e0d
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x94]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.00426dea
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.0042523a
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x68]
mov dword [ebp - 0x5c], ebx
sar eax, 5
test eax, eax
jbe 0x40ef27
push dword [ebp - 0x5c]
lea esi, [ebp - 0x74]
call fcn.00408907
cmp dword [eax + 0x18], ebx
je 0x40f08c
cmp dword [ebp - 0x1c], ebx
je 0x40efe5
push 0x48bc04
lea eax, [ebp - 0x94]
push eax
call fcn.00424e0d
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.0041fd9f
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.0042523a
cmp byte [ebp - 0x55], bl
je 0x40f021
cmp dword [ebp - 0x1c], ebx
jne 0x40f021
push edi
lea eax, [ebp - 0x94]
push eax
call fcn.00424e0d
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.0041fd9f
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.0042523a
push dword [ebp - 0x5c]
lea esi, [ebp - 0x74]
call fcn.00408907
lea esi, [ebp - 0x34]
call fcn.0042735a
mov ecx, 0x48bc00
mov eax, esi
call fcn.00424e90
test al, al
jne 0x40f08c
mov ecx, 0x48bc90
mov eax, esi
call fcn.00424e90
test al, al
jne 0x40f08c
cmp dword [ebp - 0x1c], 2
jne 0x40f06a
push 1
lea ecx, [ebp - 0x30]
call fcn.004276b8
cmp word [eax], 0x3a
je 0x40f08c
lea eax, [ebp - 0x34]
push eax
call fcn.0040f419
pop ecx
test al, al
jne 0x40f08c
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40f084
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x68]
inc dword [ebp - 0x5c]
sar eax, 5
cmp dword [ebp - 0x5c], eax
jb 0x40ef96
jmp 0x40ef27