joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bda8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00469a73
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x43bde7
sub eax, 1
je 0x43bde2
sub eax, 1
je 0x43bdde
xor eax, eax
leave
ret
push 3
jmp 0x43bde9
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x43d5bb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43d5fa
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43d5fa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43d5fa
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43d5fa
cmp dword [ecx + 0x74], 0xe
jbe 0x43d5fa
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x479baf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a4d74
push 0x4a4d6c
push str.FlsAlloc
push 0x1e
call fcn.0047987f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x479be3
push dword [ebp + 8]
mov ecx, esi
call dword [0x498170]
call esi
jmp 0x479be9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x479c2d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a4d84
push 0x4a4d7c
push str.FlsGetValue
push 0x20
call fcn.0047987f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x479c64
push dword [ebp + 8]
mov ecx, esi
call dword [0x498170]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4811ed
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4b5030]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x481238
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004815c7
test al, al
jne 0x481232
sub edx, 2
cmp edx, edi
jne 0x481218
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x48125a
lea eax, [edi + 2]
cmp edx, eax
je 0x48125a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00480eb4
add esp, 0x10
jmp 0x481354
push esi
lea ecx, [ebp - 0x255]
call fcn.004815c7
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48129d
push dword [ebp - 0x25c]
jmp 0x48124a
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4812da
cmp word [ebp - 0x226], 0
je 0x4812fb
cmp word [ebp - 0x226], ax
jne 0x4812da
cmp word [ebp - 0x224], 0
je 0x4812fb
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00480eb4
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x481347
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4812b4
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x48132f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x481354
push 0x4809d3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0048d370
add esp, 0x10
jmp 0x481324
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cb99
leave
ret
Function at 0x482699
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 0x482736
push ebx
push esi
call fcn.00482655
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.0047f877
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4826e3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x482735
push edi
push eax
call fcn.0047b07f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x482703
call fcn.0047b045
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x482734
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0047f877
add esp, 0x20
test eax, eax
jne 0x482722
push edi
call fcn.0047b045
jmp 0x48272a
push ebx
call fcn.0047b045
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 0x482739
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x48274a
pop esi
ret
push ebx
push edi
push esi
call fcn.00482655
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0047b07f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x482772
push ebx
push esi
push edi
call fcn.0043ed50
add esp, 0xc
push 0
call fcn.0047b045
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x483053
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004829e5

Function at 0x483b20
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004839f4
Function at 0x49093e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4b7da8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49097e
cmp byte [ebx], 0xa
jne 0x49097e
or byte [eax + edi + 0x28], 4
jmp 0x490983
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x490a81
mov al, byte [edx]
cmp al, 0x1a
je 0x490a63
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4909b2
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4909d7
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4909e1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x490994
jmp 0x490a81
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x490a5e
cmp dword [ebp - 0xc], 0
je 0x490a5e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4b7da8]
test byte [eax + edi + 0x28], 0x48
je 0x490a38
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x490a23
mov byte [esi], dl
jmp 0x490a34
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b7da8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x490a81
cmp byte [ebp - 1], 0xa
jne 0x490a47
cmp esi, ebx
jne 0x490a47
mov byte [esi], 0xa
jmp 0x490a80
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0048ffaa
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x490a81
mov byte [esi], 0xd
jmp 0x490a80
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4b7da8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x490a7d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x490a81
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x490a8a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4b7da8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x490acd
cmp word [esi], dx
jne 0x490acd
or byte [edi + eax + 0x28], 4
jmp 0x490ad2
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x490c25
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x490c05
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x490b14
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x490b4a
cmp eax, edx
jae 0x490b56
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x490aec
jmp 0x490c25
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x490c01
cmp dword [ebp - 0x14], 0
je 0x490c01
mov eax, dword [ebx*4 + 0x4b7da8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x490bd9
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x490ba2
mov word [esi], cx
jmp 0x490bd5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4b7da8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4b7da8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4b7da8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x490c25
pop ebx
cmp word [ebp - 4], bx
jne 0x490bea
cmp esi, dword [ebp + 0xc]
jne 0x490bea
mov word [esi], bx
jmp 0x490c22
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0048ffaa
add esp, 0x10
cmp word [ebp - 4], bx
je 0x490c25
push 0xd
jmp 0x490c1e
mov ecx, dword [ebx*4 + 0x4b7da8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x490c1c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x490c25
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x492110
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49213d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49213d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x46eb20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x463015
lea edi, [esi - 0x62015]
push edi
or ebp, 0xffffffff
jmp 0x46eb42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46eb49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46eb38
mov eax, 1
add ebx, ebx
jne 0x46eb5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46eb6c
jne 0x46eb8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46eb8b
dec eax
add ebx, ebx
jne 0x46eb78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46eb50
add ebx, ebx
jne 0x46eb87
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46ebdd
xor ecx, ecx
sub eax, 3
jb 0x46eba3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46ec12
sar eax, 1
mov ebp, eax
jmp 0x46ebae
add ebx, ebx
jne 0x46ebae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46eb7c
inc ecx
add ebx, ebx
jne 0x46ebbc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46eb7c
add ebx, ebx
jne 0x46ebc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46ebbe
jne 0x46ebda
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46ebbe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46ebfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46ebee
jmp 0x46eb3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46ebfc
add edi, ecx
jmp 0x46eb3e
pop esi
mov edi, esi
mov ecx, 0x4d7a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46ec1a
cmp byte [edi], 0xb
jne 0x46ec1a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46ec1f
lea edi, [esi + 0x6c000]
mov eax, dword [edi]
or eax, eax
je 0x46ec8e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8f2d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8f358]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46ec4c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8f360]
or eax, eax
je 0x46ec88
mov dword [ebx], eax
add ebx, 4
jmp 0x46ec69
call dword [esi + 0x8f35c]
mov ebp, dword [esi + 0x8f364]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46ecc2
sub esp, 0xffffff80
jmp 0x4373d4
Function at 0x403918
Capabilities:
Create process on windows
Resume thread
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x42e180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
xor edi, edi
push edi
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._s.bat
push eax
call fcn.00403d35
lea eax, [ebp - 0x20c]
push 0x423fb0
push eax
call fcn.00403d35
mov ebx, eax
push str.:Repeat_n
push ebx
call fcn.00408baa
lea eax, [ebp - 0x108]
push eax
mov esi, str.del___s__n
push esi
push ebx
call fcn.00408baa
lea eax, [ebp - 0x108]
push eax
push str.if_exist___s__goto_Repeat_n
push ebx
call fcn.00408baa
lea eax, [ebp - 0x20c]
push eax
push esi
push ebx
call fcn.00408baa
add esp, 0x40
push ebx
call fcn.004093c0
push 0x44
pop esi
push esi
lea eax, [ebp - 0x260]
push edi
push eax
call fcn.00407c60
add esp, 0x10
xor eax, eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x260]
push eax
push 0x42339c
push edi
push esi
push edi
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push edi
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x234], 1
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x403a5b
mov esi, dword [sym.imp.kernel32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push dword [ebp - 0x218]
call esi
push 0xf
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call esi
push 0x80
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_SetPriorityClass]
push dword [ebp - 0x21c]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [ebp - 0x218]
call dword [sym.imp.kernel32.dll_ResumeThread]
push dword [ebp - 0x218]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407e15
leave
ret

Function at 0x403a6a
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 8]
call fcn.00403d35
push 0x5b
push eax
mov dword [ebp - 8], eax
call fcn.00407830
mov edi, eax
xor ebx, ebx
add esp, 0xc
cmp edi, ebx
je 0x403b2b
push esi
inc edi
push 0x5d
push edi
call fcn.00407830
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x403b2a
mov byte [esi], bl
inc esi
push 0xa
push esi
call fcn.00407830
pop ecx
pop ecx
cmp eax, ebx
je 0x403abc
mov byte [eax], bl
lea eax, [ebp - 4]
push eax
push 0x20006
push ebx
push edi
push dword [section..data]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403aef
push ebx
push str.Could_not_open_key
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403b21
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, ebx
je 0x403b18
cmp eax, 2
je 0x403b18
push ebx
push str.Could_not_delete_key
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call fcn.00403d35
pop ecx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x403b2f
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 8]
call fcn.00403d35
push 0x5b
push eax
mov dword [ebp - 8], eax
call fcn.00407830
mov edi, eax
xor ebx, ebx
add esp, 0xc
cmp edi, ebx
je 0x403bf0
push esi
inc edi
push 0x5d
push edi
call fcn.00407830
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x403bef
mov byte [esi], bl
inc esi
push 0x3d
push esi
call fcn.00407830
pop ecx
pop ecx
cmp eax, ebx
je 0x403bef
mov byte [eax], bl
lea eax, [ebp - 4]
push eax
push 0x20006
push ebx
push edi
push dword [section..data]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403bb4
push ebx
push str.Could_not_open_key
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403be6
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x403bdd
cmp eax, 2
je 0x403bdd
push ebx
push str.Could_not_delete_value
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call fcn.00403d35
pop ecx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x403d35
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x403d44
pop dword [ebp - 0x24]
mov eax, 0x11d051e9
sub eax, 0x119014a5
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xa82e1cab
sub dword [ebp - 0x34], 0x59dbd760
mov dword [ebp - 0x30], 0x81e20170
sub dword [ebp - 0x30], 0x4faeb52b
mov dword [ebp - 0x2c], 0x552be18
sub dword [ebp - 0x2c], 0xb90679ea
mov dword [ebp - 0x28], 0x700de7b9
add dword [ebp - 0x28], 0x8ff21847
lea eax, [ebp - 0x34]
push eax
mov eax, 0x88016d20
sub eax, 0x87bf3cac
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x387d0176
sub dword [ebp - 0x34], 0xc40a9820
mov dword [ebp - 0x30], 0x79999eaa
sub dword [ebp - 0x30], 0x382d3d35
mov dword [ebp - 0x2c], 0xb2045f68
add dword [ebp - 0x2c], 0xb16b0d04
mov dword [ebp - 0x28], 0x3b234009
add dword [ebp - 0x28], 0xc4dcbff7
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3bacf
push 0
call eax
mov ecx, 0x3f32
xor edi, edi
add edi, eax
mov edx, 0x434400
add edx, dword [ebp - 0x24]
mov esi, 0x9a6c0edd
sub esi, 0x2977e90b
xor dword [ebp - 8], esi
mov ebx, dword [edx]
sub dword [ebp - 4], 0x2a1b3223
sub ebx, esi
sub dword [ebp - 0x14], ecx
mov dword [edi], ebx
sub dword [ebp - 4], 0x5d2151af
add edi, 0xe1e6c948
sub edi, 0xe1e6c944
add edx, 4
loop 0x403e57
add eax, 0x192fa692
add eax, 0xe6d14909
xor ebx, ebx
add ebx, eax
add eax, 0x82d7dd61
sub eax, 0x82d7dd5c
mov ecx, 0xb9af74a1
add ecx, 0x46908b5f
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x406040
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42a58b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404304
call fcn.00406ca1
push 4
mov dword [esp + 0x18], 0
call fcn.00407b62
mov edi, eax
add esp, 4
test edi, edi
je 0x4060b4
push ebx
call fcn.00406b79
mov dword [edi], eax
call fcn.00406938
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406c62
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4060a8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406c8a
pop ebx
jmp 0x4060b6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4085d1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ddc0]
jne 0x4085db
repz ret
jmp fcn.0040dd3c
Function at 0x412944
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42ddc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040a94a
and dword [ebp - 0x14], 0
cmp dword [0x4303b4], 0
mov dword [ebp - 0x18], eax
jne 0x4129f7
push 0x403fa0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412a9f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403f94
push ebx
call edi
test eax, eax
je 0x412a9f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403f84
push ebx
mov dword [0x4303b4], eax
call edi
push eax
call esi
push 0x403f70
push ebx
mov dword [0x4303b8], eax
call edi
push eax
call esi
push 0x403f54
push ebx
mov dword [0x4303bc], eax
call edi
push eax
call esi
mov dword [0x4303c4], eax
test eax, eax
je 0x4129f7
push 0x403f3c
push ebx
call edi
push eax
call esi
mov dword [0x4303c0], eax
mov eax, dword [0x4303c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412a50
cmp dword [0x4303c4], ecx
je 0x412a50
push eax
call esi
push dword [0x4303c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412a50
test ebx, ebx
je 0x412a50
call edi
test eax, eax
je 0x412a47
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412a47
test byte [ebp - 8], 1
jne 0x412a50
or dword [ebp + 0x10], 0x200000
jmp 0x412a83
mov eax, dword [0x4303b8]
cmp eax, dword [ebp - 0x18]
je 0x412a83
push eax
call esi
test eax, eax
je 0x412a83
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412a83
mov eax, dword [0x4303bc]
cmp eax, dword [ebp - 0x18]
je 0x412a83
push eax
call esi
test eax, eax
je 0x412a83
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4303b4]
call esi
test eax, eax
je 0x412a9f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412aa1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085d1
leave
ret