joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004575
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8a0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x100
lea eax, [ebp - 0x39c]
push esi
push dword [edi]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
push esi
lea eax, [ebp - 0x39c]
push dword [edi]
push eax
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0x18
lea eax, [ebp - 0x39c]
push 0x100044fe
push eax
call dword [0x1000b454]
xor ebx, ebx
mov dword [0x1000b510], eax
cmp eax, ebx
je 0x1000476b
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 1
push ebx
push 2
call fcn.1000442c
push ebx
push ebx
push 4
call fcn.1000442c
add esp, 0x18
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [0x1000b408]
cmp dword [ebp - 0x84], 2
jne 0x1000474c
cmp dword [ebp - 0x90], 6
jae 0x10004620
call sym.MainDll.dll_MainThread
jmp 0x1000474c
lea eax, [ebp - 0x198]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x198]
push str.Jj_AOxsBp_
push eax
lea eax, [ebp - 0x198]
push str._s_s.exe
push eax
call dword [0x1000b438]
add esp, 0x10
lea eax, [ebp - 0x29c]
push esi
push eax
call dword [0x1000b418]
lea eax, [ebp - 0x29c]
push str.Rundll32.exe
push eax
call dword [0x1000b3e4]
lea eax, [ebp - 0x198]
push 1
push eax
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x198]
push eax
call fcn.10006b55
test eax, eax
pop ecx
jne 0x100046b1
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x198]
push eax
call dword [0x1000b438]
pop ecx
pop ecx
lea eax, [ebp - 0x4a0]
push esi
push eax
xor edi, edi
push dword [0x1000b398]
mov dword [ebp + 0xc], ebx
call dword [0x1000b3cc]
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x8a0]
push str._s___s__MainThread
push eax
call dword [0x1000b438]
add esp, 0x10
push 0x3e8
call dword [0x1000b3e0]
lea eax, [ebp + 0xc]
push eax
push edi
call dword [0x1000b40c]
cmp dword [ebp + 0xc], 0x103
je 0x1000472d
push edi
call dword [0x1000b3dc]
push 0xbb8
call dword [0x1000b3e0]
lea eax, [ebp - 0x8a0]
push eax
call fcn.1000226d
pop ecx
mov edi, eax
mov eax, dword [0x1000b50c]
cmp eax, 3
je 0x1000473c
cmp eax, 1
jne 0x100046ed
push 0xffffffffffffffff
push edi
call dword [0x1000b3ec]
push edi
call dword [0x1000b3dc]
push 0x64
call dword [0x1000b3e0]
mov eax, dword [0x1000b50c]
cmp eax, 3
je 0x1000476b
cmp eax, 1
je 0x1000476b
cmp dword [0x1000b514], ebx
je 0x1000474c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4138bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d020]
jne 0x4138c5
repz ret
jmp fcn.00413aac

Function at 0x415869
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00413f1f
and dword [ebp - 4], 0
cmp dword [0x43bc30], 0
mov ebx, eax
jne 0x41591a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4159cb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4159cb
push eax
call fcn.00413ead
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43bc30], eax
call esi
push eax
call fcn.00413ead
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43bc34], eax
call esi
push eax
call fcn.00413ead
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43bc38], eax
call esi
push eax
call fcn.00413ead
pop ecx
mov dword [0x43bc40], eax
test eax, eax
je 0x41591a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413ead
pop ecx
mov dword [0x43bc3c], eax
mov eax, dword [0x43bc3c]
cmp eax, ebx
je 0x415972
cmp dword [0x43bc40], ebx
je 0x415972
push eax
call fcn.00413f28
push dword [0x43bc40]
mov esi, eax
call fcn.00413f28
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x415972
test edi, edi
je 0x415972
call esi
test eax, eax
je 0x415969
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x415969
test byte [ebp - 0xc], 1
jne 0x415972
or dword [ebp + 0x10], 0x200000
jmp 0x4159ab
mov eax, dword [0x43bc34]
cmp eax, ebx
je 0x4159ab
push eax
call fcn.00413f28
pop ecx
test eax, eax
je 0x4159ab
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4159ab
mov eax, dword [0x43bc38]
cmp eax, ebx
je 0x4159ab
push eax
call fcn.00413f28
pop ecx
test eax, eax
je 0x4159ab
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43bc30]
call fcn.00413f28
pop ecx
test eax, eax
je 0x4159cb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4159cd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405f16
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c59c], 0
push esi
jne 0x405f4d
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f27
mov dword [ecx*4 + 0x42c598], eax
inc ecx
cmp ecx, 0x100
jl 0x405f22
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f7e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c598]
xor eax, esi
inc ecx
dec edx
jne 0x405f60
pop edi
not eax
pop esi
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x463b30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3f000]
push edi
jmp 0x463b4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x463b51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x463b40
mov eax, 1
add ebx, ebx
jne 0x463b63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x463b74
jne 0x463b93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x463b93
dec eax
add ebx, ebx
jne 0x463b80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x463b58
add ebx, ebx
jne 0x463b8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x463be5
xor ecx, ecx
sub eax, 3
jb 0x463bab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x463c1a
sar eax, 1
mov ebp, eax
jmp 0x463bb6
add ebx, ebx
jne 0x463bb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x463b84
inc ecx
add ebx, ebx
jne 0x463bc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x463b84
add ebx, ebx
jne 0x463bd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x463bc6
jne 0x463be2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x463bc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x463c04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x463bf6
jmp 0x463b46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x463c04
add edi, ecx
jmp 0x463b46
pop esi
mov edi, esi
mov ecx, 0x3f9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x463c22
cmp byte [edi], 7
jne 0x463c22
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 0x463c27
lea edi, [esi + 0x61000]
mov eax, dword [edi]
or eax, eax
je 0x463c96
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x63000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x63058]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x463c54
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x63060]
or eax, eax
je 0x463c90
mov dword [ebx], eax
add ebx, 4
jmp 0x463c71
call dword [esi + 0x6305c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x463cc7
cmp al, 0xef
ja 0x463cba
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x463c9c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x463ca9
mov ebp, dword [esi + 0x63064]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x463cfb
sub esp, 0xffffff80
jmp 0x40173b
Function at 0x100063e0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100065a4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
jmp 0x1000640a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10006411
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10006400
mov eax, 1
add ebx, ebx
jne 0x10006423
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10006418
jne 0x10006434
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10006418
xor ecx, ecx
sub eax, 3
jb 0x10006448
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100064ba
mov ebp, eax
add ebx, ebx
jne 0x10006453
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10006460
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10006484
inc ecx
add ebx, ebx
jne 0x10006470
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10006465
jne 0x10006481
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10006465
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100064a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10006495
jmp 0x10006406
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100064a4
add edi, ecx
jmp 0x10006406
pop esi
mov edi, esi
mov ecx, 6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100064c2
cmp byte [edi], 0
jne 0x100064c2
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 0x100064c7
lea edi, [esi + 0x4000]
mov eax, dword [edi]
or eax, eax
je 0x10006536
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x603c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100064f4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6040]
or eax, eax
je 0x10006530
mov dword [ebx], eax
add ebx, 4
jmp 0x10006511
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10006567
cmp al, 0xef
ja 0x1000655a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1000653c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10006549
mov ebp, dword [esi + 0x6044]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
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 0x1000659b
sub esp, 0xffffff80
jmp 0x100012df
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x775837d3
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x95a2e98
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x689b4c60
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x479a6b94
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x405cb9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405cd0
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405d05
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405d01
cmp edi, eax
jae 0x405d05
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405cf3
cmp edi, eax
jb 0x405d09
xor eax, eax
jmp 0x405d13
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405e76
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x405f04
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x405ead
cmp dword [ebp - 8], 2
jne 0x405f03
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405b83
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00405a84
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x405eeb
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x405efb
push eax
call fcn.004ef974
pop ecx
mov edx, esi
call fcn.00405a4b
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x406b9d
Capabilities:
Get disk information

Disassembly:
mov eax, 0x50efc4
call fcn.0050c608
sub esp, 0x2f4
push ebx
push esi
push edi
xor esi, esi
push 0xd2
lea eax, [ebp - 0xee]
push esi
push eax
mov word [ebp - 0xf0], si
call fcn.004ef000
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x406be8
xor eax, eax
jmp 0x406cac
cdq
and edx, 3
add eax, edx
mov edi, eax
push 0x208
lea eax, [ebp - 0x2fe]
push esi
push eax
sar edi, 2
mov word [ebp - 0x300], si
call fcn.004ef000
mov word [ebp - 0xf8], si
mov esi, dword [ebp + 8]
add esp, 0xc
add esi, 4
lea ebx, [ebp - 0xf0]
call fcn.00407285
test edi, edi
jle 0x406ca9
mov dword [ebp - 0x10], edi
and word [ebx + 4], 0
push 0x104
lea eax, [ebp - 0x300]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x406ca1
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00405bc3
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov edi, esi
call fcn.0040722a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405953
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00405bc3
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.0040722a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405953
add ebx, 8
dec dword [ebp - 0x10]
jne 0x406c2e
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x406ce3
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x406d64
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x406d64
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
push str.EnumProcesses
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.GetModuleBaseNameW
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push str.GetModuleFileNameExW
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.GetProcessImageFileNameW
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x10], eax
pop edi
je 0x406d5f
cmp dword [esi + 4], ebx
je 0x406d5f
cmp dword [esi + 8], ebx
je 0x406d5f
cmp dword [esi + 0xc], ebx
je 0x406d5f
cmp eax, ebx
je 0x406d5f
xor eax, eax
inc eax
jmp 0x406d61
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret
Function at 0x406e93
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x50e1c4
call fcn.0050c608
sub esp, 0x224
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x22e]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x230], si
call fcn.004ef000
xor ecx, ecx
add esp, 0xc
inc ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040629f
push 0x53c79c
push eax
mov dword [ebp - 4], esi
call fcn.004054d9
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
inc bl
call fcn.00405953
test bl, bl
je 0x407069
mov ebx, 0x53c890
push ebx
call fcn.004ef974
mov esi, str.SystemRoot_
push esi
mov dword [ebp - 0x1c], eax
call fcn.004ef974
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.0040629f
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.004054d9
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.00405953
test bl, bl
je 0x406f82
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.0040624f
mov dword [ebp - 4], 2
call fcn.00404ebb
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x407038
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.0040629f
push esi
push eax
mov dword [ebp - 4], 3
call fcn.004054d9
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.00405953
test bl, bl
je 0x407040
push 0x104
lea eax, [ebp - 0x230]
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
inc ecx
mov eax, edi
call fcn.0040624f
mov esi, eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 4
call fcn.00405bc3
lea ecx, [ebp - 0x20]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004062db
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.00404ebb
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405953
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00405953
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00405953
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jg 0x407053
mov esi, edi
call fcn.00405b83
jmp 0x407070
cmp ecx, 1
jge 0x407062
push 0x80070057
call fcn.00405a6c
cmp word [eax + 2], 0x3a
jne 0x40704a
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x407082
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4070ac
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x407ca7
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x407cd5
push dword [esp + 0xc]
call fcn.004ef974
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x407cd5
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x407cef
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x407d78
push ebx
call fcn.004ebc7b
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x407d69
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x53c79c
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x407d69
cmp dword [ebp - 0xc], ebx
je 0x407d69
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x407d78
push dword [ebp - 4]
call fcn.004eeff5
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x407db4
Capabilities:
Get common file path

Disassembly:
mov eax, 0x50dade
call fcn.0050c608
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x55daac
mov dword [ebp - 0x10], edi
call fcn.00405c06
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.004ef000
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.00405dde
push esi
call fcn.00406056
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret