joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c9cf0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x614b58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x782f08
lea ecx, [esp + 0x2c]
call fcn.005bdb10
mov eax, dword [ebx + 0x14]
sub eax, dword [ebx + 0x10]
xor ebp, ebp
sar eax, 2
mov dword [esp + 0x50], ebp
test eax, eax
ja 0x5c9d47
push ebp
push 0xf8
push str..SourceFileSystem_r3dFileSystem.cpp
push str.IsValid__
call fcn.005bb000
add esp, 0x10
cmp dword [esp + 0x58], ebp
jne 0x5c9d65
push ebp
push 0xf9
push str..SourceFileSystem_r3dFileSystem.cpp
push 0x69be84
call fcn.005bb000
add esp, 0x10
mov esi, dword [ebx + 0x14]
sub esi, dword [ebx + 0x10]
push 1
sar esi, 2
imul esi, esi, 0x128
lea ecx, [esi + 1]
push ecx
mov dword [esp + 0x34], 0x6c667261
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], esi
call fcn.005bcc50
mov edx, dword [ebx + 0x14]
sub edx, dword [ebx + 0x10]
add esp, 8
sar edx, 2
mov edi, eax
mov dword [esp + 0x24], edi
test edx, edx
jbe 0x5c9df1
mov dword [esp + 0x14], edi
lea ecx, [ecx]
mov eax, dword [ebx + 0x14]
sub eax, dword [ebx + 0x10]
sar eax, 2
cmp ebp, eax
jb 0x5c9dc2
call fcn.005e5343
mov edx, dword [ebx + 0x10]
mov esi, dword [edx + ebp*4]
mov edi, dword [esp + 0x14]
add dword [esp + 0x14], 0x128
mov ecx, 0x4a
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x14]
sub eax, dword [ebx + 0x10]
inc ebp
sar eax, 2
cmp ebp, eax
jb 0x5c9db0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x13]
call fcn.005bc940
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
push edi
lea ecx, [esp + 0x23]
call fcn.005bc750
test eax, eax
jne 0x5c9e20
push str.failed_to_compres_file_list_n
call fcn.005baec0
add esp, 4
mov eax, dword [ebx + 0x14]
sub eax, dword [ebx + 0x10]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x18]
sar eax, 2
push esi
push edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x4c], edx
call fcn.005bc720
mov esi, dword [esp + 0x60]
push esi
push 8
mov dword [esp + 0x50], eax
lea eax, [esp + 0x3c]
push 1
push eax
call fcn.005e5c6c
push esi
push 0x14
lea ecx, [esp + 0x54]
push 1
push ecx
call fcn.005e5c6c
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
push esi
push 1
push edx
push eax
call fcn.005e5c6c
push edi
call fcn.005bccb0
mov ecx, dword [esp + 0x58]
push ecx
call fcn.005bccb0
add esp, 0x40
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], 0xffffffff
call fcn.00454310
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 4
Function at 0x5ca050
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x614b7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
push edi
mov esi, ecx
push 0x782f08
lea ecx, [esp + 0xc]
call fcn.005bdb10
mov edi, dword [esp + 0x128]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x12c], 0
call fcn.005c9510
mov edx, dword [esp + 0x12c]
push edi
push edx
lea eax, [esp + 0x1c]
push 0x619f24
push eax
call fcn.004530f0
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
lea edx, [esp + 0x14]
push 0x617ef0
push edx
call fcn.005e549e
mov esi, eax
add esp, 8
test esi, esi
jne 0x5ca113
mov eax, dword [esp + 0xc]
push eax
call fcn.005bccb0
lea ecx, [esp + 0x18]
push ecx
push str.r3dFS:_unable_to_open__s_for_writing_n
call fcn.005bacf0
add esp, 0xc
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0xffffffff
call fcn.00454310
xor al, al
jmp 0x5ca14a
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
push esi
push edx
push 1
push edi
call fcn.005e5c6c
push esi
call fcn.005e4765
push edi
call fcn.005bccb0
add esp, 0x18
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0xffffffff
call fcn.00454310
mov al, 1
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret 8
Function at 0x5cf2c0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x614e6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
mov ebx, ecx
push 0x782f08
lea ecx, [esp + 0xc]
call fcn.005bdb10
push 0
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
mov dword [esp + 0x120], 0
call fcn.005c8e60
lea ecx, [esp + 0xc]
push 0x699c30
push ecx
call fcn.005e549e
mov esi, eax
add esp, 8
test esi, esi
jne 0x5cf35d
lea edx, [esp + 0xc]
push edx
push str.r3dFS:_there_is_no_volume_file__s_n
call fcn.005bacf0
add esp, 8
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call fcn.00454310
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
push ebp
push edi
push 2
push 0
push esi
call fcn.005e98d7
push esi
call fcn.005e9b11
push 0
push 0
push esi
mov edi, eax
call fcn.005e98d7
lea eax, [edi + 1]
push 1
push eax
call fcn.005bcc50
push esi
push 1
mov ebp, eax
push edi
push ebp
call fcn.005e9e87
push esi
call fcn.005e4765
add esp, 0x38
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
lea ecx, [ebx + 0x104]
call fcn.005cefd0
push ebp
mov bl, al
call fcn.005bccb0
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.00454310
mov ecx, dword [esp + 0x118]
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x5d6ab0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
push esi
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x5d6ad1
xor eax, eax
pop esi
add esp, 0x224
ret
push edi
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x224
xor edi, edi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x5d6b2b
jmp 0x5d6af0
lea ecx, [esp + 0x28]
push str..exe
push ecx
call fcn.005d8200
add esp, 8
test eax, eax
jne 0x5d6b27
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x5d6af0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret
mov edi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret

Function at 0x5d89e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x615078
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jb 0x5d8ab3
push ebx
push ebp
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
lea ebx, [eax + 1]
mov dword [esp + 0x24], ebp
mov eax, bind
test ebx, ebx
js 0x5d8a2e
shr eax, 1
test ebx, eax
je 0x5d8a28
add eax, eax
push eax
lea ecx, [esp + 0x14]
call fcn.005d88c0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edi, dword [esp + 0x10]
push eax
push ecx
push edi
call fcn.005d8880
mov eax, dword [esi + 4]
lea edx, [eax + eax*2]
lea eax, [edi + edx*8]
add esp, 0xc
cmp eax, ebp
je 0x5d8a7b
mov ecx, dword [esp + 0x2c]
movq xmm0, qword [ecx]
movq qword [eax], xmm0
movq xmm0, qword [ecx + 8]
movq qword [eax + 8], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
push 1
mov dword [esi], edi
push 1
mov dword [esi + 4], ebx
push eax
mov dword [esi + 8], ecx
mov dword [esp + 0x30], 0xffffffff
call fcn.005bcc10
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov ecx, dword [esi]
lea edx, [eax + eax*2]
lea ecx, [ecx + edx*8]
inc eax
mov dword [esi + 4], eax
test ecx, ecx
je 0x5d8ae3
mov eax, dword [esp + 0x20]
movq xmm0, qword [eax]
movq qword [ecx], xmm0
movq xmm0, qword [eax + 8]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x5ddcc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x5ddcf4
mov cl, byte [edx]
test cl, cl
je 0x5ddcf4
mov eax, 0x811c9dc5
movsx ecx, cl
or ecx, 0x20
xor ecx, eax
imul ecx, ecx, 0x1000193
inc edx
mov eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x5ddcd3
xor eax, 0x2a
imul eax, eax, 0x1000193
ret
xor eax, eax
ret
Function at 0x5e425b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6f1330]
jne 0x5e4265
repz ret
jmp fcn.005f077c

Function at 0x5e43db
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5e440c
call fcn.005eaea2
mov dword [eax], esi
call fcn.005eae8f
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005e531d
add esp, 0x14
push 0x16
pop eax
jmp 0x5e4461
test dword [ebp + 0xc], 0xfffffff9
jne 0x5e43e8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5e4439
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005eaeb5
pop ecx
call fcn.005eae8f
mov eax, dword [eax]
jmp 0x5e4461
test al, 0x10
jne 0x5e445f
test al, 1
je 0x5e445f
test byte [ebp + 0xc], 2
je 0x5e445f
call fcn.005eaea2
mov dword [eax], 5
call fcn.005eae8f
mov dword [eax], 0xd
jmp 0x5e4430
xor eax, eax
pop esi
pop ebp
ret

Function at 0x5f975c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.005f00b9
and dword [ebp - 4], 0
cmp dword [0x79ede8], 0
mov ebx, eax
jne 0x5f980d
push 0x6b0d6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5f98be
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6b0d60
push edi
call esi
test eax, eax
je 0x5f98be
push eax
call fcn.005f0047
mov dword [esp], 0x6b0d50
push edi
mov dword [0x79ede8], eax
call esi
push eax
call fcn.005f0047
mov dword [esp], 0x6b0d3c
push edi
mov dword [0x79edec], eax
call esi
push eax
call fcn.005f0047
mov dword [esp], 0x6b0d20
push edi
mov dword [0x79edf0], eax
call esi
push eax
call fcn.005f0047
pop ecx
mov dword [0x79edf8], eax
test eax, eax
je 0x5f980d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005f0047
pop ecx
mov dword [0x79edf4], eax
mov eax, dword [0x79edf4]
cmp eax, ebx
je 0x5f9865
cmp dword [0x79edf8], ebx
je 0x5f9865
push eax
call fcn.005f00c2
push dword [0x79edf8]
mov esi, eax
call fcn.005f00c2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5f9865
test edi, edi
je 0x5f9865
call esi
test eax, eax
je 0x5f985c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5f985c
test byte [ebp - 0xc], 1
jne 0x5f9865
or dword [ebp + 0x10], 0x200000
jmp 0x5f989e
mov eax, dword [0x79edec]
cmp eax, ebx
je 0x5f989e
push eax
call fcn.005f00c2
pop ecx
test eax, eax
je 0x5f989e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5f989e
mov eax, dword [0x79edf0]
cmp eax, ebx
je 0x5f989e
push eax
call fcn.005f00c2
pop ecx
test eax, eax
je 0x5f989e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x79ede8]
call fcn.005f00c2
pop ecx
test eax, eax
je 0x5f98be
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5f98c0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x605020
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x60509b
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
push edi
call ebp
push ebx
mov esi, eax
call fcn.00604b63
add eax, esi
add esp, 4
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x605057
pop edi
pop esi
pop ebp
ret
push esi
push edi
call ebp
mov ebp, eax
cmp word [edi + ebp*2 - 2], 0x5c
je 0x60506e
mov word [edi + ebp*2], 0x5c
add ebp, 1
push ebx
xor esi, esi
call fcn.00604b63
add esp, 4
test eax, eax
jbe 0x60509b
lea ebp, [edi + ebp*2]
mov cx, word [ebx + esi*2]
mov word [ebp], cx
push ebx
add esi, 1
add ebp, 2
call fcn.00604b63
add esp, 4
cmp esi, eax
jb 0x605080
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x401940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401959
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40196d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40198e
cmp esi, eax
jae 0x401967
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401980
cmp esi, eax
jae 0x401967
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4087d0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44a558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x45cccc]
mov eax, 0x950cb67f
imul ecx
add edx, ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebx
push esi
mov esi, dword [0x45ccd4]
push edi
mov edi, eax
mov eax, 0x1e9f4e3
imul esi
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul edx, edx, 0x84dd7
mov ebx, eax
sub ebx, edi
add ebx, edx
mov eax, 0x9baa0995
imul esi
add edx, esi
sar edx, 0x13
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0x9baa0995
imul ecx
mov eax, dword [0x45cce8]
add edx, ecx
imul eax, eax, 0x8a702
sar edx, 0x13
mov ecx, edx
add ebx, edx
mov edx, dword [0x45ccdc]
imul edx, edx, 0x8276a
shr ecx, 0x1f
add ecx, ebx
add ecx, edx
mov edx, dword [0x57304c]
add ecx, eax
mov dword [str._r_____r____], ecx
mov ecx, 0x57304c
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov ecx, dword [0x45ccd8]
mov eax, 0x10449d67
imul ecx
imul ecx, ecx, 0xd2812
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45ccd0]
mov esi, eax
mov eax, 0x60d8eff
imul edx
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, ecx
mov ecx, dword [0x45ccdc]
mov eax, 0x9baa0995
imul ecx
add edx, ecx
sar edx, 0x13
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x18], 0
sub esi, ecx
mov edx, dword [0x45ccc8]
mov eax, dword [0x45cce8]
imul edx, edx, 0x8276a
mov ebx, dword [0x45cce4]
imul eax, eax, 0x8a702
add esi, edx
mov edx, dword [esp + 0x20]
add esi, eax
lea ecx, [esp + 0x24]
push ecx
sub esi, ebx
sub esi, 0x3ef21
push edx
lea ecx, [esp + 0x14]
mov dword [0x45ccd0], esi
call fcn.00408540
mov esi, dword [0x45cccc]
mov eax, dword [0x45ccd0]
mov ecx, dword [0x45ccdc]
lea edi, [eax + esi]
imul ecx, ecx, 0x3ef21
imul edi, edi, 0x6dec5
add edi, ecx
mov ecx, dword [0x45cce4]
mov eax, 0x1e9f4e3
imul ecx
sar edx, 0xc
mov ebx, edx
add edi, edx
mov eax, 0x9baa0995
imul ecx
add edx, ecx
sar edx, 0x13
shr ebx, 0x1f
mov ecx, edx
add ebx, edi
add ebx, edx
mov eax, 0x3ecaa423
imul esi
mov esi, dword [esp + 0xc]
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45cce0]
imul edx, edx, 0xa0dd9
shr ecx, 0x1f
add ecx, ebx
sub ecx, eax
add ecx, edx
push esi
mov dword [0x45ccdc], ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebx
jg 0x4089cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41b5b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x45e640]
mov edx, dword [esp + 0x11c]
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x128], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41b6d2
lea ecx, [esp + 8]
call fcn.0041b490
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x41b6d6
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x41b680
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.0041b5b0
mov edi, eax
test edi, edi
jne 0x41b6fa
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x41b642
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x41b699
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x128]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b6b8
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042fcc1
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x41b6e1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042fcc1
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b709
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.0042fcc1
add esp, 0x118
ret 4
Function at 0x41bbe0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x41bbf2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x426e9e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x426ef1
call fcn.00447a15
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x426ef1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x426ee7
xor eax, eax
jmp 0x42700a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x426f21
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x426f21
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x427007
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x426f4e
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00426113
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x427007
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x426f97
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x426f97
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x426f91
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00426113
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x426ff7
and dword [ebp + 0xc], 0
jmp 0x426ff7
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x426ff7
push 0xc
call fcn.00441917
mov esi, eax
test esi, esi
pop ecx
je 0x426fd9
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x426fdb
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x426ff2
push dword [ebp - 8]
call fcn.0043d36a
jmp 0x426ff7
call fcn.0043d341
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x426f5c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43022d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43024d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043248c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x430270
test byte [esp + 8], 2
je 0x430270
call fcn.0043247a
mov dword [eax], 0xd
call fcn.00432483
mov dword [eax], 5
jmp 0x430249
xor eax, eax
ret
Function at 0x430337
Capabilities:
Terminate process

Disassembly:
push 8
push 0x450738
call fcn.004322f8
push 8
call fcn.00434531
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x572b3c], esi
jne 0x43036b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x572b38], esi
mov al, byte [ebp + 0x10]
mov byte [0x572b34], al
cmp dword [ebp + 0xc], edi
jne 0x4303b5
cmp dword [0x57442c], edi
je 0x4303a5
mov eax, dword [0x574428]
sub eax, 4
mov dword [0x574428], eax
cmp eax, dword [0x57442c]
jb 0x4303a5
mov eax, dword [eax]
cmp eax, edi
je 0x430386
call eax
jmp 0x430386
push 0x4590cc
mov eax, 0x4590c4
call fcn.004302b5
pop ecx
push 0x4590d8
mov eax, 0x4590d0
call fcn.004302b5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4303e6
cmp dword [ebp + 0x10], edi
jne 0x4303f4
mov dword [0x572b3c], esi
push dword [ebp + 8]
call fcn.00430273
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4303f3
push 8
call fcn.0043447c
pop ecx
ret
call fcn.00432333
ret

Function at 0x430667
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00430500
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x430702
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x572afc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x430702
cmp eax, 1
je 0x430723
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x430702
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4306cf
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4306fe
xor eax, eax
inc eax
jmp 0x430742
cmp edi, eax
jae 0x430706
xor eax, eax
jmp 0x430742
cmp eax, esi
jae 0x43070d
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x572afc]
jmp 0x430726
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret