joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432bfa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x432c40
call fcn.004353ee
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x432c40
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x432c83
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x432c6c
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x432c6c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x432c80
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x433f44
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x464d86
call fcn.00452965
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.004353ee
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x433f8f
call fcn.004353ee
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x433fa0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x433fad
or eax, 0xffffffff
jmp 0x434109
mov ecx, esi
call fcn.00433a8b
mov dword [ebp - 0x14], eax
call fcn.004384ae
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x43402b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x43402b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x43402b
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004309d8
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x43402b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x43402b
mov ecx, ebx
call fcn.0043563d
test eax, eax
je 0x43402b
push 0
mov ecx, ebx
call fcn.00435658
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00439e75
push dword [ebp - 0x14]
call fcn.00438406
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00433d4c
xor edi, edi
cmp eax, edi
je 0x434088
test byte [esi + 0x3c], 0x10
je 0x434072
push 4
pop edi
mov ecx, esi
call fcn.00435524
test ax, 0x100
je 0x434068
push 5
pop edi
push edi
mov ecx, esi
call fcn.00437f9c
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x434088
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00435827
or dword [ebp - 4], 0xffffffff
jmp 0x4340b3
cmp dword [ebp - 0x28], edi
je 0x4340c1
push 1
mov ecx, ebx
call fcn.00435658
cmp dword [ebp - 0x2c], edi
je 0x4340d1
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4340ea
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4340ea
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00433ac5
cmp dword [esi + 0x58], edi
je 0x434106
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00452a0a
ret
Function at 0x439445
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x43947e
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004349da
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00431ee9
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x43aabb
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x4729cc
mov ecx, edi
call fcn.00401650
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x43ab0e
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x43ab21
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004349da
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00431ee9
jmp 0x43ab21
mov ecx, esi
call fcn.004354aa
test eax, eax
je 0x43ab21
push edi
mov ecx, eax
call fcn.00439445
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x43b002
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x43b045
call fcn.004353ee
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43b045
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43b060
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0043abb9
test ebx, ebx
mov esi, eax
je 0x43b05e
test edi, edi
je 0x43b05e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x43c260
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43c28e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43c2ac
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043c1ca
jmp 0x43c2ac
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43c2ac
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0043c1ca
test edi, edi
mov eax, edi
jne 0x43c296
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x481a10]
test ecx, ecx
je 0x43c36f
jmp 0x43c25f
ret 8

Function at 0x44ba98
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47e494]
jne 0x44baa2
repz ret
jmp fcn.00454168
Function at 0x44ee1c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x44ee59
cmp dword [ebp + 0x14], edi
je 0x44ee59
cmp ecx, edi
jne 0x44ee60
call fcn.0044ec9a
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0044c140
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x44ee74
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x44ee95
cmp ebx, 0xffffffff
je 0x44ee84
push ebx
push edi
push ecx
call fcn.0044e160
add esp, 0xc
cmp esi, edi
je 0x44ee41
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x44ee41
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x44eeb1
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x44eeb8
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x44efa9
test word [esi + 0xc], 0x10c
je 0x44ef0c
mov eax, dword [esi + 4]
test eax, eax
je 0x44ef0c
jl 0x44f00a
cmp ebx, eax
mov edi, ebx
jb 0x44eedd
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x44efb1
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0044bbdd
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x44efa1
cmp ebx, dword [ebp - 0xc]
jb 0x44ef79
cmp dword [ebp - 0xc], 0
je 0x44ef36
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x44ef2b
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x44ef32
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x44ef41
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x44ef41
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x44efdd
push eax
push dword [ebp - 8]
push esi
call fcn.00458c36
pop ecx
push eax
call fcn.0045c6c2
add esp, 0xc
test eax, eax
je 0x44f01c
cmp eax, 0xffffffff
je 0x44f00a
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x44efa1
push esi
call fcn.0045bfe1
cmp eax, 0xffffffff
pop ecx
je 0x44f00e
cmp dword [ebp - 4], 0
je 0x44efdd
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x44eec0
mov eax, dword [ebp + 0x14]
jmp 0x44ee5b
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x44efc8
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0044e160
add esp, 0xc
call fcn.0044ec9a
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x44ee51
cmp dword [ebp + 0xc], 0xffffffff
je 0x44eff3
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0044e160
add esp, 0xc
call fcn.0044ec9a
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x44ee51
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x44ee5b
or dword [esi + 0xc], 0x10
jmp 0x44f00e
Function at 0x457ce7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x47eab8]
je 0x457d02
inc edi
cmp edi, 0x17
jb 0x457cf3
cmp edi, 0x17
jae 0x457e82
push ebp
push 3
call fcn.0045fe0f
cmp eax, 1
pop ecx
je 0x457e4e
push 3
call fcn.0045fe0f
test eax, eax
pop ecx
jne 0x457d36
cmp dword [0x47e490], 1
je 0x457e4e
cmp ebx, 0xfc
je 0x457e81
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x482220
push ebp
call fcn.0044be51
add esp, 0xc
test eax, eax
je 0x457d6c
push esi
push esi
push esi
push esi
push esi
call fcn.0044c044
add esp, 0x14
push 0x104
mov esi, 0x482239
push esi
push 0
mov byte [0x48233d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x457db0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044be51
add esp, 0xc
test eax, eax
je 0x457db0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0044c044
add esp, 0x14
push esi
call fcn.00452d60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x457df5
push esi
call fcn.00452d60
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x482534
push 0x470d4c
sub ecx, eax
push ecx
push eax
call fcn.0044d03d
add esp, 0x14
test eax, eax
je 0x457df5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0044c044
add esp, 0x14
jmp 0x457df7
xor esi, esi
push 0x470d48
push ebx
push ebp
call fcn.00450364
add esp, 0xc
test eax, eax
je 0x457e17
push esi
push esi
push esi
push esi
push esi
call fcn.0044c044
add esp, 0x14
push dword [edi*8 + 0x47eabc]
push ebx
push ebp
call fcn.00450364
add esp, 0xc
test eax, eax
je 0x457e39
push esi
push esi
push esi
push esi
push esi
call fcn.0044c044
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045fc52
add esp, 0xc
jmp 0x457e81
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x457e81
cmp ebp, 0xffffffff
je 0x457e81
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x47eabc]
push dword [esi]
call fcn.00452d60
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x45fc52
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00454346
xor ebx, ebx
cmp dword [0x4827bc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x45fd28
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45fe08
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4716c0
push edi
call esi
cmp eax, ebx
je 0x45fe08
push eax
call fcn.004542d8
mov dword [esp], 0x4716b0
push edi
mov dword [0x4827bc], eax
call esi
push eax
call fcn.004542d8
mov dword [esp], 0x47169c
push edi
mov dword [0x4827c0], eax
call esi
push eax
call fcn.004542d8
mov dword [0x4827c4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00452ae5
test eax, eax
pop ecx
pop ecx
je 0x45fcf6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044c044
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x45fd28
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004542d8
cmp eax, ebx
pop ecx
mov dword [0x4827cc], eax
je 0x45fd28
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004542d8
pop ecx
mov dword [0x4827c8], eax
mov eax, dword [0x4827c8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45fdad
cmp dword [0x4827cc], ecx
je 0x45fdad
push eax
call fcn.0045434f
push dword [0x4827cc]
mov esi, eax
call fcn.0045434f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45fdad
cmp edi, ebx
je 0x45fdad
call esi
cmp eax, ebx
je 0x45fd7a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45fd7a
test byte [ebp - 0x18], 1
jne 0x45fdad
lea eax, [ebp - 0x10]
push eax
call fcn.00452b1c
test eax, eax
pop ecx
je 0x45fd95
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044c044
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x45fda4
or dword [ebp + 0x10], 0x200000
jmp 0x45fde8
or dword [ebp + 0x10], 0x40000
jmp 0x45fde8
mov eax, dword [0x4827c0]
cmp eax, dword [ebp - 8]
je 0x45fde8
push eax
call fcn.0045434f
cmp eax, ebx
pop ecx
je 0x45fde8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45fde8
mov eax, dword [0x4827c4]
cmp eax, dword [ebp - 8]
je 0x45fde8
push eax
call fcn.0045434f
cmp eax, ebx
pop ecx
je 0x45fde8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4827bc]
call fcn.0045434f
cmp eax, ebx
pop ecx
je 0x45fe08
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45fe0a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x464791
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x47e494]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00464726
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0044e160
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4647e0
cmp dword [ebp - 0x1c], 5
jb 0x4647f8
jmp 0x4647f4
cmp dword [ebp - 0x10], 1
jne 0x4647f8
cmp dword [ebp - 0x1c], 4
ja 0x4647f4
jne 0x4647f8
cmp dword [ebp - 0x18], 0
jbe 0x4647f8
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x472844
call fcn.00464617
test eax, eax
jge 0x464819
mov byte [0x482bc0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044ba98
add ebp, 0x78
leave
ret
Function at 0x4011f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401207
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401238
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401234
cmp esi, eax
jae 0x401238
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401224
cmp esi, eax
jb 0x40123e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x401640
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x401653
push 0x80004005
call fcn.00401050
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401660
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4016a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
push edi
lea edx, [esp + 0x14]
push edx
push 0x2001f
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
push 0
push ecx
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x401712
test ecx, ecx
je 0x401704
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x401720
test ecx, ecx
je 0x4017c4
push ecx
jmp 0x4017be
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x3c]
push eax
push 0
push ecx
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
jne 0x40178e
lea esp, [esp]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x10]
call fcn.004016a0
mov edi, eax
test edi, edi
jne 0x4017dc
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x10]
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
push edx
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
je 0x401750
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4017a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4017c4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00488fa3
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4017eb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00488fa3
mov esp, ebp
pop ebp
ret 4
Function at 0x401cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4a8450
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4d62b0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x14], eax
call dword [section..data]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x410]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x401d79
call fcn.004012e0
mov esi, eax
jmp 0x401e5f
mov edx, dword [ebp - 0x14]
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x401d95
call fcn.004012e0
jmp 0x401e56
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x401dae
call fcn.004012e0
jmp 0x401e56
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
jae 0x401de4
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x401dd2
lea eax, [ebp]
call fcn.0040c8f0
lea esi, [ebp - 0x1c]
call fcn.0040b260
mov eax, 0x8007000e
jmp 0x401e72
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.0040b3b0
mov dword [ebp - 4], 1
jmp 0x401e0c
mov esi, dword [ebp]
test esi, esi
jne 0x401e1a
mov esi, 0x8007000e
jmp 0x401e58
call dword [section..data]
mov ecx, dword [ebp - 0x20]
push ebx
push esi
push ebx
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x401e3b
call fcn.004012e0
jmp 0x401e56
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00402a10
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x401e70
lea eax, [ebp]
call fcn.0040c8f0
nop
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00488fa3
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403f90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a8e30
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov bx, word [esp + 0x30]
call fcn.004043b0
mov word [eax + 0x98], bx
mov eax, dword [0x4da734]
mov edx, dword [eax + 0xc]
mov ecx, 0x4da734
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
movzx eax, bx
push eax
mov dword [esp + 0x2c], 0
call fcn.004043b0
mov ecx, dword [eax + 0x90]
push ecx
push 0x4b2f0c
lea edi, [esp + 0x1c]
call fcn.0040e820
add esp, 0xc
call fcn.004043b0
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
add eax, 0x60
push edi
call fcn.0040f270
test eax, eax
jne 0x4040a9
call fcn.004043b0
add eax, 0x90
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x20], esp
mov esi, esp
call fcn.0040d0b0
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x35]
mov cl, bl
and cl, 1
sub cl, 1
neg cl
push eax
mov dl, bl
mov byte [esp + 0x30], 1
sbb ecx, ecx
add ecx, 1
xor eax, eax
and dl, 2
cmp dl, 2
sete al
push ecx
xor ecx, ecx
and bl, 4
cmp bl, 4
sete cl
push eax
push ecx
call fcn.004043b0
mov ecx, eax
mov byte [esp + 0x3c], 0
call fcn.00404480
mov ebx, eax
test ebx, ebx
je 0x4040ac
call fcn.004043b0
mov esi, eax
add esi, 0x60
call fcn.0040e840
mov dword [eax], ebx
jmp 0x4040ac
mov ebx, dword [eax + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4040d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x410420
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41048e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x41045f
cmp eax, 2
jne 0x41047a
test esi, esi
mov eax, dword [esp]
je 0x410488
test eax, eax
je 0x410483
test al, 1
jne 0x41047a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x410488
mov eax, 0xd
pop ecx
ret 8
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8