joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457830
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
lea eax, [esp]
push esi
mov esi, dword [esp + 0x30]
push edi
push eax
push esi
call fcn.00450650
lea ecx, [esp + 0x10]
add esp, 8
push ecx
call fcn.004505b0
lea eax, [esp + 0x20]
lea ecx, [esp + 0xc]
add esp, 4
push eax
push ecx
push esi
call fcn.004509a0
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
add esp, 0xc
cmp word [esi], 0
push edi
je 0x457889
lea eax, [esi + 2]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.004509a0
add esp, 0xc
jmp 0x457891
call fcn.00450630
add esp, 4
xor dx, dx
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [esi + eax + 0x16]
xor ecx, dword [esp + eax + 0x1c]
xor dword [edi + eax], ecx
movsx eax, dx
cmp eax, 5
jb 0x457894
pop edi
pop esi
add esp, 0x28
ret

Function at 0x4578c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x64
lea eax, [esp + 0x28]
push ebx
push esi
push edi
push ebp
push eax
call fcn.00450630
lea eax, [esp + 0x50]
add esp, 4
push eax
call fcn.00450630
xor cx, cx
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x7c]
add esp, 4
movsx eax, cx
inc cx
lea edi, [eax*4]
lea eax, [edi + ebx]
lea edx, [edi + esi]
mov ebp, dword [eax]
mov eax, dword [eax + 0x14]
xor ebp, dword [edx]
xor eax, dword [edx + 0x14]
movsx edx, cx
mov dword [esp + edi + 0x38], ebp
mov dword [esp + edi + 0x4c], eax
cmp edx, 5
jb 0x4578ef
lea eax, [esp + 0x60]
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00450ce0
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x54]
lea eax, [esp + 0x68]
add esp, 8
push ecx
push edx
push eax
call fcn.004509a0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x30]
add esp, 0xc
push ecx
push edx
call fcn.00450650
lea ecx, [esp + 0x18]
add esp, 8
push ecx
call fcn.004505b0
mov ecx, dword [esp + 0x88]
add esp, 4
cmp word [ecx], 0
je 0x4579a1
xor dx, dx
mov edi, dword [esp + 0x80]
movsx eax, dx
shl eax, 2
inc dx
mov ebp, dword [eax + ecx + 2]
xor ebp, dword [eax + ebx]
xor ebp, dword [eax + esi]
xor ebp, dword [esp + eax + 0x10]
xor ebp, dword [esp + eax + 0x24]
mov dword [eax + edi], ebp
movsx eax, dx
cmp eax, 5
jb 0x45797a
jmp 0x4579cc
xor cx, cx
mov edi, dword [esp + 0x80]
movsx eax, cx
shl eax, 2
inc cx
mov edx, dword [eax + ebx]
xor edx, dword [eax + esi]
xor edx, dword [esp + eax + 0x10]
xor edx, dword [esp + eax + 0x24]
mov dword [eax + edi], edx
movsx eax, cx
cmp eax, 5
jb 0x4579ab
xor dx, dx
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [eax + edi]
xor ecx, dword [eax + esi]
mov dword [esp + eax + 0x38], ecx
movsx eax, dx
cmp eax, 5
jb 0x4579cf
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x38]
push eax
push ecx
push edx
call fcn.004509a0
xor dx, dx
add esp, 0xc
movsx eax, dx
inc dx
mov ebx, dword [esi + eax*4 + 0x14]
xor ebx, dword [esp + eax*4 + 0x10]
lea ecx, [eax*4]
lea eax, [ecx + edi]
xor ebx, dword [eax]
mov dword [eax + 0x14], ebx
movsx eax, dx
cmp eax, 5
jb 0x457a03
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x64
ret
Function at 0x457a30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x64
lea eax, [esp + 0x28]
push ebx
push esi
push edi
mov esi, dword [esp + 0x74]
push eax
push esi
call fcn.00450ce0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x3c]
add esp, 8
lea eax, [esi + 0x14]
push ecx
push eax
push edx
call fcn.004509a0
xor dx, dx
add esp, 0xc
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [eax + esi]
xor ecx, dword [esp + eax + 0xc]
mov dword [esp + eax + 0x20], ecx
movsx eax, dx
cmp eax, 5
jb 0x457a61
lea eax, [esp + 0x48]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00450650
lea ecx, [esp + 0x50]
add esp, 8
push ecx
call fcn.004505b0
mov edx, dword [esp + 0x80]
add esp, 4
cmp word [edx], 0
je 0x457ad0
xor cx, cx
mov edi, dword [esp + 0x78]
movsx eax, cx
shl eax, 2
inc cx
mov ebx, dword [eax + edx + 2]
xor ebx, dword [esp + eax + 0x20]
xor ebx, dword [esp + eax + 0x48]
mov dword [eax + edi], ebx
movsx eax, cx
cmp eax, 5
jb 0x457aaf
jmp 0x457af2
xor dx, dx
mov edi, dword [esp + 0x78]
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [esp + eax + 0x20]
xor ecx, dword [esp + eax + 0x48]
mov dword [eax + edi], ecx
movsx eax, dx
cmp eax, 5
jb 0x457ad7
xor cx, cx
mov edx, 0xffffffff
movsx eax, cx
inc cx
mov dword [esp + eax*4 + 0xc], edx
movsx ebx, cx
cmp ebx, 5
jb 0x457afa
and dword [esp + 0xc], 0x3fffffff
xor dx, dx
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [esp + eax + 0x20]
xor dword [esp + eax + 0xc], ecx
movsx eax, dx
cmp eax, 5
jb 0x457b16
lea eax, [esp + 0x5c]
lea ecx, [esp + 0xc]
push eax
push edi
push ecx
call fcn.004509a0
lea ecx, [esp + 0x40]
add esp, 0xc
push ecx
push esi
call fcn.00450650
lea ecx, [esp + 0x3c]
add esp, 8
push ecx
call fcn.004505b0
xor dx, dx
add esp, 4
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [esp + eax + 0x5c]
xor ecx, dword [esp + eax + 0x34]
mov dword [eax + edi + 0x14], ecx
movsx eax, dx
cmp eax, 5
jb 0x457b5f
pop edi
pop esi
pop ebx
add esp, 0x64
ret

Function at 0x457b90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
lea eax, [esp]
push esi
mov esi, dword [esp + 0x34]
push edi
push eax
push esi
xor di, di
call fcn.00450650
lea ecx, [esp + 0x24]
add esp, 8
push ecx
call fcn.00450630
add esp, 4
movsx eax, di
inc di
lea ecx, [eax*4]
mov edx, dword [esi + ecx + 0x14]
lea eax, [esi + ecx]
xor edx, dword [eax]
movsx eax, di
mov dword [esp + ecx + 0x1c], edx
cmp eax, 5
jb 0x457bb7
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 8]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
call fcn.004578c0
add esp, 0x10
pop edi
pop esi
add esp, 0x28
ret
Function at 0x402970
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, ecx
mov dword [ebx], 0
mov dword [eax], 0
mov eax, dword [esi + 0x14]
push edi
cmp eax, 1
jne 0x4029a9
mov edx, dword [esi]
push 0
push 2
call dword [edx + 0x58]
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
pop ecx
ret 8
mov eax, dword [esi]
xor ebp, ebp
mov byte [esp + 0x13], 0
call dword [eax + 0x38]
test al, al
jne 0x4029d5
mov edi, dword [esi]
mov ecx, esi
call dword [edi + 0x2c]
push eax
mov ecx, esi
call dword [edi + 0x40]
mov ebp, eax
test ebp, ebp
jne 0x402a7b
mov byte [esp + 0x13], 1
mov ecx, dword [esi + 0x18]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4029f9
mov edx, dword [esi]
mov ebp, 8
push 0
push ebp
mov ecx, esi
call dword [edx + 0x58]
jmp 0x402a6d
push edi
call fcn.00406d29
mov dword [ebx], eax
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [eax], edi
mov eax, dword [ebx]
test eax, eax
je 0x402a5e
test edi, edi
jbe 0x402a6d
mov edx, dword [ebx]
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x1c]
push 0
push ecx
push edi
push edx
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402a4e
mov edx, dword [esi]
mov ebp, 4
push 1
push ebp
mov ecx, esi
call dword [edx + 0x58]
test al, al
je 0x402a6d
mov ebx, dword [esp + 0x18]
xor ebp, ebp
mov eax, dword [esp + 0x1c]
sub edi, eax
test eax, eax
je 0x402a6d
test edi, edi
ja 0x402a14
jmp 0x402a6d
mov eax, dword [esi]
mov ebp, 7
push 0
push ebp
mov ecx, esi
call dword [eax + 0x58]
cmp byte [esp + 0x13], 1
jne 0x402a7b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x44]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x402e20
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ecx
mov eax, ecx
push ebx
push ebp
push esi
lea edx, [eax + 4]
push edi
mov ebp, dword [esp + 0x18]
mov ecx, 0x12
mov esi, 0x4102f0
mov edi, edx
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x4c]
mov ecx, 0x12
mov esi, 0x4102f0
mov dword [esp + 0x10], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x400
mov esi, 0x410338
lea edi, [eax + 0x94]
test ebp, ebp
rep movsd dword es:[edi], dword [esi]
je 0x402f72
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x402f72
xor ecx, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 0x12
mov eax, ecx
cdq
idiv ebx
xor eax, eax
inc ecx
mov al, byte [edx + ebp]
mov edi, eax
mov eax, ecx
cdq
idiv ebx
xor eax, eax
shl edi, 8
mov al, byte [edx + ebp]
mov esi, eax
or esi, edi
inc ecx
mov eax, ecx
cdq
idiv ebx
xor eax, eax
shl esi, 8
mov al, byte [edx + ebp]
mov edi, eax
or edi, esi
inc ecx
mov eax, ecx
cdq
idiv ebx
xor eax, eax
shl edi, 8
mov al, byte [edx + ebp]
mov edx, dword [esp + 0x18]
or eax, edi
inc ecx
mov edi, dword [edx]
add edx, 4
xor edi, eax
mov eax, dword [esp + 0x1c]
mov dword [edx - 4], edi
dec eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
jne 0x402e83
mov ecx, dword [esp + 0x10]
xor eax, eax
mov ebx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea esi, [ecx + 4]
lea edi, [ebx + 0x90]
mov ebp, 9
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, ebx
call fcn.00403170
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esi], eax
add esi, 4
sub edi, 4
mov dword [esi], ecx
mov dword [edi + 4], eax
mov dword [edi], ecx
add esi, 4
sub edi, 4
dec ebp
jne 0x402eff
lea esi, [ebx + 0x98]
mov ebp, 4
mov edi, 0x80
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, ebx
call fcn.00403170
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esi - 4], eax
mov dword [esi], ecx
add esi, 8
dec edi
jne 0x402f40
dec ebp
jne 0x402f3b
pop edi
pop esi
mov byte [ebx], 1
pop ebp
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
mov byte [eax], 0
pop ebx
pop ecx
ret 8
Function at 0x403020
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov dl, byte [eax]
inc eax
mov byte [esp + 0x17], dl
push edi
mov dl, byte [eax]
inc eax
mov byte [esp + 0x1a], dl
mov edi, 8
mov dl, byte [eax]
inc eax
mov byte [esp + 0x19], dl
mov dl, byte [eax]
inc eax
mov byte [esp + 0x18], dl
mov dl, byte [eax]
inc eax
mov byte [esp + 0x13], dl
mov dl, byte [eax]
inc eax
mov byte [esp + 0x12], dl
mov dl, byte [eax]
mov al, byte [eax + 1]
mov byte [esp + 0x11], dl
mov edx, dword [esp + 0x2c]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ebp, dword [edx]
add edx, 4
xor eax, ebp
add edx, 4
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x1a]
mov ebp, dword [esp + 0x1b]
and ebx, 0xff
and ebp, 0xff
mov ebx, dword [ecx + ebx*4 + 0x494]
add ebx, dword [ecx + ebp*4 + 0x94]
mov ebp, dword [esp + 0x19]
and ebp, 0xff
xor ebx, dword [ecx + ebp*4 + 0x894]
mov ebp, eax
and ebp, 0xff
add ebx, dword [ecx + ebp*4 + 0xc94]
mov ebp, dword [edx - 4]
xor ebx, ebp
xor esi, ebx
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x12]
mov ebp, dword [esp + 0x13]
and ebx, 0xff
and ebp, 0xff
mov ebx, dword [ecx + ebx*4 + 0x494]
add ebx, dword [ecx + ebp*4 + 0x94]
mov ebp, dword [esp + 0x11]
and ebp, 0xff
xor ebx, dword [ecx + ebp*4 + 0x894]
mov ebp, esi
and ebp, 0xff
add ebx, dword [ecx + ebp*4 + 0xc94]
xor eax, ebx
dec edi
jne 0x403073
mov ecx, dword [edx]
mov ebp, dword [edx + 4]
xor eax, ecx
xor esi, ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], esi
inc eax
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x12]
mov byte [eax - 1], cl
mov cl, byte [esp + 0x11]
mov byte [eax], dl
mov dl, byte [esp + 0x10]
inc eax
pop edi
pop esi
pop ebp
mov byte [eax], cl
mov cl, byte [esp + 0xf]
inc eax
pop ebx
mov byte [eax], dl
mov dl, byte [esp + 0xa]
inc eax
mov byte [eax], cl
mov cl, byte [esp + 9]
inc eax
mov byte [eax], dl
mov dl, byte [esp + 8]
inc eax
mov byte [eax], cl
mov byte [eax + 1], dl
add esp, 0x10
ret 0xc
Function at 0x403170
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
sub esp, 0x10
mov eax, dword [eax]
push ebx
push ebp
push esi
mov esi, dword [edx]
push edi
lea edx, [ecx + 8]
mov edi, 8
mov ebx, dword [edx - 4]
add edx, 8
xor eax, ebx
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x12]
mov ebp, dword [esp + 0x13]
and ebx, 0xff
and ebp, 0xff
mov ebx, dword [ecx + ebx*4 + 0x494]
add ebx, dword [ecx + ebp*4 + 0x94]
mov ebp, dword [esp + 0x11]
and ebp, 0xff
xor ebx, dword [ecx + ebp*4 + 0x894]
mov ebp, eax
and ebp, 0xff
add ebx, dword [ecx + ebp*4 + 0xc94]
mov ebp, dword [edx - 8]
xor ebx, ebp
xor esi, ebx
mov dword [esp + 0x18], esi
mov ebx, dword [esp + 0x1a]
mov ebp, dword [esp + 0x1b]
and ebx, 0xff
and ebp, 0xff
mov ebx, dword [ecx + ebx*4 + 0x494]
add ebx, dword [ecx + ebp*4 + 0x94]
mov ebp, dword [esp + 0x19]
and ebp, 0xff
xor ebx, dword [ecx + ebp*4 + 0x894]
mov ebp, esi
and ebp, 0xff
add ebx, dword [ecx + ebp*4 + 0xc94]
xor eax, ebx
dec edi
jne 0x40318b
mov edx, dword [ecx + 0x48]
pop edi
xor edx, esi
mov esi, dword [esp + 0x20]
mov dword [esi], edx
mov ecx, dword [ecx + 0x44]
mov edx, dword [esp + 0x24]
xor ecx, eax
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
add esp, 0x10
ret 8

Function at 0x403250
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4162f4]
push 0
push 0x403290
push 0
push 0x65
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 1
push eax
mov dword [0x4162dc], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x4162dc]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x4162dc]
ret
Function at 0x403610
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40fca1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push ebx
push esi
lea ecx, [esp + 0xc]
call fcn.00401c90
xor ebx, ebx
lea ecx, [esp + 8]
mov dword [esp + 0x1ac], ebx
call fcn.00401c90
lea ecx, [esp + 0x10]
mov byte [esp + 0x1ac], 1
call fcn.00401c90
mov eax, dword [esp + 0x1c0]
lea ecx, [esp + 0x20]
push eax
push str.SKU_d
push ecx
mov byte [esp + 0x1b8], 2
call fcn.00406ff8
mov ecx, dword [esp + 0x1c8]
add esp, 0xc
lea edx, [esp + 0xc]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00401540
test al, al
lea ecx, [esp + 0x10]
je 0x4037fd
push ecx
push 0x4130b8
push ebx
lea ecx, [esp + 0x18]
call fcn.00402140
lea edx, [esp + 0xc]
lea ecx, [esp + 8]
push edx
mov esi, eax
call fcn.00401d60
push esi
push ebx
lea ecx, [esp + 0x10]
call fcn.00401d90
lea ecx, [esp + 8]
call fcn.00401f40
cmp byte [eax], 0x20
jne 0x4036f0
push 1
push ebx
lea ecx, [esp + 0x10]
call fcn.00401d90
lea ecx, [esp + 8]
call fcn.00401f40
cmp byte [eax], 0x20
je 0x4036d6
lea eax, [esp + 0x1c]
lea ecx, [esp + 8]
push eax
push 0x20019
push ebx
call fcn.00401f40
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4037f9
lea ecx, [esp + 0x14]
lea edx, [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push edx
push eax
push ebx
push str.InstallPath
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4037f9
cmp dword [esp + 0x18], 1
jne 0x4037f9
lea edx, [esp + 0xa0]
push 0x5c
push edx
lea esi, [esp + 0xa8]
call fcn.004062d0
add esp, 8
cmp eax, ebx
je 0x403789
lea esi, [eax + 1]
push 0x5c
push esi
call fcn.004062d0
add esp, 8
cmp eax, ebx
jne 0x403773
cmp esi, ebx
je 0x40378b
mov byte [esi], bl
mov eax, dword [esp + 0x1b8]
mov edx, dword [esp + 0x1b4]
lea ecx, [esp + 0xa0]
push eax
push ecx
push edx
call fcn.004069d0
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x1ac], 1
call fcn.00401cc0
lea ecx, [esp + 8]
mov byte [esp + 0x1ac], bl
call fcn.00401cc0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1ac], 0xffffffff
call fcn.00401cc0
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
add esp, 0x1a8
ret
lea ecx, [esp + 0x10]
mov byte [esp + 0x1ac], 1
call fcn.00401cc0
lea ecx, [esp + 8]
mov byte [esp + 0x1ac], bl
call fcn.00401cc0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1ac], 0xffffffff
call fcn.00401cc0
mov ecx, dword [esp + 0x1a4]
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a8
ret
Function at 0x403850
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x244
lea ecx, [esp]
push ebx
push 1
push eax
push 0x104
push ecx
mov ebx, 2
call fcn.00403610
add esp, 0x10
cmp al, 1
jne 0x403924
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push esi
push edi
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jb 0x4038fb
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [str.patches.]
mov eax, dword [0x4130c8]
dec edi
mov ecx, dword [0x4130cc]
mov dword [edi], edx
lea edx, [esp + 0x114]
push edx
mov dword [edi + 4], eax
lea eax, [esp + 0x14]
push eax
mov dword [edi + 8], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4038f4
lea ecx, [esp + 0x114]
push ecx
push esi
call ebp
test eax, eax
je 0x4038f4
lea edx, [esp + 0x114]
push edx
push esi
call ebp
test eax, eax
jne 0x4038e5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x25c]
push eax
push 0x104
push ecx
inc ebx
call fcn.00403610
add esp, 0x10
cmp al, 1
je 0x403886
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret
Function at 0x404c00
Capabilities:
Shutdown system
Terminate process

Disassembly:
sub esp, 0xb0
lea eax, [esp]
push esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x404c97
lea ecx, [esp + 0x34]
push 0x80
push ecx
push 6
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
lea edx, [esp + 0x38]
push 0x4130e8
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.00406e08
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
call esi
test eax, eax
je 0x404cdd
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x20]
push ecx
call edi
lea edx, [esp + 0x20]
push edx
call ebx
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call esi
test eax, eax
jne 0x404cbc
pop edi
pop ebx
pop esi
add esp, 0xb0
ret

Function at 0x404f80
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x358
push ebx
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
mov ebx, dword [esp + 0x364]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebx + 0x100]
lea edx, [esp + 0x5c]
mov dword [esp + 0x18], 0x44
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404fbc
lea edi, [ebx + 0x200]
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0x64]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop esi
pop ebp
test eax, eax
jne 0x405047
push eax
lea eax, [esp + 0x264]
push 0x100
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x300], ecx
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x304], edx
mov dword [ebx + 0x308], eax
mov dword [ebx + 0x30c], ecx
pop edi
mov al, 1
pop ebx
add esp, 0x358
ret
Function at 0x405280
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x28
push esi
push edi
call fcn.00405740
mov eax, dword [str.150C6462_4E49_4ccf_B073_57579569D994]
xor edi, edi
push eax
push edi
push edi
mov dword [0x4162ec], edi
mov dword [0x4162f0], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, edi
mov dword [0x4162ec], eax
je 0x40533b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x40533b
push edi
push str.Generals.dat
lea ecx, [esp + 0x1c]
call fcn.00402530
push edi
lea ecx, [esp + 0x18]
call fcn.00402660
test al, al
lea ecx, [esp + 0x14]
je 0x405336
call fcn.00402b50
push edi
push eax
push edi
lea ecx, [esp + 0x14]
push 4
push ecx
push 0xffffffffffffffff
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [0x4162f0], eax
je 0x405325
call esi
cmp eax, 0xb7
jne 0x405332
mov eax, dword [0x4162f0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4162f0], edi
lea ecx, [esp + 0x14]
call fcn.004025c0
pop edi
pop esi
add esp, 0x28
ret
Function at 0x408a2c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411438
push 0x40c3b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [0x41639c]
test eax, eax
je 0x408a74
mov dword [ebp - 4], 1
call eax
jmp 0x408a70
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x408a7d
jmp 0x40d1b5
push 0xa
call fcn.0040c4c5
push 0x16
call fcn.0040ee59
pop ecx
pop ecx
push 3
call fcn.00406e19

Function at 0x408a82
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411450
push 0x40c3b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [fcn.00408a2c]
test eax, eax
je 0x408aca
mov dword [ebp - 4], 1
call eax
jmp 0x408ac6
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x408ad3
jmp fcn.00408a2c

Function at 0x40c4c5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x415d28
cmp edx, dword [eax]
je 0x40c4e7
add eax, 8
inc ecx
cmp eax, 0x415db8
jl 0x40c4d8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x415d28]
jne 0x40c615
mov eax, dword [0x416378]
cmp eax, 1
je 0x40c5ef
test eax, eax
jne 0x40c518
cmp dword [0x413524], 1
je 0x40c5ef
cmp edx, 0xfc
je 0x40c615
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c54f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a5c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407cb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40c592
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407cb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4117fc
push edi
call fcn.004069d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a5c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a5d0
lea eax, [ebp - 0xa0]
push 0x4117dc
push eax
call fcn.0040a5d0
push dword [esi + 0x415d2c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a5d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e4cb
add esp, 0x2c
pop edi
jmp 0x40c615
lea eax, [ebp + 8]
lea esi, [esi + 0x415d2c]
push 0
push eax
push dword [esi]
call fcn.00407cb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10003300
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10003330
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call fcn.10002620
test al, al
jne 0x10003330
push 0
push 0
push 0
push 0x10002e90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc