joyce8/EMBER2024-capa huggingface dataset:
Function at 0x744190
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x310000]
push edi
or ebp, 0xffffffff
jmp 0x7441b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7441b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7441a8
mov eax, 1
add ebx, ebx
jne 0x7441cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7441dc
jne 0x7441fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7441fb
dec eax
add ebx, ebx
jne 0x7441e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7441c0
add ebx, ebx
jne 0x7441f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x74424d
xor ecx, ecx
sub eax, 3
jb 0x744213
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x744282
sar eax, 1
mov ebp, eax
jmp 0x74421e
add ebx, ebx
jne 0x74421e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7441ec
inc ecx
add ebx, ebx
jne 0x74422c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7441ec
add ebx, ebx
jne 0x744239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x74422e
jne 0x74424a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x74422e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x74426c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x74425e
jmp 0x7441ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x74426c
add edi, ecx
jmp 0x7441ae
pop esi
mov edi, esi
mov ecx, 0x2631
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x74428a
cmp byte [edi], 0x16
jne 0x74428a
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 0x74428f
lea edi, [esi + 0x341000]
mov eax, dword [edi]
or eax, eax
je 0x744307
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x34487c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3449d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7442bc
mov ecx, edi
jns 0x7442eb
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 + 0x3449d4]
or eax, eax
je 0x744301
mov dword [ebx], eax
add ebx, 4
jmp 0x7442d9
call dword [esi + 0x3449dc]
mov ebp, dword [esi + 0x3449d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x74433b
sub esp, 0xffffff80
jmp 0x445713
Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40915c
nop
mov ecx, 0x20885ebd
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x544e0431
nop
nop
nop
nop
nop
test eax, eax
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x401037
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
call 0x401037
push 0
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push esi
push edi
push ebx
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403030], eax
mov dword [ebp - 8], 0
push 0xa
push section..data
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
je 0x401089
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
je 0x401089
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4010c1
push 4
push 0x1000
push dword [ebp - 0xc]
push 0
call sub.kernel32.dll_VirtualAlloc
mov edi, eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push edi
call sub.kernel32.dll_RtlMoveMemory
mov dword [ebp - 8], edi
push 0xdeadbeef
push dword [ebp - 0xc]
push dword [ebp - 8]
call section..text
cmp dword [ebp - 8], 0
je 0x4010fb
lea eax, [ebp - 0x40c]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str.dup2patcher.dll
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_lstrcatA
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 0x40c]
push eax
call fcn.00401184
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_LoadLibraryA
or eax, eax
je 0x401130
mov ebx, eax
push str.load_patcher
push ebx
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x40111e
call eax
push ebx
call sub.kernel32.dll_FreeLibrary
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_DeleteFileA
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401184
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4011af
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc
Function at 0x404140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404159
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404194
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404190
lea ebx, [ebx]
cmp esi, eax
jae 0x404194
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404180
cmp esi, eax
jb 0x40419a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40c9b7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40c9f0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00405b53
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004058c6
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x40e503
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40e546
call fcn.004114e3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40e546
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40e561
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040e0ba
test ebx, ebx
mov esi, eax
je 0x40e55f
test edi, edi
je 0x40e55f
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x411bf3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x411c21
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411c3f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00411b5d
jmp 0x411c3f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x411c3f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00411b5d
test edi, edi
mov eax, edi
jne 0x411c29
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4474ec]
test ecx, ecx
je 0x411d02
jmp 0x411bf2
ret 8

Function at 0x41f8af
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444430]
jne 0x41f8b9
repz ret
jmp fcn.00424252
Function at 0x42df4c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004243b9
xor ebx, ebx
cmp dword [0x44829c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42e021
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42df8c
xor eax, eax
jmp 0x42e0e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43a26c
push edi
call esi
cmp eax, ebx
je 0x42df85
push eax
call fcn.00424356
mov dword [esp], 0x43a25c
push edi
mov dword [0x44829c], eax
call esi
push eax
call fcn.00424356
mov dword [esp], 0x43a248
push edi
mov dword [0x4482a0], eax
call esi
push eax
call fcn.00424356
mov dword [0x4482a4], eax
lea eax, [ebp - 8]
push eax
call fcn.0042103f
test eax, eax
pop ecx
pop ecx
je 0x42dfef
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00424e1f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42e021
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00424356
cmp eax, ebx
pop ecx
mov dword [0x4482ac], eax
je 0x42e021
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00424356
pop ecx
mov dword [0x4482a8], eax
mov eax, dword [0x4482a8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42e09a
cmp dword [0x4482ac], esi
je 0x42e09a
push eax
call fcn.004243c2
pop ecx
call eax
cmp eax, ebx
je 0x42e067
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4482ac]
call fcn.004243c2
pop ecx
call eax
test eax, eax
je 0x42e067
test byte [ebp - 0x18], 1
jne 0x42e09a
lea eax, [ebp - 0xc]
push eax
call fcn.00421076
test eax, eax
pop ecx
je 0x42e082
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00424e1f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42e091
or dword [ebp + 0x10], 0x200000
jmp 0x42e0cb
or dword [ebp + 0x10], 0x40000
jmp 0x42e0cb
mov eax, dword [0x4482a0]
cmp eax, esi
je 0x42e0cb
push eax
call fcn.004243c2
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42e0cb
mov eax, dword [0x4482a4]
cmp eax, esi
je 0x42e0cb
push dword [ebp - 4]
push eax
call fcn.004243c2
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x44829c]
call fcn.004243c2
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432df0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x444430]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00432d85
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00421420
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x432e3f
cmp dword [ebp - 0x1c], 5
jb 0x432e57
jmp 0x432e53
cmp dword [ebp - 0x10], 1
jne 0x432e57
cmp dword [ebp - 0x1c], 4
ja 0x432e53
jne 0x432e57
cmp dword [ebp - 0x18], 0
jbe 0x432e57
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43ab10
call fcn.00432c76
test eax, eax
jge 0x432e78
mov byte [0x4483ec], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041f8af
add ebp, 0x78
leave
ret
Function at 0x401c50
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
mov ecx, 9
xor eax, eax
push edi
lea edi, [esp + 4]
push str.GetNativeSystemInfo
push str.kernel32.dll
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
pop edi
je 0x401c86
lea ecx, [esp]
push ecx
call eax
jmp 0x401c91
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [esp], 9
je 0x401ca7
call fcn.00401d10
test al, al
mov eax, 3
jne 0x401cac
mov eax, 0x40
add esp, 0x24
ret

Function at 0x401cb0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
mov ecx, 9
xor eax, eax
push edi
lea edi, [esp + 4]
push str.GetNativeSystemInfo
push str.kernel32.dll
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
pop edi
je 0x401cf3
lea ecx, [esp]
push ecx
call eax
xor eax, eax
cmp word [esp], 9
sete al
add esp, 0x24
ret
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
cmp word [esp], 9
sete al
add esp, 0x24
ret

Function at 0x401d10
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 5
setbe al
add esp, 0x9c
ret

Function at 0x401fa0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov word [esp], 2
push eax
call sub.WS2_32.dll_inet_addr
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], eax
push ecx
call sub.WS2_32.dll_htons
mov ecx, dword [esp + 0x18]
lea edx, [esp]
mov word [esp + 2], ax
mov eax, dword [esp + 0x1c]
push 0x10
push edx
mov edx, dword [esp + 0x1c]
push 0
push eax
push ecx
push edx
call sub.WS2_32.dll_sendto
add esp, 0x10
ret
Function at 0x402150
Capabilities:
Create process on windows
Initialize iwebbrowser2

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43cd28
push eax
mov dword fs:[0], esp
sub esp, 0x18
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
jl 0x4022d2
lea eax, [esp]
push eax
push 0x443a00
push 4
push 0
push 0x4439f0
call dword [sym.imp.ole32.dll_CoCreateInstance]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp]
test eax, eax
je 0x4022b1
lea ecx, [esp + 8]
push esi
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, dword [0x450334]
mov dword [esp + 8], edx
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x28], 0
call fcn.004317f7
lea ecx, [esp + 8]
call fcn.0043bb94
mov esi, eax
mov eax, dword [esp + 4]
push 0x258
push eax
mov ecx, dword [eax]
call dword [ecx + 0x70]
mov eax, dword [esp + 4]
push 0x320
push eax
mov edx, dword [eax]
call dword [edx + 0x68]
mov eax, dword [esp + 4]
push 0x64
push eax
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [esp + 4]
push 0xc8
push eax
mov edx, dword [eax]
call dword [edx + 0x58]
mov eax, dword [esp + 4]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov eax, dword [esp + 4]
push 0
push eax
mov edx, dword [eax]
call dword [edx + 0xbc]
mov eax, dword [esp + 4]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x110]
mov eax, dword [esp + 4]
push 0
push eax
mov edx, dword [eax]
call dword [edx + 0xac]
lea edx, [esp + 0xc]
mov eax, dword [esp + 4]
push edx
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x18]
push edx
push esi
push eax
call dword [ecx + 0x2c]
test eax, eax
mov eax, dword [esp + 4]
jl 0x402283
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xa4]
jmp 0x40228c
mov edx, dword [eax]
push eax
call dword [edx + 0x80]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.0043166e
pop esi
jmp 0x4022cc
mov edx, dword [esp + 0x28]
push 3
push 0
push edx
push str.IExplore.exe
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x406790
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
mov ecx, 0x41
xor eax, eax
push esi
push edi
lea edi, [esp + 0x10]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREAMNOONSUPPLICANT_
push bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40683b
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 8]
push ecx
push 0x20006
push 0
push str.SOFTWAREAMNOONSUPPLICANT_
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40683b
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x10]
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x18]
push str.NearPath
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call esi
pop edi
pop esi
add esp, 0x10c
ret

Function at 0x4077a0
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x43d418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x450334]
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
call fcn.00439d0e
call fcn.00439d0e
mov eax, dword [eax + 0xc]
push 0x99
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp + 0x70], eax
mov al, byte [0x463e95]
test al, al
push 0x46944c
je 0x407802
lea ecx, [esp + 0x10]
push str._s__r_n_r_n
push ecx
jmp 0x40780c
lea edx, [esp + 0x10]
push 0x44d048
push edx
call fcn.0042efe7
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x74]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x5c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x64], 0
mov dword [ebp + 0x60], ecx
mov dword [ebp + 0x6c], 0x6c9
mov dword [ebp + 0x68], 7
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 0
mov ecx, ebp
call fcn.004347b8
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.0043166e
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x407ec0
Capabilities:
Access peb ldr_data
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43d4bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword [0x450334]
mov edi, 1
mov dword [esp + 0x24], edi
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x30]
push 0
push 0x8000000
push 3
push 0
push 3
push bind
push ecx
mov byte [esp + 0x40], 2
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407f62
mov esi, dword [esp + 0x2c]
push 0x467294
mov ecx, esi
call fcn.004316dc
mov dword [esp + 0x10], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.0043166e
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.0043166e
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push ebp
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00430a7e
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [esp + 0x1c]
push ebp
push ecx
call fcn.0040a3e0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call fcn.004317a7
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.0043166e
push ebp
call fcn.00430aa7
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.004313e3
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 1
mov byte [esp + 0x28], 1
call fcn.0043166e
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call fcn.0043166e
mov ecx, dword [esp + 0x20]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4095b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x400
mov ecx, 0x80
xor eax, eax
push esi
push edi
lea edi, [esp + 8]
push 0x200
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
push 0x200
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x464119
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x80
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x208]
lea edx, [esp + 0x208]
rep stosd dword es:[edi], eax
lea edi, [esp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 8]
lea ecx, [esp + 8]
cmp eax, ecx
je 0x40967c
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x5c
je 0x409679
lea edx, [esp + 8]
cmp eax, edx
jne 0x409666
jmp 0x40967c
mov byte [eax], 0
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x40c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + ecx + 0x209]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x410]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x400
ret