joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472a1e
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d4010], 0
push esi
push edi
mov esi, 0x4d3650
jne 0x472a41
push 0
call fcn.0042e871
pop ecx
mov ecx, eax
call fcn.004729de
mov dword [0x4d16e0], 0x270
mov edx, 0xe3
mov dword [0x4d4014], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0x472a56
mov eax, dword [esi]
mov dword [ebp - 4], 0x18c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x472a90
mov eax, dword [0x4d3650]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret

Function at 0x472f2f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x472f54
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.004211a9
add esp, 0xc
jmp 0x472f67
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.0042ec4d
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx eax, byte [ebp - 3]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, eax
mov byte [ebp - 4], 0
movzx eax, byte [ebp - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
push 0x4c7a8c
mov dword [eax], ecx
lea eax, [ebp - 8]
push eax
call fcn.0042ed09
neg eax
pop ecx
pop ecx
sbb eax, eax
neg eax
pop esi
leave
ret 4

Function at 0x47306b
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, 0x10000
mov ecx, dword [esi + 0x464]
test ecx, ecx
je 0x473081
cmp ecx, eax
jne 0x47309d
push dword [esi + 0x1c]
push eax
push 1
push dword [esi + 0x45c]
call fcn.0042ec4d
add esp, 0x10
xor ecx, ecx
mov dword [esi + 0x464], ecx
mov eax, dword [esi + 0x45c]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
ret

Function at 0x4730af
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x460]
mov esi, dword [edi + 0x458]
mov byte [esi + edx], al
mov eax, 0x10000
inc dword [edi + 0x460]
cmp dword [edi + 0x460], eax
jne 0x4730f6
push dword [edi + 0x20]
push eax
push 1
push dword [edi + 0x458]
call fcn.0042df3c
add esp, 0x10
and dword [edi + 0x460], 0
pop edi
pop esi
pop ebp
ret 4
Function at 0x4730fc
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x460]
test eax, eax
je 0x473124
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x458]
call fcn.0042df3c
add esp, 0x10
and dword [esi + 0x460], 0
pop esi
ret

Function at 0x4732d6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
lea ecx, [ebp - 0xdc]
call fcn.00473126
push dword [ebp + 8]
lea ecx, [ebp - 0xdc]
call fcn.0047316a
xor esi, esi
test ebx, ebx
je 0x47331a
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call fcn.004732aa
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jb 0x473305
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47d8a2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, ecx
push edi
push 0x4c7aac
push dword [esi + 0x34]
call fcn.0042e974
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x47d8ce
mov dword [esi + 0x18], 0x1f
jmp 0x47d948
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call dword [0x49d7bc]
test eax, eax
je 0x47d941
cmp dword [ebp - 4], 0
je 0x47d919
push edi
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x404]
push eax
call fcn.0042df3c
mov eax, dword [ebp - 4]
add esp, 0x10
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x47d8d4
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x47d92a
mov dword [esi + 0x18], 0x21
jmp 0x47d948
and dword [esi + 0x18], 0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47d964
push eax
call dword [0x49d2cc]
jmp 0x47d964
mov dword [esi + 0x18], 0x20
call dword [0x49d330]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47d962
push eax
call dword [0x49d2cc]
xor bl, bl
test edi, edi
je 0x47d96f
push edi
call fcn.0042ea01
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x47dc66
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xd0], 0
je 0x47dca2
cmp byte [ebp + 8], 0
je 0x47dca2
sub esp, 0x10
lea ecx, [esi + 0xd4]
call fcn.0047cb76
push esi
push 0
push 0x47dd1d
call fcn.0042d555
add esp, 0xc
cmp dword [esi + 0x18], 0
sete al
jmp 0x47dcaa
push dword [ebp + 8]
call fcn.0047cdc2
pop esi
pop ebp
ret 4

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, 0x409f2ad0
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x6ee33cc0
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
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 0x42e06c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401058
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x82
call fcn.0040b39c
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 0x4020d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x66
call fcn.0040b39c
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x402116
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 0x4020f6
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8
Function at 0x402328
Capabilities:
Create process on windows

Disassembly:
push 0x868
mov eax, 0x41dd7a
call fcn.0040f33e
mov ebx, ecx
mov edi, edx
mov esi, dword [ebp + 8]
mov byte [ebp - 0x831], 1
and dword [ebp - 4], 0
mov dword [ebp - 0x874], 0x3c
mov dword [ebp - 0x870], 0x8040
push 4
push 0x4265e8
call fcn.004020d4
mov dword [ebp - 0x868], eax
push 8
pop edx
cmp dword [edi + 0x14], edx
jb 0x40237b
mov eax, dword [edi]
jmp 0x40237d
mov eax, edi
mov dword [ebp - 0x864], eax
mov ecx, dword [esi + 0x14]
cmp ecx, edx
jb 0x40238e
mov eax, dword [esi]
jmp 0x402390
mov eax, esi
mov dword [ebp - 0x860], eax
cmp dword [ebx + 0x14], edx
jb 0x40239f
mov eax, dword [ebx]
jmp 0x4023a1
mov eax, ebx
mov dword [ebp - 0x85c], eax
and dword [ebp - 0x858], 0
mov dword [ebp - 0x854], 0x1d
cmp ecx, edx
jb 0x4023be
mov esi, dword [esi]
cmp dword [edi + 0x14], edx
jb 0x4023c7
mov eax, dword [edi]
jmp 0x4023c9
mov eax, edi
push esi
push eax
push 0xe
push 0x4265f0
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
call edi
add esp, 0x10
lea eax, [ebp - 0x814]
push eax
lea esi, [ebp - 0x830]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.00401455
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4024d2
cmp dword [ebp - 0x83c], ebx
je 0x40248e
push dword [ebp - 0x83c]
push 0x15
push 0x42660c
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
lea esi, [ebp - 0x830]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0xffffffffffffffff
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40251a
push 0x422944
push 0x19
push 0x426638
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
lea esi, [ebp - 0x830]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
jmp 0x40251a
cmp byte [0x4289ad], bl
je 0x40251a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x11
push 0x42666c
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
call edi
add esp, 0xc
push 0x40000
push 3
push 0x426690
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x831]
call fcn.0040f38b
ret 4
Function at 0x4025aa
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.004020d4
push eax
lea esi, [ebp - 0x420]
call fcn.004012ca
xor ebx, ebx
cmp byte [0x4289ad], bl
je 0x4025f6
push 8
push 0x426b30
call fcn.004020d4
push eax
mov eax, esi
push eax
call fcn.0040131e
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x402602
lea eax, [ebp + 0x24]
push eax
push 0x13
push 0x426b40
call fcn.004020d4
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 0x40263e
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 0x4026f3
cmp dword [ebp - 0x40c], 8
mov eax, dword [ebp - 0x420]
jae 0x40266c
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 0x4026ea
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x4026a2
lea eax, [ebp - 0x43c]
push ebx
push ebx
push ebx
push ebx
push eax
push 3
push 0x426b68
call fcn.004020d4
push eax
push dword [ebp - 0x440]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
cmp esi, ebx
je 0x4026e2
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 0x4026df
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.00401455
push ebx
push esi
lea ecx, [ebp - 0x420]
call fcn.00401455
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.00401455
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.00401455
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bfa2
leave
ret 0x38

Function at 0x402734
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
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
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 0x40278c
push eax
call fcn.0040b39c
push dword [esi]
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov dword [ecx], eax
push eax
call fcn.0040eb90
add esp, 0x10
inc bl
pop edi
mov al, bl
pop ebx
pop ebp
ret 0xc
Function at 0x404779
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 0x4047a4
xor eax, eax
jmp 0x40490c
mov ecx, dword [edi + 0x24]
cmp dword [ecx], 0
je 0x4047d1
mov eax, dword [edi + 0x34]
mov ecx, dword [ecx]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x4047d1
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 0x40490c
cmp dword [edi + 0x54], 0
jne 0x4047de
mov eax, ebx
jmp 0x40490c
mov eax, edi
call fcn.00405e14
cmp dword [edi + 0x44], 0
jne 0x404804
push dword [edi + 0x54]
push esi
call fcn.0040c7fa
pop ecx
cmp ax, bx
pop ecx
movzx eax, si
jne 0x40490c
jmp 0x4047d7
movzx eax, si
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], eax
call fcn.004055c7
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4048b1
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 0x4048fc
cmp eax, 1
jg 0x4048b9
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x404860
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
sub esi, eax
je 0x404886
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x404873
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040df03
add esp, 0x10
cmp esi, eax
jne 0x4048fc
lea eax, [ebp - 0x24]
mov byte [edi + 0x4a], 1
cmp dword [ebp - 0x2c], eax
jne 0x4048eb
cmp esi, ebx
ja 0x404812
cmp dword [ebp - 0x10], 0x20
push ebx
jae 0x4048fd
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.0040560b
jmp 0x404812
mov edx, dword [ebp - 0x20]
jmp 0x404824
cmp eax, 3
jne 0x4048fc
push dword [edi + 0x54]
push dword [ebp - 0x24]
call fcn.0040c7fa
movzx esi, word [ebp + 8]
pop ecx
pop ecx
mov ecx, 0xffff
cmp ax, cx
jne 0x4048db
mov esi, ecx
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004056fb
jmp 0x4047c9
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004056fb
mov ax, word [ebp + 8]
jmp 0x40490c
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004056fb
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bfa2
leave
ret 4
Function at 0x405d1c
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 0x405e05
cmp byte [edi + 0x4a], 0
je 0x405e05
mov eax, dword [edi]
mov esi, 0xffff
push esi
mov ecx, edi
call dword [eax + 0xc]
cmp si, ax
jne 0x405d5a
xor al, al
jmp 0x405e07
lea esi, [ebp - 0x20]
call fcn.004055c7
push ebx
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405da7
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 0x405dac
dec eax
je 0x405db0
dec eax
dec eax
je 0x405e01
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.004056fb
mov al, bl
pop ebx
jmp 0x405e07
mov edx, dword [ebp - 0x20]
jmp 0x405d71
mov byte [edi + 0x4a], 0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405dbc
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, eax
je 0x405de2
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405dcf
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040df03
add esp, 0x10
cmp esi, eax
jne 0x405d94
cmp byte [edi + 0x4a], 0
je 0x405e01
test esi, esi
jne 0x405d63
push esi
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.0040560b
jmp 0x405d63
mov bl, 1
jmp 0x405d96
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040bfa2
leave
ret
Function at 0x406a39
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 0x406a6f
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 0x406b88
push 0x4228e8
push edi
call fcn.0040131e
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b0], 1
mov dword [ebp - 0x4b4], 0x400
jb 0x406ab8
mov eax, dword [esi]
jmp 0x406aba
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 0x406b88
push 4
pop eax
cmp dword [ebp - 0x4b0], eax
je 0x406b09
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x4bc]
call fcn.0040131e
jmp 0x406b88
and dword [ebp - 0x4b8], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b4], eax
jb 0x406b1e
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 0x406b88
push eax
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x8c]
push str._I64u
push 0x40
push eax
call fcn.00406a1d
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.00401455
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040bfa2
leave
ret 4

Function at 0x406b9b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x58
call fcn.0040b39c
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x406bdd
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 0x406bbd
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8
Function at 0x407448
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 0x4228c8
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 0x407496
mov eax, dword [edi]
jmp 0x407498
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 0x40755b
push ebx
call fcn.0040b39c
cmp dword [edi + 0x14], 8
pop ecx
mov dword [ebp - 0x384], eax
jb 0x4074c5
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 0x40754f
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x380]
push eax
push 0x4228cc
push dword [ebp - 0x384]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40754f
cmp dword [ebp - 0x390], esi
je 0x40754f
mov eax, dword [ebp - 0x380]
cmp dword [eax], 0xfeef04bd
jne 0x40754f
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.00406b9b
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.0040da72
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x388]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bfa2
leave
ret

Function at 0x40772b
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0041b210
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 0x40779d
push esi
mov esi, dword [ebp - 0x100c]
push edi
shr esi, 2
xor edi, edi
test esi, esi
je 0x40779b
mov eax, dword [ebp + edi*4 - 0x1004]
test eax, eax
je 0x40778d
push eax
push ebx
call fcn.004077af
test al, al
je 0x407794
inc edi
cmp edi, esi
jb 0x407777
jmp 0x40779b
mov byte [ebp - 0x1005], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1005]
xor ecx, ebp
call fcn.0040bfa2
leave
ret
Function at 0x407ab1
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x407ad7
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.0040e6cf
push eax
call fcn.0040e69c
pop ecx
pop ecx
call fcn.0040e6ae
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x22c], edx
cmp dword [esi + 0x14], 8
jb 0x407b31
mov eax, dword [esi]
jmp 0x407b33
mov eax, esi
push dword [ebp - 0x22c]
push eax
push 6
push 0x426190
call fcn.00406b9b
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.00401455
cmp dword [edi + 0x14], 8
jb 0x407b89
mov eax, dword [edi]
jmp 0x407b8b
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407baf
shr eax, 4
and al, 1
je 0x407baf
inc dword [ebp - 0x22c]
mov esi, dword [ebp - 0x234]
jmp 0x407b27
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040bfa2
leave
ret