joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456902
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x284
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
mov esi, 0x80004002
xor ebx, ebx
mov dword [esp + 0x14], 0x28
call fcn.004071d0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
push str.interface
push accept
call ebp
test eax, eax
jne 0x456a47
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x4c]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x456a3c
mov eax, dword [esp + 0x14]
xor edx, edx
mov word [esp + eax*2 + 0x38], dx
push str.interface_
lea eax, [esp + 0x24]
mov dword [esp + 0x18], 0x1fe
call fcn.00401cf0
lea edi, [esp + 0x38]
lea eax, [esp + 0x20]
call fcn.004013b0
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push edx
push accept
call ebp
test eax, eax
jne 0x456a2a
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x8c]
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x456a1f
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x29c]
shr eax, 1
xor ecx, ecx
mov dword [esp + 0x14], eax
mov word [esp + eax*2 + 0x88], cx
push edx
lea eax, [esp + 0x8c]
push eax
call fcn.00412ae0
add esp, 8
test eax, eax
jne 0x456a1f
mov ecx, dword [esp + 0x298]
push ecx
push edi
call dword [sym.imp.ole32.dll_IIDFromString]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x456a3c
inc ebx
mov dword [esp + 0x14], 0x28
jmp 0x456949
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.00402130
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x284
ret
Function at 0x45e9c6
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push 0x4858e8
call fcn.00401cf0
push ebx
call fcn.0043a822
test al, al
je 0x45e9e9
xor al, al
pop ebx
ret 8
mov eax, dword [ebx]
push ebp
push esi
push edi
push 0
push 0
push 0xe
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
jne 0x45ea06
mov edi, 0x7fff
xor ecx, ecx
lea ebp, [edi + 1]
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412c2a
add esp, 4
mov esi, eax
mov eax, dword [ebx]
push esi
push ebp
push 0xd
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
test eax, eax
mov eax, dword [esp + 0x18]
mov word [esi + edi*2], cx
jne 0x45ea5d
push 0x4858e8
call fcn.00401cf0
push esi
call fcn.0041293d
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
push esi
call fcn.00401cf0
push esi
call fcn.0041293d
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
Function at 0x45f6a3
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
mov edx, dword [ebx]
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0xb0
push edx
call esi
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x10]
jb 0x45f6d6
pop esi
xor al, al
pop ebx
pop ecx
ret 8
mov ecx, dword [ebx]
push edi
push 0
push 0
push 0xe
push ecx
call esi
mov edi, eax
test edi, edi
je 0x45f761
cmp edi, dword [esp + 0xc]
jb 0x45f761
cmp edi, dword [esp + 0x14]
jb 0x45f761
push ebp
xor ecx, ecx
lea ebp, [edi + 1]
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412c2a
add esp, 4
mov esi, eax
mov eax, dword [ebx]
push esi
push ebp
push 0xd
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop ebp
test eax, eax
je 0x45f758
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x45f735
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [esp + 0xc]
lea eax, [esi + edx*2]
push eax
mov eax, dword [esp + 0x1c]
call fcn.00401cf0
push esi
call fcn.0041293d
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
pop ecx
ret 8
push esi
call fcn.0041293d
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret 8
Function at 0x4623be
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
lea ecx, [esp + 0x10]
push ecx
mov eax, 2
push ebp
mov word [ebx], ax
call fcn.004587db
mov eax, dword [eax]
push eax
call sub.WSOCK32.dll_inet_addr
lea esi, [esp + 0x10]
mov edi, eax
call fcn.0040e4e0
cmp edi, 0xffffffff
jne 0x462410
push 0x48b5ac
push ebp
call fcn.0044ea16
add esp, 8
test al, al
je 0x462410
push 0
push 1
jmp 0x46243c
mov eax, dword [esp + 0x34]
lea ecx, [eax - 1]
mov dword [ebx + 4], edi
cmp ecx, 0xfffe
ja 0x462438
push eax
call sub.WSOCK32.dll_htons
mov word [ebx + 2], ax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
push 0
push 2
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add eax, ecx
call fcn.00403c50
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x14
ret 0x10

Function at 0x463bd3
Capabilities:
Parse url

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, dword [esp + 0x64]
push edi
mov edi, dword [esp + 0x6c]
push 0x38
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00414700
add esp, 0xc
lea ecx, [esp + 0x24]
mov ebx, 1
push ecx
push 0
push esi
mov dword [esp + 0x30], 0x7c
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x58], ebx
call fcn.004127e5
add esp, 4
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x463c40
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
push 0
push edx
mov ecx, edi
call fcn.00403ae0
mov eax, dword [esp + 0x34]
push 0
push eax
mov eax, dword [esp + 0x40]
lea ecx, [edi + 0x10]
call fcn.00403ae0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
push 0
push ecx
lea ecx, [edi + 0x20]
call fcn.00403ae0
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
push 0
push edx
lea ecx, [edi + 0x30]
call fcn.00403ae0
mov eax, dword [esp + 0x50]
push 0
lea esi, [edi + 0x40]
push eax
mov eax, dword [esp + 0x5c]
mov ecx, esi
call fcn.00403ae0
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
push 0
lea ebp, [edi + 0x50]
push ecx
mov ecx, ebp
call fcn.00403ae0
push ebp
lea edx, [esp + 0x18]
push edx
push esi
call fcn.0044ea32
push eax
lea esi, [edi + 0x60]
call fcn.0040f400
lea ecx, [esp + 0x14]
call fcn.00402130
mov ax, word [esp + 0x3c]
mov word [edi + 0x78], ax
mov eax, dword [esp + 0x30]
mov dword [edi + 0x74], eax
sub eax, ebx
je 0x463d11
sub eax, ebx
je 0x463cfe
mov dword [edi + 0x70], 3
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
mov dword [edi + 0x70], 2
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
mov dword [edi + 0x70], ebx
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x54
ret 8
Function at 0x463e55
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0xd0], 0
je 0x463e93
test al, al
je 0x463e93
lea eax, [esi + 0xd4]
push eax
call fcn.00436671
push esi
push 0
push 0x463e48
call fcn.00416c33
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], eax
sete al
pop esi
ret 8
push eax
push esi
call fcn.00463d20
pop esi
ret 8

Function at 0x463e78
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0xd0], 0
je 0x463e93
test al, al
je 0x463e93
lea eax, [esi + 0xd4]
push eax
call fcn.00436671
push esi
push 0
push 0x463e48
call fcn.00416c33
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], eax
sete al
pop esi
ret 8
push eax
push esi
call fcn.00463d20
pop esi
ret 8
Function at 0x479940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
mov ecx, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x48]
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], ebx
mov edi, ecx
cmp byte [0x4a56e1], bl
je 0x479ad8
mov eax, dword [0x4a56e4]
cmp eax, ebx
je 0x479ad8
mov edx, 3
mov word [eax + 0x38], dx
mov dword [eax + 0x40], ecx
mov word [eax + 0x98], dx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4a56e4]
mov dword [edx + 0xa0], eax
mov eax, 3
mov word [edx + 0xa8], ax
mov ecx, dword [ebp + 0xec]
push ecx
call fcn.004397dc
mov dword [edx + 0xb0], eax
cmp esi, ebx
je 0x479a58
mov ecx, dword [esi + 4]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
mov eax, 8
mov word [esp + 0x20], ax
lea eax, [esp + 0x20]
push eax
add edx, 0x68
push edx
mov dword [esp + 0x30], ecx
call ebx
mov eax, dword [0x4a56e4]
mov ecx, dword [esi + 8]
lea edx, [esp + 0x20]
push edx
add eax, 0x58
push eax
mov dword [esp + 0x30], ecx
call ebx
mov eax, dword [0x4a56e4]
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x20]
push edx
add eax, 0x78
push eax
mov dword [esp + 0x30], ecx
call ebx
mov eax, dword [0x4a56e4]
mov ecx, 3
mov word [eax + 0x88], cx
mov edx, dword [esi + 0x10]
mov dword [eax + 0x90], edx
mov word [eax + 0xb8], cx
movzx ecx, word [esi]
test cx, cx
je 0x479a49
movzx esi, cx
jmp 0x479a4c
mov esi, dword [esi + 0x1c]
mov dword [eax + 0xc0], esi
test esi, esi
je 0x479a58
mov edi, esi
mov eax, dword [esp + 0x50]
test eax, eax
je 0x479a6d
mov edi, eax
lea ebx, [esp + 0x10]
call fcn.0040fb10
jmp 0x479a8c
push edi
lea edx, [esp + 0x34]
push edx
call fcn.0044d05e
mov edi, eax
lea esi, [esp + 0x10]
call fcn.0040fa60
lea ecx, [esp + 0x30]
call fcn.00402130
mov eax, dword [0x4a56e4]
add eax, 0x48
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00478220
mov ecx, dword [0x4a56e4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
add esp, 8
call eax
mov edx, dword [ebp]
mov ecx, dword [esp + 0x48]
mov eax, dword [edx + 4]
push 0
push ecx
add eax, ebp
call fcn.00403c50
lea esi, [esp + 0x10]
call fcn.00404420
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0x14
mov eax, dword [ebp]
mov eax, dword [eax + 4]
push ebx
push ecx
add eax, ebp
call fcn.00403c50
cmp byte [esp + 0x54], bl
je 0x479ac3
lea esi, [esp + 0x10]
call fcn.00404420
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x30
ret 0x14
Function at 0x40154f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x14c
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [0x430804]
lea edi, [ebp - 0x121]
mov dword [ebp - 0x12c], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edx
or eax, 8
mov dword [esp + 0xc], eax
mov dword [esp], esi
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x4015ca
jmp 0x401651
cmp dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x1c]
je 0x4015bd
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, 1
push edx
jmp 0x401651
xor ecx, ecx
mov edx, edi
call fcn.0040154f
test eax, eax
jne 0x4015f0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegEnumKeyA
sub esp, 0x10
test eax, eax
je 0x40159e
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push eax
mov dword [esp], 2
call fcn.004072e6
test eax, eax
push edi
je 0x40162d
mov edx, dword [0x430804]
mov dword [esp + 0xc], 0
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 8], edx
call eax
sub esp, 0x10
jmp 0x401651
cmp dword [0x430804], 0
mov eax, 1
jne 0x401651
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
push ebx
setne al
push ebx
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40360d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
mov edx, eax
sub esp, 0x14
xor eax, eax
test edx, edx
je 0x403651
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 8

Function at 0x403658
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
cmp dword [ebp + 8], 0
je 0x403686
mov eax, dword [0x415c44]
test eax, eax
je 0x403677
mov dword [esp], eax
call sub.USER32.dll_DestroyWindow
push ecx
mov dword [0x415c44], 0
jmp 0x403760
cmp dword [0x415c44], 0
je 0x4036a1
mov dword [esp], 0
call fcn.0040729d
push edx
jmp 0x403760
call sub.KERNEL32.dll_GetTickCount
cmp eax, dword [0x430884]
jbe 0x403760
cmp dword [0x4308d4], 0
je 0x403719
test byte [0x430808], 1
je 0x403760
mov edx, dword [0x415c58]
mov eax, dword [0x415c5c]
mov dword [esp + 4], 0x64
mov dword [esp + 8], edx
cmp eax, edx
jle 0x4036e5
mov eax, edx
mov dword [esp], eax
lea ebx, [ebp - 0x48]
call sub.KERNEL32.dll_MulDiv
sub esp, 0xc
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str....__d__
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004046b8
jmp 0x40375e
mov eax, dword [0x4308e4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x403eed
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call sub.USER32.dll_CreateDialogParamA
sub esp, 0x14
mov dword [0x415c44], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push eax
push eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x403765
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov ebx, dword [0x415c4c]
add ebx, eax
sub ebx, dword [0x415c48]
call sub.KERNEL32.dll_GetTickCount
add eax, 0x1f4
test ebx, ebx
mov dword [0x430884], eax
jle 0x403927
mov eax, dword [0x415c50]
mov dword [esp], eax
call fcn.004035dc
mov eax, dword [0x415c48]
push ecx
mov dword [esp + 4], eax
mov eax, dword [0x40a014]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
mov dword [0x415c58], ebx
mov dword [0x415c5c], 0
sub esp, 0x10
mov ebx, dword [0x415c54]
sub ebx, dword [0x415c50]
cmp ebx, 0x4000
jle 0x4037f5
mov ebx, 0x4000
mov dword [esp + 4], ebx
mov dword [esp], 0x41f820
call fcn.0040360d
test eax, eax
push edx
push edx
jne 0x403813
or eax, 0xffffffff
jmp 0x403943
add dword [0x415c50], ebx
mov dword [0x415c60], 0x41f820
mov dword [0x415c64], ebx
cmp dword [0x430834], 0
je 0x40385f
cmp dword [0x4307f4], 0
jne 0x40385f
mov eax, dword [0x415c48]
add eax, dword [0x415c58]
sub eax, dword [0x415c4c]
mov dword [esp], 0
sub eax, esi
mov dword [0x415c5c], eax
call fcn.00403658
mov dword [0x415c68], 0x423820
mov dword [0x415c6c], 0x8000
mov dword [esp], 0x415c60
call fcn.0040880a
test eax, eax
push edi
js 0x403937
mov edi, dword [0x415c68]
sub edi, 0x423820
je 0x4038df
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [0x40a014]
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0x423820
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
test eax, eax
je 0x40393e
cmp edi, dword [ebp - 0x1c]
jne 0x40393e
add dword [0x415c48], edi
cmp dword [0x415c64], 0
jne 0x403829
jmp 0x4038ec
test ebx, ebx
je 0x403937
cmp dword [0x415c64], 0
jne 0x403937
mov eax, dword [0x415c4c]
mov edx, eax
sub edx, dword [0x415c48]
add edx, esi
test edx, edx
jg 0x4037dc
mov dword [esp + 4], eax
mov eax, dword [0x40a014]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
mov dword [esp], 1
call fcn.00403658
xor eax, eax
jmp 0x403943
mov eax, 0xfffffffd
jmp 0x403943
mov eax, 0xfffffffe
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40394b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
test eax, eax
js 0x40398d
add eax, dword [0x43087c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [0x415c4c], eax
mov dword [esp + 4], eax
mov eax, dword [0x40a014]
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
mov eax, 4
call fcn.00403765
test eax, eax
mov ebx, eax
js 0x403aea
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [0x40a014]
lea esi, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 4
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x403ade
cmp dword [ebp - 0x1c], 4
jne 0x403ade
mov eax, dword [ebp - 0x20]
add dword [0x415c4c], 4
call fcn.00403765
test eax, eax
mov ebx, eax
js 0x403aea
test edi, edi
je 0x403a8f
jmp 0x403a9f
cmp esi, 0x4000
jle 0x403a14
mov esi, 0x4000
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [0x40a014]
mov dword [esp + 0x10], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0x41f820
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x403ade
cmp esi, dword [ebp - 0x1c]
jne 0x403ade
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0x41f820
mov dword [esp], edx
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
test eax, eax
je 0x403ae5
cmp dword [ebp - 0x24], esi
jne 0x403ae5
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x20], eax
add dword [0x415c4c], eax
add ebx, eax
jmp 0x403a92
lea edi, [ebp - 0x24]
mov esi, dword [ebp - 0x20]
test esi, esi
jg 0x403a07
jmp 0x403aea
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
cmp eax, edx
jle 0x403ab7
mov eax, edx
mov dword [esp + 8], eax
mov eax, dword [0x40a014]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x403ade
mov ebx, dword [ebp - 0x1c]
add dword [0x415c4c], ebx
jmp 0x403aea
mov ebx, 0xfffffffd
jmp 0x403aea
mov ebx, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x4075b5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0x14]
lea edx, [ebp - 0xc]
mov byte [ebx], 0
cmp dword [ebp + 0x18], 1
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
sbb eax, eax
xor al, al
add eax, 0x20119
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x407654
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], 0x400
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x40763e
mov eax, dword [ebp - 0x14]
dec eax
cmp eax, 1
jbe 0x407641
mov byte [ebx], 0
mov byte [ebx + 0x3ff], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push ebx
mov ebx, dword [ebp - 4]
leave
ret 0x14
Function at 0x407930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, 0x64
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x1c]
jmp 0x407982
mov dword [esi], 0x61736e
call sub.KERNEL32.dll_GetTickCount
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], esi
div ecx
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
add edx, 0x61
mov byte [ebp - 0x1a], dl
call sub.KERNEL32.dll_GetTempFileNameA
sub esp, 0x10
test eax, eax
jne 0x40798d
dec edi
cmp edi, 0xffffffff
jne 0x407946
mov byte [ebx], 0
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x407999
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x42e9c4
mov dword [esp + 4], eax
call fcn.0040756a
push eax
push eax
mov dword [esp], 0x42e9c4
call fcn.00407395
test eax, eax
push ebx
mov ebx, eax
je 0x407a45
mov dword [esp], eax
call fcn.00407407
cmp byte [0x430894], 0
push ecx
jns 0x407a0b
mov al, byte [ebx]
cmp al, 0x5c
je 0x407a45
test al, al
jne 0x407a0b
jmp 0x407a45
mov dword [esp], 0x42e9c4
call fcn.00407336
test eax, eax
push edx
je 0x4079fc
test byte [eax], 0x10
je 0x407a45
mov dword [esp], 0x42e9c4
call fcn.004074ee
push ecx
jmp 0x407a11
sub ebx, 0x42e9c4
mov dword [esp], 0x42e9c4
call sub.KERNEL32.dll_lstrlenA
cmp eax, ebx
push edx
jg 0x4079e6
mov dword [esp], 0x42e9c4
call fcn.00407526
push ecx
mov dword [esp], 0x42e9c4
call sub.KERNEL32.dll_GetFileAttributesA
inc eax
setne al
push edx
movzx eax, al
jmp 0x407a47
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
push edx
xor edx, edx
cmp eax, 0xffffffff
setne dl
neg edx
and eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call sub.KERNEL32.dll_CreateFileA
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc

Function at 0x407aa9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
push edx
je 0x407ad2
and eax, 0xfffffffe
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_SetFileAttributesA
push ecx
push ecx
mov ebx, dword [ebp - 4]
leave
ret 4