joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404630
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfb5c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x51d27c]
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 eax, ecx
mov dword [ebp - 0x220], eax
mov edi, dword [ebp + 8]
test edi, edi
je 0x40481f
cmp word [edi], 0
je 0x40481f
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x40468b
or eax, 0xffffffff
jmp 0x404821
call fcn.00404110
mov ecx, eax
test ecx, ecx
je 0x40483f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
push edi
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0
call fcn.004037f0
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.004041c0
mov edx, dword [ebp - 0x228]
add esp, 8
test eax, eax
mov byte [ebp - 4], 0
sete byte [ebp - 0x219]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404702
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x219], 0
mov esi, dword [ebp - 0x22c]
je 0x404719
or edi, 0xffffffff
jmp 0x4047ff
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048bbb0
mov eax, dword [ebp - 0x220]
add esp, 0xc
push dword [eax]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
cmp ax, word [ebp - 0x218]
jne 0x404766
xor edi, edi
jmp 0x4047ff
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.00403ea0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x224], eax
push dword [esi - 0xc]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
push esi
call fcn.00403da0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.004037f0
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0044a040
add esp, 0xc
lea ecx, [ebp - 0x220]
call fcn.00403bf0
push 0xa
push 0
push dword [ebp - 0x230]
call fcn.00498a17
add esp, 0xc
lea ecx, [ebp - 0x230]
mov edi, eax
call fcn.00403bf0
lea ecx, [ebp - 0x224]
call fcn.00403bf0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40481b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x404821
xor eax, eax
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.00458b47
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00403e50
int3
Function at 0x405170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4051c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4051c9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4051ba
cmp esi, edx
jae 0x4051c9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4051a8
cmp esi, edx
jae 0x4051c9
cmp word [esi], 0
je 0x4051c9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40cce0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x40cd49
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x40cd65
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
pop esi
test eax, eax
je 0x40cd49
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x40cd65
cmp dword [edi + 4], 0
je 0x40cd65
cmp dword [edi + 0xc], 0
je 0x40cd65
mov eax, 1
pop edi
pop ebp
ret 4
xor eax, eax
pop edi
pop ebp
ret 4
Function at 0x40d6e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e05f6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x51d27c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x40d78c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x40d78c
call fcn.0040c840
mov edi, eax
jmp 0x40d8ab
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40d7af
call fcn.0040c840
jmp 0x40d89e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40d7cd
call fcn.0040c840
jmp 0x40d89e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40d7ee
mov edi, 0x8007000e
jmp 0x40d8a0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x40d8e4
jb 0x40d80c
cmp eax, 0xffffffff
ja 0x40d8e4
cmp eax, 0x400
jbe 0x40d821
push eax
lea ecx, [ebp - 0x418]
call fcn.0040c760
jmp 0x40d847
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40d847
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x40d85e
mov edi, 0x8007000e
jmp 0x40d8a0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40d87e
call fcn.0040c840
jmp 0x40d89e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040d540
mov edi, eax
test esi, esi
je 0x40d8ab
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40d8c4
lea ecx, [ebp - 0x418]
call fcn.0040cb60
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 - 0x14]
xor ecx, ebp
call fcn.00458b47
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00403e50
int3
Function at 0x411500
Capabilities:
Check os version
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e084e
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x51d27c]
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.00404110
mov ecx, eax
test ecx, ecx
je 0x41163e
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.0048bbb0
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 0x4115c0
sub eax, edx
lea ecx, [esi + 4]
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00405030
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 0x411621
cmp dword [ebp - 0x320], 2
jne 0x411621
cmp dword [ebp - 0x32c], 6
jb 0x411621
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.00458b47
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403e50
int3
Function at 0x4121e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00458ed0
mov eax, dword [0x51d27c]
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.0048bbb0
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x4122d2
test edi, edi
je 0x4122d2
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4122d2
cmp eax, 0x3fff
ja 0x4122d2
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4122d2
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x4ee5cc
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4122d2
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push 0
push edi
call fcn.0048bbb0
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.00458b47
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00458b47
mov esp, ebp
pop ebp
ret
Function at 0x41a200
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1481
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x51d27c]
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.00419ec0
push 0x208
lea eax, [ebp - 0x318]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0048bbb0
add esp, 0xc
lea eax, [ebp - 0x318]
push dword [ebp - 0x344]
push 0x104
push eax
push 0x4ee738
push str.restart_time
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
call fcn.004ab928
mov dword [ebp - 0x34c], eax
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x348], edx
push eax
call fcn.004ab77d
add esp, 0xc
test eax, eax
jne 0x41a400
lea eax, [ebp - 0x33c]
push eax
push 0x4efe90
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.004bbe03
add esp, 0x10
test eax, eax
jne 0x41a2dc
mov word [ebp - 0x110], ax
call fcn.00419e10
mov ecx, eax
test ecx, ecx
je 0x41a40a
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 0x41a31b
movzx eax, ax
lea ecx, [ebp - 0x340]
push eax
call fcn.00404d40
jmp 0x41a346
lea ecx, [ebp - 0x110]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a324
sub ecx, edx
lea eax, [ebp - 0x110]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x340]
call fcn.00405030
lea eax, [ebp - 0x340]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x104]
call fcn.00406e40
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 0x41a380
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 0x41a3b6
test dx, dx
je 0x41a3b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41a3b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41a390
xor eax, eax
jmp 0x41a3bb
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 0x41a3e2
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.00458b47
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403e50
push 0x80004005
call fcn.00403e50
int3
Function at 0x41a6d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e154c
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x51d27c]
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 ebx, ecx
push 0
lea eax, [ebp - 0x24c]
push eax
call fcn.00419ec0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0048bbb0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp - 0x24c]
push 0x104
push eax
push 0x4ee738
push str.dumpver
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.00448b40
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41a8d1
push 0x47
push str.d:jenkins.jenkinsworkspacelib_commondumpuperdump_upermainwnd.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.00409490
push 3
push 0x4eea40
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.00409490
mov byte [ebp - 4], 2
call fcn.00448b40
mov edi, eax
lea ecx, [ebp - 0x2e4]
push 0x50
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00405ef0
mov esi, eax
push str.local__updated_ver_
push esi
mov byte [ebp - 4], 3
call fcn.00405200
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00405200
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x2e4]
call fcn.004070c0
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x41a85d
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41a853
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a92d
push edx
push ecx
call fcn.00458729
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x41a8b6
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41a8ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a932
push edx
push ecx
call fcn.00458729
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
lea eax, [ebp - 0x218]
push eax
push dword [ebx + 0x64]
call fcn.004b9e7f
mov esi, dword [ebp - 0x24c]
xor ebx, ebx
add esp, 8
mov dword [ebp - 4], 0xffffffff
test eax, eax
sete bl
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41a90f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.00458b47
mov esp, ebp
pop ebp
ret
call fcn.00496138
call fcn.00496138
int3
Function at 0x41d4a0
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 0x41d4e1
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.0041f160
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x41d770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x51d27c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x41d811
cmp byte [esi + 0x3d], 0
je 0x41d811
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x41d7c7
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 0x41d7d9
sub eax, 1
je 0x41d7dd
sub eax, 2
je 0x41d811
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458b47
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41d7fa
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004bc3ef
add esp, 0x10
cmp edi, eax
jne 0x41d7c7
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458b47
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00458b47
mov esp, ebp
pop ebp
ret
Function at 0x422ad0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
call fcn.00421df0
test eax, eax
je 0x422ae4
mov ecx, esi
pop esi
jmp fcn.00422af0
xor eax, eax
pop esi
ret
Function at 0x424a80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2590
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x51d27c]
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 0x424b11
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x424b11
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x424b11
push 0x4ee738
lea ecx, [ebp - 0x40]
call fcn.0040b500
push dword [esi]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0040b500
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push eax
push dword [edi]
call fcn.00480470
add esp, 0xc
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00406960
lea ecx, [ebp - 0x40]
call fcn.00406960
mov eax, esi
jmp 0x424b13
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.00458b47
mov esp, ebp
pop ebp
ret 4
Function at 0x429190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2cd1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x51d27c]
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.00419e10
mov ecx, eax
test ecx, ecx
je 0x429324
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 0x4292e5
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 0x4292d7
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4292e5
add eax, 0x10
push 0x51ff1a
push eax
mov dword [ebp - 0x20], eax
call fcn.00458ec6
mov esi, eax
add esp, 8
test esi, esi
je 0x4292e5
push dword [ebp - 0x20]
push 0
push esi
call fcn.0048bbb0
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 0x42929a
push esi
call fcn.00458740
add esp, 4
jmp 0x4292e5
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4292a0
sub ecx, edx
sar ecx, 1
je 0x4292ce
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4292b6
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00405030
push esi
call fcn.00458740
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4292e5
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 0x429304
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.00458b47
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00403e50
int3
Function at 0x429330
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x51d27c]
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 0x429354
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 0x4293b6
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 0x4293b6
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 0x4293d1
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.00458b47
mov esp, ebp
pop ebp
ret 0x10