joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409df0
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
call ebx
cmp byte [esi + 0xc], 0
mov edx, eax
mov dword [ebp - 0x98], edx
mov edi, edx
jne 0x409f93
mov eax, dword [esi + 0x48]
imul ecx, dword [eax + 0x10], 0x3e8
mov eax, edi
sub eax, edx
cmp eax, ecx
ja 0x409f76
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x80
lea eax, [ebp - 0x94]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
je 0x409f76
cmp eax, 0xffffffff
jne 0x409e90
add dword [esi + 0x40], 1
adc dword [esi + 0x44], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
jne 0x409f06
add edi, 0x3e8
jmp 0x409ef1
cmp eax, 4
jb 0x409eed
mov ecx, dword [esi + 0x48]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ecx + 0x2c]
jne 0x409eed
mov ax, word [ebp - 0x12]
cmp ax, word [ecx + 0x2a]
jne 0x409eed
push dword [ebp - 0x94]
call dword [sym.imp.WS2_32.dll_ntohs]
push dword [ebp - 0x92]
movzx edi, ax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
cmp edi, 4
jne 0x409ee8
movzx eax, word [esi + 0x24]
cmp eax, ecx
jne 0x409eed
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
cmp edi, 5
je 0x409f31
call ebx
mov edi, eax
cmp byte [esi + 0xc], 0
jne 0x409f93
mov edx, dword [ebp - 0x98]
jmp 0x409e24
push str.socket_error
push 0
mov ecx, esi
call fcn.004097e0
pop edi
mov dword [esi + 0x4c], 0xfffffff3
mov eax, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x92]
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esi + 0x68], ax
lea eax, [ebp - 0x90]
push 0x5db
push eax
lea eax, [esi + 0x6a]
push eax
call fcn.00547740
add esp, 0xc
mov dword [esi + 0x4c], 0xfffffff1
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x4c], 0xfffffffa
mov eax, 2
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
mov dword [esi + 0x4c], 0xfffffff2
xor ecx, ebp
pop esi
pop ebx
call fcn.005463d8
mov esp, ebp
pop ebp
ret

Function at 0x40a0c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0042f8b0
Function at 0x40d500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40d515
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d554
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40d550
lea ebx, [ebx]
cmp esi, edx
jae 0x40d554
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x40d540
cmp esi, edx
jb 0x40d559
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40d570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x168
lea eax, [ebp - 0x16c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea eax, [ebp - 0x16c]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x40d60a
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x174]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40d60a
mov edi, dword [ebp - 0x178]
cmp dword [ebp - 0x180], edi
cmova edi, dword [ebp - 0x180]
cmp dword [ebp - 0x170], edi
cmova edi, dword [ebp - 0x170]
jmp 0x40d610
mov edi, dword [ebp - 0x170]
push 0x168
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40d6df
cmp byte [ebp + eax - 0x16d], 0x5c
je 0x40d650
mov byte [ebp + eax - 0x16c], 0x5c
inc eax
cmp eax, 0x168
jae 0x40d6f2
mov byte [ebp + eax - 0x16c], 0
lea ecx, [ebp - 0x16c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40d657
mov eax, dword [str.Win.ini]
push 0
push 0
push 3
push 0
mov dword [ecx], eax
mov eax, dword [0x578328]
push 1
mov dword [ecx + 4], eax
lea eax, [ebp - 0x16c]
push SysReAllocString
push eax
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d6df
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x174]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40d6df
cmp dword [ebp - 0x180], edi
cmova edi, dword [ebp - 0x180]
cmp dword [ebp - 0x178], edi
cmova edi, dword [ebp - 0x178]
cmp dword [ebp - 0x170], edi
cmova edi, dword [ebp - 0x170]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005463d8
mov esp, ebp
pop ebp
ret
call fcn.00547123
int3
Function at 0x40d700
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10014
call fcn.00547f50
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10014], eax
lea eax, [ebp - 0x1000c]
push eax
push 3
push 0
mov dword [ebp - 0x10010], 3
call fcn.00416220
push eax
push dword [0x5d5c20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d82a
lea eax, [ebp - 0x10008]
mov dword [ebp - 0x10008], 0x10000
push eax
lea eax, [ebp - 0x10004]
mov ecx, esi
push eax
lea eax, [ebp - 0x10010]
push eax
push 0
call fcn.00416220
push eax
push dword [ebp - 0x1000c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x1000c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40d814
movzx eax, word [ebp - 0x10004]
push dword [ebp - 0x10014]
mov dword [ebp - 0x10008], eax
lea eax, [ebp - 0xfff8]
push ebx
push eax
lea eax, [ebp - 0x10008]
push eax
call fcn.00411780
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d7fe
push dword [ebp - 0x10008]
push esi
push edi
call fcn.00547f80
push esi
call fcn.005497d9
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005463d8
mov esp, ebp
pop ebp
ret
Function at 0x40d840
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1001c
call fcn.00547f50
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x10018], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10010], eax
mov eax, dword [ebp + 0x1c]
push 0
mov dword [ebp - 0x10014], eax
call fcn.00546ddd
push eax
call fcn.005497c9
add esp, 8
mov esi, 0xffff
call fcn.005497a8
mov byte [ebp + esi - 0x10004], al
dec esi
jns 0x40d890
mov eax, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x1000c], eax
lea eax, [ebp - 0x10008]
push eax
push 3
push 0
call fcn.00416220
push eax
push dword [0x5d5c20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40d905
lea eax, [ebp - 0x1001c]
mov ecx, edi
push eax
lea eax, [ebp - 0x10008]
push eax
push 0
push 0xf003f
push 0
push 0x576c63
push 0
call fcn.00416220
push eax
push dword [0x5d5c20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d9a2
push dword [ebp - 0x10014]
lea eax, [ebp - 0x1000c]
push dword [ebp - 0x10010]
push ebx
push eax
call fcn.00411560
mov esi, dword [ebp - 0x1000c]
add esp, 0x10
mov edi, eax
lea ecx, [esi + 0xc]
cmp ecx, 0x10000
ja 0x40d9a2
push esi
lea eax, [ebp - 0xfff8]
push edi
push eax
call fcn.00547f80
mov ecx, dword [ebp - 0x10018]
lea eax, [ebp - 0x10004]
add esp, 0xc
mov word [ebp - 0x10004], si
push 0x10000
push eax
push 3
push 0
call fcn.00416220
push eax
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10008]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.005497d9
add esp, 4
test esi, esi
jne 0x40d9a2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005463d8
mov esp, ebp
pop ebp
ret
Function at 0x410e50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push 0
mov edi, ecx
push 0
push 0xf0
push dword [edi + 0xb8]
call esi
push 0
push 0
push 0xf0
mov word [0x5d5b74], ax
push dword [edi + 0x370]
call esi
push 0x167
push str.talltftp.log
lea ecx, [edi + 0x2dc]
mov word [0x5d5b7e], ax
call fcn.00421449
push 0x167
push 0x5df770
lea ecx, [edi + 0x268]
call fcn.00421449
cmp byte [0x5df770], 0
jne 0x410ede
push 0x5df770
push 0x168
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x3f
lea eax, [ebp - 0x44]
push eax
lea ecx, [edi + 0x1f4]
call fcn.00421449
lea eax, [ebp - 0x44]
push eax
call fcn.00547b23
add esp, 4
mov word [0x5d5b76], ax
lea eax, [ebp - 0x44]
lea ecx, [edi + 0x180]
push 0x3f
push eax
call fcn.00421449
lea eax, [ebp - 0x44]
push eax
call fcn.00547b23
add esp, 4
mov word [0x5d5b7c], ax
lea eax, [ebp - 0x44]
lea ecx, [edi + 0x10c]
push 0x3f
push eax
call fcn.00421449
lea eax, [ebp - 0x44]
push eax
call fcn.00547b23
add esp, 4
mov word [0x5d5b7a], ax
push 0
push 0
push 0x1004
push dword [edi + 0x3e4]
call esi
xor esi, esi
mov dword [0x5df8d8], eax
test eax, eax
jle 0x411020
push ebx
lea ebx, [edi + 0x3c4]
mov edi, 0x5df8e0
push 0xff
lea eax, [ebp - 0x144]
mov ecx, ebx
push eax
push 0
push esi
call fcn.00421df2
mov eax, 0x578c7c
lea ecx, [ebp - 0x144]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x410fb4
test dl, dl
je 0x410fb0
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x410fb4
add ecx, 2
add eax, 2
test dl, dl
jne 0x410f94
xor ecx, ecx
jmp 0x410fb9
sbb ecx, ecx
or ecx, 1
xor eax, eax
test ecx, ecx
push 0xff
setne al
mov ecx, ebx
inc eax
mov dword [edi], eax
lea eax, [ebp - 0x144]
push eax
push 1
push esi
call fcn.00421df2
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0xff
mov dword [edi + 4], eax
mov ecx, ebx
lea eax, [ebp - 0x144]
push eax
push 2
push esi
call fcn.00421df2
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [edi + 8], eax
inc esi
add edi, 0xc
cmp esi, dword [0x5df8d8]
jl 0x410f73
pop ebx
cmp dword [0x5eb96c], 0
pop edi
pop esi
je 0x411035
mov ecx, 0x5eb958
call fcn.00430804
cmp byte [str.talltftp.log], 0
jne 0x411054
push 0
push 0x3021
push str.talltftp.log
mov ecx, 0x5eb958
call fcn.00430911
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
Function at 0x411560
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
add eax, 0xa
push eax
call fcn.00549811
mov ecx, eax
add esp, 4
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x411581
pop ebx
pop ebp
ret
mov eax, 0x5458
mov word [ecx], ax
mov eax, dword [ebx]
push esi
mov dword [ecx + 2], eax
xor esi, esi
mov edx, dword [ebx]
mov ecx, dword [ebp + 0xc]
push edi
xor edi, edi
test edx, edx
je 0x4115ae
lea ecx, [ecx]
movsx ax, byte [ecx]
lea ecx, [ecx + 1]
add edi, eax
sub esi, eax
dec edx
jne 0x4115a0
mov eax, dword [ebp + 8]
mov word [eax + 6], di
mov edi, eax
mov word [edi + 8], si
lea eax, [edi + 0xa]
push dword [ebx]
push dword [ebp + 0xc]
push eax
call fcn.00547f80
add dword [ebx], 0xa
add esp, 0xc
mov esi, dword [ebx]
mov edx, edi
test esi, esi
jle 0x4115fb
movzx ecx, byte [edx]
lea edx, [edx + 1]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x5d05c8]
shl al, 4
or al, byte [ecx + 0x5d05c8]
mov byte [edx - 1], al
dec esi
jne 0x4115d7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push 8
push ebx
call fcn.00411990
mov esi, dword [ebx]
add esp, 0x14
mov dword [ebp + 8], eax
mov edx, eax
test esi, esi
jle 0x41163c
movzx ecx, byte [edx]
lea edx, [edx + 1]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x5d05c8]
shl al, 4
or al, byte [ecx + 0x5d05c8]
mov byte [edx - 1], al
dec esi
jne 0x411618
mov eax, dword [ebx]
mov ebx, dword [ebp + 8]
lea esi, [eax - 1]
lea edx, [ebx - 1]
add edx, eax
test esi, esi
jle 0x41165a
lea ecx, [ecx]
mov al, byte [edx]
lea edx, [edx - 1]
xor byte [edx], al
dec esi
jne 0x411650
push edi
call fcn.005497d9
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x411670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx]
cmp esi, 0x40
jge 0x41168a
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + esi]
push edi
push eax
call fcn.00549811
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
je 0x41176d
push esi
push dword [ebp + 0xc]
push edi
call fcn.00547f80
mov esi, dword [ebx]
add esp, 0xc
dec esi
xor edx, edx
mov ecx, edi
test esi, esi
jle 0x4116cf
lea esp, [esp]
mov al, byte [edi + edx + 1]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, esi
jl 0x4116c0
push dword [ebx]
push edi
call fcn.004120f0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push 8
push dword [ebx]
call fcn.00411ce0
push dword [ebx]
mov esi, eax
push esi
call fcn.004120f0
mov eax, 0x5458
add esp, 0x24
mov ecx, esi
cmp word [esi], ax
jne 0x41175e
mov eax, dword [esi + 2]
cmp eax, dword [ebx]
jae 0x41175e
mov dword [ebx], eax
lea ecx, [esi + 0xa]
xor edx, edx
mov dword [ebp - 0xc], eax
xor ebx, ebx
test eax, eax
je 0x411731
mov edi, eax
lea esp, [esp]
movsx ax, byte [ecx]
lea ecx, [ecx + 1]
add ebx, eax
sub edx, eax
dec edi
jne 0x411720
mov edi, dword [ebp - 8]
cmp word [esi + 6], bx
jne 0x41175c
cmp word [esi + 8], dx
jne 0x41175c
push dword [ebp - 0xc]
lea eax, [esi + 0xa]
push eax
push edi
call fcn.00547f80
push esi
call fcn.005497d9
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
push ecx
call fcn.005497d9
push edi
call fcn.005497d9
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411780
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx]
cmp esi, 0x40
jge 0x41179a
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + esi]
push edi
push eax
call fcn.00549811
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
je 0x41187d
push esi
push dword [ebp + 0xc]
push edi
call fcn.00547f80
mov esi, dword [ebx]
add esp, 0xc
dec esi
xor edx, edx
mov ecx, edi
test esi, esi
jle 0x4117df
lea esp, [esp]
mov al, byte [edi + edx + 1]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, esi
jl 0x4117d0
push dword [ebx]
push edi
call fcn.004120f0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push 8
push dword [ebx]
call fcn.00411d60
push dword [ebx]
mov esi, eax
push esi
call fcn.004120f0
mov eax, 0x5458
add esp, 0x24
mov ecx, esi
cmp word [esi], ax
jne 0x41186e
mov eax, dword [esi + 2]
cmp eax, dword [ebx]
jae 0x41186e
mov dword [ebx], eax
lea ecx, [esi + 0xa]
xor edx, edx
mov dword [ebp - 0xc], eax
xor ebx, ebx
test eax, eax
je 0x411841
mov edi, eax
lea esp, [esp]
movsx ax, byte [ecx]
lea ecx, [ecx + 1]
add ebx, eax
sub edx, eax
dec edi
jne 0x411830
mov edi, dword [ebp - 8]
cmp word [esi + 6], bx
jne 0x41186c
cmp word [esi + 8], dx
jne 0x41186c
push dword [ebp - 0xc]
lea eax, [esi + 0xa]
push eax
push edi
call fcn.00547f80
push esi
call fcn.005497d9
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
push ecx
call fcn.005497d9
push edi
call fcn.005497d9
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415850
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564e73
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d6b10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0042407c
mov dword [esi], vtable.CGradientProgressCtrl::CMemDC.0
mov dword [ebp - 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], vtable.CBitmap.0
mov edi, dword [ebp + 8]
lea ebx, [esi + 0x20]
mov dword [ebx], 0
xor eax, eax
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], 0
cmp dword [edi + 0xc], eax
mov byte [ebp - 4], 1
sete al
mov dword [esi + 0x30], eax
test eax, eax
je 0x415940
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.USER32.dll_CopyRect]
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.004248e3
mov ecx, dword [ebx + 0xc]
sub ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
lea edi, [esi + 0x10]
push eax
mov ecx, edi
call fcn.00424919
test edi, edi
jne 0x41591f
xor eax, eax
jmp 0x415922
mov eax, dword [edi + 4]
push eax
push dword [esi + 4]
call fcn.00424f55
push dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov ecx, esi
push dword [ebx]
lea eax, [ebp - 0x18]
push eax
call fcn.004252b0
jmp 0x415952
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4166e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 3
push eax
push 3
push 0
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41673c
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x18]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x41673c
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x4168a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push esi
mov esi, dword [ebp + 0x14]
push eax
push 3
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4168e6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0x576c63
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x416912
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 3
push 0
push dword [ebp + 0x18]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x416912
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417340
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x170]
push eax
push 3
push 0
push dword [0x5d5bbc]
push dword [0x5d5c20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4173e7
push 0x168
lea eax, [ebp - 0x16c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [ebp + 8], 2
jne 0x4173b0
lea ecx, [ebp - 0x16c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x417395
mov eax, dword [str._ICON]
mov dword [ecx], eax
mov ax, word [0x579e40]
mov word [ecx + 4], ax
lea ecx, [ebp - 0x16c]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4173c0
sub ecx, edx
lea eax, [ebp - 0x16c]
push ecx
push eax
push 1
push 0
push dword [0x5d5bc0]
push dword [ebp - 0x170]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x170]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret

Function at 0x417410
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 3
push esi
push dword [0x5d5bbc]
push dword [0x5d5c20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41744d
push dword [0x5d5bc0]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
mov ecx, 1
cmove esi, ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x417460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x170]
mov dword [ebp - 0x178], 1
push eax
push 3
xor esi, esi
push esi
push dword [0x5d5bbc]
push dword [0x5d5c20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4174f3
lea eax, [ebp - 0x174]
mov dword [ebp - 0x174], 0x168
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x178]
push eax
push esi
push dword [0x5d5bc0]
push dword [ebp - 0x170]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4174f3
lea eax, [ebp - 0x16c]
push str._ICON
push eax
call fcn.00549920
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
neg esi
inc esi
push dword [ebp - 0x170]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005463d8
mov esp, ebp
pop ebp
ret