joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454004]
jne 0x401010
repz ret
jmp fcn.00401866

Function at 0x4069ab
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.00403424
and dword [ebp - 4], 0
cmp dword [0x457484], 0
mov ebx, eax
jne 0x406a5c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406b0d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406b0d
push eax
call fcn.004033b2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x457484], eax
call esi
push eax
call fcn.004033b2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x457488], eax
call esi
push eax
call fcn.004033b2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45748c], eax
call esi
push eax
call fcn.004033b2
pop ecx
mov dword [0x457494], eax
test eax, eax
je 0x406a5c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004033b2
pop ecx
mov dword [0x457490], eax
mov eax, dword [0x457490]
cmp eax, ebx
je 0x406ab4
cmp dword [0x457494], ebx
je 0x406ab4
push eax
call fcn.0040342d
push dword [0x457494]
mov esi, eax
call fcn.0040342d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406ab4
test edi, edi
je 0x406ab4
call esi
test eax, eax
je 0x406aab
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406aab
test byte [ebp - 0xc], 1
jne 0x406ab4
or dword [ebp + 0x10], 0x200000
jmp 0x406aed
mov eax, dword [0x457488]
cmp eax, ebx
je 0x406aed
push eax
call fcn.0040342d
pop ecx
test eax, eax
je 0x406aed
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406aed
mov eax, dword [0x45748c]
cmp eax, ebx
je 0x406aed
push eax
call fcn.0040342d
pop ecx
test eax, eax
je 0x406aed
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x457484]
call fcn.0040342d
pop ecx
test eax, eax
je 0x406b0d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406b0f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44d7e0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x455000]
push ebx
mov ebx, dword [0x82a1d4]
push esi
mov esi, dword [0x82a01c]
push eax
call fcn.0044d6d0
add esp, 4
cmp dword [0x82a1d4], 0x2f
jne 0x44d80b
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
call fcn.0044d740
add esp, 4
cmp dword [0x82a1d4], 0x568
pop esi
pop ebx
jne 0x44d82a
push 0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
ret
Function at 0x480f10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4d000]
push edi
jmp 0x480f2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x480f31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x480f20
mov eax, 1
add ebx, ebx
jne 0x480f43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x480f54
jne 0x480f73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x480f73
dec eax
add ebx, ebx
jne 0x480f60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x480f38
add ebx, ebx
jne 0x480f6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x480fc5
xor ecx, ecx
sub eax, 3
jb 0x480f8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x480ffa
sar eax, 1
mov ebp, eax
jmp 0x480f96
add ebx, ebx
jne 0x480f96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x480f64
inc ecx
add ebx, ebx
jne 0x480fa4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x480f64
add ebx, ebx
jne 0x480fb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x480fa6
jne 0x480fc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x480fa6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x480fe4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x480fd6
jmp 0x480f26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x480fe4
add edi, ecx
jmp 0x480f26
pop esi
mov edi, esi
mov ecx, 0x33cb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x481002
cmp byte [edi], 0xe
jne 0x481002
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 0x481007
lea edi, [esi + 0x7d000]
mov eax, dword [edi]
or eax, eax
je 0x48107f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x85aec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x85bb4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x481034
mov ecx, edi
jns 0x481063
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 + 0x85bb8]
or eax, eax
je 0x481079
mov dword [ebx], eax
add ebx, 4
jmp 0x481051
call dword [esi + 0x85bc8]
mov ebp, dword [esi + 0x85bbc]
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 0x4810b3
sub esp, 0xffffff80
jmp 0x440cab
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401058
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x82
call fcn.0040b35e
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x40109d
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x427668
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x427668]
xor cx, word [edx*2 + 0x427668]
inc edx
mov word [edi + edx*2 + 0x427666], cx
cmp edx, dword [ebp + 0xc]
jl 0x40107d
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x4020dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x66
call fcn.0040b35e
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x40211e
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426c88
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426c88]
xor cx, word [edx*2 + 0x426c88]
inc edx
mov word [edi + edx*2 + 0x426c86], cx
cmp edx, dword [ebp + 0xc]
jl 0x4020fe
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x4024f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 0xc]
push ebx
push edi
push 0xa
push eax
push dword [ebp + 8]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
test eax, eax
jle 0x402555
push eax
call fcn.0040b35e
push dword [esi]
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov dword [ecx], eax
push eax
call fcn.0040ec80
add esp, 0x10
inc bl
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov al, bl
pop ebx
leave
ret 0xc
Function at 0x402566
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 4
push 0x4265e8
mov ebx, ecx
mov esi, edx
mov byte [ebp - 0x821], 1
mov dword [ebp - 0x860], 0x3c
mov dword [ebp - 0x85c], 0x8040
call fcn.004020dc
push 8
mov dword [ebp - 0x854], eax
mov eax, dword [esi + 0x14]
pop ecx
cmp eax, ecx
jb 0x4025c4
mov edx, dword [esi]
mov dword [ebp - 0x850], edx
jmp 0x4025ca
mov dword [ebp - 0x850], esi
cmp dword [edi + 0x14], ecx
jb 0x4025d9
mov edx, dword [edi]
mov dword [ebp - 0x84c], edx
jmp 0x4025df
mov dword [ebp - 0x84c], edi
cmp dword [ebx + 0x14], ecx
jb 0x4025ee
mov edx, dword [ebx]
mov dword [ebp - 0x848], edx
jmp 0x4025f4
mov dword [ebp - 0x848], ebx
and dword [ebp - 0x844], 0
mov dword [ebp - 0x840], 0x1d
cmp dword [edi + 0x14], ecx
jb 0x40260c
mov edi, dword [edi]
cmp eax, ecx
jb 0x402612
mov esi, dword [esi]
push edi
push esi
push 0xe
push 0x4265f0
call fcn.004020dc
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [ebp - 0x804]
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
lea esi, [ebp - 0x820]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.0040145d
lea eax, [ebp - 0x860]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40271b
cmp dword [ebp - 0x828], ebx
je 0x4026d7
push dword [ebp - 0x828]
push 0x15
push 0x42660c
call fcn.004020dc
push eax
lea eax, [ebp - 0x804]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
lea esi, [ebp - 0x820]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
push 0xffffffffffffffff
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402769
push 0x4229dc
push 0x19
push 0x426638
call fcn.004020dc
push eax
lea eax, [ebp - 0x804]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
lea esi, [ebp - 0x820]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
jmp 0x402769
mov byte [ebp - 0x821], bl
cmp byte [0x4289ad], bl
je 0x402769
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x11
push 0x42666c
call fcn.004020dc
push eax
lea eax, [ebp - 0x804]
push eax
call edi
add esp, 0xc
push 0x40000
push 3
push 0x426690
call fcn.004020dc
push eax
lea eax, [ebp - 0x804]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x821]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bf64
leave
ret 4
Function at 0x402780
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x12
push 0x426b0c
call fcn.004020dc
push eax
lea esi, [ebp - 0x420]
call fcn.004012ca
xor ebx, ebx
cmp byte [0x4289ad], bl
je 0x4027cc
push 8
push 0x426b30
call fcn.004020dc
push eax
mov eax, esi
push eax
call fcn.0040131e
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x4027d8
lea eax, [ebp + 0x24]
push eax
push 0x13
push 0x426b40
call fcn.004020dc
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
lea esi, [ebp - 0x43c]
call fcn.004012ca
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x402814
lea eax, [ebp + 8]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x444], eax
cmp eax, ebx
je 0x4028c9
cmp dword [ebp - 0x40c], 8
mov eax, dword [ebp - 0x420]
jae 0x402842
lea eax, [ebp - 0x420]
push edi
push ebx
push 0x50
push eax
push dword [ebp - 0x444]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x440], eax
cmp eax, ebx
je 0x4028c0
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x402878
lea eax, [ebp - 0x43c]
push ebx
push ebx
push ebx
push ebx
push eax
push 3
push 0x426b68
call fcn.004020dc
push eax
push dword [ebp - 0x440]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
cmp esi, ebx
je 0x4028b8
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4028b5
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
push esi
call edi
push dword [ebp - 0x440]
call edi
push dword [ebp - 0x444]
call edi
pop edi
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x43c]
call fcn.0040145d
push ebx
push esi
lea ecx, [ebp - 0x420]
call fcn.0040145d
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.0040145d
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.0040145d
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bf64
leave
ret 0x38
Function at 0x404727
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0xffff
mov eax, ebx
push edi
mov edi, ecx
cmp ax, si
jne 0x404752
xor eax, eax
jmp 0x4048ba
mov ecx, dword [edi + 0x24]
cmp dword [ecx], 0
je 0x40477f
mov eax, dword [edi + 0x34]
mov ecx, dword [ecx]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x40477f
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 2]
mov dword [edi], ecx
mov word [eax], si
mov ax, si
jmp 0x4048ba
cmp dword [edi + 0x54], 0
jne 0x40478c
mov eax, ebx
jmp 0x4048ba
mov eax, edi
call fcn.00405dc2
cmp dword [edi + 0x44], 0
jne 0x4047b2
push dword [edi + 0x54]
push esi
call fcn.0040c7ba
pop ecx
cmp ax, bx
pop ecx
movzx eax, si
jne 0x4048ba
jmp 0x404785
movzx eax, si
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], eax
call fcn.00405575
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x40485f
lea eax, [ebp - 0x20]
mov edx, eax
add eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x28]
push ebx
push eax
push edx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x22]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
jl 0x4048aa
cmp eax, 1
jg 0x404867
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x40480e
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
sub esi, eax
je 0x404834
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x404821
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040dffd
add esp, 0x10
cmp esi, eax
jne 0x4048aa
lea eax, [ebp - 0x24]
mov byte [edi + 0x4a], 1
cmp dword [ebp - 0x2c], eax
jne 0x404899
cmp esi, ebx
ja 0x4047c0
cmp dword [ebp - 0x10], 0x20
push ebx
jae 0x4048ab
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.004055b9
jmp 0x4047c0
mov edx, dword [ebp - 0x20]
jmp 0x4047d2
cmp eax, 3
jne 0x4048aa
push dword [edi + 0x54]
push dword [ebp - 0x24]
call fcn.0040c7ba
movzx esi, word [ebp + 8]
pop ecx
pop ecx
mov ecx, 0xffff
cmp ax, cx
jne 0x404889
mov esi, ecx
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004056a9
jmp 0x404777
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004056a9
mov ax, word [ebp + 8]
jmp 0x4048ba
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004056a9
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bf64
leave
ret 4
Function at 0x405cca
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x44], 0
push esi
je 0x405db3
cmp byte [edi + 0x4a], 0
je 0x405db3
mov eax, dword [edi]
mov esi, 0xffff
push esi
mov ecx, edi
call dword [eax + 0xc]
cmp si, ax
jne 0x405d08
xor al, al
jmp 0x405db5
lea esi, [ebp - 0x20]
call fcn.00405575
push ebx
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405d55
lea eax, [ebp - 0x20]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x10]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x405d5a
dec eax
je 0x405d5e
dec eax
dec eax
je 0x405daf
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.004056a9
mov al, bl
pop ebx
jmp 0x405db5
mov edx, dword [ebp - 0x20]
jmp 0x405d1f
mov byte [edi + 0x4a], 0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405d6a
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, eax
je 0x405d90
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405d7d
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040dffd
add esp, 0x10
cmp esi, eax
jne 0x405d42
cmp byte [edi + 0x4a], 0
je 0x405daf
test esi, esi
jne 0x405d11
push esi
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.004055b9
jmp 0x405d11
mov bl, 1
jmp 0x405d44
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040bf64
leave
ret
Function at 0x4069e7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ecx, 0x80000002
mov dword [ebp - 0x4bc], edi
mov dword [ebp - 0x4ac], ecx
jb 0x406a1d
mov eax, dword [eax]
lea edx, [ebp - 0x4ac]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x406b36
push 0x422900
push edi
call fcn.0040131e
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b0], 1
mov dword [ebp - 0x4b4], 0x400
jb 0x406a66
mov eax, dword [esi]
jmp 0x406a68
mov eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x4b4]
push ecx
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x4b0]
push ecx
push 0
push eax
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x406b36
push 4
pop eax
cmp dword [ebp - 0x4b0], eax
je 0x406ab7
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x4bc]
call fcn.0040131e
jmp 0x406b36
and dword [ebp - 0x4b8], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b4], eax
jb 0x406acc
mov esi, dword [esi]
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4b0]
push eax
push 0
push esi
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x406b36
push eax
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x8c]
push 0x422d7c
push 0x40
push eax
call fcn.004069cb
add esp, 0x14
lea eax, [ebp - 0x8c]
push eax
lea esi, [ebp - 0x4a8]
call fcn.004012ca
mov edi, dword [ebp - 0x4bc]
call fcn.00401370
push ebx
push 1
mov ecx, esi
call fcn.0040145d
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040bf64
leave
ret 4

Function at 0x406b49
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x58
call fcn.0040b35e
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x406b8b
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426560
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426560]
xor cx, word [edx*2 + 0x426560]
inc edx
mov word [edi + edx*2 + 0x42655e], cx
cmp edx, dword [ebp + 0xc]
jl 0x406b6b
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8
Function at 0x4073f6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
push 0x4228e0
mov edi, ecx
mov dword [ebp - 0x388], esi
call fcn.004012ca
xor esi, esi
add edi, 0xa0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x38c], esi
mov dword [ebp - 0x390], esi
mov dword [ebp - 0x380], esi
jb 0x407444
mov eax, dword [edi]
jmp 0x407446
mov eax, edi
lea ecx, [ebp - 0x38c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
cmp ebx, esi
je 0x407509
push ebx
call fcn.0040b35e
cmp dword [edi + 0x14], 8
pop ecx
mov dword [ebp - 0x384], eax
jb 0x407473
mov edi, dword [edi]
push eax
push ebx
push dword [ebp - 0x38c]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4074fd
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x380]
push eax
push 0x4228e4
push dword [ebp - 0x384]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4074fd
cmp dword [ebp - 0x390], esi
je 0x4074fd
mov eax, dword [ebp - 0x380]
cmp dword [eax], 0xfeef04bd
jne 0x4074fd
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xe]
push eax
push edx
push ecx
push 8
push 0x42654c
call fcn.00406b49
push eax
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x37c]
push eax
push dword [ebp - 0x388]
call fcn.0040131e
push dword [ebp - 0x384]
call fcn.0040db6c
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x388]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bf64
leave
ret

Function at 0x4076d9
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0041b160
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x100c]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov byte [ebp - 0x1005], 1
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x40774b
push esi
mov esi, dword [ebp - 0x100c]
push edi
shr esi, 2
xor edi, edi
test esi, esi
je 0x407749
mov eax, dword [ebp + edi*4 - 0x1004]
test eax, eax
je 0x40773b
push eax
push ebx
call fcn.0040775d
test al, al
je 0x407742
inc edi
cmp edi, esi
jb 0x407725
jmp 0x407749
mov byte [ebp - 0x1005], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1005]
xor ecx, ebp
call fcn.0040bf64
leave
ret
Function at 0x407a5f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x407a67
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407a82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x407a82
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x407a85
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
and dword [edi + 0x10], 0
xor eax, eax
mov esi, edx
mov dword [edi + 0x14], 7
push eax
mov dword [ebp - 0x234], esi
mov word [edi], ax
call fcn.0040e7c9
push eax
call fcn.0040e796
pop ecx
pop ecx
call fcn.0040e7a8
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x22c], edx
cmp dword [esi + 0x14], 8
jb 0x407adf
mov eax, dword [esi]
jmp 0x407ae1
mov eax, esi
push dword [ebp - 0x22c]
push eax
push 6
push 0x426190
call fcn.00406b49
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
lea esi, [ebp - 0x228]
call fcn.004012ca
mov esi, eax
call fcn.00401370
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.0040145d
cmp dword [edi + 0x14], 8
jb 0x407b37
mov eax, dword [edi]
jmp 0x407b39
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407b5d
shr eax, 4
and al, 1
je 0x407b5d
inc dword [ebp - 0x22c]
mov esi, dword [ebp - 0x234]
jmp 0x407ad5
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040bf64
leave
ret