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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426d87
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4322c8]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x4322c8]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40c6ff
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0040fca4
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, edi
je 0x40c727
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x40c727
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x40c6df
mov eax, dword [esi + 0x4c]
cmp eax, edi
jne 0x40c733
or eax, 0xffffffff
jmp 0x40c6df
cmp dword [esi + 0x3c], edi
jne 0x40c747
push eax
push ebx
call fcn.0040c3e6
pop ecx
pop ecx
test al, al
je 0x40c72e
jmp 0x40c723
push edi
push 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x18], bl
call fcn.00409de8
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x74], edi
call fcn.00403271
mov ecx, eax
call fcn.00405ca7
mov edi, dword [esp + 0x58]
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.00403271
mov ecx, eax
call fcn.00405ca7
lea edx, [esp + 0x18]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x40c857
cmp eax, 1
jg 0x40c87f
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
call fcn.00403271
mov ecx, eax
call fcn.00405ca7
mov edi, dword [esp + 0x18]
sub edi, eax
je 0x40c7ec
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
call fcn.00403271
mov ecx, eax
call fcn.00405ca7
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00413395
add esp, 0x10
cmp edi, eax
jne 0x40c896
lea eax, [esp + 0x10]
mov byte [esi + 0x41], 1
cmp dword [esp + 0x1c], eax
jne 0x40c8ad
test edi, edi
ja 0x40c81a
cmp dword [esp + 0x58], 0x20
jae 0x40c896
push 0
push 8
lea ecx, [esp + 0x4c]
call fcn.00405d01
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.00403271
mov ecx, eax
call fcn.00405ca7
mov edi, dword [esp + 0x58]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.00403271
mov ecx, eax
call fcn.00405ca7
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x21]
push edx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x40c79a
jmp 0x40c896
cmp eax, 3
jne 0x40c896
push dword [esi + 0x4c]
push dword [esp + 0x14]
call fcn.0040c3e6
pop ecx
pop ecx
test al, al
jne 0x40c8ad
or esi, 0xffffffff
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.0040397b
mov eax, esi
jmp 0x40c6df
mov esi, dword [ebp + 8]
jmp 0x40c899
Function at 0x40ce9e
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x426d2d
call fcn.0041094c
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x40cfaa
cmp byte [esi + 0x41], 0
je 0x40cfaa
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x40ced4
xor al, al
jmp 0x40cfac
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.00409de8
mov dword [ebp - 4], edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403271
mov ecx, eax
call fcn.00405ca7
mov edi, dword [ebp - 0x1c]
mov ebx, eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403271
mov ecx, eax
call fcn.00405ca7
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
add edi, ebx
push edi
push dword [ebp - 0x38]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x40cf44
dec eax
je 0x40cf48
dec eax
dec eax
je 0x40cfa6
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.0040397b
mov al, bl
jmp 0x40cfac
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403271
mov ecx, eax
call fcn.00405ca7
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x40cf88
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403271
mov ecx, eax
call fcn.00405ca7
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00413395
add esp, 0x10
cmp edi, eax
jne 0x40cf32
cmp byte [esi + 0x41], 0
je 0x40cfa6
test edi, edi
jne 0x40cee2
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.00405d01
jmp 0x40cee2
mov bl, 1
jmp 0x40cf34
mov al, 1
call fcn.004109cf
ret

Function at 0x40fca4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4322c8]
jne 0x40fcae
repz ret
jmp fcn.00416572
Function at 0x41db10
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.00414af8
and dword [ebp - 4], 0
cmp dword [0x434e64], 0
mov ebx, eax
jne 0x41dbc1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41dc72
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42af60
push edi
call esi
test eax, eax
je 0x41dc72
push eax
call fcn.00414a86
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434e64], eax
call esi
push eax
call fcn.00414a86
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x434e68], eax
call esi
push eax
call fcn.00414a86
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x434e6c], eax
call esi
push eax
call fcn.00414a86
pop ecx
mov dword [0x434e74], eax
test eax, eax
je 0x41dbc1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414a86
pop ecx
mov dword [0x434e70], eax
mov eax, dword [0x434e70]
cmp eax, ebx
je 0x41dc19
cmp dword [0x434e74], ebx
je 0x41dc19
push eax
call fcn.00414b01
push dword [0x434e74]
mov esi, eax
call fcn.00414b01
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41dc19
test edi, edi
je 0x41dc19
call esi
test eax, eax
je 0x41dc10
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41dc10
test byte [ebp - 0xc], 1
jne 0x41dc19
or dword [ebp + 0x10], 0x200000
jmp 0x41dc52
mov eax, dword [0x434e68]
cmp eax, ebx
je 0x41dc52
push eax
call fcn.00414b01
pop ecx
test eax, eax
je 0x41dc52
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41dc52
mov eax, dword [0x434e6c]
cmp eax, ebx
je 0x41dc52
push eax
call fcn.00414b01
pop ecx
test eax, eax
je 0x41dc52
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x434e64]
call fcn.00414b01
pop ecx
test eax, eax
je 0x41dc72
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41dc74
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4232d6
Capabilities:
Hash data with md5

Disassembly:
push 4
mov eax, 0x426636
call fcn.004108e3
mov esi, dword [ebp + 8]
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
lea eax, [esi + 0x18]
push eax
call fcn.00405c77
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push esi
mov byte [esi + 0x30], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.004232b2
mov eax, esi
call fcn.004109bb
ret 8
Function at 0x424990
Capabilities:
Get file size

Disassembly:
push 0xd0
mov eax, 0x4269ae
call fcn.004108e3
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x42c6f8
lea ecx, [ebp - 0x60]
mov dword [edi], vtable.replay::log::file.0
call fcn.0040318e
push 0x42c6fc
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.0040318e
push dword [ebp + 0xc]
lea ecx, [ebp - 0x60]
lea edx, [ebp - 0x7c]
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00425c51
push eax
lea eax, [ebp - 0x44]
push str.log_
push eax
mov byte [ebp - 4], 3
call fcn.00404ce2
add esp, 0x10
push eax
lea eax, [edi + 4]
push eax
mov byte [ebp - 4], 4
call fcn.00401291
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x44]
call fcn.0040397b
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.0040397b
push ebx
push esi
lea ecx, [ebp - 0x7c]
call fcn.0040397b
push ebx
push esi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 9
call fcn.0040397b
push dword [ebp + 0xc]
lea ecx, [edi + 0xc]
call fcn.004031b3
push 0x42c708
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xa
or dword [edi + 0x28], 0xffffffff
push eax
mov dword [edi + 0x2c], ebx
call fcn.00404c95
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x424a68
mov eax, dword [eax + 4]
jmp 0x424a6b
add eax, 4
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 4
push ebx
push 7
push 0x40000000
push eax
call esi
push ebx
push 1
lea ecx, [ebp - 0x28]
mov dword [edi + 0x30], eax
call fcn.0040397b
mov eax, dword [edi + 0x30]
cmp eax, 0xffffffff
jne 0x424b30
push str..log.txt
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
call fcn.00404c95
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x424abd
mov eax, dword [eax + 4]
jmp 0x424ac0
add eax, 4
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push eax
call esi
push ebx
push 1
lea ecx, [ebp - 0x28]
mov dword [edi + 0x30], eax
call fcn.0040397b
mov eax, dword [edi + 0x30]
cmp eax, 0xffffffff
jne 0x424b30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edi, [ebp - 0x28]
call fcn.00425eb2
push eax
lea eax, [ebp - 0x44]
push str.CreateFile_failed:
push eax
mov byte [ebp - 4], 0xb
call fcn.00404ce2
add esp, 0x10
push eax
lea eax, [ebp - 0xdc]
push eax
mov byte [ebp - 4], 0xc
call fcn.0040683c
push 0x42eb8c
lea eax, [ebp - 0xdc]
push eax
call fcn.004104b1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x424b42
push edi
call fcn.00424403
mov eax, edi
call fcn.004109bb
ret 8

Function at 0x425169
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [eax + 0x18], 8
jb 0x425177
mov eax, dword [eax + 4]
jmp 0x42517a
add eax, 4
push dword [ebp + 0xc]
push 0
push edi
push 0
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x425196
and dword [edi], 0
xor ecx, ecx
test eax, eax
sete cl
mov al, cl
pop ebp
ret 8
Function at 0x4251a3
Capabilities:
Set registry value

Disassembly:
push 0x98
mov eax, 0x42675b
call fcn.004108e3
cmp dword [esi + 0x18], 8
jb 0x4251bd
mov eax, dword [esi + 4]
jmp 0x4251c0
lea eax, [esi + 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 1
push 0
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
je 0x425233
push 1
push 0
mov edx, esi
lea ecx, [ebp - 0x44]
call fcn.00423f8a
pop ecx
pop ecx
and dword [ebp - 4], 0
cmp dword [eax + 0x18], 0x10
jb 0x4251fb
mov eax, dword [eax + 4]
jmp 0x4251fe
add eax, 4
push ebx
push eax
lea eax, [ebp - 0x28]
push str.RegSetValueEx___failed:_value___s____i_
push eax
call fcn.00425e93
add esp, 0x10
push eax
lea eax, [ebp - 0xa4]
push eax
mov byte [ebp - 4], 1
call fcn.00405371
push 0x42ea40
lea eax, [ebp - 0xa4]
push eax
call fcn.004104b1
call fcn.004109bb
ret 0xc

Function at 0x42523b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x134
mov eax, 0x426799
call fcn.004108e3
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x10], ebx
jb 0x425258
mov eax, dword [esi + 4]
jmp 0x42525b
lea eax, [esi + 4]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0xc]
xor edi, edi
push edi
push edi
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0x10], ebx
je 0x4252d2
push 1
push edi
mov edx, esi
lea ecx, [ebp - 0x80]
call fcn.00423f8a
pop ecx
pop ecx
mov dword [ebp - 4], edi
cmp dword [eax + 0x18], 0x10
jb 0x425297
mov eax, dword [eax + 4]
jmp 0x42529a
add eax, 4
push dword [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x64]
push str.Size_mismatch:_value___s__expected__i_found__i
push eax
call fcn.00425e93
add esp, 0x14
push eax
lea eax, [ebp - 0xe0]
push eax
mov byte [ebp - 4], 1
call fcn.00405445
push 0x42eac0
lea eax, [ebp - 0xe0]
push eax
call fcn.004104b1
cmp eax, edi
je 0x42532d
push 1
push edi
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.00423f8a
pop ecx
pop ecx
mov dword [ebp - 4], 2
cmp dword [eax + 0x18], 0x10
jb 0x4252f7
mov eax, dword [eax + 4]
jmp 0x4252fa
add eax, 4
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x48]
push str.RegQueryValueEx___failed:_value___s____i_
push eax
call fcn.00425e93
add esp, 0x10
push eax
lea eax, [ebp - 0x140]
push eax
mov byte [ebp - 4], 3
call fcn.00405371
push 0x42ea40
lea eax, [ebp - 0x140]
jmp 0x4252cc
call fcn.004109bb
ret 8
Function at 0x425428
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42680b
mov eax, dword fs:[0]
push eax
mov eax, 0x10050
call fcn.0041fc20
mov eax, dword [0x4322c8]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x1003c], ecx
lea ecx, [ebp - 0x10038]
xor ebx, ebx
push ecx
mov esi, edx
mov dword [ebp - 0x10040], eax
mov dword [ebp - 0x10034], ebx
push eax
lea edi, [ebp - 0x10034]
mov eax, esi
mov dword [ebp - 0x10034], ebx
mov dword [ebp - 0x10038], ebx
call fcn.00425169
mov eax, dword [ebp - 0x10038]
push ebx
shr eax, 1
push eax
lea ecx, [ebp - 0x10030]
call fcn.00403399
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x10034]
mov edx, esi
call fcn.00425335
cmp dword [ebp - 0x10018], 8
mov eax, dword [ebp - 0x1002c]
jae 0x4254ce
lea eax, [ebp - 0x1002c]
mov ebx, dword [ebp - 0x10038]
push eax
push dword [ebp - 0x10040]
call fcn.0042523b
mov eax, dword [ebp - 0x1001c]
xor ebx, ebx
cmp eax, ebx
je 0x425527
lea esi, [eax - 1]
cmp eax, esi
ja 0x4254fe
call fcn.0040d443
mov eax, dword [ebp - 0x1001c]
cmp dword [ebp - 0x10018], 8
mov ecx, dword [ebp - 0x1002c]
jae 0x425513
lea ecx, [ebp - 0x1002c]
cmp word [ecx + esi*2], bx
jne 0x425527
push ebx
dec eax
push eax
lea ecx, [ebp - 0x10030]
call fcn.00405142
cmp dword [ebp - 0x10034], 2
jne 0x425590
cmp dword [ebp - 0x10018], 8
mov eax, dword [ebp - 0x1002c]
jae 0x425545
lea eax, [ebp - 0x1002c]
push 0x8000
lea ecx, [ebp - 0x10014]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
push eax
lea eax, [ebp - 0x10014]
push eax
lea ecx, [ebp - 0x1005c]
call fcn.0040557b
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x10030]
mov byte [ebp - 4], 1
call fcn.004039c6
push ebx
push 1
lea ecx, [ebp - 0x1005c]
mov byte [ebp - 4], bl
call fcn.00403ab7
mov ecx, dword [ebp - 0x1003c]
lea eax, [ebp - 0x10030]
push eax
call fcn.004033c1
push ebx
push 1
lea ecx, [ebp - 0x10030]
call fcn.00403ab7
mov eax, dword [ebp - 0x1003c]
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.0040fca4
leave
ret 4
Function at 0x4255d2
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426843
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4322c8]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov eax, dword [0x4322c8]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.00424202
pop ecx
mov edx, dword [esp + 8]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], ebx
call fcn.00425428
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 1
call fcn.004039c6
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], bl
call fcn.00403ab7
push 1
push ebx
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.00423f8a
pop ecx
pop ecx
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.00403ab7
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0040fca4
mov esp, ebp
pop ebp
ret 4
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x76f34f16
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..rsrc
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6096a5e
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x414dd6
Capabilities:
Encode data using xor

Disassembly:
xor dword [edx], esi
sub ecx, ecx
mov ecx, 0xa36915ad
sub esp, 4
mov dword [esp], edi
pop edi
add edx, 4
inc eax
mov eax, 0xdd197649
cmp edx, ebx
jne fcn.00414dd6
mov ecx, ecx
ret
Function at 0xc66370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xc6638e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xc8f074
push ecx
mov edi, eax
call fcn.00c7a198
mov esi, eax
add esp, 8
test esi, esi
jne 0xc663cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00c7a02e
push esi
call fcn.00c79fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xc69850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xc698ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xc94720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xc698ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00c7a1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xc698ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xc94720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xc6992a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00c7b082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xc69957
mov word [eax], si
add eax, 2
push eax
call fcn.00c7b030
add esp, 4
jmp 0xc69959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xc698ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xc698b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xc69ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xc6a080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xc6a0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xc8f458
push ecx
call fcn.00c7a1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00c7a1e1
add esp, 0x10
jmp 0xc6a0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00c7a20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00c79dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00c6a050
mov eax, dword [0xc94728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xc6a13b
push esi
call fcn.00c69fb0
add esp, 4
mov dword [0xc94728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xc6a14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00c69ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xc6d440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xc6d4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xc6d48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xc6d471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xc6d47e
add edx, ecx
cmp ebx, edx
jb 0xc6d48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xc6d467
xor ecx, ecx
jmp 0xc6d4a2
test eax, eax
jne 0xc6d492
xor ecx, ecx
jmp 0xc6d4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00c6d3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xc6d8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xc6d921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xc6d946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xc6d96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xc6d993
push ecx
push esi
call fcn.00c6d4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret