joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a990
Capabilities:
Check os version
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e094e
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x51c240]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x334], esi
mov dword [ebp - 0x338], esi
call fcn.00402e80
mov ecx, eax
test ecx, ecx
je 0x40aace
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00488360
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.LdsDumpUper
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40aa50
sub eax, edx
lea ecx, [esi + 4]
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00403da0
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x330]
mov byte [esi], 0
push eax
mov dword [ebp - 0x330], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40aab1
cmp dword [ebp - 0x320], 2
jne 0x40aab1
cmp dword [ebp - 0x32c], 6
jb 0x40aab1
mov byte [esi], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044db73
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402bc0
int3
Function at 0x40b520
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.0044df00
mov eax, dword [0x51c240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.00488360
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x40b612
test edi, edi
je 0x40b612
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40b612
cmp eax, 0x3fff
ja 0x40b612
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40b612
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x4ee59c
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40b612
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push 0
push edi
call fcn.00488360
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044db73
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0044db73
mov esp, ebp
pop ebp
ret
Function at 0x40f750
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0eb6
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x51c240]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x47c], ecx
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x474], ebx
jle 0x40f95b
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00488360
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
add esp, 0xc
push dword [ebx]
push eax
call esi
push 0x4ef218
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f955
test esi, esi
je 0x40f955
mov ebx, dword [ebp + 0x14]
nop dword [eax]
nop word [eax + eax]
cmp word [ebp - 0x43c], 0x2e
mov ax, word [ebp - 0x43a]
jne 0x40f82a
test ax, ax
je 0x40f936
cmp ax, 0x2e
jne 0x40f83e
cmp word [ebp - 0x438], 0
je 0x40f936
push 0x4ee59c
push dword [ebp - 0x474]
lea eax, [ebp - 0x478]
push eax
call fcn.0040ea30
lea ecx, [ebp - 0x43c]
mov dword [ebp - 4], 0
push ecx
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.0040ea30
add esp, 0x18
mov edx, dword [ebp - 0x478]
or eax, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f895
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test byte [ebp - 0x468], 0x10
je 0x40f8c3
test bl, bl
je 0x40f911
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x47c]
dec eax
push eax
push ebx
push edi
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x470]
call fcn.0040f750
jmp 0x40f911
mov ecx, dword [edi]
lea eax, [ebp - 0x43c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f8f6
test dx, dx
je 0x40f8f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f8f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f8d0
xor eax, eax
jmp 0x40f8fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f911
mov ecx, dword [ebp - 0x470]
lea eax, [ebp - 0x46c]
push eax
call fcn.0041bc70
mov edx, dword [ebp - 0x46c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f936
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x468]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f810
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40f95b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044db73
mov esp, ebp
pop ebp
ret 0x14
Function at 0x411cc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e11c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x51c240]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
call fcn.0040b860
push 0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.00452140
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x411d10
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.00402560
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x411d4e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411d44
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411da1
push edx
push ecx
call fcn.0044d755
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x411d83
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411d83
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x411d83
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044db73
mov esp, ebp
pop ebp
ret 8
call fcn.004928c6
int3
Function at 0x411dc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1211
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x51c240]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
lea eax, [ebp - 0x344]
push eax
call fcn.00411cc0
push 0x208
lea eax, [ebp - 0x318]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00488360
add esp, 0xc
lea eax, [ebp - 0x318]
push dword [ebp - 0x344]
push 0x104
push eax
push 0x4ee708
push str.restart_time
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
call fcn.004a865a
mov dword [ebp - 0x34c], eax
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x348], edx
push eax
call fcn.004a84a8
add esp, 0xc
test eax, eax
jne 0x411fc0
lea eax, [ebp - 0x33c]
push eax
push 0x4ef5b0
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.004b8a69
add esp, 0x10
test eax, eax
jne 0x411e9c
mov word [ebp - 0x110], ax
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x411fca
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x340], eax
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x411edb
movzx eax, ax
lea ecx, [ebp - 0x340]
push eax
call fcn.00403ab0
jmp 0x411f06
lea ecx, [ebp - 0x110]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411ee4
sub ecx, edx
lea eax, [ebp - 0x110]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x340]
call fcn.00403da0
lea eax, [ebp - 0x340]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x104]
call fcn.00404820
mov edx, dword [ebp - 0x340]
or esi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411f40
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x104]
lea ecx, [ebp - 0x318]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411f76
test dx, dx
je 0x411f72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411f76
add eax, 4
add ecx, 4
test dx, dx
jne 0x411f50
xor eax, eax
jmp 0x411f7b
sbb eax, eax
or eax, 1
test eax, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x344]
sete bl
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x411fa2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044db73
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
int3
Function at 0x413900
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1558
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x51c240]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0x1c], 0
jne 0x413af5
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x413990
mov dword [esi + 0x24], eax
call fcn.0040fa50
test eax, eax
je 0x413954
call fcn.0041b830
lea ecx, [esi + 0x28]
call fcn.00419ff0
test eax, eax
jne 0x413966
push 0
push 0
push 0x1419
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp dword [esi + 0x24], 0
je 0x413af5
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x113
jne 0x413a30
push 1
lea eax, [ebp + 0x1c]
mov dword [esi + 0x24], 1
push eax
call fcn.00411cc0
cmp dword [ebp + 0x10], 0x65
mov dword [ebp - 4], 0
jne 0x413a05
push 0x65
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0
push 0
push 1
push 0
push 0
push dword [esi + 0x100]
call fcn.00466250
add esp, 0x1c
push dword [ebp + 0x1c]
push dword [esi + 0x104]
push str.restart_time
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0
push 0
push 0x10
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebp + 0x1c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413966
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x413966
cmp eax, 0x10
jne 0x413a62
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x24], 1
cmp dword [eax - 0xc], 0
je 0x413a4c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x413966
cmp eax, 0x1417
jne 0x413adb
cmp dword [ebp + 0x10], 0
jne 0x413abb
mov eax, dword [esi + 0x60]
cmp dword [eax - 0xc], 0
je 0x413a7f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.00411cc0
push dword [ebp + 0x10]
push dword [esi + 0x64]
push str.dumpver
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413abb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 0x1419
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
jmp 0x413979
cmp eax, 0x1419
jne 0x413af5
call fcn.004131e0
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
jmp 0x413979
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4143e0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov byte [esi + 0x68], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x414421
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.00416c90
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x414fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x51c240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x415081
cmp byte [esi + 0x3d], 0
je 0x415081
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x415037
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x415049
sub eax, 1
je 0x41504d
sub eax, 2
je 0x415081
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044db73
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41506a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004b9044
add esp, 0x10
cmp edi, eax
jne 0x415037
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044db73
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0044db73
mov esp, ebp
pop ebp
ret
Function at 0x419ff0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
call fcn.004198e0
test eax, eax
je 0x41a004
mov ecx, esi
pop esi
jmp fcn.0041a010
xor eax, eax
pop esi
ret
Function at 0x41bc70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2090
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x51c240]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi], 0
mov esi, dword [ebp + 8]
je 0x41bd01
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x41bd01
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41bd01
push 0x4ee708
lea ecx, [ebp - 0x40]
call fcn.0041bb10
push dword [esi]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0041bb10
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push eax
push dword [edi]
call fcn.0047cc10
add esp, 0xc
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00406560
lea ecx, [ebp - 0x40]
call fcn.00406560
mov eax, esi
jmp 0x41bd03
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044db73
mov esp, ebp
pop ebp
ret 4
Function at 0x420240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e27d1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x51c240]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [edi], 0
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x4203d4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420395
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push eax
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420387
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x420395
add eax, 0x10
push 0x51edbc
push eax
mov dword [ebp - 0x20], eax
call fcn.0044def2
mov esi, eax
add esp, 8
test esi, esi
je 0x420395
push dword [ebp - 0x20]
push 0
push esi
call fcn.00488360
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42034a
push esi
call fcn.0044d76c
add esp, 4
jmp 0x420395
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420350
sub ecx, edx
sar ecx, 1
je 0x42037e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420366
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00403da0
push esi
call fcn.0044d76c
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x420395
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4203b4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044db73
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00402bc0
int3
Function at 0x4203e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x51c240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, edi
mov dword [ebp - 0xc], eax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x420404
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x420466
lea eax, [esi*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 8]
inc ebx
test eax, eax
je 0x420466
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x420481
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044db73
mov esp, ebp
pop ebp
ret 0x10
Function at 0x422100
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x51c240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x422151
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044db73
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x10]
je 0x42222f
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push 0
push eax
push 0x40
lea eax, [ebp - 0x58]
mov dword [ebp - 8], 0
push eax
push esi
call ebx
test eax, eax
je 0x42222f
mov eax, 0x5a4d
cmp word [ebp - 0x58], ax
jne 0x42222f
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push 0
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0xc], 0
push esi
call edi
cmp eax, 0xffffffff
je 0x42222f
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x150]
push eax
push esi
call ebx
test eax, eax
je 0x42222f
mov eax, 0x8664
cmp word [ebp - 0x14c], ax
jne 0x422249
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push dword [ebp - 0x1c]
push esi
call edi
cmp eax, 0xffffffff
je 0x42222f
push 0
lea eax, [ebp - 8]
push eax
push 0x108
lea eax, [ebp - 0x258]
push eax
push esi
call ebx
test eax, eax
je 0x42222f
mov eax, dword [ebp - 0x1b0]
test eax, eax
je 0x42222f
mov edi, dword [ebp - 0x1ac]
test edi, edi
jne 0x42225d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044db73
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x42222f
mov edi, dword [ebp - 0xb4]
test edi, edi
je 0x42222f
lea ecx, [edi + eax]
cmp ecx, dword [ebp - 0x14]
ja 0x42222f
cmp ecx, eax
jb 0x42222f
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x42222f
lea eax, [ebp - 0x259]
mov byte [ebp - 0x259], 0
push eax
mov eax, dword [ebp - 0x260]
mov ecx, eax
push eax
push edi
call fcn.00420b90
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 8]
push 0
push eax
push edi
push dword [ecx]
push esi
call ebx
test eax, eax
je 0x42222f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0044db73
mov esp, ebp
pop ebp
ret