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

Disassembly:
push 0xc
push 0x4013a8
call fcn.0041ae80
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x403d57
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x1c], eax
jmp 0x403d57
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 1
cmp dword [ebp + 0x10], 0
je 0x403d7d
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], eax
jmp 0x403d7d
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 2
cmp dword [ebp + 0xc], 0xffffffff
je 0x403da9
cmp dword [ebp + 0x14], 0
je 0x403da9
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0x1c], eax
jmp 0x403da9
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 3
cmp dword [ebp + 0xc], 0xffffffff
je 0x403de1
test byte [0x424d83], 0x20
jne 0x403dcc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], eax
jmp 0x403de1
or dword [ebp - 4], 0xffffffff
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0041aebb
ret 0x10

Function at 0x403dfa
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x4233cc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x47
mov dword [ebp - 0x12c], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x120]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x128], 0xea75
mov dword [ebp - 0x120], 0x11c
call esi
test eax, eax
jne 0x403e67
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
test eax, eax
je 0x403f6a
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x110]
cmp eax, 2
mov dword [ebp - 0x154], eax
jne 0x403eae
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x128], 0xea74
jmp 0x403eb5
movzx eax, word [ebp - 0x114]
mov dword [ebp - 0x15c], eax
movzx eax, word [ebp - 0xc]
mov dword [ebp - 0x150], eax
movzx eax, word [ebp - 0xa]
mov dword [ebp - 0x14c], eax
movzx eax, word [ebp - 8]
mov dword [ebp - 0x148], eax
movzx eax, byte [ebp - 6]
push ebx
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x164]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x124]
push eax
push ebx
push dword [ebp - 0x128]
mov dword [ebp - 0x140], 0x402f10
push dword [0x424d5c]
push 0x2900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x403f69
cmp dword [ebp - 0x124], ebx
je 0x403f69
push ebx
push dword [ebp - 0x124]
call fcn.0041a19c
mov esi, eax
cmp esi, ebx
je 0x403f5d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403f38
push ebx
lea ecx, [ebp - 0x130]
push ecx
sub eax, edx
push eax
push esi
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.0041a0e7
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.00419805
leave
ret 4
Function at 0x403f7d
Capabilities:
Get file size

Disassembly:
push 0x24
push 0x4013d8
call fcn.0041ae80
or dword [ebp - 0x28], 0xffffffff
xor esi, esi
mov dword [ebp - 0x24], esi
xor edi, edi
inc edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], 0x57
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
or dword [eax], 0xffffffff
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
push esi
push esi
push 4
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp ebx, 0xffffffff
jne 0x404014
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp eax, 0x20
jne 0x40408c
cmp dword [ebp - 0x20], 0x2710
jae 0x40408c
cmp edi, 0x3e8
jae 0x404005
add edi, edi
mov dword [ebp - 0x34], edi
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [ebp - 0x20], edi
cmp ebx, 0xffffffff
je 0x403fba
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x30], edi
cmp edi, esi
jne 0x404038
push ebx
call fcn.00403dfa
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x30], edi
push esi
mov eax, dword [ebp + 0x1c]
add eax, edi
push eax
push esi
push 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x404083
push esi
push esi
push esi
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x2c], eax
cmp eax, esi
je 0x404083
mov ecx, dword [ebp + 0xc]
mov dword [ecx], ebx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edi
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov dword [ebp - 0x1c], esi
jmp 0x40408c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
jmp 0x4040a2
cmp dword [ebp - 0x1c], esi
je 0x4040b4
push esi
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x2c]
call fcn.00403d2c
mov eax, dword [ebp - 0x1c]
call fcn.0041aebb
ret 0x18
Function at 0x405f6e
Capabilities:
Copy file
Delete file
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x4233cc]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push ebx
push esi
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x25c], ecx
je 0x405fa4
mov dword [ecx], ebx
cmp edx, ebx
je 0x405fb2
mov esi, dword [edx]
mov dword [ebp - 0x258], eax
jmp 0x405fe2
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x258]
push ecx
push eax
call fcn.00405df7
cmp eax, ebx
jne 0x4060eb
mov esi, dword [ebp - 0x264]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esi, ebx
je 0x406042
dec esi
je 0x40603a
dec esi
je 0x406007
push 0x57
pop esi
jmp 0x4060d6
push 1
lea eax, [ebp - 0x294]
push eax
push 0x405d22
push ebx
push dword [ebp - 0x258]
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x290], edi
mov dword [ebp - 0x28c], ebx
call fcn.00406921
mov esi, eax
jmp 0x4060d6
xor esi, esi
inc esi
jmp 0x4060d6
cmp dword [ebp + 0x14], ebx
je 0x406056
push edi
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x406058
xor eax, eax
cmp eax, ebx
je 0x406070
mov eax, dword [ebp - 0x25c]
xor esi, esi
cmp eax, ebx
je 0x4060d6
mov dword [eax], 1
jmp 0x4060d6
push ebx
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x258]
call fcn.0040cb8b
mov esi, eax
cmp esi, ebx
jne 0x4060d6
push ebx
push edi
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4060ad
xor esi, esi
jmp 0x4060b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jne 0x4060d6
push 1
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x270]
push eax
push edi
call fcn.0040cb8b
cmp dword [ebp - 0x260], ebx
jne 0x4060e9
push dword [ebp - 0x258]
call fcn.0041a0e7
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00419805
leave
ret 0x14
Function at 0x406921
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
call fcn.004070ae
xor edi, edi
cmp eax, edi
jne 0x40693c
push 8
pop ebx
jmp 0x406a34
push esi
lea esi, [eax + 8]
cmp dword [esi], edi
je 0x40694c
xor ebx, ebx
inc ebx
jmp 0x406a33
mov ebx, dword [ebp + 8]
push ebx
mov dword [esi], 1
call fcn.0041a3b2
push eax
call fcn.0040cd80
push ebx
mov dword [ebp + 8], eax
call fcn.0040ceee
cmp dword [ebp + 8], edi
mov dword [ebp - 4], eax
je 0x406a14
cmp eax, edi
je 0x406a14
mov ecx, dword [ebp + 0x10]
push edi
push edi
push 0x4064d3
push edi
push eax
push dword [ebp + 8]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp + 0x18]
push dword [esi + 4]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x2c], edi
mov word [esi + 0x30], di
mov dword [esi + 0x28], edi
call fcn.0041c0f4
add esp, 0x1c
test eax, eax
je 0x4069bf
xor ebx, ebx
jmp 0x406a17
mov eax, dword [esi + 8]
sub eax, edi
je 0x4069eb
dec eax
je 0x406a10
sub eax, 3
je 0x4069e4
dec eax
je 0x4069e0
sub eax, 3
je 0x4069db
sub eax, 3
jne 0x4069eb
mov ebx, dword [esi + 0x14]
jmp 0x4069ee
push 8
jmp 0x4069ed
mov ebx, dword [esi + 0x14]
cmp ebx, edi
jne 0x4069ee
push 0xd
pop ebx
mov eax, dword [esi + 0x28]
cmp eax, edi
je 0x406a17
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push esi
call fcn.004061b1
push dword [esi + 0x28]
call fcn.0041a0e7
mov dword [esi + 0x28], edi
jmp 0x406a17
push 2
jmp 0x4069ed
push 8
pop ebx
cmp dword [ebp + 8], edi
je 0x406a24
push dword [ebp + 8]
call fcn.0041a0e7
cmp dword [ebp - 4], edi
je 0x406a31
push dword [ebp - 4]
call fcn.0041a0e7
mov dword [esi], edi
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 0x14
Function at 0x40741a
Capabilities:
Allocate thread local storage

Disassembly:
push 0xc
push 0x402488
call fcn.0041ae80
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x4235f8]
cmp eax, ecx
je 0x407442
not eax
and dword [0x4235f4], eax
mov dword [0x4235f8], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov dword [0x424d5c], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [section..data], eax
cmp eax, 0xffffffff
je 0x4074ed
xor esi, esi
inc esi
or dword [0x4235f4], esi
call fcn.0041a65f
test eax, eax
je 0x4074ed
or dword [0x4235f4], 2
push esi
call fcn.00414885
test eax, eax
je 0x4074ed
or dword [0x4235f4], 4
call fcn.0040cf69
test eax, eax
je 0x40749b
or dword [0x4235f4], 0x10
call fcn.00419759
or dword [0x4235f4], 0x20
push esi
call fcn.004070df
test eax, eax
je 0x4074ed
or dword [0x4235f4], 0x40
push esi
call fcn.004064a5
test eax, eax
je 0x4074ed
or byte [0x4235f4], 0x80
push esi
call fcn.00404a5f
test eax, eax
je 0x4074ed
or byte [0x4235f5], 1
or byte [0x4235f7], 8
mov dword [ebp - 0x1c], esi
jmp 0x4074ed
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
call fcn.0041aebb
ret 0xc

Function at 0x4093ec
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x424c50], 2
je 0x409400
xor eax, eax
inc eax
jmp 0x409472
push esi
push edi
lea eax, [ebp - 4]
push eax
push 2
xor edi, edi
push edi
push 0x4025f8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x40945a
xor eax, eax
cmp dword [ebp + 8], edi
push 4
setne al
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push edi
push 0x4025cc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x409469
push esi
push 0x402588
jmp 0x409460
push esi
push 0x402548
push edi
call fcn.0041a727
add esp, 0xc
xor eax, eax
cmp esi, edi
pop edi
sete al
pop esi
leave
ret 4
Function at 0x40b8dc
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [ebp + 8]
xor edi, edi
push edi
push edi
push edi
mov dword [esi + 8], eax
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp dword [esi + 0x34], edi
je 0x40b90c
xor eax, eax
inc eax
jmp 0x40b93a
push esi
push edi
push 0x40b832
call dword [sym.imp.msvcrt.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
je 0x40b930
push esi
call fcn.0040a86e
test eax, eax
je 0x40b930
cmp dword [esi + 0x48], edi
je 0x40b907
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x40c864
Capabilities:
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 7
push 0x10000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c8ab
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40c8bb
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x40cb8b
Capabilities:
Timestomp file

Disassembly:
push 0x14
push 0x402760
call fcn.0041ae80
or dword [ebp - 0x20], 0xffffffff
xor edi, edi
mov dword [ebp - 4], edi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
push edi
push edi
push 3
push edi
push 3
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0xc0000000
add eax, 0x80000000
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
je 0x40cbd9
xor eax, eax
jmp 0x40cbde
call fcn.0040c9c8
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x40cc39
push edi
call esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
cmp dword [ebp + 0x18], edi
je 0x40cc05
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x40cc0d
xor eax, eax
jmp 0x40cc12
call dword [sym.imp.KERNEL32.dll_GetFileTime]
jmp 0x40cbfd
call fcn.0040c9c8
mov dword [ebp - 0x1c], eax
jmp 0x40cc39
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0xffffffff
je 0x40cc4c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
call fcn.0041aebb
ret 0x14

Function at 0x40d52d
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40d568
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40d54f
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40d560
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x40d56a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x40d545
xor eax, eax
pop edi
pop esi
ret
Function at 0x415697
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4233cc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
movzx eax, word [edi]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
cmp ax, 0x41
mov dword [ebp - 0x10], eax
jb 0x415745
cmp ax, 0x5a
ja 0x415745
cmp word [edi + 2], 0x3a
jne 0x415745
mov ax, word [edi]
and word [ebp - 6], 0
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x5c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
mov dword [esi], eax
jne 0x4156ff
and dword [esi], 0
mov eax, dword [esi]
cmp eax, 2
je 0x415713
cmp eax, 5
je 0x415713
test eax, eax
je 0x415713
xor eax, eax
jmp 0x415716
xor eax, eax
inc eax
mov dword [ebx], eax
cmp dword [esi], 2
jne 0x415763
push dword [ebp - 0x10]
call fcn.004155e7
test eax, eax
je 0x41572f
mov dword [esi], 3
mov eax, dword [0x4235d0]
mov cx, word [eax]
cmp cx, word [edi]
jne 0x415763
cmp word [eax + 2], 0x3a
jne 0x415763
jmp 0x415760
cmp word [edi], 0x5c
jne 0x41575a
cmp word [edi + 2], 0x5c
jne 0x41575a
mov dword [esi], 4
jmp 0x415760
mov dword [esi], 3
and dword [ebx], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00419805
leave
ret 0xc
Function at 0x415cfe
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
jne 0x415dfc
mov eax, dword [esi + 0x28]
test ah, 0x20
je 0x415d2f
push dword [esi + 0x18]
push 0x68
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ebx, eax
jmp 0x415d84
test eax, eax
jns 0x415d3c
push 0x6a
call fcn.00418f7f
jmp 0x415d64
cmp dword [esi + 0x30], edi
je 0x415d54
cmp dword [esi + 0x14], edi
je 0x415d54
push dword [esi + 0x18]
push 0x68
call fcn.0041904f
pop ecx
pop ecx
jmp 0x415d64
push dword [esi + 0x18]
push dword [esi + 0x20]
push 0x69
call fcn.0041904f
add esp, 0xc
mov edi, eax
test edi, edi
je 0x415eba
push edi
push 0x68
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
mov ebx, eax
call fcn.0041a0e7
xor edi, edi
cmp ebx, edi
je 0x415eba
test byte [esi + 0x2b], 0x80
je 0x415dc1
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x69
push dword [esi + 8]
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x69
push dword [esi + 8]
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
cmp dword [esi + 0x30], edi
je 0x415dd9
cmp dword [esi + 0x14], edi
je 0x415dd9
push dword [esi + 0x18]
push 0x6b
call fcn.0041904f
pop ecx
pop ecx
jmp 0x415de0
push 0x6c
call fcn.00418f7f
mov edi, eax
test edi, edi
je 0x415eba
push edi
push 0x69
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
jmp 0x415eab
cmp eax, 1
jne 0x415eba
push 0x7e
call fcn.00418f7f
mov ebx, eax
cmp ebx, edi
je 0x415eba
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push ebx
push 1
push dword [esi + 8]
call edi
push ebx
mov dword [ebp + 8], eax
call fcn.0041a0e7
cmp dword [ebp + 8], 0
je 0x415eba
push dword [esi + 0x20]
push 0x6f
call fcn.0041904f
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x415eba
push ebx
push 0x68
push dword [esi + 8]
call edi
push ebx
mov dword [ebp + 8], eax
call fcn.0041a0e7
cmp dword [ebp + 8], 0
je 0x415eba
mov eax, dword [esi + 4]
cmp eax, 0x10b
je 0x415e96
cmp eax, 0x70
je 0x415e96
test byte [esi + 0x2b], 0x80
je 0x415e7e
push 0x72
call fcn.00418f7f
jmp 0x415e9c
cmp dword [esi + 0x30], 0
push dword [esi + 0x18]
je 0x415e8b
push 0x73
jmp 0x415e8d
push 0x74
call fcn.0041904f
pop ecx
pop ecx
jmp 0x415e9c
push esi
call fcn.0041597d
mov ebx, eax
test ebx, ebx
je 0x415eba
push ebx
push 0x69
push dword [esi + 8]
call edi
push ebx
mov esi, eax
call fcn.0041a0e7
test esi, esi
jne 0x415db7
xor eax, eax
jmp 0x415dba

Function at 0x416c84
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 1
push esi
call fcn.00415ac4
push esi
push 0
push 0x416c56
mov dword [esi + 0x48], 1
call dword [sym.imp.msvcrt.dll__beginthread]
xor ecx, ecx
add esp, 0xc
cmp eax, 0xffffffff
setne cl
pop esi
mov eax, ecx
pop ebp
ret 4
Function at 0x418966
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push dword [ebp + 0x14]
mov dword [ebp - 4], edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, edi
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
mov dword [ebx], ecx
jne 0x4189ea
cmp ecx, edi
jne 0x4189a4
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor eax, eax
jmp 0x4189ea
add dword [ebp - 4], 4
push dword [ebp - 4]
call fcn.0041a065
cmp eax, edi
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x4189be
push 8
pop eax
jmp 0x4189ea
push ebx
push eax
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov esi, eax
cmp esi, edi
je 0x4189de
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.0041a0e7
jmp 0x4189e8
mov ecx, dword [ebp + 0x10]
mov edi, dword [ecx]
xor eax, eax
add edi, dword [ebx]
stosd dword es:[edi], eax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x418beb
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
xor esi, esi
cmp dword [ebp + 0x18], edi
mov dword [ebp - 4], 2
jbe 0x418c28
mov eax, dword [ebp + 0x14]
push dword [eax + esi*4]
call ebx
cmp eax, edi
je 0x418c41
mov ecx, dword [ebp - 4]
inc esi
cmp esi, dword [ebp + 0x18]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 4], eax
jb 0x418c0c
push dword [ebp - 4]
call fcn.0041a065
mov esi, eax
cmp esi, edi
mov dword [ebp - 0xc], esi
jne 0x418c45
push 8
pop eax
jmp 0x418cdc
push 0xd
jmp 0x418c3b
xor eax, eax
cmp dword [ebp + 0x18], eax
jbe 0x418c73
mov eax, dword [ebp + 0x14]
push dword [eax + edi*4]
call ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
push dword [eax + edi*4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x10]
inc edi
cmp edi, dword [ebp + 0x18]
lea esi, [esi + eax*2 + 2]
jb 0x418c4c
xor eax, eax
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
mov word [esi], ax
je 0x418ca0
cmp word [ecx], ax
je 0x418ca0
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 8]
push edx
push eax
push 2
push eax
push eax
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
xor eax, eax
jmp 0x418ca8
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
xor esi, esi
cmp esi, eax
jne 0x418cd2
push dword [ebp - 4]
push dword [ebp - 0xc]
push 7
push eax
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
je 0x418cd2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.0041a0e7
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x419805
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4233cc]
jne 0x419816
test ecx, 0xffff0000
jne 0x419816
ret
jmp fcn.00419820
Function at 0x41a727
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
cmp dword [0x4239f0], 0
mov eax, dword [0x4233cc]
mov dword [ebp - 4], eax
jne 0x41a769
push 0x403468
push 0x40345c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4239ec], eax
mov dword [0x4239f0], 1
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
mov eax, dword [0x4239ec]
test eax, eax
je 0x41a79e
lea ecx, [ebp - 0x808]
push ecx
push 0x403458
push dword [ebp + 8]
push 2
call eax
add esp, 0x10
jmp 0x41a7ab
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
call fcn.00419805
leave
ret

Function at 0x41a7ba
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
je 0x41a81c
push esi
push eax
push esi
push 2
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
je 0x41a81c
push dword [edi]
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
je 0x41a80a
xor eax, eax
jmp 0x41a826
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41a824
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10