joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c1231
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004c11ad
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4c13a0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4c13a0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4c1355
jg 0x4c128d
test eax, eax
je 0x4c134b
push 1
push 0x1000
call fcn.004c0227
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4c12b0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4c1342
push 0x8000
push ebx
call fcn.004b987f
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4c12d9
jg 0x4c12d4
cmp ecx, 0x1000
jb 0x4c12d9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004bcb35
add esp, 0x10
cmp eax, 0xffffffff
je 0x4c131e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4c12d4
jl 0x4c1305
test ecx, ecx
jne 0x4c12c6
push dword [ebp - 0xc]
push ebx
call fcn.004b987f
push esi
call fcn.004bd696
add esp, 0xc
xor ebx, ebx
jmp 0x4c13ae
cmp byte [edi + 0x24], 0
je 0x4c1335
cmp dword [edi + 0x20], 5
jne 0x4c1335
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4c1340
mov ebx, dword [edi + 0x18]
jmp 0x4c1342
xor ebx, ebx
push esi
call fcn.004bd696
pop ecx
jmp 0x4c13ae
test ecx, ecx
jg 0x4c1317
jl 0x4c1355
test eax, eax
jae 0x4c1317
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b59c2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4c1375
cmp byte [edi + 0x1c], 0
je 0x4c1317
jmp 0x4c13a6
push ebx
call fcn.004c1143
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4c1317
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4c13ae
cmp byte [edi + 0x1c], 0
je 0x4c13ab
mov ebx, dword [edi + 0x18]
jmp 0x4c13ae
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004b59c2
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c4128
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4c41c5
push ebx
push esi
call fcn.004c40f1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004c06b0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4c4172
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4c41c4
push edi
push eax
call fcn.004bf544
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4c4192
call fcn.004bd696
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4c41c3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004c06b0
add esp, 0x20
test eax, eax
jne 0x4c41b1
push edi
call fcn.004bd696
jmp 0x4c41b9
push ebx
call fcn.004bd696
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4c41c8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4c41d9
pop esi
ret
push ebx
push edi
push esi
call fcn.004c40f1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004bf544
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4c4201
push ebx
push esi
push edi
call fcn.004a0e20
add esp, 0xc
push 0
call fcn.004bd696
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4c45d1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c4216

Function at 0x4c674d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004bda0e
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c67bc
cmp esi, dword [ebp - 4]
je 0x4c67b7
cmp dword [ebp + 0xc], 0
je 0x4c67b7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4c6794
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004c629f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4c67be
xor eax, eax
inc eax
jmp 0x4c67be
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4c6823
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4f6440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004bda0e
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004bda0e
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4c689a
cmp word [ecx], dx
je 0x4c689a
mov eax, dword [0x4e6d2c]
push edi
dec eax
push eax
push 0x4e6c18
call fcn.004c67c2
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4c690d
cmp word [eax], dx
je 0x4c690d
mov eax, dword [edi]
test eax, eax
je 0x4c68be
cmp word [eax], dx
je 0x4c68be
lea eax, [ebp - 0x10]
push eax
call fcn.004c61a5
jmp 0x4c68c7
lea eax, [ebp - 0x10]
push eax
call fcn.004c6240
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4c6937
mov eax, dword [0x4e6c14]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4e6908
call fcn.004c67c2
add esp, 0xc
test al, al
je 0x4c6937
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4c6902
cmp word [eax], di
je 0x4c6902
lea eax, [ebp - 0x10]
push eax
call fcn.004c61a5
pop ecx
jmp 0x4c6939
lea eax, [ebp - 0x10]
push eax
call fcn.004c6240
jmp 0x4c68ff
mov eax, dword [edi]
test eax, eax
je 0x4c6924
cmp word [eax], dx
je 0x4c6924
lea eax, [ebp - 0x10]
push eax
call fcn.004c615a
pop ecx
jmp 0x4c6937
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4c6a02
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004c6647
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4c6a02
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4c6a02
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4c6a02
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4c698f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004be40c
test ebx, ebx
je 0x4c69fd
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004be40c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c6a02
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c6a02
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004c9a00
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4c6a04
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f18e
leave
ret
Function at 0x4cb0e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4cb10d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4cb10d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4047e0
Capabilities:
Write clipboard data

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jne 0x404803
call fcn.00404ab0
test eax, eax
jne 0x404803
push str.Cant_open_clipboard_for_writing.
call fcn.004048e0
pop esi
pop ebx
pop ecx
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40483c
cmp dword [esi + 0x18], ebx
je 0x40482e
cmp dword [esi + 8], ebx
je 0x404823
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4a4ce4
call fcn.004048e0
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp eax, ebx
je 0x404875
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x40489c
cmp word [ecx], bx
push eax
sete byte [esp + 0x13]
call edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
cmp byte [esp + 0xf], bl
je 0x40489c
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], ebx
je 0x404892
cmp dword [esi + 8], ebx
je 0x404887
mov ecx, dword [esi]
push ecx
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
mov edx, dword [esi + 4]
push edx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4048b1
mov dword [esi + 4], ebx
jmp 0x404875
cmp dword [esi + 0x18], ebx
je 0x4048ce
cmp dword [esi + 8], ebx
je 0x4048c3
mov eax, dword [esi]
push eax
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4a4d04
call fcn.004048e0
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4049b0
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
test esi, esi
je 0x4049c0
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x404a8f
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea edx, [esp + 4]
push str.Link_Source
push edx
call fcn.0049109d
add esp, 0xc
test eax, eax
je 0x404a86
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00490e99
add esp, 8
test eax, eax
je 0x404a86
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00490e99
add esp, 8
test eax, eax
je 0x404a86
lea edx, [esp]
push 0x4a4d6c
push edx
call fcn.00490e99
add esp, 8
test eax, eax
je 0x404a86
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00490e99
add esp, 8
test eax, eax
je 0x404a86
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.00490e99
add esp, 8
test eax, eax
je 0x404a7c
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.00490e99
add esp, 8
test eax, eax
jne 0x404a95
test esi, esi
je 0x404a86
mov dword [esi], 1
xor eax, eax
add esp, 0x20c
ret
xor eax, eax
mov word [esp], ax
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x20c
ret
Function at 0x4738e0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x30008
call fcn.0049bf10
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x4738fa
cmp word [esi], 0
jne 0x4738ff
mov esi, 0x4ac04c
xor eax, eax
lea edx, [esp + 0xc]
push edx
mov word [esp + 0x10014], ax
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
mov word [esp + 0x10], cx
mov ecx, dword [esp + 0x3001c]
push 0x8000
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp word [ebx], 0
je 0x47397d
cmp word [edi], 0
jne 0x47393d
lea edi, [esp + 8]
lea edx, [esp + 0x10]
push edx
push 0xffff
lea eax, [esp + 0x10018]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [0x4cb498]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x1001c]
push eax
push ecx
call fcn.0047a5f0
pop edi
pop esi
add esp, 0x30008
ret 4
cmp word [edi], 0
je 0x47399e
lea ecx, [esp + 0x10]
push ecx
push 0xffff
lea edx, [esp + 0x10018]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x4739b6
lea eax, [esp + 0x10]
push eax
push 0xffff
lea ecx, [esp + 0x10018]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x473958
lea eax, [esp + 0x10010]
cmp word [eax], 0
jne 0x4739d6
cmp word [eax + 2], 0
je 0x473958
mov edx, 0xa
mov word [eax], dx
add eax, 2
jmp 0x4739c1

Function at 0x4739e0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x258
push ebx
push ebp
push esi
mov esi, eax
mov ebp, 1
push edi
mov dword [esp + 0x10], ebp
test esi, esi
je 0x473a5c
cmp word [esi], 0
je 0x473a5c
push 4
push 0x4c18c0
push esi
call fcn.004929f5
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x473a18
lea eax, [esi + 8]
mov ebx, 0x4aee78
call fcn.00409e00
test eax, eax
je 0x473a4b
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x473a5c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
test al, al
jne 0x473a3e
push 0
push 0
push 1
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x473a3e
mov edx, dword [esp + 0x26c]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x473a85
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, esi
sar eax, 1
mov esi, eax
mov ecx, 0x5d
push 0
mov word [edx + esi*2], cx
lea edx, [esp + 0x18]
push edx
push 4
push 0x4c16f0
push edi
lea ebx, [esi + esi + 2]
call ebp
test eax, eax
je 0x473ae2
cmp dword [esp + 0x14], 4
jne 0x473ae2
mov ecx, dword [esp + 0x26c]
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push ecx
push edi
call ebp
test eax, eax
je 0x473ae2
cmp dword [esp + 0x14], ebx
je 0x473aea
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x473af9
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x26c]
pop edi
xor edx, edx
mov word [eax + esi*2], dx
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x258
ret
Function at 0x4743b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
je 0x474477
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [0x4c7a54]
mov edx, dword [ecx + 0xd0]
lea eax, [esp + 0x14]
push eax
or edx, 0x20019
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x474484
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004743b0
mov edx, dword [esp + 0x18]
add esp, 4
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x474484
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jne 0x474484
lea ecx, [esp + 0x18]
push ecx
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
jne 0x4743fa
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret

Function at 0x4744a0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
test ebx, ebx
je 0x474590
test edi, edi
je 0x4744b9
cmp word [edi], 0
jne 0x4744c1
test ebp, ebp
je 0x474590
mov ecx, dword [0x4c7a54]
mov edx, dword [ecx + 0xd0]
lea eax, [esp + 0x14]
push eax
or edx, 0x2001f
push edx
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x474562
mov eax, dword [esp + 0x14]
test ebp, ebp
jne 0x474579
push eax
call fcn.004743b0
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x474562
mov eax, 1
test byte [0x4cdb7c], al
jne 0x474540
or dword [0x4cdb7c], eax
push str.RegDeleteKeyExW
push 0x4af5b0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cdb78], eax
jmp 0x474545
mov eax, dword [0x4cdb78]
mov edx, dword [0x4c7a54]
mov ecx, dword [edx + 0xd0]
test ecx, ecx
je 0x47456f
test eax, eax
je 0x47456f
push 0
push ecx
push edi
push ebx
call eax
mov esi, eax
cmp esi, 0xffffffff
jne 0x474595
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x474597
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x474560
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x474562
mov esi, 0x57
mov eax, esi
mov edx, dword [0x4c7a54]
mov dword [edx + 0x30], eax
mov edx, dword [esp + 0x10]
test esi, esi
setne al
movzx ecx, al
push ecx
push edx
call fcn.004305c0
pop esi
pop ebp
pop ecx
ret 8
Function at 0x401519
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
sub esp, 0x10
xor eax, eax
cmp eax, ebx
jge 0x401567
mov edx, eax
mov ecx, dword [ebp + 0x10]
and edx, 3
mov dl, byte [ecx + edx]
mov ecx, dword [ebp + 8]
xor dl, byte [ecx + eax]
mov byte [esi + eax], dl
inc eax
jmp 0x40154c
lea eax, [ebp - 0xc]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x401510
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4015c4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xc], 0x2a
mov dword [esp + 8], 0x17
mov dword [esp + 4], 0x402
mov dword [esp], eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
lea eax, [ebp - 0x34]
sub esp, 0x10
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.USER32.dll_PeekMessageA]
sub esp, 0x14
test eax, eax
je 0x4016a9
cmp dword [ebp - 0x30], 0x402
jne 0x4016a9
cmp dword [ebp - 0x2c], 0x17
jne 0x4016a9
cmp dword [ebp - 0x28], 0x2a
jne 0x4016a9
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [esp], 0x28a
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push eax
call esi
sub eax, 0x258
sub eax, ebx
cmp eax, 0x12b
ja 0x4016a9
mov ebx, dword [0x403024]
mov esi, 0x403030
mov dword [esp], ebx
call sub.msvcrt.dll_malloc
mov ecx, ebx
mov edi, eax
mov dword [ebp - 0x3c], eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 8], 0x403028
call fcn.00401519
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 8], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sub.msvcrt.dll_free
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401a50
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402770
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402770
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x401ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x44739c]
test esi, esi
jle 0x401bc0
mov edi, dword [0x4473a0]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401ae4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401b65
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x401ad0
mov dword [esp], eax
mov ebx, eax
call fcn.00402420
mov edi, eax
test eax, eax
je 0x401be7
mov eax, dword [0x4473a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402530
mov edx, dword [0x4473a0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401bc7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401b5e
sub eax, 4
and eax, 0xfffffffb
jne 0x401b6c
add dword [0x44739c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4473a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401b5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401a50
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401aee
mov eax, dword [0x4473a0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401a50
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401a50
lea esi, [esi]
nop

Function at 0x402070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4473b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4473b0]
sub esp, 4
test ebx, ebx
je 0x4020c5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4020be
test esi, esi
je 0x4020be
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020a0
mov dword [esp], 0x4473b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret